/* ==========================================================================
   Plametco front-end design system
   Vanilla CSS, no framework. Tokens first, then base, layout, components,
   page-specific blocks and utilities.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours taken from the logo: deep indigo + signal yellow */
  --ink: #130b36;
  --brand: #2a166a;
  --brand-600: #3a23a0;
  --brand-700: #22125a;
  --brand-50: #efecfa;
  --brand-100: #ddd7f3;
  --accent: #ffd400;
  --accent-600: #f0c400;
  --accent-50: #fff8cc;

  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface-2: #f8f8fc;
  --line: #e5e3f0;
  --line-strong: #cfcbe3;
  --text: #1b1736;
  --muted: #605c7b;
  --muted-2: #8d89a6;

  --success: #138a5a;
  --success-50: #e4f6ee;
  --danger: #d3303d;
  --danger-50: #fdeaec;
  --warning: #b7791f;
  --warning-50: #fff3dc;
  --info: #2158b5;
  --info-50: #e7eefb;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(19, 11, 54, .06), 0 1px 1px rgba(19, 11, 54, .04);
  --shadow: 0 8px 24px -8px rgba(19, 11, 54, .18), 0 2px 6px rgba(19, 11, 54, .06);
  --shadow-lg: 0 28px 60px -20px rgba(19, 11, 54, .35), 0 8px 20px -8px rgba(19, 11, 54, .12);

  --header-h: 76px;
  --container: 1220px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .18s;
  --t: .32s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--brand);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

small {
  font-size: .85em;
}

strong, b {
  font-weight: 700;
}

ul, ol {
  padding-left: 1.3em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.section--muted {
  background: var(--surface);
}

.section--dark {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 60%, var(--brand-600) 100%);
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark .lead,
.section--dark p {
  color: rgba(255, 255, 255, .82);
}

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.section__head .lead {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.section--dark .eyebrow {
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.cluster--center {
  justify-content: center;
}

.cluster--between {
  justify-content: space-between;
}

.stack > * + * {
  margin-top: var(--stack, 1rem);
}

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(19, 11, 54, .25);
}

.site-header .container {
  max-width: 1400px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-header .nav {
  min-width: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__logo {
  height: 34px;
  width: auto;
}

.brand__tagline {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .brand__tagline {
    display: none;
  }
}

.nav {
  display: none;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .85rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__link:hover,
.nav__item.is-open > .nav__link {
  background: var(--brand-50);
  color: var(--brand);
}

.nav__link.is-active {
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--accent);
  border-radius: 0;
}

.nav__caret {
  width: 12px;
  height: 12px;
  opacity: .6;
  transition: transform var(--t-fast);
}

.nav__item.is-open > .nav__link .nav__caret {
  transform: rotate(180deg);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 50;
}

.nav__sub::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.nav__item.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub .nav__item {
  position: relative;
}

.nav__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
}

.nav__sub-link:hover,
.nav__sub-link.is-active {
  background: var(--brand-50);
  color: var(--brand);
}

.nav__sub .nav__sub {
  top: -0.5rem;
  left: calc(100% + 6px);
}

.nav__sub .nav__caret {
  transform: rotate(-90deg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 42px;
  height: 42px;
  padding: 0 .75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--t-fast), color var(--t-fast);
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  background: var(--brand-50);
  color: var(--brand);
}

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

.icon-btn__label {
  display: none;
}

@media (min-width: 1500px) {
  .icon-btn__label {
    display: inline;
  }
}

.cart-btn__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.menu-wrap {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 60;
}

.menu-wrap.is-open .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  white-space: nowrap;
}

.menu__link:hover,
.menu__link.is-active {
  background: var(--brand-50);
  color: var(--brand);
}

.menu__link--danger {
  color: var(--danger);
}

.menu__divider {
  height: 1px;
  margin: .4rem 0;
  background: var(--line);
}

.menu__flag {
  width: 20px;
  height: auto;
  border-radius: 3px;
}

.site-header .header-cta {
  display: none;
}

@media (min-width: 1320px) {
  .site-header .header-cta {
    display: inline-flex;
    margin-left: .35rem;
  }
}

@media (max-width: 1319px) {
  .nav__link {
    padding-inline: .65rem;
    font-size: .92rem;
  }
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
}

.burger:hover {
  background: var(--brand-50);
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.burger__lines {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background var(--t-fast);
}

.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t);
}

.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; }

.burger[aria-expanded="true"] .burger__lines {
  background: transparent;
}

.burger[aria-expanded="true"] .burger__lines::before {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  overflow-y: auto;
  padding: 1rem var(--gutter) 2rem;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
}

.drawer.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .drawer {
    display: none;
  }
}

body.drawer-open {
  overflow: hidden;
}

.drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer__list .drawer__list {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  margin: .25rem 0 .5rem .75rem;
}

.drawer__row {
  display: flex;
  align-items: center;
}

.drawer__link {
  flex: 1;
  display: block;
  padding: .8rem .5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.drawer__link.is-active {
  color: var(--brand);
}

.drawer__toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-pill);
}

.drawer__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

.drawer__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.drawer__sub {
  display: none;
}

.drawer__sub.is-open {
  display: block;
}

.drawer__sub .drawer__link {
  font-size: .95rem;
  font-weight: 600;
  padding-block: .6rem;
  border-bottom: 0;
}

.drawer__actions {
  display: grid;
  gap: .6rem;
  margin-top: 1.25rem;
}

.drawer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   5. Buttons, pills, chips
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .6rem 1.35rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(19, 11, 54, .45);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled,
.btn.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  --btn-bd: var(--accent);
}

.btn--primary:hover {
  --btn-bg: var(--accent-600);
  --btn-bd: var(--accent-600);
}

.btn--dark {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
}

.btn--dark:hover {
  --btn-bg: var(--brand-600);
  --btn-bd: var(--brand-600);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  --btn-bd: var(--line-strong);
}

.btn--outline:hover {
  --btn-bg: var(--brand-50);
  --btn-bd: var(--brand);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brand);
  --btn-bd: #fff;
}

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .35);
}

.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, .16);
  --btn-bd: #fff;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
}

.btn--ghost:hover {
  --btn-bg: var(--brand-50);
  --btn-fg: var(--brand);
  box-shadow: none;
}

.btn--danger {
  --btn-bg: transparent;
  --btn-fg: var(--danger);
  --btn-bd: var(--danger);
}

.btn--danger:hover {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
}

.btn--success {
  --btn-bg: var(--success);
  --btn-fg: #fff;
  --btn-bd: var(--success);
}

.btn--sm {
  min-height: 36px;
  padding: .35rem .95rem;
  font-size: .85rem;
}

.btn--lg {
  min-height: 54px;
  padding: .8rem 1.8rem;
  font-size: 1.05rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--icon {
  width: 42px;
  min-height: 42px;
  padding: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
}

.pill--success { background: var(--success-50); color: var(--success); }
.pill--danger { background: var(--danger-50); color: var(--danger); }
.pill--warning { background: var(--warning-50); color: var(--warning); }
.pill--info { background: var(--info-50); color: var(--info); }
.pill--accent { background: var(--accent); color: var(--ink); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .5rem .35rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  transition: background var(--t-fast);
}

.chip:hover {
  background: var(--danger);
  color: #fff;
}

.chip svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}

.card__media--square {
  aspect-ratio: 1;
}

.card__media--wide {
  aspect-ratio: 16 / 9;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card__media--contain img {
  object-fit: contain;
  padding: 6%;
}

.card--hover:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  padding: 1.35rem;
}

.card__body--lg {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
}

.card__title a {
  color: inherit;
}

.card__title a:hover {
  color: var(--brand-600);
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.card__footer {
  margin-top: auto;
  padding: 0 1.35rem 1.35rem;
}

.card__body + .card__footer {
  padding-top: .25rem;
}

.card--center {
  text-align: center;
}

.card--center .card__footer {
  display: flex;
  justify-content: center;
}

.card--flat {
  box-shadow: none;
}

.card--glass {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.card--glass .card__title {
  color: #fff;
}

.card--glass .card__text {
  color: rgba(255, 255, 255, .8);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-tile--accent {
  background: var(--accent);
  color: var(--ink);
}

.icon-tile--lg {
  width: 72px;
  height: 72px;
  font-size: 1.85rem;
}

.card--center .icon-tile {
  margin-inline: auto;
}

.card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link-overlay ~ * a,
.card__link-overlay ~ * button {
  position: relative;
  z-index: 2;
}

/* Feature row (icon + text side by side) */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature__title {
  margin-bottom: .25rem;
  font-size: 1.05rem;
}

.feature__text {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   7. Hero & page heads
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(255, 212, 0, .18), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(58, 35, 160, .55), transparent 70%),
    linear-gradient(135deg, #140b3a 0%, #2a166a 55%, #1a0f48 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

@media (min-width: 980px) {
  .hero__inner--media {
    grid-template-columns: 1.1fr .9fr;
  }
}

.hero__title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  color: #fff;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 1.75rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: rgba(255, 255, 255, .8);
}

.hero__lead p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.25rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge-check {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem .45rem .5rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}

.badge-check::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23130b36' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  flex-shrink: 0;
}

.hero__media {
  position: relative;
}

.hero__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
}

.hero__frame iframe,
.hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 212, 0, .25), transparent);
}

.hero__glow {
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 212, 0, .35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Generic page head (inner pages) */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  color: #fff;
  background: linear-gradient(120deg, #140b3a 0%, #2a166a 60%, #3a23a0 100%);
  isolation: isolate;
}

.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: .28;
  filter: saturate(.6);
}

.page-head::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 212, 0, .28), transparent 70%);
  z-index: -1;
}

.page-head__inner {
  max-width: 820px;
}

.page-head__inner--center {
  margin-inline: auto;
  text-align: center;
}

.page-head__title {
  margin-bottom: .5rem;
  color: #fff;
}

.page-head__lead {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
}

.page-head__lead p:last-child {
  margin-bottom: 0;
}

.page-head__lead :is(h1, h2, h3, h4),
.page-head__lead :is(h1, h2, h3, h4) * {
  margin-bottom: .5rem;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  color: #fff !important;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.page-head--compact {
  padding-block: clamp(2rem, 4vw, 3rem);
}

/* Breadcrumbs */
.crumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: .7rem 0;
  list-style: none;
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--muted);
}

.crumbs__item + .crumbs__item::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: .4rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.crumbs__item a {
  color: var(--muted);
  font-weight: 600;
}

.crumbs__item a:hover {
  color: var(--brand);
}

.crumbs__item[aria-current] {
  color: var(--text);
  font-weight: 700;
}

/* Flashes & alerts */
.flashes {
  padding-top: 1rem;
}

.alert {
  --alert-bg: var(--info-50);
  --alert-fg: var(--info);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--alert-bg);
  color: var(--alert-fg);
  font-weight: 600;
  font-size: .95rem;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert__body {
  flex: 1;
}

.alert__body p:last-child {
  margin-bottom: 0;
}

.alert__close {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .6;
  line-height: 1;
}

.alert__close:hover {
  opacity: 1;
}

.alert--success { --alert-bg: var(--success-50); --alert-fg: var(--success); }
.alert--danger, .alert--error { --alert-bg: var(--danger-50); --alert-fg: var(--danger); }
.alert--warning { --alert-bg: var(--warning-50); --alert-fg: var(--warning); }
.alert--info { --alert-bg: var(--info-50); --alert-fg: var(--info); }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: repeat(2, 1fr); }
  .form-row--3 { grid-template-columns: repeat(3, 1fr); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.field label,
.field__label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}

.field__optional {
  margin-left: .35rem;
  font-weight: 500;
  color: var(--muted-2);
  font-size: .8rem;
}

.input,
.textarea,
.select,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .65rem .95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field input[type="file"] {
  padding: .5rem 0;
}

.textarea,
.field textarea {
  min-height: 130px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(58, 35, 160, .14);
}

.input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.select,
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23605c7b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
}

.select--inline {
  width: auto;
  min-height: 42px;
  padding-block: .4rem;
  font-weight: 600;
  font-size: .92rem;
}

.field__hint {
  font-size: .82rem;
  color: var(--muted);
}

.field__hint a {
  font-weight: 700;
}

.field__error {
  font-size: .82rem;
  font-weight: 600;
  color: var(--danger);
}

.field--error .input,
.field--error input:not([type="checkbox"]):not([type="radio"]),
.field--error select,
.field--error textarea {
  border-color: var(--danger);
}

.field--error label {
  color: var(--danger);
}

/* Checkboxes & radios */
.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}

.check input[type="checkbox"],
.check input[type="radio"],
input[type="checkbox"].check__input,
input[type="radio"].check__input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  display: inline-grid;
  place-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}

.check input[type="radio"],
input[type="radio"].check__input {
  border-radius: 50%;
}

.check input::before,
input.check__input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform var(--t-fast);
  background: var(--ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.check input[type="radio"]::before,
input[type="radio"].check__input::before {
  clip-path: none;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
}

.check input:checked,
input.check__input:checked {
  border-color: var(--brand);
  background: var(--brand);
}

.check input[type="checkbox"]:checked,
input[type="checkbox"].check__input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.check input:checked::before,
input.check__input:checked::before {
  transform: scale(1);
}

.check input:focus-visible,
input.check__input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}

/* Option cards for shipping / payment choices */
.option {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.option:hover {
  border-color: var(--brand-100);
}

.option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42, 22, 106, .12);
  background: var(--brand-50);
}

.option__body {
  flex: 1;
  min-width: 0;
}

.option__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
}

.option__price {
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}

.option__meta {
  font-size: .85rem;
  color: var(--muted);
}

.option__desc {
  margin-top: .35rem;
  font-size: .88rem;
  color: var(--muted);
}

.option__desc p:last-child {
  margin: 0;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: hidden;
}

.qty--sm {
  height: 38px;
}

.qty__btn {
  width: 44px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  transition: background var(--t-fast);
}

.qty--sm .qty__btn {
  width: 36px;
  font-size: 1.05rem;
}

.qty__btn:hover {
  background: var(--brand-50);
}

.qty input,
.qty__input {
  width: 56px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 800;
  background: transparent;
  -moz-appearance: textfield;
}

.qty input:focus {
  box-shadow: none !important;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-group {
  display: flex;
  gap: .5rem;
}

.input-group .input {
  flex: 1;
}

.password-meter {
  display: grid;
  gap: .4rem;
  margin-top: .5rem;
}

.password-meter__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.password-meter__fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--danger);
  transition: width var(--t), background var(--t);
}

.password-meter__fill[data-level="2"] { background: var(--warning); }
.password-meter__fill[data-level="3"] { background: var(--info); }
.password-meter__fill[data-level="4"] { background: var(--success); }

.password-meter__rules {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--muted-2);
}

.password-meter__rules .is-ok {
  color: var(--success);
}

.g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  font-size: .95rem;
}

.table th,
.table td {
  padding: .85rem .9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table tfoot th {
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--text);
}

.table--spec th {
  width: 36%;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  color: var(--text);
}

.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

/* --------------------------------------------------------------------------
   10. Shop: catalog, products, filters
   -------------------------------------------------------------------------- */
.catalog {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .catalog--aside {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

.catalog__aside {
  display: none;
}

@media (min-width: 1024px) {
  .catalog__aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.filters {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-group__title {
  margin-bottom: .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-group__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}

.filter:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.filter.is-active {
  background: var(--brand);
  color: #fff;
}

.filter__count {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted-2);
}

.filter.is-active .filter__count {
  color: rgba(255, 255, 255, .75);
}

.filter-group--boxed .filter-group__items {
  flex-direction: row;
  flex-wrap: wrap;
  gap: .4rem;
}

.filter-group--boxed .filter {
  padding: .3rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: .85rem;
}

.filter-group--boxed .filter.is-active {
  border-color: var(--brand);
}

.filter--color {
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden;
  color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.filter--color.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand);
}

.filter--color .filter__count {
  display: none;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.toolbar__count {
  font-size: .9rem;
  color: var(--muted);
}

.toolbar__count strong {
  color: var(--text);
}

.toolbar__filters-btn {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .toolbar__filters-btn {
    display: none;
  }
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.active-filters__label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
}

.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.product-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--surface-2);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
  transition: transform .6s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  right: .75rem;
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  pointer-events: none;
  z-index: 2;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
  padding: 1.1rem 1.2rem .5rem;
}

.product-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.product-card__title a {
  color: inherit;
}

.product-card__title a:hover {
  color: var(--brand-600);
}

.product-card__desc {
  margin: 0;
  font-size: .86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.2rem 1.2rem;
  margin-top: auto;
}

.price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.price--lg {
  font-size: 2rem;
}

.price__unit {
  font-size: .78em;
  font-weight: 600;
  color: var(--muted);
}

.price__old {
  font-size: .85em;
  font-weight: 600;
  color: var(--muted-2);
  text-decoration: line-through;
}

.price__note {
  display: block;
  width: 100%;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.pagination__link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination__link.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Product detail */
.product {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }
}

.gallery {
  display: grid;
  gap: .75rem;
}

.gallery__main {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  transition: opacity var(--t-fast);
}

.gallery__main.is-swapping img {
  opacity: 0;
}

.gallery__zoom {
  position: absolute;
  right: .9rem;
  bottom: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(19, 11, 54, .85);
  color: #fff;
  pointer-events: none;
}

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

.gallery__thumbs {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}

.gallery__thumb {
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
  border-color: var(--brand);
}

.product__info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .product__info {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.product__title {
  margin-bottom: .25rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
}

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

.product__short {
  color: var(--muted);
  font-size: 1.02rem;
}

.product__short p:last-child {
  margin-bottom: 0;
}

.buy-box {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.buy-box__row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.buy-box__row .btn {
  flex: 1;
}

.product__sku {
  font-size: .85rem;
  color: var(--muted);
}

.product__sku strong {
  color: var(--text);
}

.trust-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.trust-list svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Tabs */
.tabs__nav {
  display: flex;
  gap: .25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tabs__btn {
  padding: .8rem 1.1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.tabs__btn:hover {
  color: var(--brand);
}

.tabs__btn[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.tabs__panel[hidden] {
  display: none;
}

/* Horizontal scroll row (related products etc.) */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .25rem .25rem 1rem;
  margin: -.25rem;
  scrollbar-width: thin;
}

@media (min-width: 1100px) {
  .rail--4 {
    grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  }
}

.rail > * {
  scroll-snap-align: start;
}

.file-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list__item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.file-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
  flex-shrink: 0;
}

.file-list__icon svg {
  width: 20px;
  height: 20px;
}

.file-list__name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-list__size {
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Category tiles */
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  isolation: isolate;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.cat-card:hover img {
  transform: scale(1.06);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 11, 54, .92) 0%, rgba(19, 11, 54, .35) 50%, rgba(19, 11, 54, .05) 100%);
}

.cat-card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.5rem;
}

.cat-card__title {
  margin-bottom: .35rem;
  color: #fff;
  font-size: 1.35rem;
}

.cat-card__text {
  margin: 0 0 .75rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 800;
  color: var(--accent);
}

.cat-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}

.cat-card:hover .cat-card__cta svg {
  transform: translateX(4px);
}

/* Brand grid */
.brand-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.brand-tile:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}

.brand-tile img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter var(--t), opacity var(--t);
}

.brand-tile:hover img {
  filter: none;
  opacity: 1;
}

/* Promotions */
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand) center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(19, 11, 54, .95), rgba(19, 11, 54, .2));
}

.promo-card__discount {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.promo-card__title {
  color: #fff;
  font-size: 1.35rem;
}

.promo-card__title a {
  color: inherit;
}

.promo-hero {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: var(--brand) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.promo-hero__discount {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
}

.promo-hero__discount small {
  font-size: .5em;
  font-weight: 600;
}

.info-list {
  display: grid;
  gap: .6rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
}

.info-list svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

.info-list .is-warning { color: var(--warning); }
.info-list .is-warning svg { color: var(--warning); }
.info-list .is-danger { color: var(--danger); }
.info-list .is-danger svg { color: var(--danger); }

/* --------------------------------------------------------------------------
   11. Cart, checkout, account
   -------------------------------------------------------------------------- */
.shop-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.shop-layout__aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
}

.panel__title .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
}

.panel__title i {
  color: var(--brand);
}

.panel--soft {
  background: var(--surface-2);
  box-shadow: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 720px) {
  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr) auto auto auto;
    align-items: center;
  }
}

.cart-item__thumb {
  width: 80px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item__title {
  margin: 0 0 .2rem;
  font-size: 1rem;
}

.cart-item__title a {
  color: inherit;
}

.cart-item__note {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}

.cart-item__error {
  display: block;
  margin-top: .25rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--danger);
}

.cart-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.cart-item__total {
  font-weight: 800;
  white-space: nowrap;
}

.cart-item__actions {
  display: flex;
  gap: .5rem;
}

@media (max-width: 719px) {
  .cart-item__row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  font-size: .95rem;
}

.summary__row span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.summary__row--discount span:last-child {
  color: var(--success);
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: .5rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.summary__total .price {
  font-size: 1.6rem;
  color: var(--brand);
}

.mini-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .5rem 0;
}

.mini-item__thumb {
  width: 52px;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  flex-shrink: 0;
}

.mini-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.mini-item__body {
  flex: 1;
  min-width: 0;
  font-size: .9rem;
}

.mini-item__title {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.mini-item__meta {
  color: var(--muted);
  font-size: .82rem;
}

/* Checkout steps */
.steps {
  display: flex;
  align-items: center;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted-2);
  white-space: nowrap;
}

.steps__item::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.steps__item.is-done,
.steps__item.is-current {
  color: var(--text);
}

.steps__item.is-done::before {
  content: "";
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--success);
}

.steps__item.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.steps__item + .steps__item {
  flex: 1;
}

.steps__item + .steps__item::after {
  content: none;
}

.steps__line {
  flex: 1;
  height: 2px;
  margin: 0 .75rem;
  background: var(--line);
}

.steps__line.is-done {
  background: var(--success);
}

@media (max-width: 600px) {
  .steps__item span {
    display: none;
  }

  .steps__item.is-current span {
    display: inline;
  }
}

/* Account */
.account {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .account {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.side-nav {
  display: grid;
  gap: 2px;
  padding: .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .side-nav {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}

.side-nav__link i,
.side-nav__link svg {
  width: 20px;
  text-align: center;
  color: var(--brand);
}

.side-nav__link:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.side-nav__link.is-active {
  background: var(--brand);
  color: #fff;
}

.side-nav__link.is-active i,
.side-nav__link.is-active svg {
  color: var(--accent);
}

.side-nav__link--danger {
  color: var(--danger);
}

.side-nav__link--danger i {
  color: var(--danger);
}

.side-nav__link--danger:hover {
  background: var(--danger-50);
  color: var(--danger);
}

.stat-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-tile__label {
  font-size: .85rem;
  color: var(--muted);
}

.stat-tile__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 800;
  text-transform: capitalize;
  background: var(--brand-50);
  color: var(--brand);
}

.status--new { background: var(--info-50); color: var(--info); }
.status--pending { background: var(--warning-50); color: var(--warning); }
.status--processing { background: var(--brand-50); color: var(--brand); }
.status--delivered, .status--completed, .status--paid { background: var(--success-50); color: var(--success); }
.status--canceled, .status--unpaid { background: var(--danger-50); color: var(--danger); }

.address-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: .92rem;
}

.address-card__role {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Auth */
.auth {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .auth--split {
    grid-template-columns: 1fr 1.1fr;
  }
}

.auth__aside {
  color: var(--muted);
}

.auth__aside h2 {
  margin-bottom: 1rem;
}

.auth__card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth__card--center {
  max-width: 560px;
  margin-inline: auto;
}

.auth__title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth__links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}

.auth__links p {
  margin-bottom: .35rem;
}

.auth__links a {
  font-weight: 700;
}

.need-help {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

.need-help__title {
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.need-help .cluster {
  justify-content: center;
  margin-top: .75rem;
}

/* --------------------------------------------------------------------------
   12. Content blocks (homepage sections, CMS)
   -------------------------------------------------------------------------- */
.wysiwyg {
  font-size: 1.02rem;
  line-height: 1.7;
}

.wysiwyg > :first-child {
  margin-top: 0;
}

.wysiwyg > :last-child {
  margin-bottom: 0;
}

.wysiwyg h2,
.wysiwyg h3,
.wysiwyg h4 {
  margin-top: 1.6em;
}

.wysiwyg img {
  border-radius: var(--radius);
  margin-block: 1rem;
}

.wysiwyg a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wysiwyg a:hover {
  text-decoration-color: var(--brand);
}

.wysiwyg ul,
.wysiwyg ol {
  padding-left: 1.4em;
}

.wysiwyg li + li {
  margin-top: .3em;
}

.wysiwyg blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.wysiwyg table {
  width: 100%;
  margin: 1.25rem 0;
  font-size: .95rem;
}

.wysiwyg table td,
.wysiwyg table th {
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.wysiwyg table th {
  background: var(--surface-2);
}

.wysiwyg iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
}

.wysiwyg--center {
  text-align: center;
}

.wysiwyg--muted {
  color: var(--muted);
}

.wysiwyg--lg {
  font-size: 1.1rem;
}

.prose-cols {
  columns: 2;
  column-gap: 3rem;
}

@media (max-width: 800px) {
  .prose-cols {
    columns: 1;
  }
}

/* Stats */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.stat {
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.4rem;
}

.stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15rem;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--brand);
}

.stat__suffix {
  font-size: .55em;
  color: var(--brand-600);
}

.stat__label {
  margin-top: .35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.stat__text {
  margin: .35rem 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.section--dark .stat {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}

.section--dark .stat__value,
.section--dark .stat__suffix,
.section--dark .stat__label {
  color: #fff;
}

.section--dark .stat__text {
  color: rgba(255, 255, 255, .75);
}

/* Event cards */
.event-card__date {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 2;
  padding: .35rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.meta-list {
  display: grid;
  gap: .35rem;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
}

.meta-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.meta-list i,
.meta-list svg {
  width: 16px;
  color: var(--brand);
  text-align: center;
  flex-shrink: 0;
}

/* FAQ accordion */
.accordion {
  display: grid;
  gap: .6rem;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.accordion__item[open] {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::after {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a166a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--t);
}

.accordion__item[open] .accordion__summary::after {
  transform: rotate(45deg);
}

.accordion__body {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
}

/* Team */
.team-card .card__media {
  aspect-ratio: 1;
}

.team-card__role {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand-600);
}

/* Photo grid + lightbox */
.photo-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  margin-block: 2rem;
}

.photo-grid--single {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
}

.photo-grid__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}

.photo-grid--single .photo-grid__item {
  aspect-ratio: 16 / 9;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.photo-grid__item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 6, 30, .94);
  color: #fff;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  user-select: none;
  transition: opacity var(--t-fast);
}

.lightbox__img.is-loading {
  opacity: 0;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background var(--t-fast);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, .22);
}

.lightbox__btn svg {
  width: 22px;
  height: 22px;
}

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
}

@media (max-width: 640px) {
  .lightbox__stage {
    padding: 56px 12px;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 10px;
    transform: none;
  }

  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }

  .lightbox__caption {
    bottom: 68px;
  }
}

/* Modal (terms, filters) */
.modal {
  width: min(92vw, 760px);
  max-height: 86vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(10, 6, 30, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal--sm {
  width: min(92vw, 480px);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  margin: 0;
  font-size: 1.15rem;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}

.modal__close:hover {
  background: var(--brand-50);
  color: var(--brand);
}

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

.modal__body {
  max-height: calc(86vh - 70px);
  padding: 1.5rem;
  overflow-y: auto;
}

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  color: #fff;
  background: linear-gradient(120deg, #140b3a, #2a166a 55%, #3a23a0);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 212, 0, .14), transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.cta h2 {
  color: #fff;
}

.cta .lead {
  color: rgba(255, 255, 255, .8);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  text-align: center;
}

.empty-state img {
  max-width: 280px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.map {
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: 2rem;
}

.ratio-16x9 {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.ratio-16x9 iframe,
.ratio-4x3 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ratio-4x3 {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.prev-next {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .prev-next {
    grid-template-columns: 1fr 1fr;
  }
}

.prev-next__link {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.prev-next__link:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}

.prev-next__link--next {
  text-align: right;
}

.prev-next__label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact layout */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

.contact-info {
  font-size: 1rem;
}

.contact-info p {
  margin-bottom: .6rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, .78);
  background: var(--ink);
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__top {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.site-footer__brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

.site-footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: .75rem;
}

.site-footer__tagline {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-footer__about {
  font-size: .9rem;
  max-width: 380px;
}

.site-footer__title {
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__links {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}

.site-footer__contact {
  font-size: .92rem;
}

.site-footer__contact p {
  margin-bottom: .5rem;
}

.social {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  transition: background var(--t-fast), transform var(--t-fast);
}

.social__link:hover {
  background: var(--accent);
  color: var(--ink) !important;
  transform: translateY(-2px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.site-footer__badges img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 3px;
}

/* --------------------------------------------------------------------------
   14. Floating helpers: WhatsApp, cookie consent, backoffice bar
   -------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-direction: row-reverse;
}

.wa__bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7);
  transition: transform var(--t) var(--ease);
}

.wa__bubble:hover {
  transform: scale(1.06);
}

.wa__bubble img {
  width: 30px;
  filter: brightness(0) invert(1);
}

.wa__tip {
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}

.wa:hover .wa__tip {
  opacity: 1;
  transform: translateX(0);
}

.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(420px, calc(100vw - 40px));
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cookie-in .5s var(--ease) both;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.cookie[hidden] {
  display: none;
}

.cookie__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.cookie__icon {
  font-size: 1.6rem;
}

.cookie__title {
  margin: 0;
  font-size: 1.05rem;
}

.cookie__text {
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--muted);
}

.cookie__options {
  display: grid;
  gap: .4rem;
  margin-bottom: 1rem;
}

.cookie__option {
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: .9rem;
}

.cookie__option:has(input:checked) {
  background: var(--brand-50);
}

.cookie__actions {
  display: flex;
  gap: .5rem;
}

.cookie__actions .btn {
  flex: 1;
}

.bo-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  gap: .4rem;
  padding: .4rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.bo-bar .btn {
  min-height: 34px;
  padding: .25rem .9rem;
  font-size: .8rem;
}

body:has(.cookie:not([hidden])) .bo-bar {
  bottom: auto;
  top: calc(var(--header-h) + 12px);
}

/* Template outline helpers for logged-in editors */
html.logged-in [data-tpl] {
  position: relative;
}

html.logged-in [data-tpl]::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(42, 22, 106, .5);
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
}

html.logged-in [data-tpl]::after {
  content: attr(data-tpl);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  padding: 1px 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-family: monospace;
  pointer-events: none;
}

html.hide-helpers [data-tpl]::before,
html.hide-helpers [data-tpl]::after {
  display: none;
}

/* Toast */
.toast-stack {
  position: fixed;
  right: 20px;
  top: calc(var(--header-h) + 16px);
  z-index: 300;
  display: grid;
  gap: .5rem;
}

.toast {
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  animation: cookie-in .35s var(--ease) both;
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   16. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.fw-bold { font-weight: 800; }
.text-brand { color: var(--brand); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.hide-desktop { display: none; }

@media (max-width: 1023px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: initial; }
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: -.15em;
}

@media print {
  .site-header,
  .site-footer,
  .wa,
  .cookie,
  .bo-bar,
  .crumbs,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
