/* ============================================================
   Lolly & Pop by Farajtex
   Elegante y femenino. Marfil, rosa empolvado, cacao y salvia.
   Tipografía del logo (Caprasimo) en todos los títulos.
   ============================================================ */

:root {
  --ivory: #FAF5EE;
  --sand: #F1E6DA;
  --rose: #E9CFCF;
  --rose-deep: #B9697F;
  --sage: #9AA68F;
  --cocoa: #2A1A17;
  --brown: #5A3A31;
  --text: #4A3732;
  --line: rgba(42, 26, 23, .16);

  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; font-family: var(--body); font-weight: 400; font-size: 1.06rem; line-height: 1.7;
  color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 4px; }

h2 {
  font-family: var(--display); font-weight: 400; color: var(--cocoa);
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: .005em;
}

h1, h2, .statement p { text-wrap: balance; }

.kicker {
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 1.4rem;
}
.kicker--dark { color: var(--rose-deep); margin-bottom: .9rem; }

.textlink {
  font-weight: 500; font-size: .92rem; letter-spacing: .06em; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; cursor: pointer;
  transition: color .25s, letter-spacing .35s var(--ease);
}
.textlink:hover { color: var(--rose-deep); letter-spacing: .1em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: .95rem 2rem; font: 500 .85rem var(--body);
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--ivory); color: var(--cocoa); }
.btn--light:hover { background: var(--rose); }
.btn--line { border-color: rgba(250, 245, 238, .55); color: var(--ivory); }
.btn--line:hover { background: var(--ivory); color: var(--cocoa); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem var(--pad);
  background: rgba(14, 11, 11, .94); backdrop-filter: blur(10px); color: var(--ivory);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav__logo { font-family: var(--display); font-size: 1.5rem; color: #fff; text-decoration: none;
  text-shadow: 0 1px 0 #e6e6e6, 0 2px 0 #bdbdbd, 0 3px 0 #9a9a9a; }
.nav__links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav__links a {
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: .3rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--rose-deep);
  transition: right .35s var(--ease);
}
.nav__links a:hover::after { right: 0; }
.nav__cta {
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  background: var(--ivory); color: var(--cocoa); padding: .6rem 1.3rem; cursor: pointer; transition: background .3s;
}
.nav__cta:hover { background: var(--rose); }

/* ---------- Logo 3D (rótulo de la tienda) ---------- */
.wordmark {
  font-family: var(--display); font-weight: 400; color: #fff; line-height: .95;
  text-shadow:
    0 1px 0 #f4f4f4, 0 2px 0 #e9e9e9, 0 3px 0 #dedede, 0 4px 0 #d0d0d0, 0 5px 0 #c2c2c2,
    0 6px 0 #b3b3b3, 0 7px 0 #a4a4a4, 0 14px 20px rgba(0, 0, 0, .6);
}
.wordmark--sm { display: block; font-size: clamp(2.8rem, 7vw, 5.2rem); }
.ch { display: inline-block; animation: pop .9s var(--pop) both; transform-origin: 50% 90%; }
.ch:hover { animation: wiggle .55s ease; }
@keyframes pop {
  0% { opacity: 0; transform: translateY(70px) scale(.35) rotate(-12deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes wiggle { 30% { transform: translateY(-10px) rotate(-5deg); } 65% { transform: translateY(-3px) rotate(3deg); } }

.by {
  display: block; font-family: var(--body); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: #fff;
}

/* ---------- Páginas interiores ---------- */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) var(--pad) clamp(2rem, 4vw, 3rem); background: var(--ivory); }
.page-head h1 {
  font-family: var(--display); font-weight: 400; color: var(--cocoa);
  font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.02;
}
.page-head__sub { max-width: 40rem; margin-top: 1.2rem; font-size: 1.1rem; }
.page-head .kicker { margin-bottom: .9rem; }
.item__link { display: block; }
.catalog-page { padding-top: clamp(2rem, 4vw, 3rem); }
.doors-section { padding-top: clamp(1rem, 3vw, 2rem); }
.doors-section .occasions { margin: 0 auto; }
.history h1 { font-family: var(--display); font-weight: 400; color: var(--cocoa); font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.06; }
.history h1 span { color: var(--rose-deep); }

.sisters { background: #0E0B0B; color: var(--ivory); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) var(--pad); }
.sisters__inner { max-width: 44rem; margin: 0 auto; }
.sisters__logos { display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.wordmark--xs { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.brands__logo--lg { height: 3.6rem; }
.sisters p { font-size: 1.15rem; font-weight: 300; margin-bottom: 2rem; }
.visit__cta { margin-top: 2rem; }
.footer__nav { display: flex; justify-content: center; gap: 1.8rem; margin-top: 1.4rem; }
.footer__nav a { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.footer__nav a:hover { color: var(--rose); }
.nav__links a.is-active::after { right: 0; }

/* ---------- Barra superior ---------- */
.topbar { background: #7E1F23; color: #fff; text-align: center; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.topbar a { display: block; padding: .6rem 1rem; text-decoration: none; }
.topbar u { text-underline-offset: 3px; }
.topbar a:hover { background: #6a181c; }

.btn--dark { background: var(--cocoa); color: var(--ivory); }
.btn--dark:hover { background: var(--rose-deep); }
.catalog-end { text-align: center; margin-top: 3.5rem; }
.catalog-end p { font-family: var(--display); font-size: 1.4rem; color: var(--cocoa); margin-bottom: 1.2rem; }

/* ---------- Menú: escritorio ---------- */
.has-menu { position: relative; }
.menu {
  position: absolute; top: 100%; left: -1.2rem; min-width: 15rem; padding: .6rem 0; margin-top: .6rem;
  background: var(--ivory); box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.has-menu::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .8rem; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: .7rem 1.4rem; color: var(--cocoa); font-size: .82rem; }
.menu a::after { display: none; }
.menu a:hover { background: var(--rose); }

/* ---------- Menú: móvil (estilo tienda) ---------- */
.nav__burger { display: none; width: 42px; height: 42px; padding: 0; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 0 auto; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 40; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(88vw, 400px); padding-top: 6.6rem;
  background: #fff; color: var(--cocoa); overflow-y: auto;
  transform: translateX(-100%); transition: transform .4s var(--ease); z-index: 1;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__tabs { display: flex; gap: 1.8rem; padding: 0 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__tabs button {
  background: none; border: 0; cursor: pointer; padding: 1rem 0; font: 600 1rem var(--body); color: var(--cocoa);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.drawer__tabs button.is-on { border-bottom-color: var(--cocoa); }
.drawer__list { padding: .8rem 0; }
.drawer__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.05rem 1.6rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.drawer__list a:hover { background: var(--ivory); }
.drawer__list a.hot { color: var(--rose-deep); }
.drawer__list i { font-style: normal; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.drawer__list[hidden] { display: none; }

/* ---------- Marcas ---------- */
.brands { display: flex; align-items: center; gap: 1.2rem; margin: 1.1rem 0 2rem; }
.brands--center { justify-content: center; margin: 0; }
.brands .by { margin: 0; }
.brands__sep { width: 1px; height: 2rem; background: rgba(255, 255, 255, .45); }
.brands__logo { height: 2.6rem; width: auto; }
.footer__malibu { height: 2.2rem; width: auto; margin: 0 auto 1rem; opacity: .9; }

/* ---------- Fotos (con relleno tonal hasta poner las reales) ---------- */
.photo { position: relative; overflow: hidden; background: var(--rose); }
.photo::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-content: center;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(42, 26, 23, .4);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  transition: transform 1.2s var(--ease); }
.item:hover .photo img, .hero__media:hover .photo--main img { transform: scale(1.04); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 58px); background: var(--cocoa); }
.hero__panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 35%),
    #0E0B0B;
  color: var(--ivory);
}
.hero .wordmark { font-size: clamp(4.4rem, 11.5vw, 9.6rem); }
.hero .wordmark .split { display: block; }
.hero__lead { max-width: 29rem; font-size: 1.15rem; font-weight: 300; color: rgba(250, 245, 238, .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.hero__media { position: relative; background: var(--sand); }
.photo--main { position: absolute; inset: 0; background: var(--rose); }
.photo--main img { object-position: 50% 0; } /* siempre se ve la cara */
.photo--inset {
  position: absolute; left: 0; top: 62%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 4 / 5;
  z-index: 3; border: 8px solid var(--ivory); background: var(--sage);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

/* ---------- Frase ---------- */
.statement { padding: clamp(4rem, 9vw, 7.5rem) var(--pad); background: var(--ivory); text-align: center; }
.statement p {
  max-width: 54rem; margin: 0 auto; font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.22; color: var(--cocoa);
}
.statement em { font-style: normal; color: var(--rose-deep); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) var(--pad); }
.section--sand { background: var(--sand); }
.section__head { margin-bottom: 3rem; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Looks por ocasión ---------- */
.occasions { max-width: 1150px; border-top: 1px solid var(--line); }
.occasions li { border-bottom: 1px solid var(--line); }
.occasions a {
  display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.3fr) 3rem; align-items: center; gap: 1.5rem;
  padding: 1.8rem .5rem; text-decoration: none; cursor: pointer;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.occ__n { font-size: .85rem; letter-spacing: .2em; color: var(--rose-deep); }
.occ__t { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--cocoa); }
.occ__d { color: var(--text); }
.occ__go { justify-self: end; font-size: 1.6rem; color: var(--rose-deep); transition: transform .4s var(--ease); }
.occasions a:hover { background: var(--sand); padding-inline: 1.5rem; }
.occasions a:hover .occ__go { transform: translateX(8px); }

/* ---------- Colección ---------- */
.section__sub { max-width: 40rem; margin-top: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.chip {
  font: 500 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  padding: .6rem 1.2rem; background: transparent; color: var(--cocoa); border: 1px solid var(--cocoa);
  transition: background .25s, color .25s;
}
.chip:hover { background: var(--rose); }
.chip.is-on { background: var(--cocoa); color: var(--ivory); }

.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem 1.6rem; max-width: 1300px; margin: 0 auto; }
.item[hidden] { display: none; }
.item .photo { aspect-ratio: 800 / 1423; background: #F2F0ED; }
.item__row { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-top: .9rem; }
.item h3 { font-family: var(--display); font-weight: 400; font-size: 1.12rem; line-height: 1.2; color: var(--cocoa); }
.price { font-weight: 600; white-space: nowrap; color: var(--rose-deep); }
.item__meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); margin: .2rem 0 .5rem; }
.item .textlink { font-size: .85rem; }

/* ---------- Historia ---------- */
.history { background: var(--rose); padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }
.history__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); max-width: 1200px; margin: 0 auto; align-items: start; }
.history h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.06; }
.history h2 span { color: var(--rose-deep); }
.history__body > p { font-size: 1.15rem; color: var(--cocoa); }
.points { margin-top: 2rem; border-top: 1px solid rgba(42, 26, 23, .25); }
.points li { padding: 1rem 0; border-bottom: 1px solid rgba(42, 26, 23, .25); color: var(--cocoa); }
.points b { font-weight: 600; }

/* ---------- Visítanos ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; background: var(--ivory); }
.visit__sign {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  min-height: 420px; padding: 3rem 2rem; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 35%), #0E0B0B;
}
.visit__info { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.visit__info .kicker { color: var(--rose-deep); margin-bottom: .9rem; }
.info { margin-top: 2rem; border-top: 1px solid var(--line); }
.info li { display: grid; grid-template-columns: 8rem 1fr; gap: .2rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info h3 { grid-row: span 2; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-deep); padding-top: .25rem; }
.info .textlink { justify-self: start; margin-top: .3rem; }
.info__places { display: grid; gap: 1rem; }
.info__places .textlink { display: inline-block; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3.2rem 1rem 2.6rem; background: #0E0B0B; color: rgba(250, 245, 238, .75); font-size: .95rem; }
.footer__logo { font-family: var(--display); font-size: 2rem; color: var(--ivory); }
.footer__copy { margin-top: 1.2rem; font-size: .8rem; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav { gap: .8rem; padding-left: .6rem; }
  .nav__burger { display: flex; }
  .nav__cta { margin-left: auto; }
  .topbar { font-size: .68rem; letter-spacing: .08em; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { min-height: 460px; }
  .photo--inset { left: 6%; top: auto; bottom: -3rem; transform: none; width: 42%; border-color: #0E0B0B; box-shadow: none; }
  .hero__media { margin-bottom: 3rem; background: #0E0B0B; }
  .occasions a { grid-template-columns: 2.6rem 1fr 2rem; }
  .occ__d { grid-column: 2 / 3; grid-row: 2; font-size: .98rem; }
  .occ__go { grid-row: 1; grid-column: 3; }
  .catalog { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .item__row { flex-direction: column; gap: .2rem; }
  .history__grid, .visit { grid-template-columns: 1fr; }
  .info li { grid-template-columns: 1fr; }
  .info h3 { grid-row: auto; }
}
@media (max-width: 900px) {
  .hero .wordmark { font-size: clamp(5rem, 23vw, 8rem); }
  .hero__panel { padding-top: 2.6rem; padding-bottom: 2.8rem; }
  .sisters__logos { flex-direction: column; gap: 1rem; }
  .sisters .brands__sep { display: none; }
  .visit__sign { min-height: 260px; }
  .statement p { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section__head--row { align-items: flex-start; }
  .page-head { padding-top: 2.6rem; }
}
@media (max-width: 480px) { .btn { width: 100%; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Tallas y agregar al carrito ---------- */
.sizes { display: flex; gap: .5rem; margin: .7rem 0 .6rem; }
.size {
  flex: 1; padding: .55rem 0; font: 500 .85rem var(--body); letter-spacing: .12em; cursor: pointer;
  background: transparent; color: var(--cocoa); border: 1px solid rgba(42, 26, 23, .35);
  transition: background .2s, color .2s, border-color .2s;
}
.size:hover { border-color: var(--cocoa); }
.size.is-on { background: var(--cocoa); color: var(--ivory); border-color: var(--cocoa); }
.sizes.need { animation: shake .45s; }
.sizes.need .size:not(.is-on) { border-color: var(--rose-deep); }
@keyframes shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.add {
  width: 100%; padding: .8rem 1rem; cursor: pointer; font: 500 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase;
  background: var(--cocoa); color: var(--ivory); border: 1px solid var(--cocoa); transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.add:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.add:active { transform: scale(.98); }

/* ---------- Ícono del carrito ---------- */
.nav__cart { position: relative; background: none; border: 0; color: #fff; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; }
.nav__cart:hover { color: var(--rose); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rose-deep); color: #fff; font: 600 .7rem/18px var(--body); text-align: center;
}

/* ---------- Panel del carrito ---------- */
.cart { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.cart.open { visibility: visible; pointer-events: auto; }
.cart__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.cart.open .cart__scrim { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 430px); display: flex; flex-direction: column;
  background: #fff; color: var(--cocoa); transform: translateX(100%); transition: transform .4s var(--ease);
}
.cart.open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 1.6rem; }
.cart__x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--cocoa); }
.cart__body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem; }
.cart__empty { text-align: center; padding: 4rem 1rem; }
.cart__empty p { font-family: var(--display); font-size: 1.4rem; margin-bottom: 1rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 72px; aspect-ratio: 800 / 1100; object-fit: cover; object-position: top; background: #F2F0ED; }
.line__name { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.line__meta { font-size: .85rem; color: var(--brown); margin: .2rem 0 .6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--cocoa); }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 28px; text-align: center; font-weight: 500; }
.line__rm { background: none; border: 0; cursor: pointer; font: 500 .8rem var(--body); color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.cart__foot { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--ivory); }
.cart__foot[hidden] { display: none; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 1rem; }
.cart__total b { font-family: var(--body); font-weight: 600; font-size: 1.55rem; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.cart__wa { display: block; width: 100%; text-align: center; }
.cart__note { font-size: .82rem; line-height: 1.5; margin-top: .9rem; color: var(--brown); }
.cart__clear { display: block; margin: .8rem auto 0; background: none; border: 0; cursor: pointer; font: 500 .8rem var(--body); color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--cocoa); color: var(--ivory); padding: .85rem 1.3rem; font-size: .92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: opacity .3s, transform .4s var(--ease); max-width: calc(100vw - 2rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--rose); font: 600 .9rem var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: .4rem; }

@media (max-width: 900px) { .nav__cta { margin-left: auto; } .nav { gap: .4rem; } }

/* ---------- Tarjetas parejas: tallas y botón siempre a la misma altura ---------- */
.catalog { align-items: stretch; }
.item { display: flex; flex-direction: column; }
.item__row { margin-bottom: .8rem; }
.item .sizes { margin: auto 0 .6rem; }
.item .add { margin-top: 0; }

/* ---------- Catálogo en vivo: etiquetas y estados ---------- */
.catalog { transition: opacity .25s ease; }
.catalog.is-loading { opacity: 0; }
.photo .tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 3;
  padding: .32rem .7rem; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.tag--new { background: var(--rose-deep); color: #fff; }
.tag--sold { background: var(--cocoa); color: var(--ivory); }
.tag--new + .tag--sold { top: 2.5rem; }
.item.is-sold .photo img { filter: grayscale(.55); opacity: .72; }
.item.is-sold .sizes { opacity: .4; pointer-events: none; }
.item .add:disabled { opacity: .45; cursor: not-allowed; }
.size { flex: 1; }

/* acceso discreto al panel */
.footer__admin { color: inherit; text-decoration: none; opacity: .75; }
.footer__admin:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* tallas agotadas */
.size.is-out, .size:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.size.is-out:hover { border-color: rgba(42, 26, 23, .35); }
