/* ============================================================
   ALI SPORTS — Stylesheet
   60% crema · 30% tinta · 10% dorado
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #f5f1eb;
  --cream-dark:  #ede8e0;
  --cream-mid:   #e0dbd2;
  --white:       #ffffff;
  --ink:         #0f0f0f;
  --ink-2:       #1e1e1e;
  --ink-3:       #2e2e2e;
  --ink-dim:     rgba(15,15,15,.55);
  --ink-muted:   rgba(15,15,15,.3);
  --ink-faint:   rgba(15,15,15,.1);
  --gold:        #b8924a;
  --gold-bg:     rgba(184,146,74,.08);
  --gold-border: rgba(184,146,74,.25);
  --red:         #c0392b;
  --red-bg:      rgba(192,57,43,.08);
  --green:       #1a8a4a;
  --green-bg:    rgba(26,138,74,.08);
  --ff-d: 'Cormorant Garamond', serif;
  --ff-b: 'Barlow', sans-serif;
  --ff-c: 'Barlow Condensed', sans-serif;
  --r: 3px;
  --shadow-sm: 0 2px 8px rgba(15,15,15,.06);
  --shadow-md: 0 8px 28px rgba(15,15,15,.08);
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-b);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-mid); border-radius: 2px; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,241,235,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-faint);
  height: 66px;
}
.hi {
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo svg, .logo img { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
.logo-name { font-family: var(--ff-c); font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); display: block; }
.logo-tag  { font-family: var(--ff-b); font-weight: 300; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-dim); display: block; margin-top: 1px; }

.search-wrap { flex: 1; max-width: 400px; position: relative; }
.search-inp {
  width: 100%; background: var(--white);
  border: 1px solid var(--ink-faint); border-radius: var(--r);
  padding: 9px 36px 9px 14px;
  font-family: var(--ff-b); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.search-inp::placeholder { color: var(--ink-muted); }
.search-inp:focus { border-color: var(--gold); }
.search-ico { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-dim); font-size: 14px; pointer-events: none; }
.search-clr { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--ink-dim); font-size: 15px; display: none; padding: 2px; }
.search-clr.show { display: block; }

nav { display: flex; align-items: center; gap: 4px; }
nav a { font-family: var(--ff-c); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); text-decoration: none; padding: 6px 12px; border-radius: var(--r); transition: color .2s, background .2s; }
nav a:hover { color: var(--ink); background: var(--ink-faint); }

.cart-btn { position: relative; background: var(--ink); color: var(--cream); border: none; cursor: pointer; width: 40px; height: 40px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .2s; }
.cart-btn:hover { background: var(--ink-3); }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--gold); color: var(--white); font-family: var(--ff-c); font-weight: 700; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; opacity: 0; transform: scale(0); transition: opacity .2s, transform .2s; }
.cart-badge.show { opacity: 1; transform: scale(1); }

/* ── HERO ── */
.hero { background: var(--ink); color: var(--cream); padding: 100px 28px 88px; position: relative; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .32; z-index: 0; }
.hero-tex { position: absolute; inset: 0; opacity: .025; background-image: repeating-linear-gradient(0deg,transparent,transparent 48px,rgba(255,255,255,1) 48px,rgba(255,255,255,1) 49px), repeating-linear-gradient(90deg,transparent,transparent 48px,rgba(255,255,255,1) 48px,rgba(255,255,255,1) 49px); }
.hero-glow { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,15,15,.82) 0%, rgba(15,15,15,.58) 42%, rgba(15,15,15,.18) 100%), radial-gradient(ellipse 55% 70% at 80% 50%, rgba(184,146,74,.06) 0%, transparent 65%); }
.hero-inn { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--ff-c); font-weight: 500; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero-h1 { font-family: var(--ff-d); font-size: clamp(48px, 6.5vw, 88px); font-weight: 700; line-height: .9; letter-spacing: -.01em; color: var(--cream); margin-bottom: 28px; }
.hero-h1 em { font-style: italic; color: var(--gold); display: block; }
.hero-sub { font-size: 15px; font-weight: 300; color: rgba(245,241,235,.6); line-height: 1.75; max-width: 400px; margin-bottom: 40px; }
.hero-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.hcard { background: rgba(245,241,235,.05); border: 1px solid rgba(245,241,235,.1); border-radius: var(--r); padding: 18px 22px; animation: floatY 5s ease-in-out infinite; }
.hcard:nth-child(2) { animation-delay: -2.5s; margin-left: 24px; }
.hcard:nth-child(3) { animation-delay: -1.2s; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.hcard-cat  { font-family: var(--ff-c); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.hcard-name { font-family: var(--ff-d); font-size: 18px; font-weight: 600; color: var(--cream); }

/* ── BUTTONS ── */
.btn-pri { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); color: var(--ink); font-family: var(--ff-c); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border: none; cursor: pointer; padding: 13px 28px; border-radius: var(--r); text-decoration: none; transition: background .2s, transform .15s; }
.btn-pri:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }
.btn-out-lt { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(245,241,235,.7); font-family: var(--ff-c); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(245,241,235,.2); cursor: pointer; padding: 12px 24px; border-radius: var(--r); text-decoration: none; transition: all .2s; }
.btn-out-lt:hover { color: var(--cream); border-color: rgba(245,241,235,.4); }
.btn-ink { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); font-family: var(--ff-c); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border: none; cursor: pointer; padding: 11px 22px; border-radius: var(--r); text-decoration: none; transition: background .2s, transform .15s; }
.btn-ink:hover { background: var(--gold); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: none; color: var(--ink-dim); font-family: var(--ff-c); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink-faint); cursor: pointer; padding: 9px 18px; border-radius: var(--r); transition: all .2s; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-muted); }

/* ── SECTION LABELS ── */
.sec-lbl { font-family: var(--ff-c); font-weight: 500; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-lbl::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.sec-ttl { font-family: var(--ff-d); font-size: clamp(32px,4vw,50px); font-weight: 700; line-height: .95; letter-spacing: -.01em; color: var(--ink); }
.sec-ttl em { font-style: italic; color: var(--gold); }

/* ── CATALOG ── */
.catalog { padding: 80px 0 60px; background: var(--cream); }
.cat-head { max-width: 1240px; margin: 0 auto; padding: 0 28px 44px; }
.filters { max-width: 1240px; margin: 0 auto; padding: 0 28px 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; transition: opacity .2s; }
.fbtn { font-family: var(--ff-c); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--white); border: 1px solid var(--ink-faint); color: var(--ink-dim); cursor: pointer; padding: 7px 16px; border-radius: var(--r); transition: all .2s; white-space: nowrap; }
.fbtn:hover { border-color: var(--ink-muted); color: var(--ink); }
.fbtn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pgrid { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.no-res { max-width: 1240px; margin: 0 auto; padding: 60px 28px; text-align: center; font-family: var(--ff-d); font-size: 22px; color: var(--ink-dim); display: none; }
.loading-state { max-width: 1240px; margin: 0 auto; padding: 60px 28px; text-align: center; color: var(--ink-muted); font-size: 14px; }

/* Product card */
.pcard { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.pcard:hover { border-color: rgba(15,15,15,.18); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pimg { width: 100%; aspect-ratio: 4/3; background: var(--cream); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pimg-placeholder { font-size: 13px; font-family: var(--ff-c); color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }
.pbadge { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--ff-c); font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--cream); padding: 3px 8px; border-radius: 1px; }
.pbadge.gold { background: var(--gold); color: var(--white); }
.pdiscount-tag { position: absolute; top: 10px; right: 10px; z-index: 1; font-family: var(--ff-c); font-weight: 700; font-size: 11px; background: var(--red); color: var(--white); padding: 3px 7px; border-radius: 1px; }
.pinfo { padding: 18px; }
.pcat { font-family: var(--ff-c); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.pname { font-family: var(--ff-d); font-size: 20px; font-weight: 600; line-height: 1.15; margin-bottom: 6px; color: var(--ink); }
.pdesc { font-size: 12px; color: var(--ink-dim); font-weight: 300; line-height: 1.55; margin-bottom: 14px; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pprice-wrap { display: flex; flex-direction: column; }
.pprice { font-family: var(--ff-c); font-weight: 700; font-size: 19px; color: var(--ink); }
.pprice-original { font-family: var(--ff-c); font-size: 13px; color: var(--ink-muted); text-decoration: line-through; }
.add-btn { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--ink-faint); background: none; cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all .2s; flex-shrink: 0; }
.add-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.add-btn.added { background: var(--gold); color: var(--white); border-color: var(--gold); animation: pop .3s; }
@keyframes pop { 50%{ transform: scale(1.2); } }

/* ── ABOUT ── */
.about { background: var(--ink-2); color: var(--cream); padding: 80px 28px; }
.about-inn { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-q { font-family: var(--ff-d); font-size: clamp(26px,3vw,40px); font-weight: 600; line-height: 1.25; border-left: 2px solid var(--gold); padding-left: 26px; }
.about-q em { color: var(--gold); font-style: italic; }
.about-txt { font-size: 14px; font-weight: 300; color: rgba(245,241,235,.6); line-height: 1.85; }
.about-txt p+p { margin-top: 14px; }
.pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 22px; }
.pill { font-family: var(--ff-c); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,235,.5); border: 1px solid rgba(245,241,235,.12); padding: 4px 11px; border-radius: var(--r); }

/* ── CONTACT ── */
.contact { padding: 80px 0; background: var(--cream-dark); }
.cont-inn { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.cont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.cont-items { display: flex; flex-direction: column; gap: 14px; }
.citem { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); padding: 20px; display: flex; align-items: flex-start; gap: 14px; transition: border-color .2s, box-shadow .2s; }
.citem:hover { border-color: var(--ink-muted); box-shadow: var(--shadow-sm); }
.cico { width: 38px; height: 38px; flex-shrink: 0; background: var(--gold-bg); border: 1px solid var(--gold-border); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.clbl { font-family: var(--ff-c); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.cval { font-size: 14px; color: var(--ink); }
.cval a { color: var(--ink); text-decoration: none; }
.cval a:hover { color: var(--gold); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.slink { display: flex; align-items: center; gap: 8px; font-family: var(--ff-c); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); background: var(--white); border: 1px solid var(--ink-faint); padding: 9px 16px; border-radius: var(--r); text-decoration: none; transition: all .2s; }
.slink:hover { color: var(--ink); border-color: var(--ink-muted); background: var(--cream); }
.mcard { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; min-height: 260px; display: flex; flex-direction: column; }
.mbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px; text-align: center; }
.mpin { font-size: 44px; }
.maddr { font-family: var(--ff-d); font-size: 22px; font-weight: 600; color: var(--ink); }
.mcity { font-size: 12px; color: var(--ink-dim); letter-spacing: .06em; }
.mact { display: block; padding: 14px; border-top: 1px solid var(--ink-faint); font-family: var(--ff-c); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-decoration: none; text-align: center; transition: background .2s; }
.mact:hover { background: var(--gold-bg); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(245,241,235,.45); padding: 28px; }
.foot-inn { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; letter-spacing: .04em; }
.foot-brand { font-family: var(--ff-d); font-size: 14px; }
.foot-brand strong { color: var(--cream); }
.foot-adm { color: rgba(245,241,235,.22); text-decoration: none; font-size: 11px; letter-spacing: .08em; transition: color .2s; }
.foot-adm:hover { color: var(--gold); }

/* ── CART DRAWER ── */
.cart-ov { position: fixed; inset: 0; z-index: 200; background: rgba(15,15,15,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-ov.open { opacity: 1; pointer-events: all; }
.cart-dr { position: fixed; top: 0; right: 0; bottom: 0; z-index: 201; width: 400px; max-width: 100vw; background: var(--white); border-left: 1px solid var(--ink-faint); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.cart-dr.open { transform: translateX(0); }
.cart-hd { padding: 22px 24px; border-bottom: 1px solid var(--ink-faint); display: flex; align-items: center; justify-content: space-between; background: var(--cream); }
.cart-ttl { font-family: var(--ff-c); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.cart-cnt { font-weight: 400; color: var(--ink-dim); }
.close-cart { width: 32px; height: 32px; border-radius: var(--r); border: 1px solid var(--ink-faint); background: none; cursor: pointer; color: var(--ink-dim); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.close-cart:hover { border-color: var(--ink-muted); color: var(--ink); }
.cart-bd { flex: 1; overflow-y: auto; padding: 14px 24px; }
.cart-emp { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 40px 0; color: var(--ink-dim); }
.cart-emp .ico { font-size: 40px; opacity: .3; margin-bottom: 4px; }
.cart-emp p { font-family: var(--ff-d); font-size: 20px; }
.cart-emp small { font-size: 13px; color: var(--ink-muted); }
.ci { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ink-faint); animation: slideIn .28s ease; }
@keyframes slideIn { from{opacity:0;transform:translateX(14px)} to{opacity:1;transform:translateX(0)} }
.ci-img { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--r); background: var(--cream); border: 1px solid var(--ink-faint); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-muted); overflow: hidden; text-align: center; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-det { flex: 1; min-width: 0; }
.ci-name { font-family: var(--ff-d); font-size: 16px; font-weight: 600; line-height: 1.2; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-cat { font-size: 11px; color: var(--ink-dim); margin-bottom: 8px; }
.ci-ctrl { display: flex; align-items: center; gap: 8px; }
.qbtn { width: 26px; height: 26px; border-radius: var(--r); border: 1px solid var(--ink-faint); background: none; cursor: pointer; color: var(--ink-dim); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .15s; }
.qbtn:hover { border-color: var(--ink-muted); color: var(--ink); }
.qval { font-family: var(--ff-c); font-weight: 600; font-size: 14px; min-width: 18px; text-align: center; }
.rm-btn { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 13px; color: var(--ink-muted); transition: color .2s; padding: 4px; }
.rm-btn:hover { color: var(--red); }
.ci-price { font-family: var(--ff-c); font-weight: 600; font-size: 14px; color: var(--ink); flex-shrink: 0; text-align: right; }
.cart-ft { padding: 18px 24px; border-top: 1px solid var(--ink-faint); background: var(--cream); }
.cft-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cft-lbl { font-size: 13px; color: var(--ink-dim); }
.cft-val { font-family: var(--ff-c); font-weight: 600; font-size: 14px; }
.cft-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 6px; margin-bottom: 18px; border-top: 1px solid var(--ink-faint); }
.cft-tlbl { font-family: var(--ff-c); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cft-tval { font-family: var(--ff-d); font-size: 30px; font-weight: 700; color: var(--gold); }
.btn-checkout { display: block; width: 100%; background: var(--ink); color: var(--cream); font-family: var(--ff-c); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border: none; cursor: pointer; padding: 14px; border-radius: var(--r); transition: background .2s, transform .15s; margin-bottom: 8px; }
.btn-checkout:hover { background: var(--gold); transform: translateY(-1px); }
.cart-note { text-align: center; font-size: 11px; color: var(--ink-muted); letter-spacing: .04em; }

/* ── FLOATING WHATSAPP ── */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  text-decoration: none; font-size: 26px;
  transition: transform .2s, box-shadow .2s;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.wa-fab svg { width: 28px; height: 28px; fill: white; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 400; transform: translateX(-50%) translateY(60px); background: var(--ink); color: var(--cream); font-family: var(--ff-c); font-weight: 600; font-size: 13px; letter-spacing: .05em; padding: 11px 22px; border-radius: var(--r); opacity: 0; transition: all .3s cubic-bezier(.4,0,.2,1); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FORM ELEMENTS ── */
.fg { margin-bottom: 16px; }
label { display: block; font-family: var(--ff-c); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 9px 12px; background: var(--cream);
  border: 1px solid var(--ink-faint); border-radius: var(--r);
  color: var(--ink); font-family: var(--ff-b); font-size: 14px;
  outline: none; transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 68px; line-height: 1.5; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── ADMIN SHARED ── */
.adm-wrap { min-height: 100vh; background: var(--cream); padding: 80px 0 60px; }
.adm-body { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.adm-page-title { font-family: var(--ff-d); font-size: 32px; font-weight: 700; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--ink-faint); }
.adm-page-title span { color: var(--gold); font-style: italic; }
.adm-tabs { display: flex; border-bottom: 1px solid var(--ink-faint); margin-bottom: 36px; overflow-x: auto; }
.adm-tab { font-family: var(--ff-c); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: none; border: none; border-bottom: 2px solid transparent; color: var(--ink-dim); cursor: pointer; padding: 10px 22px; margin-bottom: -1px; transition: color .2s, border-color .2s; white-space: nowrap; }
.adm-tab:hover { color: var(--ink); }
.adm-tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.adm-panel { display: none; }
.adm-panel.active { display: block; }
.adm-grid { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.adm-form { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); padding: 28px; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow-y: auto; }
.adm-form-ttl { font-family: var(--ff-c); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.edit-badge { font-size: 10px; color: var(--gold); letter-spacing: .12em; display: none; }
.adm-list-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.adm-list-hd h3 { font-family: var(--ff-c); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.adm-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 14px; }
.adm-pc { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; }
.adm-pimg { width: 100%; aspect-ratio: 4/3; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-muted); font-family: var(--ff-c); letter-spacing: .06em; text-transform: uppercase; overflow: hidden; position: relative; }
.adm-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-pbody { padding: 12px; }
.adm-pname { font-family: var(--ff-d); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.adm-pprice { font-family: var(--ff-c); font-weight: 700; font-size: 15px; color: var(--gold); }
.adm-pcat { font-size: 11px; color: var(--ink-dim); margin-bottom: 8px; }
.adm-pacts { display: flex; gap: 6px; margin-top: 10px; }
.btn-ed { flex: 1; background: var(--cream); border: 1px solid var(--ink-faint); color: var(--ink); font-family: var(--ff-c); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 6px; border-radius: var(--r); transition: all .2s; }
.btn-ed:hover { border-color: var(--ink-muted); }
.btn-del { background: none; border: 1px solid var(--ink-faint); color: var(--ink-muted); cursor: pointer; width: 28px; border-radius: var(--r); font-size: 14px; transition: all .2s; }
.btn-del:hover { background: #fff0f0; border-color: #ffcccc; color: var(--red); }
.adm-empty { grid-column: 1/-1; text-align: center; padding: 48px 0; color: var(--ink-dim); font-family: var(--ff-d); font-size: 18px; }

/* Image upload */
.drop-zone { border: 1.5px dashed var(--ink-faint); border-radius: var(--r); padding: 20px 16px; text-align: center; cursor: pointer; background: var(--cream); transition: border-color .2s, background .2s; position: relative; }
.drop-zone:hover, .drop-zone.drag { border-color: var(--gold); background: var(--gold-bg); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-lbl { font-family: var(--ff-c); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.dz-hint { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.img-prev { width: 100%; max-height: 120px; object-fit: cover; border-radius: var(--r); display: none; margin-top: 8px; }

/* Categories tab */
.cat-manager { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.cat-form-card { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); padding: 28px; position: sticky; top: 82px; }
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-row { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 12px; transition: border-color .2s; }
.cat-row:hover { border-color: var(--ink-muted); }
.cat-row-key { font-family: var(--ff-c); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-border); padding: 2px 8px; border-radius: 1px; flex-shrink: 0; }
.cat-row-name { font-family: var(--ff-d); font-size: 18px; font-weight: 600; flex: 1; }
.cat-row-count { font-size: 12px; color: var(--ink-muted); flex-shrink: 0; }
.cat-row-acts { display: flex; gap: 6px; flex-shrink: 0; }
.cat-default-tag { font-family: var(--ff-c); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); border: 1px solid var(--ink-faint); padding: 3px 8px; border-radius: var(--r); }

/* Ventas */
.sales-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; padding: 18px; background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); }
.date-range { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.date-range input { width: 150px; flex-shrink: 0; }
.sales-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.sales-card { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); padding: 24px 20px; text-align: center; position: relative; overflow: hidden; }
.sales-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.sales-card.bruto::before { background: var(--ink-3); }
.sales-card.iva::before { background: var(--gold); }
.sales-card.stotal::before { background: var(--green); }
.sales-card-label { font-family: var(--ff-c); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.sales-card-pct { font-size: 10px; color: var(--ink-muted); margin-bottom: 10px; }
.sales-card-val { font-family: var(--ff-d); font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }
.sales-card.stotal .sales-card-val { color: var(--green); }
.sales-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sales-table-wrap { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; }
.sales-table-head { padding: 14px 18px; border-bottom: 1px solid var(--ink-faint); }
.sales-table-title { font-family: var(--ff-c); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; }
th { font-family: var(--ff-c); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--ink-faint); background: var(--cream); }
td { padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--ink-faint); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }
.tbl-empty { padding: 32px; text-align: center; color: var(--ink-muted); font-family: var(--ff-d); font-size: 16px; }
.btn-add-sale { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); font-family: var(--ff-c); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: none; cursor: pointer; padding: 10px 20px; border-radius: var(--r); transition: background .2s; white-space: nowrap; }
.btn-add-sale:hover { background: var(--gold); }

/* Stock */
.stock-table-wrap { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; margin-bottom: 32px; }
.stock-status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--ff-c); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 12px; }
.stock-status.ok { color: var(--green); background: var(--green-bg); }
.stock-status.out { color: var(--red); background: var(--red-bg); }
.stock-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.stock-dot.ok { background: var(--green); }
.stock-dot.out { background: var(--red); }
.stock-qty-input { width: 70px; padding: 6px 10px; font-family: var(--ff-c); font-weight: 700; font-size: 15px; text-align: center; border: 1px solid var(--ink-faint); border-radius: var(--r); background: var(--cream); color: var(--ink); outline: none; transition: border-color .2s; }
.stock-qty-input:focus { border-color: var(--gold); }
.days-chip { display: inline-block; font-family: var(--ff-c); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--cream); color: var(--ink-dim); border: 1px solid var(--ink-faint); }
.days-chip.warn { background: rgba(184,146,74,.12); color: var(--gold); border-color: var(--gold-border); }
.days-chip.alert { background: var(--red-bg); color: var(--red); border-color: rgba(192,57,43,.2); }
.top-products { background: var(--white); border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; }
.top-prod-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--ink-faint); }
.top-prod-row:last-child { border-bottom: none; }
.top-rank { font-family: var(--ff-c); font-weight: 700; font-size: 18px; color: var(--ink-muted); width: 24px; text-align: center; flex-shrink: 0; }
.top-rank.first { color: var(--gold); }
.top-prod-img { width: 42px; height: 42px; border-radius: var(--r); background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-muted); overflow: hidden; flex-shrink: 0; border: 1px solid var(--ink-faint); }
.top-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.top-prod-name { font-family: var(--ff-d); font-size: 16px; font-weight: 600; }
.top-prod-cat { font-size: 11px; color: var(--ink-dim); }
.top-prod-sales { font-family: var(--ff-c); font-weight: 700; font-size: 16px; color: var(--gold); flex-shrink: 0; }
.top-prod-sales small { font-size: 10px; color: var(--ink-muted); font-weight: 400; margin-left: 2px; }

/* Sale search modal */
.modal-ov { position: fixed; inset: 0; z-index: 300; background: rgba(15,15,15,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-ov.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--r); padding: 28px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--ink-faint); }
.modal-title { font-family: var(--ff-c); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--ink-dim); transition: color .2s; }
.modal-close:hover { color: var(--ink); }
.sale-search-wrap { position: relative; margin-bottom: 16px; }
.sale-search-inp { width: 100%; padding: 10px 14px; background: var(--cream); border: 1px solid var(--ink-faint); border-radius: var(--r); font-family: var(--ff-b); font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s; }
.sale-search-inp:focus { border-color: var(--gold); }
.sale-search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--ink-faint); border-top: none; border-radius: 0 0 var(--r) var(--r); max-height: 220px; overflow-y: auto; z-index: 10; display: none; }
.sale-search-results.open { display: block; }
.sale-sr-item { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; transition: background .15s; border-bottom: 1px solid var(--ink-faint); }
.sale-sr-item:last-child { border-bottom: none; }
.sale-sr-item:hover { background: var(--cream); }
.sale-sr-name { font-family: var(--ff-d); font-size: 15px; font-weight: 600; }
.sale-sr-price { font-family: var(--ff-c); font-weight: 700; font-size: 13px; color: var(--gold); }
.sale-items-list { border: 1px solid var(--ink-faint); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; min-height: 60px; }
.sale-item-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ink-faint); }
.sale-item-row:last-child { border-bottom: none; }
.sale-item-name { flex: 1; }
.sale-item-name strong { font-family: var(--ff-d); font-size: 15px; display: block; }
.sale-item-name span { font-size: 11px; color: var(--ink-dim); }
.sale-item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.siqbtn { width: 26px; height: 26px; border-radius: var(--r); border: 1px solid var(--ink-faint); background: none; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.siqbtn:hover { border-color: var(--ink-muted); }
.siqval { font-family: var(--ff-c); font-weight: 700; font-size: 14px; min-width: 22px; text-align: center; }
.sale-item-total { font-family: var(--ff-c); font-weight: 700; font-size: 14px; flex-shrink: 0; width: 80px; text-align: right; }
.sale-item-rm { background: none; border: none; cursor: pointer; color: var(--ink-muted); font-size: 14px; transition: color .2s; }
.sale-item-rm:hover { color: var(--red); }
.sale-empty-msg { padding: 24px; text-align: center; color: var(--ink-muted); font-size: 13px; font-family: var(--ff-d); font-size: 16px; }
.modal-footer { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--ink-faint); margin-bottom: 16px; }
.modal-total-lbl { font-family: var(--ff-c); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.modal-total-val { font-family: var(--ff-d); font-size: 28px; font-weight: 700; color: var(--green); }

/* Login */
.login-ov { position: fixed; inset: 0; z-index: 500; background: rgba(15,15,15,.65); display: none; align-items: center; justify-content: center; padding: 20px; }
.login-ov.open { display: flex; }
.login-box { background: var(--white); border-radius: var(--r); padding: 36px; width: 100%; max-width: 340px; border: 1px solid var(--ink-faint); }
.login-logo { text-align: center; margin-bottom: 24px; font-family: var(--ff-d); font-size: 26px; font-weight: 700; color: var(--ink); }
.login-logo em { color: var(--gold); font-style: italic; }
.login-sub { font-size: 13px; color: var(--ink-dim); text-align: center; margin-bottom: 22px; }
.login-err { font-size: 12px; color: var(--red); text-align: center; margin-bottom: 12px; display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .adm-grid, .cat-manager { grid-template-columns: 1fr; }
  .adm-form, .cat-form-card { position: static; max-height: none; }
  .sales-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-inn, .about-inn, .cont-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-cards { display: none; }
  .sales-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .hi { gap: 10px; }
  .logo-tag { display: none; }
  .search-wrap { max-width: none; flex: 1; }
  .hero { padding: 80px 16px 60px; }
  .hero-h1 { font-size: 44px; }
  .pgrid { padding: 0 16px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filters { padding: 0 16px 28px; }
  .cat-head, .cont-inn, .adm-body { padding-left: 16px; padding-right: 16px; }
  .about { padding: 60px 16px; }
  .cart-dr { width: 100vw; }
  .frow, .frow-3 { grid-template-columns: 1fr; }
  .sales-cards { grid-template-columns: 1fr; }
  .adm-tabs { gap: 0; }
  .adm-tab { padding: 10px 14px; font-size: 11px; }
  .wa-fab { bottom: 16px; right: 16px; }
  .pname { font-size: 16px; }
}
@media (max-width: 420px) {
  .pgrid { grid-template-columns: 1fr; }
}


/* ── PAGINATION ── */
.pagination { max-width: 1240px; margin: 40px auto 0; padding: 0 28px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-btn { font-family: var(--ff-c); font-weight: 600; font-size: 13px; letter-spacing: .04em; background: var(--white); border: 1px solid var(--ink-faint); color: var(--ink-dim); cursor: pointer; min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--r); transition: all .2s; }
.page-btn:hover:not(:disabled) { border-color: var(--ink-muted); color: var(--ink); }
.page-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── FEATURED CHECKBOX ── */
.featured-check { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--gold-bg); border: 1px solid var(--gold-border); border-radius: var(--r); cursor: pointer; }
.featured-check input { width: auto; cursor: pointer; }
.featured-check label { margin-bottom: 0; cursor: pointer; color: var(--ink); letter-spacing: .04em; }

/* ── FLUJO CARDS ── */
.flujo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.flujo-section-title { font-family: var(--ff-c); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin: 28px 0 14px; }
@media (max-width: 700px) { .flujo-grid { grid-template-columns: 1fr; } }


/* ── EMBEDDED MAP ── */
.map-embed-link { position: relative; display: block; cursor: pointer; }
.map-embed-overlay { position: absolute; inset: 0; background: transparent; transition: background .2s; }
.map-embed-link:hover .map-embed-overlay { background: rgba(184,146,74,.08); }
