/* =========================================================
   El Glopet — sistema de disseny
   Colors i tipografia extrets de les mateixes tasses:
   tinta blau marí, terracota, i els tons de les il·lustracions.
   ========================================================= */

@font-face { font-family: "Lora"; src: url("/assets/fonts/lora.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Paleta de marca: crema, carbó, terracota i sàlvia */
  --paper: #F4EFE6;      /* crema */
  --paper-2: #E8E4DD;    /* gris suau */
  --white: #FFFEFC;      /* blanc càlid */
  --ink: #292823;        /* carbó */
  --ink-2: #4E4B44;
  --ink-3: #5F5B53;
  --line: #E8E4DD;
  --line-2: #D6D0C5;
  --terra: #B66F54;      /* terracota (accents i text gran) */
  --terra-dark: #8A4A33; /* terracota per a text petit (contrast AA) */
  --terra-soft: #F3E2D9;
  --terra-deep: #9C5640; /* fons del hero: text blanc amb contrast AA */
  --sage: #89917A;       /* verd sàlvia */
  --sage-dark: #565D4A;
  --sage-soft: #E6E8DF;
  --sky: #7A8796;
  --sky-soft: #E6E9EC;
  --mustard: #B08F55;
  --mustard-soft: #F1E8D8;
  --star: #C9954A;
  --ok: #4F6B3F;
  --error: #A3321F;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(41, 40, 35, .06);
  --shadow: 0 18px 40px -22px rgba(41, 40, 35, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon--fill { fill: currentColor; stroke: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.h3 { font-size: 1.35rem; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Botons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--terra-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--small { min-height: 38px; padding: 7px 16px; font-size: .88rem; background: var(--ink); color: var(--white); }
.btn--small:hover { background: var(--terra); }
.btn--small.btn--ghost { background: transparent; color: var(--ink); }
.btn--small.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--lg { min-height: 52px; padding: 13px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line-2); border-color: var(--line-2); color: var(--ink-3); cursor: not-allowed; }
.btn.is-added { background: var(--ok); border-color: var(--ok); color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); }

/* ---------- Capçalera ---------- */
.announce { background: var(--ink); color: #EAE5DC; font-size: .82rem; }
.announce__inner { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 36px; flex-wrap: wrap; text-align: center; }
.announce strong { color: var(--white); }
.announce__sep { opacity: .5; }
@media (max-width: 640px) { .announce__inner span:nth-child(n+2) { display: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 239, 230, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.logo--light img { height: 40px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 11px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-toggle { display: none; }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; transition: border-color .2s; }
.cart-btn:hover { border-color: var(--ink); }
.cart-btn .icon { width: 22px; height: 22px; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--terra-dark); color: var(--white); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-btn__count:empty, .cart-btn__count[data-zero] { display: none; }
.cart-btn.is-bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

@media (max-width: 1180px) {
  .site-header__inner { gap: 12px; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
  .logo { margin-right: auto; }
  .logo img { height: 30px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px var(--gutter) 20px; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
}

/* ---------- Seccions ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--flush { padding-top: 8px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-text { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.section-cta { text-align: center; margin: 40px 0 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-dark); margin: 0 0 12px; }
.eyebrow--light { color: #E9C2B1; }
.empty-note { color: var(--ink-2); background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px 24px; margin: 0; }

.page-hero { padding: 32px 0 28px; }
.page-title { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 12px; }
.page-lead { color: var(--ink-2); font-size: 1.1rem; max-width: 640px; margin-bottom: 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 18px; font-size: .86rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.06; margin-bottom: 22px; }
.hero__title em { color: var(--terra); }
.hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero__lead strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); font-size: .9rem; color: var(--ink-2); }
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero__badge strong { color: var(--ink); }
.hero__media { position: relative; padding: 0 36px 36px 0; }
.hero__photo { display: block; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); max-width: 520px; margin-left: auto; margin-right: auto; transition: transform .35s ease; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo:hover { transform: translateY(-4px); }
.hero__inset { position: absolute; right: 0; bottom: 0; width: 36%; max-width: 200px; margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); transform: rotate(4deg); }
.hero__inset img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 10px; }
.hero__inset figcaption { font-family: var(--serif); font-style: italic; font-size: .9rem; text-align: center; padding: 6px 4px 2px; color: var(--ink-2); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; width: 100%; margin: 0 auto; padding: 0 24px 28px 0; }
}
@media (max-width: 560px) {
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__inset { width: 36%; }
}

/* ---------- Hero tipogràfic ---------- */
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 254, 252, .75); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero--bold { background: var(--terra-deep); color: var(--white); padding: clamp(36px, 6vw, 84px) 0 clamp(44px, 7vw, 96px); position: relative; overflow: hidden; }
.hero--bold::before { content: ""; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 254, 252, .06); pointer-events: none; }
.hero--bold .hero__grid { grid-template-columns: 1fr 1.05fr; position: relative; }
.hero--bold .hero__title { color: var(--white); font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
.hero--bold .hero__title em { color: #F6DDD0; display: block; }
.hero--bold .hero__lead { color: #F7ECE6; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #F7ECE6; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__stage { position: relative; }
.hero-word { display: grid; grid-template-columns: 1fr 1fr; align-items: start; position: relative; }
.hero-word.is-active { animation: wordIn .6s ease both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-word__card { grid-column: 1 / -1; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 30px 32px 96px; width: 84%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.hero-word__head { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.hero-word__word { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.hero-word__ipa { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 1rem; }
.hero-word__defs { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.05rem; color: var(--ink-2); }
.hero-word__defs li::marker { color: var(--terra-dark); font-weight: 700; }
.hero-word__defs li:last-child { color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.hero-word__link { grid-column: 1; grid-row: 2; margin: 18px 0 0; font-size: .92rem; }
.hero-word__link a { color: var(--white); text-underline-offset: 3px; }
.hero-word__link .icon { width: 16px; height: 16px; vertical-align: -3px; }
.hero-word__mug { grid-column: 2; grid-row: 2; justify-self: end; margin-top: -84px; width: 100%; max-width: 250px; border-radius: var(--radius-lg); overflow: hidden; border: 6px solid var(--white); background: var(--white); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); transform: rotate(5deg); transition: transform .3s; position: relative; z-index: 2; }
.hero-word__mug:hover { transform: rotate(2deg) scale(1.02); }
.hero-word__mug img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero__sticker { position: absolute; z-index: 3; right: 0; top: -22px; width: 104px; height: 104px; border-radius: 50%; background: #C4C9B5; color: var(--ink); display: grid; place-content: center; text-align: center; margin: 0; transform: rotate(-12deg); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); line-height: 1.1; }
.hero__sticker span { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; max-width: 78px; margin: 2px auto 0; line-height: 1.15; }
.hero__sticker strong { font-family: var(--serif); font-size: 1.45rem; }
.hero__pause { position: absolute; left: 0; bottom: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 254, 252, .6); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.hero__pause:hover { background: rgba(255, 254, 252, .12); }
@media (max-width: 900px) {
  .hero--bold .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__stage { padding-top: 10px; }
  .hero-word__card { width: 100%; padding: 22px 22px 84px; }
  .hero-word__mug { max-width: 200px; margin-top: -72px; }
  .hero__sticker { width: 84px; height: 84px; right: -4px; top: -26px; }
  .hero__sticker strong { font-size: 1.3rem; }
  .hero__sticker span { font-size: .64rem; }
}
@media (max-width: 560px) {
  .hero--bold .hero__ctas .btn { width: 100%; }
  .hero-word__card { padding: 20px 18px 70px; }
  .hero-word__mug { max-width: 150px; margin-top: -60px; }
  .hero-word__defs { font-size: .95rem; }
  .hero-word__defs li:last-child { font-size: 1.02rem; }
  .hero-word__link { padding-right: 8px; }
}

/* ---------- Franja de campanya ---------- */
.promo { background: var(--ink); color: #EAE5DC; }
.promo__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.promo__tag { grid-row: 1 / span 2; margin: 0; padding: 6px 14px; border-radius: 999px; background: #D5D9CB; color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.promo__title { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.promo__title span { color: #EDC3B1; white-space: nowrap; }
.promo__text { margin: 0; color: #D6D0C5; font-size: .95rem; }
.promo .btn { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .promo__inner { grid-template-columns: 1fr; }
  .promo__tag { grid-row: auto; width: fit-content; }
  .promo .btn { grid-column: auto; grid-row: auto; width: 100%; margin-top: 8px; }
}

/* ---------- Tassa que gira ---------- */
.flip { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; max-width: 480px; justify-self: center; width: 100%; }
.flip__stage { position: relative; aspect-ratio: 1 / 1; }
.flip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .6s ease; }
.flip__img--back { opacity: 0; transform: rotateY(25deg) scale(.96); }
.flip.is-flipped .flip__img--front { opacity: 0; transform: rotateY(-25deg) scale(.96); }
.flip.is-flipped .flip__img--back { opacity: 1; transform: none; }
.flip__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.flip__label { font-family: var(--serif); font-size: 1.05rem; }

/* ---------- Categories tipogràfiques ---------- */
.wordtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wordtile { display: flex; flex-direction: column; gap: 6px; min-height: 260px; padding: 26px 24px 22px; border-radius: var(--radius-lg); color: var(--white); text-decoration: none; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.wordtile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wordtile--amor { background: var(--terra-deep); }
.wordtile--caracter { background: var(--sage-dark); }
.wordtile--insults { background: #6E5427; }
.wordtile--humor { background: var(--ink); }
.wordtile__word { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin-bottom: auto; padding-bottom: 28px; opacity: .95; overflow-wrap: anywhere; }
.wordtile__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.wordtile__text { font-size: .92rem; color: rgba(255, 254, 252, .88); }
.wordtile__count { margin-top: 10px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1000px) { .wordtiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wordtiles { grid-template-columns: 1fr; } .wordtile { min-height: 0; } .wordtile__word { padding-bottom: 16px; } }

/* ---------- Fila lliscable de productes ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 3 * 20px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.rail > .card { scroll-snap-align: start; }
@media (max-width: 560px) { .rail { grid-auto-columns: 62%; gap: 14px; } }

/* ---------- Confiança ---------- */
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .icon { color: var(--terra); }
.trust--inline { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* ---------- Explicació ---------- */
.explain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.explain__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.explain__side { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.explain__side img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.explain__side figcaption { padding: 14px 18px 16px; font-size: .92rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.explain__side figcaption strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps__n { width: 44px; height: 44px; border-radius: 50%; background: var(--terra-soft); color: var(--terra-dark); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .explain__grid { grid-template-columns: 1fr; } }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .categories { grid-template-columns: repeat(2, 1fr); } }
.category { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--white); }
.category__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; border-top: 4px solid var(--terra); }
.category--caracter .category__body { border-top-color: var(--sage); }
.category--insults .category__body { border-top-color: var(--mustard); }
.category--humor .category__body { border-top-color: var(--sky); }
.category__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.category__text { color: var(--ink-2); font-size: .95rem; }
.category__count { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 860px) { .categories { grid-template-columns: 1fr; } .category { grid-template-columns: 38% 1fr; grid-template-rows: none; } .category img { aspect-ratio: auto; height: 100%; } .category__body { border-top: 0; border-left: 4px solid var(--terra); } .category--caracter .category__body { border-left-color: var(--sage); } .category--insults .category__body { border-left-color: var(--mustard); } .category--humor .category__body { border-left-color: var(--sky); } }

/* ---------- Targetes de producte ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.card__img--back { opacity: 0; }
@media (hover: hover) { .card:hover .card__img--back { opacity: 1; } .card:hover .card__img { transform: scale(1.03); } }
.card__stock { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; border-top: 1px solid var(--line); }
.card__title { font-size: 1.35rem; margin: 2px 0 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__text { color: var(--ink-2); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__rating { margin: 0; font-size: .85rem; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card__foot .btn { position: relative; z-index: 2; }
@media (max-width: 560px) {
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 1.12rem; }
  .card__text { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { width: 100%; }
}
.price { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.price small { font-weight: 500; color: var(--ink-3); font-size: .85rem; }
.price--lg { font-size: 1.8rem; }
.chip { display: inline-block; width: fit-content; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; background: var(--terra-soft); color: var(--terra-dark); }
.chip--caracter { background: var(--sage-soft); color: var(--sage-dark); }
.chip--insults { background: var(--mustard-soft); color: #6E5427; }
.chip--humor { background: var(--sky-soft); color: #45505C; }

.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .icon { width: 16px; height: 16px; }
.stars .is-empty { color: var(--line-2); }

/* ---------- Packs ---------- */
.packs-section { background: var(--sage-soft); }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pack { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; transition: box-shadow .25s, transform .25s; }
.pack:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pack__media { display: flex; align-items: center; justify-content: center; padding: 22px 16px; overflow: hidden; background: var(--paper); }
.pack--parella .pack__media, .pack--cafe .pack__media { background: var(--terra-soft); }
.pack--feina .pack__media { background: var(--sage-soft); }
.pack__mug { flex: 0 1 38%; margin: 0 -4%; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 12px 24px -16px rgba(41, 40, 35, .45); border: 3px solid var(--white); }
.pack__mug:nth-child(1) { transform: rotate(-5deg); }
.pack__mug:nth-child(2) { position: relative; z-index: 1; transform: translateY(-8px); }
.pack__mug:nth-child(3) { transform: rotate(5deg); }
.pack__mug img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.pack__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.pack__count { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); }
.pack__title { font-size: 1.6rem; margin: 0; }
.pack__text { color: var(--ink-2); margin: 0; }
.pack__items { font-size: .92rem; color: var(--ink-2); margin: 0; font-family: var(--serif); font-style: italic; }
.pack__items a { color: var(--ink); }
.pack__foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; padding-top: 14px; }
.packs__note { text-align: center; color: var(--ink-2); font-size: .92rem; margin: 28px 0 0; }
@media (max-width: 1100px) { .pack { grid-template-columns: 1fr; } .pack__media { padding: 28px 10px 22px; } .pack__mug { flex-basis: 34%; } }
@media (max-width: 700px) { .packs { grid-template-columns: 1fr; } }

/* ---------- Recomanador ---------- */
.finder__options { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.finder__option { min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.finder__option:hover { border-color: var(--ink); }
.finder__option[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.finder__status { color: var(--ink-3); font-size: .9rem; margin: 0 0 18px; }
@media (max-width: 560px) { .finder__options { flex-direction: column; } .finder__option { width: 100%; text-align: left; } }

.empty-note--invite { text-align: center; max-width: 640px; margin: 0 auto; padding: 32px 28px; border-style: solid; }
.empty-note__title { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 8px; }
.empty-note--invite p:last-child { margin: 0; }

/* ---------- Opinions ---------- */
.latest-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0; }
.review__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.review__name { font-weight: 600; }
.review__meta { font-size: .82rem; color: var(--ink-3); }
.review__text { margin: 0; color: var(--ink-2); white-space: pre-line; }
.review__product { font-size: .85rem; margin: 10px 0 0; }

/* ---------- FAQ i desplegables ---------- */
.faq details, .details details { border-bottom: 1px solid var(--line-2); }
.faq summary, .details summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.faq summary::-webkit-details-marker, .details summary::-webkit-details-marker { display: none; }
.faq summary::after, .details summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--terra); }
.faq details[open] summary::after, .details details[open] summary::after { content: "–"; }
.faq details p, .details details > *:not(summary) { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- Newsletter i formularis ---------- */
.newsletter-band { background: var(--ink); color: #E8E4DD; }
.newsletter-band .section-title { color: var(--white); }
.newsletter-band__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.newsletter-band .form-note, .newsletter-band .check { color: #CFC9BE; }
.newsletter-band .form-note a { color: var(--white); }
.newsletter-band .btn--primary { background: var(--terra-dark); }
.newsletter-band .btn--primary:hover { background: var(--white); color: var(--ink); }
@media (max-width: 860px) { .newsletter-band__inner { grid-template-columns: 1fr; } }

.nl-form { display: grid; gap: 14px; }
.nl-form__row { display: flex; gap: 10px; }
.nl-form__row .input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .nl-form__row { flex-direction: column; } }
.input { width: 100%; min-height: 48px; padding: 11px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); transition: border-color .2s; }
textarea.input { resize: vertical; min-height: 110px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(180, 68, 42, .18); }
.input[aria-invalid="true"] { border-color: var(--error); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--terra); flex-shrink: 0; }
.form-note { font-size: .78rem; color: var(--ink-3); line-height: 1.5; margin: 0; }
.form-status { margin: 0; font-size: .92rem; font-weight: 500; min-height: 1.4em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.newsletter-band .form-status.is-ok { color: #8FD3A6; }
.newsletter-band .form-status.is-error { color: #FFB4A8; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact .form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 8px; } }

.card-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; }

/* ---------- Catàleg ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips__item { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chips__item:hover { border-color: var(--ink); }
.chips__item[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.result-count { color: var(--ink-3); font-size: .9rem; margin-bottom: 18px; }

/* ---------- Fitxa de producte ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 7vw, 80px); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery__img { width: 100%; height: 100%; object-fit: cover; }
.gallery__label { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 254, 252, .92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery__thumb { display: grid; gap: 4px; width: 96px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; text-align: center; font-size: .78rem; color: var(--ink-2); }
.gallery__thumb img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--white); }
.gallery__thumb.is-active img { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.buybox { display: flex; flex-direction: column; gap: 14px; }
.buybox__intro { font-family: var(--serif); font-style: italic; color: var(--terra-dark); font-size: 1.35rem; margin: 6px 0 -12px; }
.buybox__title { font-size: clamp(2.6rem, 5vw, 3.6rem); margin: 0; }
.buybox__tagline { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.1rem; margin: -8px 0 0; }
.rating-summary { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); text-decoration: none; width: fit-content; }
.rating-summary:hover { text-decoration: underline; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }
.buybox__ship { color: var(--ink-3); font-size: .9rem; }
.buybox__actions { display: flex; gap: 12px; align-items: stretch; }
.stock-note { margin: 0; font-weight: 600; color: var(--terra-dark); }

.dictionary { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--terra); border-radius: var(--radius); padding: 20px 22px; }
.dictionary p:last-child { margin-bottom: 0; }
.dictionary__head { margin: 0 0 10px; }
.dictionary__word { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.dictionary__ipa { color: var(--ink-3); font-family: var(--serif); font-style: italic; margin-left: 6px; }
.dictionary__defs { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.dictionary__defs li::marker { color: var(--terra); font-weight: 700; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); }
.qty__btn { width: 44px; height: 50px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.qty__btn:hover { background: var(--paper-2); }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__input { width: 40px; border: 0; text-align: center; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.combo { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--paper-2); border-radius: var(--radius); padding: 12px 14px; }
.combo__img img { border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; background: var(--white); }
.combo__title { margin: 0; font-weight: 600; }
.combo__text { margin: 0; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 480px) { .combo { grid-template-columns: 56px 1fr; } .combo .btn { grid-column: 1 / -1; } }
.specs { display: grid; gap: 6px; margin: 0 0 12px; }
.specs div { display: flex; gap: 8px; }
.specs dt { font-weight: 600; color: var(--ink); }
.specs dd { margin: 0; }

.reviews { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review-list { display: grid; gap: 14px; margin-top: 20px; }
.review-summary { display: flex; align-items: center; gap: 14px; }
.review-summary__avg { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.review-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); }
.review-form__title { font-size: 1.4rem; margin: 0; }
.stars-input { border: 0; padding: 0; margin: 0; }
.stars-input legend { font-weight: 600; font-size: .92rem; margin-bottom: 4px; padding: 0; }
.stars-input__row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; color: var(--line-2); padding: 2px; }
.stars-input label .icon { width: 30px; height: 30px; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--star); }
.stars-input input:focus-visible + label { outline: 3px solid var(--terra); border-radius: 6px; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(41, 40, 35, .4); }
.sticky-buy__info { display: grid; line-height: 1.2; }
.sticky-buy__name { font-family: var(--serif); font-weight: 600; }
@media (min-width: 901px) { .sticky-buy { display: none !important; } }

/* ---------- Cistella ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(41, 40, 35, .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 61; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__empty { text-align: center; padding: 40px 10px; color: var(--ink-2); }
.drawer__empty p { margin-bottom: 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img { border-radius: 10px; background: var(--white); border: 1px solid var(--line); aspect-ratio: 1 / 1; object-fit: cover; }
.line__name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.line__unit { font-size: .85rem; color: var(--ink-3); margin: 2px 0 8px; }
.line__detail { font-size: .82rem; color: var(--ink-2); margin: 2px 0 0; }
.line__img--svg { width: 72px; height: 72px; border-radius: 10px; border: 1px solid var(--line); }
.line__total { font-weight: 700; }
.line .qty__btn { width: 34px; height: 34px; }
.line .qty__input { width: 28px; }
.line__remove { display: block; margin: 8px 0 0 auto; color: var(--ink-3); }
.drawer__upsell { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper-2); }
.drawer__upsell h3 { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.upsell-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.upsell-item img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; background: var(--white); }
.upsell-item a { font-weight: 600; text-decoration: none; }
.upsell-item span { display: block; font-size: .82rem; color: var(--ink-3); }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.totals { margin: 0 0 14px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; }
.totals__grand { padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 1.15rem; }
.totals__grand dt { color: var(--ink); font-weight: 700; }
.drawer__legal { font-size: .78rem; color: var(--ink-3); margin: 12px 0 0; text-align: center; }
.drawer__legal .icon { width: 14px; height: 14px; margin: -2px 4px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; z-index: 70; background: var(--ink); color: var(--white); padding: 12px 14px 12px 20px; border-radius: 999px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: transform .3s ease; max-width: calc(100% - 32px); font-size: .93rem; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: var(--white); color: var(--ink); border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.page-product .toast { bottom: 90px; }
@media (min-width: 901px) { .page-product .toast { bottom: 24px; } }

/* ---------- Cookies ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.consent h2 { font-size: 1.25rem; margin-bottom: 8px; }
.consent p { font-size: .9rem; color: var(--ink-2); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__actions .btn { flex: 1 1 auto; }
.consent__options { display: grid; gap: 12px; margin: 14px 0 18px; }
.consent__option { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.consent__option strong { font-size: .95rem; }
.consent__option span { font-size: .84rem; color: var(--ink-3); grid-column: 1; }
.consent__option input { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 20px; height: 20px; accent-color: var(--terra); }

/* ---------- Peu ---------- */
.site-footer { background: #1F1E1A; color: #CFC9BE; padding: 64px 0 24px; font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.site-footer__brand p { margin: 14px 0 0; max-width: 320px; }
.site-footer__pay { display: flex; gap: 8px; align-items: center; color: #E8E4DD; }
.site-footer__title { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a, .site-footer .link-btn { color: #CFC9BE; text-decoration: none; font-size: .92rem; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3A3832; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Textos llargs i legals ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--terra-dark); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal-model { background: var(--white); border-left: 4px solid var(--line-2); margin: 1em 0; padding: 14px 18px; font-size: .92rem; color: var(--ink-2); }
.pending { background: #FFF3C4; color: #6B4E00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--white); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--paper-2); }
.seo-text { max-width: 760px; margin-top: 48px; color: var(--ink-2); }

/* ---------- Administració ---------- */
.admin-login { max-width: 480px; }
.admin-login label { font-weight: 600; display: block; margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; align-items: center; }
.tabs__tab { border: 0; background: none; padding: 12px 16px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; color: var(--ink-2); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--terra); }
.tabs__logout { margin-left: auto; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: var(--white); font-size: .75rem; }
.badge:empty { display: none; }
.admin-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.admin-item__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.flag { display: inline-block; background: #FFE4DE; color: var(--error); font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.notice { background: var(--mustard-soft); border-radius: 12px; padding: 14px 16px; color: #6B4E00; }

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

/* ---------- Colors de la tassa ---------- */
.dot--vermell { --c: #C41E3A; } .dot--taronja { --c: #E06A28; } .dot--groc { --c: #F2D530; }
.dot--verd-llima { --c: #A4C449; } .dot--verd { --c: #4F9A55; } .dot--blau-cel { --c: #3FA7E0; }
.dot--blau { --c: #2B3A7A; } .dot--rosa { --c: #E58FB2; } .dot--negre { --c: #1F1F20; }
.card__colors { display: flex; flex-wrap: wrap; gap: 3px; margin: 2px 0 0; }
.card__colors .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.colors { border: 0; padding: 0; margin: 4px 0 0; }
.colors legend { padding: 0; margin-bottom: 10px; font-size: .95rem; color: var(--ink-2); }
.colors legend strong { color: var(--ink); }
.colors__row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch__dot { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .15s, transform .15s; }
.swatch:hover .swatch__dot { transform: scale(1.06); }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + .swatch__dot { outline: 3px solid var(--terra-dark); outline-offset: 3px; }
.colors__left { font-size: .88rem; font-weight: 600; color: var(--terra-dark); margin: 6px 0 0; }
.btn--disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.colors__hint { font-size: .82rem; color: var(--ink-3); margin: 8px 0 0; }

/* ---------- Ofertes ---------- */
.price--offer { color: var(--terra-dark); }
.price__ref { color: var(--ink-3); font-size: .9em; margin-left: 6px; }
.badge-offer, .card__badge { display: inline-block; background: var(--terra-dark); color: var(--white); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.card__badge { position: absolute; top: 12px; right: 12px; z-index: 1; }
.buybox__price .badge-offer { align-self: center; }
.pack__save { color: var(--terra-dark); }
.pack__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.pack__vs { font-size: .88rem; color: var(--ink-3); }

/* ---------- Configurador «Crea la teva tassa» ---------- */
.page-hero--tight { padding-bottom: 12px; }
.site-nav a.nav-cta { background: var(--ink); color: var(--white); }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--terra-dark); color: var(--white); }
.maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 64px; }
.maker__preview { position: sticky; top: calc(var(--header-h) + 16px); }
.maker__stage { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; }
.mug-photo { position: relative; max-width: 520px; margin: 0 auto; }
.mug-photo__img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.mug-photo.is-back .mug-photo__img { transform: scaleX(-1); }
.mug-photo__print { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.mug-svg__intro { font-family: var(--serif); font-style: italic; fill: #A0533A; }
.mug-svg__word { font-family: var(--serif); font-weight: 500; fill: #1F2A37; }
.mug-svg__sub { font-family: var(--serif); font-style: italic; fill: #A0533A; }
.mug-svg__bword { font-family: var(--serif); font-weight: 500; fill: #1F2A37; }
.mug-svg__defs { font-family: var(--sans); font-size: 17px; fill: #3A3F47; }
.mug-svg__muted { fill: #8A857C; font-style: italic; }
.maker__views { display: flex; justify-content: center; gap: 8px; margin: 12px 0 6px; }
.maker__view, .pill { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); }
.maker__view[aria-pressed="true"], .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.maker__note { font-size: .82rem; color: var(--ink-3); text-align: center; margin: 4px 0 0; }
.maker__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.maker__step { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.maker__step legend { font-family: var(--serif); font-size: 1.2rem; padding: 0 6px; margin-left: -6px; display: flex; align-items: center; gap: 10px; }
.maker__step legend small { font-family: var(--sans); font-size: .8rem; color: var(--ink-3); }
.maker__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--terra-soft); color: var(--terra-dark); font-size: .9rem; font-weight: 700; font-family: var(--sans); }
.maker__structures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__body { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: .85rem; color: var(--ink-2); }
.choice__body strong { color: var(--ink); font-size: .95rem; }
.choice input:checked + .choice__body { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--paper); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--terra-dark); outline-offset: 2px; }
.maker__gender { display: flex; gap: 8px; flex-wrap: wrap; }
.maker__gender[hidden] { display: none; }
.field__hint { font-size: .8rem; color: var(--ink-3); margin: 4px 0 0; }
.input--small { min-height: 40px; padding: 8px 12px; }
.maker__words { display: grid; gap: 10px; }
.maker__words[hidden] { display: none; }
.maker__wordlist { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.wordchip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-family: var(--serif); font-size: .98rem; cursor: pointer; color: var(--ink); }
.wordchip:hover { border-color: var(--ink); }
.wordchip.is-on { background: var(--terra-dark); border-color: var(--terra-dark); color: var(--white); }
.maker__empty { font-size: .88rem; color: var(--ink-3); margin: 0; }
.maker__drawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; padding: 2px; }
.drawing { position: relative; cursor: pointer; }
.drawing input { position: absolute; opacity: 0; }
.drawing__box { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.drawing__box--none { font-size: .66rem; text-align: center; color: var(--ink-2); padding: 2px; line-height: 1.15; }
.drawing input:checked + .drawing__box { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--paper); }
.drawing input:focus-visible + .drawing__box { outline: 3px solid var(--terra-dark); outline-offset: 2px; }
.maker__buy { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--paper-2); }
.maker__price { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .maker { grid-template-columns: minmax(0, 1fr); }
  .maker__preview { position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); padding: 8px 0; }
  .maker__stage { padding: 6px; max-width: 360px; margin: 0 auto; }
  .maker__note { display: none; }
  .maker__views { margin: 6px 0 0; }
}
@media (max-width: 560px) { .maker__structures { grid-template-columns: 1fr; } .maker__stage { max-width: 260px; } }
.maker__buy .btn { white-space: normal; }
.maker__buy .buybox__actions { flex-wrap: wrap; }
.maker__buy > * { min-width: 0; }
.maker__buy { grid-template-columns: minmax(0, 1fr); }
.offers-band { background: var(--terra-soft); }
.line__unit s, .upsell-item s { color: var(--ink-3); margin-right: 4px; }

/* ---------- Mode aparador: comandes per Instagram ---------- */
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.ig-note { font-size: .85rem; color: var(--ink-3); margin: -4px 0 0; }
.price, .price__ref { white-space: nowrap; }
.card__foot { flex-wrap: wrap; row-gap: 8px; }
.card__foot > .price + .price__ref { margin-right: auto; }
