/* ============================================================
   GALO STORE · Estilos · Estética western premium (ARIAT)
   ============================================================ */

:root {
  --bg:        #f4efe5;   /* crema pergamino */
  --bg-2:      #ece3d4;
  --card:      #fffdf8;
  --ink:       #1c1814;   /* casi negro / cuero */
  --ink-soft:  #4a4036;
  --muted:     #8a7d6b;
  --tan:       #a9732e;   /* cuero / silla */
  --tan-dark:  #855a20;
  --gold:      #c79a3e;   /* dorado hebilla */
  --navy:      #16293b;   /* azul marino Ariat */
  --navy-2:    #21384e;
  --wine:      #7c2d2d;
  --line:      #ddd2bf;
  --ok:        #2e7d4f;
  --shadow:    0 10px 30px rgba(28,24,20,.12);
  --shadow-sm: 0 4px 14px rgba(28,24,20,.10);
  --radius:    14px;
  --maxw:      1200px;
  --font-disp: "Rye", "Oswald", serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px;
  color: var(--tan); font-weight: 600; font-size: .82rem; display: inline-block; margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-transform: uppercase; letter-spacing: 1px; color: var(--ink);
}
.section-head p { color: var(--muted); max-width: 560px; margin: 8px auto 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600; font-size: .9rem; padding: 13px 26px; border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: linear-gradient(135deg, var(--tan), var(--tan-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 11px 24px; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-wa { background: #25D366; color: #fff; box-shadow: var(--shadow-sm); padding: 11px 24px; font-size: .82rem; }
.btn-wa:hover { background: #1ebe5a; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink); color: #e9dcc6; font-family: var(--font-head);
  letter-spacing: 1px; font-size: .78rem; text-transform: uppercase; text-align: center;
  padding: 7px 12px;
}
.topbar b { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(244,239,229,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  font-family: var(--font-disp); font-size: 1.7rem; color: var(--ink); line-height: 1;
}
.brand .logo span { color: var(--tan); }
.nav-links { display: flex; gap: 22px; margin-left: 10px; }
.nav-links a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.2px;
  font-size: .88rem; font-weight: 500; color: var(--ink-soft); padding: 4px 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--tan); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  color: var(--ink); position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 4px; background: var(--tan); color: #fff;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.cart-count.hide { display: none; }
.hamburger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(rgba(20,16,12,.62), rgba(20,16,12,.72)),
    url("../img/hero-boots.webp") center 35% / cover no-repeat,
    linear-gradient(135deg, #2a1e12, #14100b);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 640px; }
.hero .tag {
  font-family: var(--font-head); letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-size: .85rem; font-weight: 600;
}
.hero h1 {
  font-family: var(--font-disp); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02;
  margin: 14px 0 18px; text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero p { font-size: 1.1rem; color: #f0e7d7; max-width: 500px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Bandas / features ---------- */
.features { background: var(--ink); color: #e9dcc6; }
.features .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0;
}
.feature { display: flex; align-items: center; gap: 12px; justify-content: center; }
.feature svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.feature b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; display: block; }
.feature small { color: #b6a98f; font-size: .78rem; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tan); }
.cat-card .ic { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--tan); }
.cat-card .ic svg { width: 100%; height: 100%; }
.cat-card span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .92rem; font-weight: 600; }

/* ---------- Productos ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 1px; font-size: .68rem; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; background: var(--wine); color: #fff;
}
.badge.nuevo { background: var(--navy); }
.badge.oferta { background: var(--wine); }
.badge.top { background: var(--tan); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card .brand-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.card .brand-tag { font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase; font-size: .7rem; color: var(--tan); font-weight: 600; }
.card .rating { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; margin-bottom: 6px; }
.card h3 a:hover { color: var(--tan); }
.card .gender { font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; }
.price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.old-price { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 11px 10px; font-size: .8rem; }

/* ---------- Catálogo / filtros ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 86px;
}
.filters h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .95rem; margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: .92rem; color: var(--ink-soft); }
.filter-opt input { accent-color: var(--tan); width: 16px; height: 16px; }
.filter-opt:hover { color: var(--ink); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-toolbar .count { color: var(--muted); font-size: .9rem; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; flex: 1; max-width: 340px; }
.search-box input { border: none; background: none; outline: none; flex: 1; font-size: .95rem; color: var(--ink); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); }
.select {
  font-family: var(--font-body); border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 10px 14px; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.filter-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1/-1; }

/* ---------- Detalle de producto ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp-gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.pdp-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.pdp-info .brand-tag { font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--tan); font-weight: 600; font-size: .85rem; }
.pdp-info h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 6px 0 10px; line-height: 1.15; }
.pdp-rating { color: var(--muted); margin-bottom: 16px; font-size: .9rem; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pdp-price .price { font-size: 2.1rem; }
.pdp-desc { color: var(--ink-soft); margin-bottom: 24px; }
.opt-group { margin-bottom: 20px; }
.opt-group label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; display: block; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 8px; padding: 9px 16px;
  font-size: .9rem; transition: all .15s ease; color: var(--ink-soft);
}
.chip:hover { border-color: var(--tan); }
.chip.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 42px; height: 44px; font-size: 1.3rem; color: var(--ink); transition: background .15s; }
.qty button:hover { background: var(--bg-2); }
.qty span { width: 46px; text-align: center; font-weight: 600; }
.pdp-buy { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.pdp-buy .btn { flex: 1; min-width: 180px; }
.pdp-meta { border-top: 1px solid var(--line); padding-top: 18px; font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
.pdp-meta b { color: var(--ink-soft); }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.cart-row .thumb { width: 90px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h4 { font-family: var(--font-head); font-size: 1.02rem; }
.cart-row .var { font-size: .82rem; color: var(--muted); margin: 3px 0 8px; }
.cart-row .line-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.cart-row .remove { color: var(--wine); font-size: .82rem; margin-top: 6px; }
.cart-row .remove:hover { text-decoration: underline; }
.cart-row .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-row .qty button { width: 34px; height: 36px; }
.cart-row .qty span { width: 36px; }
.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 86px;
}
.summary h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.ship-note { font-size: .82rem; color: var(--ok); margin: 10px 0; display: flex; gap: 6px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty svg { width: 80px; height: 80px; color: var(--line); margin: 0 auto 20px; }
.cart-empty h2 { font-family: var(--font-head); margin-bottom: 10px; }
.cart-empty p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Drawer (carrito lateral) ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,16,12,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 80; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 92vw); height: 100%; background: var(--bg);
  z-index: 90; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); background: var(--card); }
.drawer-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.mini-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-row .thumb { width: 64px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.mini-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-row h5 { font-family: var(--font-head); font-size: .92rem; line-height: 1.2; }
.mini-row .var { font-size: .76rem; color: var(--muted); }
.mini-row .mini-price { font-weight: 700; font-size: .92rem; }
.mini-row .x { color: var(--muted); font-size: 1.1rem; line-height: 1; }
.mini-row .x:hover { color: var(--wine); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cabfa9; padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 32px; }
.footer .logo { font-family: var(--font-disp); font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.footer .logo span { color: var(--gold); }
.footer p { font-size: .9rem; line-height: 1.7; }
.footer h5 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 14px; font-size: .95rem; }
.footer a { display: block; padding: 4px 0; font-size: .9rem; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--tan); }
.social svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .82rem; color: #9a8e78; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow);
  font-family: var(--font-head); letter-spacing: .5px; z-index: 200; opacity: 0; visibility: hidden;
  transition: .25s; display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; color: #25D366; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 60;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0; }
.crumbs a:hover { color: var(--tan); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px; box-shadow: var(--shadow);
  }
  .features .grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row .right { grid-column: 1/-1; flex-direction: row; justify-content: space-between; align-items: center; }
  .section { padding: 48px 0; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
}
