/* ═══════════════════════════════════════
   TikiFinds — main.css
   Base: tikifinds-landing CSS (verbatim)
   + Flask pages: panels, tienda, detail
   ═══════════════════════════════════════ */

:root {
  --orange: #F67A15;
  --orange-deep: #e06806;
  --orange-soft: rgba(246, 122, 21, .10);
  --ink: #1F1F1F;
  --sand: #E8E0D3;
  --cream: #F5F1E8;
  --white: #ffffff;
  --muted: #6f675c;
  --wa: #25d366;
  --radius: 14px;
  --maxw: 1280px;
  --shadow-sm: 0 1px 2px rgba(31, 31, 31, .06), 0 2px 8px rgba(31, 31, 31, .05);
  --shadow-md: 0 10px 30px rgba(31, 31, 31, .10);
  --shadow-lg: 0 24px 60px rgba(31, 31, 31, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1
}

img {
  display: block;
  max-width: 100%
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none
}

ul {
  list-style: none
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

#promo {
  margin-top: 70px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange)
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -.01em;
  font-weight: 800
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(246, 122, 21, .32)
}

.btn-primary:hover {
  background: var(--orange-deep)
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(31, 31, 31, .22)
}

.btn-ghost:hover {
  border-color: var(--ink)
}

.btn-dark {
  background: var(--ink);
  color: #fff
}

.btn-dark:hover {
  background: #000
}

.btn-light {
  background: #fff;
  color: var(--ink)
}

.btn-light:hover {
  background: var(--cream)
}

.btn-wa {
  background: var(--wa);
  color: #fff
}

.btn-wa:hover {
  background: #1eb854
}

.btn-outline {
  background: var(--white);
  color: var(--orange);
  border-color: var(--orange)
}

.btn-outline:hover {
  background: var(--orange);
  color: #fff
}

.btn-full {
  width: 100%;
  justify-content: center
}

.btn:disabled,
.btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none
}

/* ── Announcement bar ── */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 9px 16px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center
}

.announce-inner {
  display: inline-block;
  white-space: nowrap
}

.announce.is-scrolling {
  text-align: left
}

.announce.is-scrolling .announce-inner {
  animation: announce-bounce var(--announce-dur, 6s) ease-in-out infinite alternate
}

@keyframes announce-bounce {
  0%   { transform: translateX(0) }
  100% { transform: translateX(var(--announce-dist, 0px)) }
}

.announce b {
  color: var(--orange);
  font-weight: 700
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid rgba(31, 31, 31, .07);
  transition: box-shadow .2s;
  box-shadow: 0 2px 10px rgba(31, 31, 31, .07)
}

@supports (backdrop-filter:blur(1px)) {
  header {
    background: rgba(245, 241, 232, .88);
    backdrop-filter: blur(14px)
  }
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(31, 31, 31, .13)
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 78px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.brand img {
  height: 66px;
  width: auto
}

nav.menu {
  display: flex;
  gap: 6px;
  margin-left: 8px
}

nav.menu a {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  transition: background .18s, color .18s;
  position: relative
}

nav.menu a:hover {
  background: var(--sand)
}

nav.menu a.active {
  color: var(--orange)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .18s;
  position: relative
}

.icon-btn:hover {
  background: var(--sand)
}

.icon-btn svg {
  width: 21px;
  height: 21px
}

.cart-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream)
}

.cart-count:empty {
  display: none
}

.burger {
  display: none
}

.search-wrap {
  flex: 1;
  max-width: 340px;
  margin: 0 6px
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(31, 31, 31, .1);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  transition: border .18s, box-shadow .18s
}

.search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246, 122, 21, .14)
}

.search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0
}

.search input {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  width: 100%;
  color: var(--ink)
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 18px 0 0
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: stretch
}

.hero-copy {
  background: var(--sand);
  border-radius: 26px;
  padding: 54px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(246, 122, 21, .22), transparent 70%)
}

.hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  margin: 16px 0 18px
}

.hero h1 .em {
  color: var(--orange);
  font-style: italic;
  font-weight: 800
}

.hero p {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 46ch;
  font-weight: 500;
  margin-bottom: 30px
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap
}

.hero-cta .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 31, 31, .12)
}

.hero-stats .n {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink)
}

.hero-stats .l {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .03em
}

.hero-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 460px;
  background: var(--ink)
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0
}

.hero-media .badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(245, 241, 232, .94);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md)
}

.hero-media .badge .dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.hero-media .badge .dot svg {
  width: 22px;
  height: 22px;
  color: #fff
}

.hero-media .badge .t {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2
}

.hero-media .badge .s {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500
}

/* ── Marquee ── */
.marquee {
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  margin-top: 42px;
  padding: 13px 0
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px
}

@keyframes scroll {
  to {
    transform: translateX(-50%)
  }
}

/* ── Section heading ── */
section {
  padding: 72px 0
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px
}

.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px)
}

.sec-head p {
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
  max-width: 48ch
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
  flex-shrink: 0;
  transition: color .15s
}

.see-all:hover {
  color: var(--orange-deep)
}

.see-all svg {
  width: 16px;
  height: 16px
}

/* ── Categories ── */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.cat {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ink);
  display: block;
  transition: transform .25s var(--ease)
}

.cat:hover {
  transform: translateY(-4px)
}

.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 31, 31, .78) 0%, rgba(31, 31, 31, .1) 55%, transparent 100%)
}

.cat .label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  z-index: 2;
  color: #fff
}

.cat .label .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: .85
}

.cat .label .v {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.cat .label .v svg {
  width: 20px;
  height: 20px
}

/* ── Products grid (homepage .card / .grid) ── */
.prod-section {
  background: var(--white)
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.card {
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .25s;
  display: flex;
  flex-direction: column
}

.card:hover {
  box-shadow: var(--shadow-md)
}

.card .ph {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--sand)
}

.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s
}

.card:hover .ph img {
  transform: scale(1.04)
}

.card .ph a {
  display: block;
  width: 100%;
  height: 100%
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2
}

.tag.sold {
  background: var(--ink)
}

.tag.new {
  background: #2f8f5b
}

.wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 241, 232, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .18s, color .18s;
  color: var(--ink)
}

.wish svg {
  width: 18px;
  height: 18px
}

.wish:hover {
  background: #fff;
  color: var(--orange)
}

.wish.on,
.wish.active {
  background: var(--orange);
  color: #fff
}

.card .body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1
}

.card .cat-l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

.card .ttl {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  transition: color .15s
}

.card .ttl:hover {
  color: var(--orange)
}

.card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px
}

.price .now {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink)
}

.price .was {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600
}

.add {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s, transform .18s;
  cursor: pointer;
  /* positioned inside .ph at bottom-right */
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2
}

.add:hover,
.add.active {
  background: var(--orange);
  transform: scale(1.08)
}

.add svg {
  width: 18px;
  height: 18px
}

.add[disabled] {
  opacity: .4;
  cursor: not-allowed;
  background: #999
}

/* ── Promo split ── */
.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.promo-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 52px 72px
}

.promo-card.a {
  background: var(--ink);
  color: #fff
}

.promo-card.b {
  background: var(--orange);
  color: #fff
}

.promo-card .pc {
  position: relative;
  z-index: 2;
  max-width: 62%
}

.promo-card.a img {
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
  mask-image: linear-gradient(to left, #000 55%, transparent)
}

.promo-card h3 {
  font-size: 30px;
  margin: 10px 0 12px;
  line-height: 1.1
}

.promo-card p {
  font-size: 14px;
  opacity: .85;
  font-weight: 500;
  margin-bottom: 22px
}

.promo-card .eyebrow {
  color: inherit;
  opacity: .8
}

/* ── Values ── */
.values {
  background: var(--sand)
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.value {
  text-align: left
}

.value .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm)
}

.value .ic svg {
  width: 25px;
  height: 25px;
  color: var(--orange)
}

.value h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px
}

.value p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px
}

.fgrid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 241, 232, .12)
}

.footer-brand img {
  height: 62px;
  width: auto;
  margin-bottom: 18px
}

.footer-brand p {
  font-size: 13.5px;
  color: rgba(245, 241, 232, .6);
  font-weight: 500;
  max-width: 36ch;
  margin-bottom: 20px
}

.socials {
  display: flex;
  gap: 10px
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 241, 232, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  color: var(--cream)
}

.socials a:hover {
  background: var(--orange)
}

.socials svg {
  width: 19px;
  height: 19px
}

.fcol h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #fff
}

.fcol>a {
  display: block;
  font-size: 13.5px;
  color: rgba(245, 241, 232, .62);
  font-weight: 500;
  padding: 6px 0;
  transition: color .16s
}

.fcol>a:hover {
  color: var(--orange)
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.contact-list a,
.contact-list .line {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: rgba(245, 241, 232, .78);
  font-weight: 600;
  transition: color .16s
}

.contact-list a:hover {
  color: #fff
}

.contact-list .chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 241, 232, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .16s
}

.contact-list a:hover .chip {
  background: var(--orange)
}

.contact-list .chip svg {
  width: 16px;
  height: 16px
}

.fbottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(245, 241, 232, .5);
  font-weight: 500;
  flex-wrap: wrap
}

.fbottom a {
  color: rgba(245, 241, 232, .7);
  font-weight: 700
}

.fbottom a:hover {
  color: var(--orange)
}

/* ── Mobile scrim + drawer ── */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, .5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 90
}

.scrim.open {
  opacity: 1;
  visibility: visible
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 340px);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg)
}

.drawer.open {
  transform: translateX(0)
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(31, 31, 31, .08)
}

.drawer-top img {
  height: 42px
}

.drawer nav {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.drawer nav a {
  font-size: 17px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background .16s;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.drawer nav a:hover {
  background: var(--sand)
}

.drawer .d-search {
  margin: 8px 18px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid rgba(31, 31, 31, .1);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--muted)
}

.drawer .d-search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0
}

.drawer .d-search input {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  color: var(--ink)
}

.drawer-foot {
  margin-top: auto;
  padding: 20px 22px;
  border-top: 1px solid rgba(31, 31, 31, .08);
  display: flex;
  flex-direction: column;
  gap: 10px
}

/* ── Flash messages ── */
.flash-container {
  position: fixed;
  top: 90px;
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 340px
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: .875rem;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .11);
  animation: fadeIn .3s ease;
  border-left: 4px solid transparent
}

.flash-success {
  background: #f0fdf4;
  color: #16a34a;
  border-left-color: #10b981
}

.flash-danger {
  background: #fef2f2;
  color: #dc2626;
  border-left-color: #ef4444
}

.flash-warning {
  background: #fffbeb;
  color: #d97706;
  border-left-color: #f59e0b
}

.flash button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer
}

/* ── JS toasts (showToast) ── */
#toastCnt {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 590;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none
}

.toast {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.1rem;
  border-radius: .875rem;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .13);
  animation: toastIn .28s ease;
  pointer-events: auto;
  border-left: 4px solid transparent
}

.toast.success {
  background: #f0fdf4;
  color: #16a34a;
  border-left-color: #10b981
}

.toast.error {
  background: #fef2f2;
  color: #dc2626;
  border-left-color: #ef4444
}

.toast.info {
  background: #eff6ff;
  color: #2563eb;
  border-left-color: #3b82f6
}

.toast i {
  font-size: 1.1rem;
  flex-shrink: 0
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

/* ── Age filter boxes (audience pages) ── */
.age-filter-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb
}

.age-filter-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem
}

.age-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem
}

.age-filter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  text-decoration: none;
  text-align: center;
  transition: transform .15s, box-shadow .15s, filter .15s;
  padding: 1rem .5rem
}

.age-filter-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
  filter: brightness(1.06)
}

.age-filter-box.active {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(246,122,21,.25)
}

/* color variants */
.afb-baby  { background: #9dbfb8 }
.afb-todd  { background: #86bfbf }
.afb-kid   { background: #89b8d4 }
.afb-adult { background: #9aaac0 }

.afb-icon {
  width: 56%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center
}

.afb-icon svg {
  width: 100%;
  height: 100%
}

.afb-label {
  font-size: .8rem;
  font-weight: 800;
  color: white;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.2)
}

@media (max-width: 680px) {
  .age-filter-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem
  }
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  flex-shrink: 0;
  align-self: center
}

/* ── Age Audience Section ── */
.age-section {
  background: var(--cream)
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.age-card {
  background: var(--age-bg, #f3f4f6);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s
}

.age-card:hover {
  border-color: var(--age-accent, var(--orange));
  box-shadow: 0 8px 28px rgba(0,0,0,.09)
}

.age-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.age-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--age-accent, var(--ink));
  line-height: 1
}

.age-card-thumbs {
  display: flex;
  gap: .4rem
}

.age-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,.1)
}

.age-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.age-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem
}

.age-range-chip {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: white;
  color: var(--age-accent, var(--ink));
  border: 1.5px solid var(--age-accent, #d1d5db);
  text-decoration: none;
  transition: background .15s, color .15s
}

.age-range-chip:hover {
  background: var(--age-accent, var(--orange));
  color: white;
  border-color: var(--age-accent, var(--orange))
}

.age-card-all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--age-accent, var(--ink));
  text-decoration: none;
  margin-top: auto;
  opacity: .8;
  transition: opacity .15s
}

.age-card-all:hover {
  opacity: 1
}

@media (max-width: 900px) {
  .age-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 680px) {
  .age-grid {
    gap: 1rem
  }

  .age-card {
    padding: 1.25rem
  }
}

/* ── Reveal ── */
@media (prefers-reduced-motion:no-preference) {
  .reveal {
    transform: translateY(22px);
    transition: transform .65s var(--ease)
  }

  .reveal.in {
    transform: none
  }
}

/* ════════════════════════════════
   SIDE PANELS (cart / fav)
   ════════════════════════════════ */
.side-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: white;
  z-index: 600;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .12);
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column
}

.side-panel.open {
  right: 0
}

.side-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.side-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem
}

.side-panel-header button {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #9ca3af;
  cursor: pointer
}

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem
}

.side-panel-footer {
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 599;
  opacity: 0;
  visibility: hidden;
  transition: all .3s
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible
}

.panel-loading {
  text-align: center;
  padding: 3rem;
  font-size: 2rem;
  color: var(--orange)
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: .5rem;
  flex-shrink: 0;
  background: #f3f4f6
}

.cart-item-info {
  flex: 1
}

.cart-item-title {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .25rem
}

.cart-item-price {
  font-size: .85rem;
  color: var(--orange);
  font-weight: 700
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.qty-btn:hover {
  border-color: var(--orange);
  color: var(--orange)
}

.qty-num {
  font-size: .9rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center
}

.cart-item-remove {
  align-self: flex-start;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer
}

.cart-item-remove:hover {
  color: #dc2626
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem
}

.fav-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: center
}

.fav-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: .5rem;
  background: #f3f4f6
}

.fav-item-info {
  flex: 1
}

.fav-item-title {
  font-size: .875rem;
  font-weight: 600
}

.fav-item-price {
  font-size: .85rem;
  color: var(--orange);
  font-weight: 700
}

.empty-panel {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af
}

.empty-panel i {
  font-size: 3rem;
  margin-bottom: .75rem;
  display: block
}

/* ════════════════════════════════
   TIENDA / CATALOG PAGES
   ════════════════════════════════ */
.catalog-section {
  padding: 3rem 0 4rem
}

.catalog-header {
  margin-bottom: 2rem
}


.catalog-section .container {
  padding: 10px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1.75rem
}

.catalog-header .section-title {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap
}

.catalog-count {
  font-size: .85rem;
  font-weight: 500;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 1rem;
  padding: .15rem .7rem
}

.catalog-filters {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 600;
  background: white;
  color: #4b5563;
  border: 2px solid #e5e7eb;
  transition: all .15s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap
}

.filter-chip:hover {
  border-color: var(--orange);
  color: var(--orange)
}

.filter-chip.active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange)
}

.clear-chip:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626
}

.custom-select {
  position: relative
}

.custom-select.open {
  z-index: 160
}

.cs-trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 2rem;
  touch-action: manipulation;
  background: white;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap
}

.cs-trigger:hover,
.custom-select.open .cs-trigger {
  border-color: var(--orange);
  color: var(--orange)
}

.cs-arrow {
  transition: transform .2s;
  font-size: 1rem
}

.custom-select.open .cs-arrow {
  transform: rotate(180deg)
}

.cs-menu {
  position: fixed;
  left: -9999px;
  top: -9999px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 9999;
  padding: .4rem;
  opacity: 0;
  visibility: hidden;
  max-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity .18s, visibility .18s;
  scrollbar-width: thin
}

.custom-select.open .cs-menu {
  opacity: 1;
  visibility: visible
}

.cs-option {
  display: block;
  padding: .55rem .875rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  transition: background .12s;
  white-space: nowrap
}

.cs-option:hover,
.cs-option.active {
  background: var(--orange-soft);
  color: var(--orange)
}

.cs-option.active {
  font-weight: 700
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  height: 100%
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.card-image-link {
  display: block;
  width: 100%;
  height: 100%
}

.card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f3f4f6
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s
}

.product-card:hover .card-image img {
  transform: scale(1.04)
}

.badge-offer {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: #f59e0b;
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 1rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .25rem
}

.badge-featured {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--orange);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem
}

.badge-icon {
  font-size: .85rem;
  flex-shrink: 0
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1
}

.card-title {
  font-size: .9rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.card-title:hover {
  color: var(--orange)
}

.card-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto
}

.card-category {
  background: var(--orange-soft);
  color: var(--orange);
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 1rem
}

.card-gender {
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 1rem
}

.card-gender.femenino {
  background: #fce7f3;
  color: #db2777
}

.card-gender.masculino {
  background: #dbeafe;
  color: #1d4ed8
}

.card-gender.unisex {
  background: #f3f4f6;
  color: #6b7280
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5rem
}

.card-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  overflow: hidden
}

.card-price-old {
  font-size: .82rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  white-space: nowrap;
  margin-bottom: -.1rem
}

.card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap
}

.card-actions {
  display: flex;
  align-items: center;
  gap: .4rem
}

.card-actions-overlay {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  z-index: 5
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: #6b7280;
  cursor: pointer;
  overflow: hidden
}

.btn svg,
.btn-icon svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0
}

.btn-fav:hover,
.btn-fav.active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft)
}

.btn-icon:disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none
}

.btn-cart:hover,
.btn-cart.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--sand)
}

.badge-season {
  position: absolute;
  bottom: .65rem;
  left: .65rem;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  backdrop-filter: blur(4px);
  letter-spacing: .01em;
  pointer-events: none
}

.badge-season.verano {
  background: rgba(254, 240, 138, .92);
  color: #92400e
}

.badge-season.otono {
  background: rgba(254, 215, 170, .92);
  color: #7c2d12
}

.badge-season.invierno {
  background: rgba(186, 230, 253, .92);
  color: #0c4a6e
}

.badge-season.primavera {
  background: rgba(220, 252, 231, .92);
  color: #14532d
}

.product-sizes {
  margin: 1rem 0
}

.product-sizes-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem
}

.product-sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem
}

.size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .75rem;
  border: 2px solid #e5e7eb;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  background: white;
  min-width: 2.5rem
}

.season-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(90deg, var(--season-bg1) 0%, var(--season-bg2) 100%);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--season-txt);
  border: 1.5px solid var(--season-border)
}

.season-banner .season-icon {
  font-size: 1.4rem;
  line-height: 1
}

.season-banner p {
  margin: 0;
  font-weight: 400;
  font-size: .82rem;
  opacity: .85
}

.season-banner.verano {
  --season-bg1: #fffbeb;
  --season-bg2: #fef3c7;
  --season-txt: #92400e;
  --season-border: #fde68a
}

.season-banner.otono {
  --season-bg1: #fff7ed;
  --season-bg2: #ffedd5;
  --season-txt: #7c2d12;
  --season-border: #fed7aa
}

.season-banner.invierno {
  --season-bg1: #f0f9ff;
  --season-bg2: #e0f2fe;
  --season-txt: #0c4a6e;
  --season-border: #bae6fd
}

.season-banner.primavera {
  --season-bg1: #f0fdf4;
  --season-bg2: #dcfce7;
  --season-txt: #14532d;
  --season-border: #bbf7d0
}

.hero-compact {
  padding: 3rem 1.5rem 2.5rem
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 .5rem
}

.hero-sub {
  margin: 0 0 2rem;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.65;
  max-width: 420px
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1f2937
}

.hero-content h1 span {
  color: var(--orange)
}

.hero-content p {
  margin: 1.25rem 0 2rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 420px
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem
}

.hero-stats-simple {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap
}

.hero-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange)
}

.hero-stat span {
  font-size: .78rem;
  color: #4b5563;
  font-weight: 500
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem
}

.cat-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: .875rem .75rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: #4b5563;
  transition: border-color .2s, color .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  word-break: break-word;
  line-height: 1.35
}

.cat-card:hover {
  border-color: var(--orange);
  color: var(--orange)
}

.cat-card.active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 700
}

.trust-strip {
  padding: 2.5rem 0;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #f3f4f6
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: .875rem;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange)
}

.trust-info h4 {
  font-size: .9rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .2rem;
  line-height: 1.3
}

.trust-info p {
  font-size: .78rem;
  color: #9ca3af;
  line-height: 1.4;
  font-weight: 500
}

.whatsapp-cta {
  padding: 3rem 0
}

.wa-card {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem
}

.wa-card>i {
  font-size: 3rem;
  color: var(--wa);
  flex-shrink: 0
}

.wa-card h3 {
  font-size: 1.2rem;
  font-weight: 700
}

.wa-card p {
  color: #4b5563;
  font-size: .9rem;
  margin-top: .25rem
}

.wa-card .btn-wa {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 2.5rem 0
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  font-weight: 600;
  font-size: .9rem;
  transition: all .15s
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: white
}

.page-ellipsis {
  color: #9ca3af
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem
}

.empty-state i {
  font-size: 4rem;
  color: #fab27b;
  margin-bottom: 1rem
}

.empty-state p {
  color: #9ca3af;
  font-size: 1.05rem;
  margin-bottom: 1.5rem
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem
}

.section-header .section-title {
  margin-bottom: 0
}

/* ════════════════════════════════
   PRODUCT DETAIL
   ════════════════════════════════ */
.product-detail-container {
  padding: 2rem 1.5rem
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  flex-wrap: wrap
}

.breadcrumb a:hover {
  color: var(--orange)
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem
}

.product-gallery,
.product-info {
  min-width: 0;
  width: 100%
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.gallery-thumbs-wrap {
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  width: 100%;
  max-width: calc(6 * 70px + 5 * 0.5rem + 2 * 28px + 2 * 0.35rem);
  overflow: hidden
}

.gallery-thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  flex: 1;
  min-width: 0
}

.gallery-thumbs::-webkit-scrollbar {
  display: none
}

.thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: .5rem;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: border-color .15s;
  flex-shrink: 0;
  scroll-snap-align: start
}

.thumb.active,
.thumb:hover {
  border-color: var(--orange)
}

.thumb-chev {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: white;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #4b5563;
  cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s
}

.thumb-chev:hover {
  border-color: var(--orange);
  color: var(--orange)
}

.thumb-chev.hidden {
  opacity: 0;
  pointer-events: none
}

.product-cat-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .05em
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  margin: .5rem 0 1rem;
  line-height: 1.2;
  word-break: break-word
}

.product-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem
}

.badge-gender {
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 2rem
}

.badge-gender.femenino {
  background: #fce7f3;
  color: #db2777
}

.badge-gender.masculino {
  background: #dbeafe;
  color: #1d4ed8
}

.badge-gender.unisex {
  background: #f3f4f6;
  color: #6b7280
}

.product-price {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem
}

.price-row-old {
  display: flex;
  align-items: center;
  gap: .75rem
}

.price-old {
  font-size: 1.25rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through
}

.price-new {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1
}

.price-badge {
  background: var(--orange-soft);
  color: var(--orange);
  font-size: .85rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: .5rem;
  border: 1px solid rgba(246, 122, 21, .2)
}

.product-description {
  color: #4b5563;
  line-height: 1.7;
  font-size: .95rem;
  margin-bottom: 1.5rem
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem
}

.product-qty-label {
  font-size: .875rem;
  font-weight: 600;
  color: #4b5563
}

.product-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid #e5e7eb;
  border-radius: 2rem;
  overflow: hidden
}

.product-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0
}

.product-qty-btn:hover {
  background: var(--orange-soft);
  color: var(--orange)
}

.product-qty-num {
  font-size: .95rem;
  font-weight: 700;
  min-width: 2rem;
  text-align: center
}

.product-actions {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem
}

.stock-info {
  font-size: .85rem;
  font-weight: 600;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem
}

.stock-info.out {
  color: #dc2626
}

.related-products {
  padding: 3rem 0
}

.btn-heart {
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 2rem;
  padding: .75rem 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem
}

.btn-heart.active {
  background: var(--orange);
  color: white
}

.btn-heart:hover {
  border-color: var(--orange)
}

/* ── Category page header ── */
.category-header {
  padding: 2rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem
}

.category-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap
}

/* ── Search page ── */
.search-header {
  padding: 2.5rem 0 1.5rem
}

.search-header-top {
  margin-bottom: 1.25rem
}

.search-header h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word
}

.search-header h1 em {
  color: var(--orange);
  font-style: normal
}

.search-count {
  display: inline-block;
  font-size: .85rem;
  font-weight: 500;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 1rem;
  padding: .1rem .6rem;
  margin-left: .5rem;
  vertical-align: middle
}

.search-form-inline {
  display: flex;
  gap: .65rem;
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.5rem
}

.search-form-inline input {
  flex: 1;
  min-width: 0;
  padding: .7rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 2rem;
  font-family: inherit;
  font-size: .9rem;
  outline: none
}

.search-form-inline input:focus {
  border-color: var(--orange)
}


/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width:1080px) {
  .search-wrap {
    max-width: 240px
  }

  nav.menu a {
    padding: 9px 11px;
    font-size: 13.5px
  }

  .grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .vgrid {
    grid-template-columns: repeat(2, 1fr)
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:880px) {

  nav.menu,
  .search-wrap {
    display: none
  }

  .burger {
    display: flex
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero-media {
    min-height: 340px;
    order: -1
  }

  .hero-copy {
    padding: 40px 32px
  }

  .hero-cta .btn svg {
    display: none
  }

  .cats {
    grid-template-columns: 1fr 1fr
  }

  .promo {
    grid-template-columns: 1fr
  }

  .fgrid {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }

  .footer-brand {
    grid-column: 1/-1
  }

  .side-panel {
    width: calc(100% - 30px);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem
  }

  .gallery-thumbs-wrap {
    max-width: calc(4 * 70px + 3 * 0.5rem + 2 * 28px + 2 * 0.35rem)
  }

  .product-title {
    font-size: 1.5rem
  }

  .price-new {
    font-size: 1.8rem
  }

  .price-old {
    font-size: 1.1rem
  }
}

@media (max-width:680px) {
  .wrap {
    padding: 0 18px
  }

  section {
    padding: 54px 0
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
  }

  .hero-stats {
    gap: 22px
  }

  .promo-card {
    padding: 30px 26px
  }

  .promo-card .pc {
    max-width: 78%
  }

  .card .body {
    padding: 13px 13px 15px
  }

  .add {
    width: 38px;
    height: 38px
  }

  /* /tienda card-meta: horizontal scroll, no wrap */
  .card-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
  }

  .card-meta::-webkit-scrollbar {
    display: none
  }

  /* home page card: offer price stacks below original */
  .price {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px
  }

  .price .now {
    font-size: .82rem
  }

  .price .was {
    font-size: .74rem
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .75rem
  }

  .catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px
  }
  .catalog-filters::-webkit-scrollbar {
    display: none
  }

  .wa-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    gap: 1rem
  }

  .wa-card>i {
    font-size: 2.5rem
  }

  .wa-card .btn-wa {
    margin: .5rem 0 0 0;
    width: 100%;
    justify-content: center
  }

  .product-actions .btn {
    flex: 1;
    min-width: 0;
    padding: .6rem .6rem;
    font-size: .8rem;
    justify-content: center
  }
}

@media (max-width:430px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .cats {
    gap: 12px
  }

  .hero h1 {
    font-size: 34px
  }

  .brand img {
    height: 54px
  }

  .fgrid {
    grid-template-columns: 1fr
  }

  .fbottom {
    justify-content: center;
    text-align: center
  }

  .product-title {
    font-size: 1.3rem
  }
}

/* ════════════════════════════════
   COUPON UI — product page & cart
   ════════════════════════════════ */

/* Product page coupon box */
.product-coupon {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.coupon-input-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(31,31,31,.18);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  outline: none;
  background: white;
  color: var(--ink);
  transition: border-color .15s;
  text-transform: uppercase;
}

.coupon-input:focus { border-color: var(--orange); }
.coupon-input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: #9ca3af; }

.coupon-apply-btn {
  padding: 0.65rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.coupon-apply-btn:hover { background: var(--orange); }
.coupon-apply-btn:disabled { opacity: .5; cursor: not-allowed; }

.coupon-msg {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
}

.coupon-ok {
  background: #d1fae5;
  color: #065f46;
}

.coupon-err {
  background: #fef2f2;
  color: #dc2626;
}

/* Cart panel coupon row */
.cart-coupon-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cart-coupon-input {
  flex: 1;
  padding: 0.55rem 0.875rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  outline: none;
  background: white;
  color: var(--ink);
  transition: border-color .15s;
  text-transform: uppercase;
}

.cart-coupon-input:focus { border-color: var(--orange); }
.cart-coupon-input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; }

.cart-coupon-btn {
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-coupon-btn:hover { background: var(--orange); }

.cart-coupon-msg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
}

/* Applied coupon chip */
.cart-coupon-applied {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-soft);
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 0.75rem;
}

.cart-coupon-applied i { font-size: 1rem; color: var(--orange); }
.cart-coupon-applied span { flex: 1; }

.cart-coupon-remove {
  background: none;
  border: none;
  color: var(--orange-deep);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  opacity: .7;
  transition: opacity .15s;
}

.cart-coupon-remove:hover { opacity: 1; }

@media (max-width: 680px) {
  .product-card .badge-offer,
  .product-card .badge-featured {
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .product-card .badge-offer .badge-text,
  .product-card .badge-featured .badge-text {
    display: none;
  }
}