/* OLA nameštaj — tienda. Base: maqueta v5 (sistemas/web/codigo/concepto-v5, estructura y
   medidas de jacquemus.com). Al final, los bloques propios de la tienda (ficha, carrito,
   kasa) portados de la versión del 20/08. */

:root {
  --bg: #FFFFFF;
  --ink: #2E2E2E;
  --grey: #A4A4A4;
  --accent: #FF6666;
  --line: #A4A4A4;        /* filetes del footer */
  --line-soft: #E9E9E9;   /* separadores del menú móvil */
  --photo: #0B0B0B;       /* fondo mientras carga una foto */

  /* escala tipográfica: 1 = tamaños medidos en Jacquemus. 0.6 = la escala −40 % del concepto de julio */
  --ts: 1;
  --f8: calc(8px * var(--ts));
  --f10: calc(10px * var(--ts));
  --f11: calc(11px * var(--ts));
  --f12: calc(12px * var(--ts));
  --f14: calc(14px * var(--ts));
  --f16: calc(16px * var(--ts));
  --f18: calc(18px * var(--ts));

  --font: "Jost", "Futura PT", "Futura", "Century Gothic", system-ui, sans-serif;
  --hdr: 82px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--hdr);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--f14);
  line-height: 1.43;
  letter-spacing: .56px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

body.is-locked { overflow: hidden; }

.skip {
  position: fixed; left: 8px; top: -60px; z-index: 500;
  background: var(--ink); color: #fff; padding: 8px 14px; font-size: var(--f12);
}
.skip:focus { top: 8px; }

/* ---------- HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  height: var(--hdr);
  padding: 24px 30px 30px;
  background: var(--bg);
}
.hdr__bar { display: flex; align-items: center; height: 28px; }

.logo {
  display: inline-flex; align-items: center; height: 28px;
  font-family: "Poppins", var(--font); font-weight: 600; font-size: 21px;
  letter-spacing: 1.26px; line-height: 1; white-space: nowrap;
  color: var(--ink);
}
.logo span { display: inline-block; transform: scale(.92, 1.22); transform-origin: left center; }
.logo b { font-weight: 600; color: var(--grey); }

.nav { display: flex; align-items: center; gap: 20px; margin-left: 30px; }
.nav__link {
  font-size: var(--f14); line-height: 16px; letter-spacing: 0; white-space: nowrap;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { text-decoration: underline; }

.util { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.util__btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 15px; }
.util__btn svg { width: 15px; height: 15px; display: block; }
.cart { display: inline-flex; align-items: center; gap: 12px; font-size: var(--f14); line-height: 16px; letter-spacing: 0; }
.cart__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.util__close { display: none; width: 30px; height: 30px; align-items: center; justify-content: center; }
.util__close svg { width: 12px; height: 12px; }
.hdr.has-panel .util > :not(.util__close) { display: none; }
.hdr.has-panel .util__close { display: inline-flex; }

.burger, .m-only { display: none; }

/* ---------- MEGA MENÚ / BÚSQUEDA (paneles bajo el header) ---------- */
.panel {
  position: fixed; left: 0; right: 0; top: var(--hdr); z-index: 290;
  height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr));
  background: var(--bg);
  display: none;
  overflow: auto;
}
.panel.is-open { display: flex; animation: panel-in .25s var(--ease); }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

.mega__list { flex: 0 0 354px; padding: 31px 30px; }
.mega__list li + li { margin-top: 20px; }
.mega__list a { font-size: var(--f14); line-height: 18px; text-underline-offset: 3px; }
.mega__list a:hover { text-decoration: underline; }
.mega__list .is-muted { color: var(--grey); }
.tag {
  margin-left: 4px; vertical-align: super;
  font-size: var(--f8); line-height: 8px; font-weight: 500; letter-spacing: .56px;
  text-transform: uppercase; color: var(--accent);
}
.mega__media { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; align-self: flex-start; }
.mega__fig { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.mega__fig img { width: 100%; height: 100%; object-fit: cover; }
.mega__cap {
  position: absolute; z-index: 1; left: 20px; bottom: 17px; right: 20px; color: #fff;
  text-shadow: 0 0 18px rgba(0, 0, 0, .25);
}
.mega__cap strong { display: block; font-weight: 400; font-size: var(--f18); line-height: 23px; letter-spacing: .7px; }
.mega__cap span {
  display: inline-block; margin-top: 7px; font-size: var(--f16); line-height: 16px; letter-spacing: .7px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

.search { flex-direction: column; padding: 40px 30px; }
.search__field { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); max-width: 660px; }
.search__field svg { width: 15px; height: 15px; flex: none; }
.search__field input {
  flex: 1; border: 0; outline: 0; background: none; padding: 10px 0 12px;
  font: inherit; font-size: var(--f16); letter-spacing: .49px; color: var(--ink);
}
.search__field input::placeholder { color: var(--grey); }
.search__hint { margin-top: 34px; font-size: var(--f12); color: var(--grey); letter-spacing: .7px; }
.search__cats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: var(--f14); }
.search__cats a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- HOME: bloques [2 fotos] + [4 fichas] ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--photo); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after, .mega__fig::after, .mnav__media a::after { /* velo inferior: título blanco ≥ 4.5:1 sobre fotos claras */
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .5) 18%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.tile__title {
  position: absolute; left: 0; bottom: 0; z-index: 1; padding: 26px;
  font-size: var(--f18); line-height: 20px; letter-spacing: .56px; color: #fff;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.tile:hover .tile__title { text-decoration: underline; }

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

/* ficha de producto: la foto entera a sangre y todo el texto encima, en blanco */
.prod { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--photo); color: #fff; }
.prod__link { position: absolute; inset: 0; z-index: 1; }
.prod__link:focus-visible, .tile:focus-visible, .mega__fig:focus-visible { outline: 1px solid #fff; outline-offset: -6px; }
.prod button:focus-visible { outline-color: #fff; outline-offset: -2px; }
.prod::after { /* velo inferior: el texto blanco se lee también en las fotos de ambiente del carrusel */
  content: ""; position: absolute; z-index: 1; inset: auto 0 0 0; height: 32%; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, 0) 100%);
}
.prod__slides { position: absolute; inset: 0; display: flex; transition: transform .5s var(--ease); }
.prod__slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.prod__flag {
  position: absolute; z-index: 2; left: 17px; top: 27px;
  font-size: var(--f10); line-height: 13px; letter-spacing: 1px; text-transform: uppercase;
  pointer-events: none;
}
.prod__colors { position: absolute; z-index: 2; right: 13px; top: 28px; display: flex; gap: 5px; }
.swatch { width: 13px; height: 13px; display: block; border: 1px solid rgba(255, 255, 255, .75); }
.swatch--black { background: #1C1C1C; }
.swatch--white { background: #FFFFFF; }
.swatch.is-current { outline: 1px solid #fff; outline-offset: 2px; }
.prod__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 36px; padding: 0 12.5px 0 13px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  pointer-events: none;
}
.prod__name { font-size: var(--f14); line-height: 14px; letter-spacing: .7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod__price { font-size: var(--f12); line-height: 16px; letter-spacing: .7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prod__price s { margin-right: 6px; opacity: .6; text-decoration-thickness: 1px; }
.prod__wish {
  position: absolute; z-index: 3; right: 3px; bottom: 7px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.prod__wish svg { width: 13px; height: 13px; }
.prod__wish[aria-pressed="true"] path { fill: currentColor; }
.prod__arrow {
  position: absolute; z-index: 3; top: 50%; width: 28px; height: 33px; margin-top: -16px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s var(--ease);
}
.prod__arrow svg { width: 8px; height: 13px; }
.prod__arrow--prev { left: 7px; }
.prod__arrow--next { right: 7px; }
.prod__arrow--prev svg { transform: scaleX(-1); }
.prod:hover .prod__arrow, .prod__arrow:focus-visible { opacity: 1; }
.prod__arrow[disabled] { opacity: 0 !important; pointer-events: none; }

/* ---------- FOOTER ---------- */
.ft { margin-top: 0; }
.ft a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.ft-reassure {
  display: grid; grid-template-columns: repeat(3, 1fr);
  min-height: 264px; padding: 92px 30px 60px; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ft-reassure h3 { font-size: var(--f14); line-height: 20px; letter-spacing: .8px; }
.ft-reassure p { margin-top: 30px; font-size: var(--f12); line-height: 18px; letter-spacing: .7px; color: var(--grey); }

.ft-content { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ft-content > div { padding: 20px 26px 39px; }
.ft-content > div:first-child { border-right: 1px solid var(--line); }
.ft-content h3 { font-size: var(--f14); line-height: 20px; letter-spacing: .8px; }
.ft-content p { font-size: var(--f12); line-height: 18px; letter-spacing: .7px; }
.ft-collab p { margin-top: 29px; max-width: 462px; }
.btn-dark {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 28px;
  background: var(--ink); color: #fff;
  font-size: var(--f12); line-height: 24px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase;
  transition: background .2s var(--ease);
}
.btn-dark:hover { background: #000; text-decoration: none !important; }
.ft-help p { color: var(--ink); }
.ft-help p:first-of-type { margin-top: 12px; }
.ft-help .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 58px; font-size: var(--f14); line-height: 18px; letter-spacing: .7px; }
.ft-help .links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.ft-nav {
  display: flex; justify-content: space-between; align-items: flex-start;
  min-height: 159px; padding: 50px 26px 40px; border-bottom: 1px solid var(--line);
}
.ft-nav__cols { display: flex; flex: 1 1 auto; min-width: 0; }
.ft-acc { flex: 0 1 227px; min-width: 0; padding-right: 16px; }
.ft-acc summary {
  display: inline-flex; align-items: center; gap: 12px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: var(--f14); line-height: 18px; letter-spacing: .4px;
}
.ft-acc summary::-webkit-details-marker { display: none; }
.ft-acc summary svg { width: 10px; height: 6px; transition: transform .2s var(--ease); }
.ft-acc[open] summary svg { transform: rotate(180deg); }
.ft-acc li { font-size: var(--f14); line-height: 20px; color: var(--grey); letter-spacing: 0; }
.ft-acc li + li { margin-top: 20px; }
.ft-acc ul { padding-bottom: 10px; }
.ft-follow { padding-top: 0; }
.ft-follow h3 { font-size: var(--f14); line-height: 16px; letter-spacing: .4px; }
.ft-follow .links { display: flex; gap: 20px; margin-top: 14px; font-size: var(--f14); line-height: 20px; }
.ft-follow .links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.ft-meta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 150px; padding: 30px 26px 30px 38px;
}
.ft-meta__cp { font-size: var(--f12); line-height: 20px; letter-spacing: 0; }
.ft-meta__cp span { color: var(--grey); }
.ft-meta .logo { justify-self: center; font-size: 23px; }
.ft-meta__loc { justify-self: end; text-align: left; font-size: var(--f14); line-height: 18px; letter-spacing: 0; }
.ft-meta__loc p + p { margin-top: 12px; }

/* ---------- MENÚ MÓVIL ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: none; flex-direction: column; overflow: hidden;
}
.mnav.is-open { display: flex; animation: panel-in .2s var(--ease); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 12px; flex: none; }
.mnav__top button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-right: -5px; }
.mnav__top button svg { width: 14px; height: 14px; }
.mnav__screens { position: relative; flex: 1; overflow: hidden; }
.mnav__screen {
  position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column;
  transition: transform .3s var(--ease); background: var(--bg);
}
.mnav__screen--sub { transform: translateX(100%); }
.mnav.is-sub .mnav__screen--main { transform: translateX(-30%); }
.mnav.is-sub .mnav__screen--sub { transform: none; }
.mnav__search {
  display: flex; align-items: center; gap: 10px; margin: 10px 12px 20px; height: 35px;
  border-bottom: 1px solid var(--grey);
}
.mnav__search svg { width: 15px; height: 15px; flex: none; }
.mnav__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: var(--f16); letter-spacing: .49px; color: var(--ink); }
.mnav__search input::placeholder { color: var(--grey); }
.mnav__list a, .mnav__list button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; padding: 0 12px;
  border-bottom: 1px solid var(--line-soft); text-align: left;
  font-size: var(--f18); line-height: 23px; letter-spacing: .49px;
}
.mnav__list svg { width: 12px; height: 7px; transform: rotate(-90deg); }
.mnav__util { margin-top: auto; padding: 40px 15px 24px; display: grid; gap: 14px; font-size: var(--f14); line-height: 20px; }
.mnav__util a { display: flex; align-items: center; gap: 20px; }
.mnav__util svg { width: 15px; height: 15px; }
.mnav__util .cart__dot { margin: 0 5px; }
.mnav__loc { margin-top: 6px; }
.mnav__back {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px; flex: none;
  border-bottom: 1px solid var(--grey); font-size: var(--f18); letter-spacing: .49px;
}
.mnav__back svg { width: 14px; height: 10px; }
.mnav__sub-list { padding-top: 10px; }
.mnav__sub-list a { justify-content: flex-start; }
.mnav__sub-list .tag { align-self: center; margin: -10px 0 0 4px; }
.mnav__media { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 30px 12px 12px; }
.mnav__media a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo); }
.mnav__media img { width: 100%; height: 100%; object-fit: cover; }
.mnav__media span { position: absolute; z-index: 1; left: 10px; bottom: 9px; right: 10px; color: #fff; font-size: var(--f12); line-height: 15px; }

/* áreas táctiles de 44 px sin cambiar el tamaño visible de los iconos */
.util__btn, .burger, .cart, .mnav__top button { position: relative; }
.util__btn::after, .burger::after, .cart::after, .prod__wish::after, .mnav__top button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .nav { gap: 16px; margin-left: 24px; }
  .nav__link--x { display: none; }
}

@media (max-width: 1200px) {
  /* fichas angostas: nombre arriba, precio abajo */
  .prod__body { bottom: 12px; padding: 0 36px 0 13px; display: block; }
  .prod__name { display: block; }
  .prod__price { display: block; margin-top: 4px; }
  .prod__wish { bottom: 4px; }
}

@media (max-width: 960px) {
  :root { --hdr: 68px; }
  .hdr { padding: 20px 12px; }
  .nav, .util > .util__btn--acct, .cart__label, .util__close { display: none !important; }
  .util { gap: 21px; }
  .util__btn svg, .burger svg { width: 20px; height: 20px; }
  .util__btn { height: 20px; width: 20px; }
  .cart { gap: 0; width: 20px; justify-content: center; }
  .burger, .m-only { display: inline-flex; }
  .burger { width: 20px; height: 20px; align-items: center; justify-content: center; }
  .hdr.has-panel .util > :not(.util__close) { display: inline-flex; }
  .panel { display: none !important; }
}

@media (max-width: 767px) {
  /* celular: foto, 2 fichas, foto, 2 fichas (alterna como Jacquemus móvil) */
  .blk { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px 3px 0; }
  .blk:first-child { padding-top: 0; }
  .tiles, .prods { display: contents; }
  .tile { grid-column: 1 / -1; margin: 0 -3px; }
  .tile:nth-child(1) { order: 1; }
  .prod:nth-child(1) { order: 2; }
  .prod:nth-child(2) { order: 3; }
  .tile:nth-child(2) { order: 4; }
  .prod:nth-child(3) { order: 5; }
  .prod:nth-child(4) { order: 6; }
  .blk:last-of-type { padding-bottom: 3px; }
  .tile__title { font-size: var(--f14); line-height: 20px; letter-spacing: .49px; }
  .tile::after { height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .5) 25%, rgba(0, 0, 0, 0) 100%); }

  .prod__flag { left: 10px; top: 12px; }
  .prod__colors { right: 10px; top: 12px; gap: 4px; }
  .swatch { width: 10px; height: 10px; }
  .swatch.is-current { outline-offset: 1px; }
  .prod__body { bottom: 10px; padding: 0 34px 0 10px; display: block; }
  .prod__name { display: block; font-size: var(--f12); line-height: 14px; }
  .prod__price { display: block; margin-top: 3px; font-size: var(--f12); line-height: 14px; }
  .prod__price s { margin-right: 4px; }
  .prod__wish { right: 2px; bottom: 4px; }
  .prod__arrow { display: none; }

  .ft-reassure { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding: 46px 20px; }
  .ft-reassure p { margin-top: 12px; }
  .ft-content { grid-template-columns: 1fr; }
  .ft-content > div { padding: 30px 20px 34px; }
  .ft-content > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .ft-collab p { margin-top: 14px; }
  .ft-help .links { margin-top: 24px; }
  .ft-nav { flex-direction: column; padding: 10px 0 30px; min-height: 0; }
  .ft-nav__cols { flex-direction: column; width: 100%; }
  .ft-acc { flex: none; width: 100%; border-bottom: 1px solid var(--line-soft); padding: 0 20px; }
  .ft-acc summary { display: flex; justify-content: space-between; width: 100%; padding: 18px 0; }
  .ft-follow { padding: 28px 20px 0; }
  .ft-meta { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; padding: 34px 20px 40px; }
  .ft-meta .logo { order: -1; }
  .ft-meta__loc { justify-self: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   TIENDA — lo que la maqueta v5 no tenía
   ===================================================================== */
:root { --pad: clamp(14px, 3vw, 40px); }

/* badge del carrito (cantidad) en el header */
.cart .cnt { font-size: var(--f12); line-height: 16px; font-variant-numeric: tabular-nums; }
.nav__link.is-current { text-decoration: underline; }

/* swatches clicables (mismo modelo en el otro color) */
.prod__colors a.swatch { position: relative; z-index: 3; }
.prod__colors a.swatch:hover { outline: 1px solid #fff; outline-offset: 2px; }

/* listados (catálogo / categoría / búsqueda) */
.lst-head { display: flex; align-items: baseline; gap: 12px; padding: 26px var(--pad) 20px; }
.lst-head h1 { font-size: var(--f14); line-height: 20px; letter-spacing: .8px; text-transform: uppercase; }
.lst-head__cnt { color: var(--grey); font-size: var(--f12); }
.lst-vacio { grid-column: 1 / -1; padding: 60px var(--pad); color: var(--grey); text-align: center; }
@media (max-width: 767px) {
  .prods--lista { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 0 3px 3px; }
}

/* fotos a sangre dentro de los bloques propios */
.pdp-foto img, .kd-foto img, .ko-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ===== FICHA DE PRODUCTO (PDP) — estructura Jacquemus, escala v5 =====
   Izquierda: galería en 2 columnas (fotos 3:4 a sangre, gap 5px). Derecha: panel
   fijo bajo el header con compra arriba y acordeón abajo. En celular la galería
   es un carrusel horizontal y el panel va debajo. */
.pdp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); align-items: start; }
.pdp-galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 0 5px 5px; }
.pdp-foto { aspect-ratio: 3 / 4; overflow: hidden; background: var(--photo); }
.pdp-galeria .pdp-foto:only-child { grid-column: 1 / -1; }

.pdp-info { position: sticky; top: var(--hdr); align-self: start; }
.pdp-info-in { min-height: calc(100vh - var(--hdr)); min-height: calc(100dvh - var(--hdr)); display: flex; flex-direction: column;
  padding: 40px clamp(30px, 4vw, 60px) 30px; }
.pdp-buy { margin-block: auto; }
.pdp-name { font-size: var(--f16); line-height: 20px; letter-spacing: .7px; }
.pdp-sub { margin-top: 6px; font-size: var(--f12); line-height: 16px; letter-spacing: .7px; color: var(--grey); }

.pdp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.pdp-row + .pdp-row { margin-top: 14px; }
.pdp-row .lbl { font-size: var(--f12); letter-spacing: .7px; color: var(--grey); }
.pdp-row .val { font-size: var(--f12); letter-spacing: .7px; font-variant-numeric: tabular-nums; }
.pdp-swatches { display: inline-flex; align-items: center; gap: 8px; }
.pdp-swatches .swatch { border-color: rgba(0, 0, 0, .25); }
.pdp-swatches .swatch.is-current { outline-color: var(--ink); }
.pdp-swatches a.swatch:hover { outline: 1px solid var(--grey); outline-offset: 2px; }
.pdp-color-name { margin-left: 6px; }

.pdp-price { margin-top: 34px; display: flex; justify-content: flex-end; align-items: baseline; gap: 10px;
  font-size: var(--f14); letter-spacing: .7px; font-variant-numeric: tabular-nums; }
.pdp-price s { color: var(--grey); text-decoration-thickness: 1px; }
.pdp-cta { margin-top: 12px; }
.pdp-nota { margin-top: 12px; font-size: var(--f10); line-height: 14px; letter-spacing: .5px; color: var(--grey); text-align: center; }

.pdp-foot { margin-top: 40px; border-top: 1px solid var(--line-soft); }
.pdp-acc { border-bottom: 1px solid var(--line-soft); }
.pdp-acc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: var(--f12); line-height: 16px; letter-spacing: .7px; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary svg { width: 10px; height: 6px; transition: transform .2s var(--ease); }
.pdp-acc[open] summary svg { transform: rotate(180deg); }
.pdp-acc__body { padding: 0 0 18px; font-size: var(--f12); line-height: 20px; letter-spacing: .5px; color: var(--ink); }
.pdp-acc__body a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-galeria { display: flex; gap: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pdp-galeria::-webkit-scrollbar { display: none; }
  .pdp-foto { flex: 0 0 100%; scroll-snap-align: start; }
  .pdp-info { position: static; }
  .pdp-info-in { min-height: 0; padding: 24px 20px 10px; }
  .pdp-buy { margin: 0; }
  .pdp-foot { margin-top: 30px; }
}

/* ===== CARRITO LATERAL (korpa drawer) ===== */
/* Velo CLARO sobre el resto: atenúa/lava la página sin oscurecerla. */
.kd-overlay{ position:fixed; inset:0; z-index:80; background:rgba(255,255,255,.55);
      opacity:0; transition:opacity .35s var(--ease); }
.kd-overlay.open{ opacity:1; }
/* Ancho de la columna derecha, tope alto para monitores anchos. */
.kd{ position:fixed; top:0; right:0; z-index:90; height:100%; width:clamp(400px,44vw,980px);
      background:#fff; box-shadow:-1px 0 0 var(--line-soft); transform:translateX(100%);
      transition:transform .38s var(--ease); }
.kd.open{ transform:none; }
@media(max-width:820px){ .kd{ width:min(440px,92vw); } }
.kd-content{ height:100%; }
/* Interior: cabecera fija, items con scroll, total+cta fijos abajo. */
.kd-inner{ height:100%; display:flex; flex-direction:column; }
.kd-head{ display:flex; justify-content:space-between; align-items:center;
      padding:22px clamp(20px,3vw,40px); border-bottom:1px solid var(--line-soft); }
.kd-head h2{ margin:0; font-weight:400; font-size:var(--f14); letter-spacing:.7px; }
.kd-head .kd-n{ color:var(--grey); }
.kd-close{ background:none; border:0; cursor:pointer; font-size:20px; line-height:1; color:var(--ink); }

.kd-items{ flex:1; overflow-y:auto; padding:0 clamp(20px,3vw,40px); }
.kd-row{ display:grid; grid-template-columns:140px 1fr; gap:20px; align-items:start;
      padding:22px 0; border-bottom:1px solid var(--line-soft); }
.kd-foto{ aspect-ratio:3/4; overflow:hidden; background:var(--photo); display:block; }
.kd-main{ display:flex; flex-direction:column; gap:14px; }
.kd-top{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.kd-nm{ font-size:var(--f12); letter-spacing:.7px; }
.kd-nm:hover{ text-decoration:underline; text-underline-offset:3px; }
.kd-pr{ font-size:var(--f12); font-variant-numeric:tabular-nums; white-space:nowrap; }
.kd-bottom{ display:flex; justify-content:space-between; align-items:center; }
.kd-qty{ display:inline-flex; align-items:center; gap:14px; }
.kd-qty form{ display:inline-flex; }
.kd-qty button{ background:none; border:0; cursor:pointer; font-size:14px; line-height:1;
      color:var(--grey); width:16px; }
.kd-qty button:hover{ color:var(--ink); }
.kd-num{ font-size:var(--f12); font-variant-numeric:tabular-nums; min-width:14px; text-align:center; }
.kd-rm{ background:none; border:0; cursor:pointer; font-size:var(--f10); letter-spacing:1px; text-transform:uppercase;
      text-transform:uppercase; color:var(--grey); text-decoration:underline; text-underline-offset:3px; }
.kd-rm:hover{ color:var(--ink); }

.kd-foot{ border-top:1px solid var(--line-soft); padding:20px clamp(20px,3vw,40px) 26px; }
.kd-total{ display:flex; justify-content:space-between; align-items:baseline; }
.kd-total .lbl{ font-size:var(--f12); color:var(--grey); letter-spacing:.7px; }
.kd-total .val{ font-size:var(--f14); font-variant-numeric:tabular-nums; }
.kd-nota{ margin:6px 0 16px; font-size:var(--f10); color:var(--grey); }
/* .kd-foot .kd-cta: sube especificidad para ganarle a `.ola a{color:inherit}`,
   si no el texto blanco se pierde sobre el fondo oscuro. */
.kd-foot .kd-cta{ display:block; text-align:center; background:var(--ink); color:#fff; padding:16px;
      font-size:10.5px; letter-spacing:1.3px; text-transform:uppercase; transition:background .2s var(--ease); }
.kd-foot .kd-cta:hover{ background:#000; }
.kd-prazna{ flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center;
      gap:14px; font-size:12px; color:var(--grey); }
.kd-prazna a{ text-decoration:underline; text-underline-offset:3px; color:var(--ink); }

/* Página de respaldo (sin JS): centra el mismo interior en un ancho acotado. */
.korpa-page{ max-width:560px; margin:0 auto; min-height:60vh; }
.korpa-page .kd-inner{ height:auto; }
.korpa-page .kd-head{ padding-inline:0; }
.korpa-page .kd-items{ padding-inline:0; }
.korpa-page .kd-foot{ padding-inline:0; }

/* ===== CHECKOUT (kasa) ===== */
.ko{ display:grid; grid-template-columns:1.3fr 1fr; gap:clamp(30px,5vw,80px);
      padding:clamp(30px,4vw,56px) var(--pad) clamp(50px,7vw,90px); align-items:start; }
.ko-form h1{ margin:0 0 28px; font-weight:400; font-size:var(--f16); letter-spacing:.7px; }
.ko-field{ margin-bottom:20px; display:flex; flex-direction:column; gap:7px; }
.ko-field label{ font-size:var(--f12); color:var(--grey); letter-spacing:.7px; }
.ko-field input, .ko-field textarea{ font-family:inherit; font-size:var(--f14); letter-spacing:.5px; color:var(--ink);
      padding:10px 0 12px; border:0; border-bottom:1px solid var(--grey); background:none; width:100%; border-radius:0; }
.ko-field input:focus, .ko-field textarea:focus{ outline:0; border-color:var(--ink); }
.ko-field textarea{ resize:vertical; }
.ko-field.has-err input, .ko-field.has-err textarea{ border-color:var(--accent); }
.ko-field .err{ font-size:10px; color:var(--accent); }
.ko-cta{ display:block; width:100%; margin-top:8px; background:var(--ink); color:#fff; border:0;
      padding:17px; font-family:inherit; font-size:10.5px; letter-spacing:1.3px; text-transform:uppercase;
      cursor:pointer; transition:background .2s var(--ease); }
.ko-cta:hover{ background:#000; }
.ko-nota{ margin:12px 0 0; font-size:10px; color:var(--grey); text-align:center; }

.ko-resumen{ border:1px solid var(--line-soft); padding:clamp(22px,3vw,34px); position:sticky; top:calc(var(--hdr) + 20px); }
.ko-resumen h2{ margin:0 0 20px; font-weight:400; font-size:var(--f14); letter-spacing:.7px; }
.ko-row{ display:grid; grid-template-columns:140px 1fr auto; gap:20px; align-items:center;
      padding:16px 0; border-bottom:1px solid var(--line-soft); }
.ko-foto{ position:relative; aspect-ratio:3/4; overflow:hidden; background:var(--photo); }
.ko-foto .ko-q{ position:absolute; top:-7px; right:-7px; min-width:17px; height:17px; padding:0 4px;
      border-radius:9px; background:var(--ink); color:#fff; font-size:9px; display:flex;
      align-items:center; justify-content:center; font-variant-numeric:tabular-nums; }
.ko-nm{ font-size:var(--f12); letter-spacing:.7px; }
.ko-sub{ font-size:var(--f12); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ko-total{ display:flex; justify-content:space-between; align-items:baseline; padding-top:18px; }
.ko-total .lbl{ font-size:var(--f12); color:var(--grey); letter-spacing:.7px; }
.ko-total .val{ font-size:var(--f14); font-variant-numeric:tabular-nums; }
@media(max-width:820px){
  .ko{ grid-template-columns:1fr; }
  .ko-resumen{ position:static; order:-1; }
}

/* Confirmación de pedido */
.ko-ok{ max-width:520px; margin:0 auto; min-height:56vh; display:flex; flex-direction:column;
      justify-content:center; align-items:center; text-align:center; gap:14px; padding:40px var(--pad); }
.ko-ok h1{ margin:0; font-weight:400; font-size:var(--f18); letter-spacing:.7px; }
.ko-ok-num{ margin:0; font-size:12px; }
.ko-ok-txt{ margin:0; font-size:11.5px; color:var(--grey); line-height:1.7; max-width:36ch; }
.ko-ok-cta{ margin-top:12px; background:var(--ink); color:#fff; padding:15px 34px;
      font-size:10.5px; letter-spacing:1.3px; text-transform:uppercase; }
a.ko-ok-cta{ color:#fff; }


/* ===== PÁGINAS: O nama ===== */
.pg { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.pg-foto { aspect-ratio: 3 / 4; overflow: hidden; background: var(--photo); }
.pg-foto img { width: 100%; height: 100%; object-fit: cover; }
.pg-txt { display: flex; align-items: center; }
.pg-txt-in { max-width: 520px; margin: 0 auto; padding: 60px clamp(24px, 4vw, 60px); }
.pg-txt h1 { font-size: var(--f14); line-height: 20px; letter-spacing: .8px; text-transform: uppercase; }
.pg-txt p { margin-top: 18px; font-size: var(--f14); line-height: 22px; letter-spacing: .5px; }
.pg-lead { margin-top: 30px !important; font-size: var(--f16) !important; line-height: 24px !important; }
.pg-datos { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.pg-datos p { margin-top: 12px; font-size: var(--f12); line-height: 18px; color: var(--grey); }
.pg-datos strong { font-weight: 400; color: var(--ink); }
.pg-acciones { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pg-acciones .btn-dark { margin-top: 0; }
.pg-link { font-size: var(--f14); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 960px) {
  .pg { grid-template-columns: 1fr; }
  .pg-txt-in { padding: 34px 20px 10px; }
}

/* ===== PÁGINAS: Kontakt ===== */
.kt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); padding: 40px var(--pad) 70px; align-items: start; }
.kt h1 { font-size: var(--f14); line-height: 20px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 26px; }
.kt-datos p { font-size: var(--f14); line-height: 20px; letter-spacing: .5px; }
.kt-datos p + p { margin-top: 12px; }
.kt-datos a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kt-redes { display: flex; gap: 20px; margin-top: 22px; font-size: var(--f14); }
.kt-redes a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kt-mapa { margin-top: 30px; aspect-ratio: 4 / 3; background: var(--line-soft); filter: grayscale(1); }
.kt-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.kt-form { padding-top: 46px; }
.kt-form .btn-dark { margin-top: 8px; }
.kt-ok { margin-bottom: 30px; padding: 18px 20px; border: 1px solid var(--ink); }
.kt-ok h2 { font-size: var(--f14); letter-spacing: .7px; }
.kt-ok p { margin-top: 6px; font-size: var(--f12); color: var(--grey); }
@media (max-width: 960px) {
  .kt { grid-template-columns: 1fr; padding: 30px 20px 50px; }
  .kt-form { padding-top: 0; }
}

/* contador del carrusel de la ficha (solo celular: 1/7 como Jacquemus) */
.pdp-count { display: none; }
@media (max-width: 960px) {
  .pdp { position: relative; }
  .pdp-count { display: block; position: absolute; right: 12px; top: calc(100vw * 4 / 3 - 30px);
    font-size: var(--f12); letter-spacing: .7px; color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums; }
}

/* ===== Aviso de cookies (barra blanca abajo, estilo Jacquemus) ===== */
.ck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 450; background: var(--bg);
  border-top: 1px solid var(--line-soft); padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ck[hidden] { display: none; }
.ck__txt { max-width: 760px; font-size: var(--f12); line-height: 18px; letter-spacing: .5px; }
.ck__txt a { text-decoration: underline; text-underline-offset: 3px; }
.ck__btns { display: flex; gap: 8px; flex: none; }
.ck__btn { height: 40px; padding: 0 22px; border: 1px solid var(--ink); font-size: var(--f12);
  font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.ck__btn--dark { background: var(--ink); color: #fff; }
.ck__btn:hover { background: #000; color: #fff; }
@media (max-width: 767px) {
  .ck { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px 18px; }
  .ck__btns .ck__btn { flex: 1; }
}
.ft-link-btn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-size: inherit; }

/* ===== Páginas de texto (Kolačići) ===== */
.txt-pg { max-width: 680px; margin: 0 auto; padding: 40px 20px 70px; }
.txt-pg h1 { font-size: var(--f14); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 24px; }
.txt-pg h2 { font-size: var(--f14); letter-spacing: .7px; margin-top: 30px; }
.txt-pg p, .txt-pg li { margin-top: 12px; font-size: var(--f14); line-height: 22px; letter-spacing: .4px; }
.txt-pg ul { list-style: disc; padding-left: 20px; }
.txt-pg a { text-decoration: underline; text-underline-offset: 3px; }
