/* tienda.css — Bichos Club store page */


/* ── TOP BAR ── */
.topbar {
  background: var(--accent); color: #fff;
  text-align: center; font-size: .75rem; letter-spacing: .08em;
  padding: .55rem 1rem;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 1px solid var(--gray-light);
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; padding: 0 2.5rem; height: 64px;
}
.nav-logo img { height: 48px; width: auto; margin: 0 auto; }
.nav-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-light); border-radius: 50%;
  background: transparent; color: var(--black); position: relative;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-toggle:hover { background: rgba(196,96,58,.08); border-color: rgba(196,96,58,.24); transform: translateY(-1px); }
.nav-bar {
  position: absolute; width: 16px; height: 1.5px; border-radius: 999px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
}
.nav-bar:nth-child(1) { top: 14px; }
.nav-bar:nth-child(2) { top: 19px; }
.nav-bar:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] { background: var(--black); border-color: var(--black); color: var(--cream); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; transform: scaleX(.35); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.nav-menu {
  position: absolute; top: 64px; left: 2.5rem;
  width: min(340px, calc(100vw - 5rem));
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--gray-light); border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 60px rgba(26,26,26,.12);
  opacity: 0; pointer-events: none;
  transform: translateY(-10px) scale(.98); transform-origin: top left;
  visibility: hidden;
  padding: .8rem 2.5rem 1.2rem;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}
.nav-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); visibility: visible; }
.nav-menu a,
.nav-actions a,
.nav-actions button {
  border-bottom: 1px solid var(--gray-light);
  padding: 1rem 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--black); transition: color .2s;
  text-align: left;
}
.nav-menu a:hover,
.nav-actions a:hover,
.nav-actions button:hover { color: var(--terracota); }
.nav-menu a { transform: translateX(-4px); opacity: .86; transition: color .2s, transform .24s, opacity .24s; }
.nav-menu.open a { transform: translateX(0); opacity: 1; }
.nav-menu.open a:nth-child(2) { transition-delay: .03s; }
.nav-menu.open a:nth-child(3) { transition-delay: .06s; }
.nav-menu.open a:nth-child(4) { transition-delay: .09s; }
.nav-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.5rem; min-width: 0;
}
.nav-actions a,
.nav-actions button {
  border: 0; padding: 0; white-space: nowrap;
  background: transparent; cursor: pointer; font-family: var(--sans);
}
.nav-dev-note {
  display: block;
  margin-top: .35rem;
  font-size: .62rem;
  line-height: 1.35;
  letter-spacing: .04em;
  color: var(--gray);
  text-transform: none;
}
.nav-talleres {
  background: var(--mantis); color: #fff !important;
  padding: .35rem .9rem; border-radius: 100px; font-size: .68rem !important;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 4rem 2.5rem 2.5rem;
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--gray-light);
}
.page-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-style: normal;
  line-height: 1.1;
}
.page-count {
  font-size: .8rem; color: var(--gray);
  letter-spacing: .06em;
}

/* ── FILTER BAR ── */
.filter-bar {
  max-width: 1400px; margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex; gap: 2.5rem; align-items: center;
  border-bottom: 1px solid var(--gray-light);
  overflow-x: auto;
}
.filter-label {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray); white-space: nowrap; font-weight: 600;
}
.filter-chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  padding: .45rem 1.1rem;
  border: 1px solid var(--gray-light);
  font-size: .72rem; letter-spacing: .06em;
  cursor: pointer; transition: all .2s;
  background: transparent; font-family: var(--sans);
  white-space: nowrap;
}
.chip:hover, .chip.active {
  background: var(--black); color: #fff; border-color: var(--black);
}
.chip.bicho-mantis.active { background: var(--mantis); border-color: var(--mantis); }
.chip.bicho-libelula.active { background: var(--libelula); border-color: var(--libelula); color: var(--black); }
.chip.bicho-abeja.active { background: var(--abeja); border-color: var(--abeja); }
.chip.bicho-escorpion.active { background: #2a5ca8; border-color: #2a5ca8; }

/* ── SORT ── */
.sort-select {
  margin-left: auto; flex-shrink: 0;
  padding: .45rem 1rem; border: 1px solid var(--gray-light);
  font-family: var(--sans); font-size: .72rem; background: transparent;
  cursor: pointer; outline: none;
}

/* ── PRODUCT GRID ── */
.shop-layout {
  max-width: 1400px; margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
.product-card {
  cursor: pointer;
}
.product-img-wrap {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; margin-bottom: 1rem;
  background: var(--gray-light);
}
.product-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; transition: transform .4s ease;
}
.product-card:hover .product-img-bg { transform: scale(1.04); }
.quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,26,26,.92); color: #fff;
  text-align: center; padding: .8rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .25s ease;
  font-weight: 600;
}
.product-card:hover .quick-add { transform: translateY(0); }
.product-badge {
  position: absolute; top: .8rem; left: .8rem;
  color: #fff; font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .65rem;
}
.badge-nuevo { background: var(--mantis); }
.badge-best { background: var(--terracota); }
.badge-agotado { background: var(--gray); }
.badge-pronto { background: #999; }
.product-bicho {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray); margin-bottom: .2rem;
}
.product-name { font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.product-price { font-size: .9rem; font-weight: 600; }
.product-price-old {
  text-decoration: line-through; color: var(--gray);
  font-size: .8rem; font-weight: 400; margin-right: .4rem;
}

/* ── EDITORIAL BANNER (dentro del grid) ── */
.editorial-card {
  grid-column: span 2;
  background: var(--soft);
  color: var(--black);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
  aspect-ratio: 6/4;
  position: relative; overflow: hidden;
}
.editorial-emoji {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem; opacity: .15;
}
.editorial-eyebrow {
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray); margin-bottom: .6rem;
}
.editorial-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; font-size: 1.8rem;
  font-style: normal; line-height: 1.15; margin-bottom: 1.2rem;
}
.editorial-cta {
  display: inline-block;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 3px;
  padding: .6rem 1.4rem; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s;
}
.editorial-cta:hover { background: var(--accent); color: #fff; }

/* ── EMPTY STATE ── */
.empty-state {
  grid-column: 1/-1;
  text-align: center; padding: 5rem 2rem;
  display: none;
}
.empty-state h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; font-size: 1.8rem; font-style: normal; margin-bottom: .8rem; }
.empty-state p { color: var(--gray); }

.page-intro {
  font-size: .92rem;
  color: #5f6259;
  margin-top: .65rem;
  max-width: 520px;
  line-height: 1.55;
}
.filter-bar {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.filter-block {
  display: grid;
  gap: .65rem;
  min-width: min(100%, 520px);
}
.commerce-tools {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: .75rem;
}
.search-field {
  display: grid;
  gap: .4rem;
  min-width: 240px;
}
.search-field span {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}
.search-field input {
  height: 40px;
  border: 1px solid var(--gray-light);
  background: #fffdf8;
  padding: 0 .85rem;
  font: 500 .82rem var(--sans);
  outline: none;
}
.search-field input:focus,
.sort-select:focus {
  border-color: var(--black);
}
.shop-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem 1.2rem;
}
.product-card {
  display: grid;
  gap: .7rem;
}
.product-img-wrap {
  aspect-ratio: 1 / 1.18;
  border: 1px solid rgba(26,26,26,.08);
  border-radius: 6px;
  background: #fffdf8;
}
.product-img-bg {
  background: var(--product-bg, #edf3ee);
  border-radius: 6px;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 18px 18px rgba(26,26,26,.08));
  transition: transform .35s ease;
}
.product-card:hover .product-img { transform: translateY(-3px); }
.quick-add {
  border: 0;
  border-radius: 0 0 6px 6px;
  font-family: var(--sans);
  cursor: pointer;
}
.product-badge {
  border-radius: 3px;
  font-weight: 700;
}
.product-bicho {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}
.product-name {
  min-height: 2.5em;
  line-height: 1.25;
}
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.product-colorways {
  display: flex;
  gap: .28rem;
}
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,.16);
  background: var(--swatch, #ddd);
}
.product-detail[hidden] { display: none; }
.product-detail {
  max-width: 1400px;
  margin: 0 auto 5rem;
  padding: 0 2.5rem;
}
.pdp-shell {
  border-top: 1px solid var(--gray-light);
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.pdp-gallery {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.pdp-thumbs {
  display: grid;
  gap: .65rem;
}
.pdp-thumb {
  border: 1px solid var(--gray-light);
  background: #fffdf8;
  aspect-ratio: 1;
  border-radius: 6px;
  padding: .45rem;
  cursor: pointer;
}
.pdp-thumb.active {
  border-color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}
.pdp-thumb img,
.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pdp-main-image {
  aspect-ratio: 1 / 1.08;
  background: var(--product-bg, #edf3ee);
  border-radius: 6px;
  padding: clamp(1rem, 4vw, 2.25rem);
}
.pdp-summary {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}
.pdp-kicker {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
}
.pdp-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: normal;
  line-height: 1.02;
}
.pdp-price {
  font-size: 1.15rem;
  font-weight: 700;
}
.pdp-copy {
  color: #4f534b;
  line-height: 1.65;
  max-width: 560px;
}
.pdp-options {
  display: grid;
  gap: .65rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.pdp-option-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
}
.pdp-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.option-pill {
  border: 1px solid var(--gray-light);
  background: #fffdf8;
  padding: .5rem .75rem;
  font: 700 .74rem var(--sans);
  cursor: pointer;
}
.option-pill.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}
.pdp-actions {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: .7rem;
}
.qty-stepper {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  border: 1px solid var(--gray-light);
  background: #fffdf8;
  min-height: 46px;
}
.qty-stepper button,
.qty-stepper output {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  font: 700 .9rem var(--sans);
}
.qty-stepper button { cursor: pointer; }
.primary-cart {
  min-height: 46px;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  font: 700 .78rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.pdp-accordions { border-top: 1px solid var(--gray-light); }
.pdp-accordions details {
  border-bottom: 1px solid var(--gray-light);
  padding: .9rem 0;
}
.pdp-accordions summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .84rem;
}
.pdp-accordions p {
  margin-top: .65rem;
  color: #5f6259;
  line-height: 1.55;
  font-size: .86rem;
}
.pdp-close {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--terracota);
  font: 700 .74rem var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.related-title {
  margin: 3rem 0 1rem;
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: 1.8rem;
  font-style: normal;
}
.related-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bag-overlay[hidden] { display: none; }
.bag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,.32);
  z-index: 260;
}
.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  background: #fffdf8;
  z-index: 270;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-left: 1px solid var(--gray-light);
  box-shadow: -22px 0 50px rgba(26,26,26,.16);
}
.bag-drawer.open { transform: translateX(0); }
.bag-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--gray-light);
}
.bag-head h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 400;
}
.bag-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font: 700 1rem var(--sans);
}
.bag-body { overflow: auto; padding: 1rem 1.25rem; }
.bag-items { display: grid; gap: .85rem; }
.bag-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: .9rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--gray-light);
}
.bag-item-img {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--item-bg, #edf3ee);
  padding: .55rem;
}
.bag-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.bag-item-info { min-width: 0; display: grid; gap: .4rem; }
.bag-item-top { display: flex; justify-content: space-between; gap: .8rem; }
.bag-item-name { font-weight: 800; line-height: 1.2; }
.bag-item-meta { color: var(--gray); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.bag-item-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.bag-qty {
  display: grid;
  grid-template-columns: 28px 34px 28px;
  min-height: 34px;
  border: 1px solid var(--gray-light);
}
.bag-qty button, .bag-qty output {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  font: 700 .82rem var(--sans);
}
.bag-qty button { cursor: pointer; }
.bag-remove {
  border: 0;
  background: transparent;
  color: var(--terracota);
  font: 700 .68rem var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.bag-empty {
  display: none;
  min-height: 260px;
  place-items: center;
  text-align: center;
  color: var(--gray);
  line-height: 1.5;
}
.bag-empty.visible { display: grid; }
.bag-foot {
  border-top: 1px solid var(--gray-light);
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  gap: .8rem;
}
.bag-total { display: flex; justify-content: space-between; font-weight: 800; }
.bag-note { color: var(--gray); font-size: .78rem; line-height: 1.45; }
.bag-checkout, .bag-continue {
  min-height: 44px;
  border-radius: 4px;
  font: 800 .72rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.bag-checkout { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 3px; }
.bag-continue { border: 1px solid var(--gray-light); background: transparent; color: var(--black); }

/* ── FOOTER ── */
footer {
  background: var(--black); color: rgba(255,255,255,.6);
  padding: 4rem 2.5rem 2rem;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: .82rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 {
  color: #fff; font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; font-size: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: repeat(3, 1fr); }
  .editorial-card { grid-column: span 3; }
  .pdp-shell { grid-template-columns: 1fr; }
  .related-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  nav { padding: 0 1rem; }
  .nav-menu { left: 1rem; width: min(320px, calc(100vw - 2rem)); padding: .6rem 1rem 1rem; }
  .nav-actions { gap: .7rem; }
  .nav-actions a, .nav-actions button { font-size: .62rem; letter-spacing: .06em; }
  .shop-layout { grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem; padding: 2rem 1rem 4rem; }
  .editorial-card { grid-column: span 2; }
  .page-header { padding: 2.5rem 1rem 1.5rem; }
  .page-header { display: grid; gap: 1rem; align-items: start; }
  .filter-bar { padding: 1rem; gap: 1rem; }
  .commerce-tools { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr; }
  .search-field { min-width: 0; }
  .sort-select { width: 100%; margin-left: 0; height: 40px; }
  .product-detail { padding: 0 1rem; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); order: 2; }
  .pdp-actions { grid-template-columns: 1fr; }
  .related-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}



/* Páginas de ayuda y legales: se crean en Shopify; en la maqueta no enlazan. */
.footer-soon { font-size: .82rem; color: rgba(255,255,255,.35); cursor: default; }

.product-soon { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
