/* ============ ADP HOME — design system ============ */

@font-face {
  font-family: 'Ultra';
  src: url('fonts/Ultra-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bevan';
  src: url('fonts/Bevan-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cardo';
  src: url('fonts/Cardo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cardo';
  src: url('fonts/Cardo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cardo';
  src: url('fonts/Cardo-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-head: 'Montserrat', Georgia, 'Times New Roman', serif;
  --font-body: 'Cardo', Georgia, 'Times New Roman', serif;

  --ink: #14121a;
  --cream: #fff8f0;
  --surface: #ffffff;
  --border: #ece4da;
  --muted: #6f6a76;

  --accent: #c06b73;
  --accent-2: #c8a165;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(20, 12, 30, 0.16);
  --shadow-sm: 0 8px 24px rgba(20, 12, 30, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}

.divider { color: var(--border); margin: 0 8px; }

.btn[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 61, 104, 0.35);
}
.btn--primary:hover {
  background-image: linear-gradient(120deg, var(--accent-2), var(--accent));
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #a8362c;
  color: #fff;
}

/* ============ Announcement bar ============ */

.announce-bar {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.announce-bar__links a:hover { text-decoration: underline; }
.announce-bar__links .divider { color: #555; }

/* ============ Sticky header + nav ============ */

.header-group {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 68px;
  width: auto;
  display: block;
}

.search {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
}
.search__icon { color: var(--muted); flex-shrink: 0; }
.search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.search input::placeholder { color: #a29c9c; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 60;
  padding: 6px;
}
.search-results__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.search-results__item:hover { background: var(--cream); }
.search-results__thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.search-results__info { min-width: 0; }
.search-results__name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-results__price {
  font-size: 13px;
  color: var(--muted);
}
.search-results__empty {
  padding: 12px 8px;
  font-size: 14px;
  color: var(--muted);
}

.search-page__empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.header-actions__link { display: flex; align-items: center; gap: 6px; }
.cart, .wishlist-toggle { margin-left: 24px; position: relative; display: flex; color: inherit; }
.cart svg, .wishlist-toggle svg { width: 24px; height: 24px; }
.cart__count, .wishlist__count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wishlist-toggle:hover, .cart:hover { color: var(--accent); }
.mobile-search-toggle { display: none; }

/* ============ Wishlist star toggle (catalog cards & product page) ============ */

.wishlist-star {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.wishlist-star svg { width: 22px; height: 22px; transition: fill 0.2s ease; }
.wishlist-star:hover { transform: scale(1.08); }
.wishlist-star.is-active { color: var(--accent); }
.wishlist-star.is-active svg { fill: var(--accent); }

.product-card { position: relative; }

.product-detail__title-row { display: flex; align-items: flex-start; gap: 14px; }
.product-detail__title-row h1 { flex: 1; }
.wishlist-star--pd {
  position: static;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.wishlist-star--pd svg { width: 24px; height: 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.site-nav a {
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--accent); }
.site-nav__highlight { color: var(--accent) !important; }

/* Mega menu (hover) */
.nav-item { position: relative; display: flex; align-items: center; }

.mega-menu {
  position: fixed;
  top: 0; /* set precisely via JS to sit flush under the nav, viewport-relative */
  left: 0;
  right: 0;
  z-index: 150;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.nav-item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-menu__inner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 1600px;
  margin: 0 auto;
  padding: 44px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 40px;
  text-align: left;
}
.mega-menu__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mega-menu__col a.mega-menu__heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 14px;
  white-space: normal;
  overflow-wrap: break-word;
}
.mega-menu__heading::after { display: none; }
.mega-menu__heading:hover { color: var(--accent); }
.mega-menu__col a:not(.mega-menu__heading) {
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  margin-bottom: 10px;
}
.mega-menu__col a:not(.mega-menu__heading)::after { display: none; }
.mega-menu__col a:not(.mega-menu__heading):hover { color: var(--accent); }

/* ============ Trust bar ============ */

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 48px;
  font-size: 14px;
  background: var(--surface);
}
.trust-bar__label { font-weight: 700; }
.stars {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  letter-spacing: 2px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
}
.trust-bar__reviews { color: var(--muted); }
.trust-bar__reviews strong { color: var(--ink); }

/* ============ Marquee strip ============ */

.marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 22s linear infinite;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.marquee__track span { color: var(--accent-2); margin-right: 40px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Home hero (editorial) ============ */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #0c0c0e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Outgoing 3D transition when leaving the landing page */
.hero.is-exiting .hero__inner {
  transform-origin: center 30%;
  animation: heroExit 0.5s cubic-bezier(0.4, 0, 0.7, 1) forwards;
}
.hero.is-exiting .hero__bg { animation: heroDim 0.5s ease forwards; }
@keyframes heroExit {
  to { transform: perspective(1400px) rotateX(42deg) translateY(-46px) scale(0.93); opacity: 0; }
}
@keyframes heroDim {
  to { opacity: 0.3; }
}

/* Incoming page fade for the categories page */
.page-enter { animation: pageFade 0.4s ease both; }
@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,9,11,0.95) 0%, rgba(9,9,11,0.78) 42%, rgba(9,9,11,0.45) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(58% 82% at 80% 38%, rgba(255,255,255,0.06), transparent 68%);
  pointer-events: none;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 116px 48px 42px;
  min-height: 640px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
}
.hero__title {
  font-size: 62px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -1.2px;
  max-width: 760px;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 64px;
  padding-top: 26px;
}
.hero__stat { position: relative; padding-right: 24px; }
.hero__stat + .hero__stat { padding-left: 34px; }
.hero__stat + .hero__stat::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero__stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ============ Section heading ============ */

.section {
  padding: 100px 48px;
}
.section--tight { padding: 70px 48px; }
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-heading__kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-heading h2 { font-size: 40px; margin-bottom: 14px; }
.section-heading p { color: var(--muted); font-size: 16px; margin: 0; }

/* ============ Category grid (home) ============ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: 1320px;
  margin: 0 auto;
}
@keyframes categories3D {
  0%   { transform: perspective(1400px) rotateX(-48deg) translateY(90px); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: perspective(1400px) rotateX(0deg) translateY(0); opacity: 1; }
}
.category-grid.reveal-3d {
  transform-origin: center top;
  animation: categories3D 1s cubic-bezier(0.22, 0.7, 0.24, 1) both;
}
.category-card {
  position: relative;
  border-radius: 0;
  padding: 32px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card--dark { color: #111; }
.category-card--dark .category-card__name { text-shadow: 0 1px 10px rgba(255,255,255,0.4); }
.category-card--dark .category-card__arrow { background: rgba(0,0,0,0.12); color: #111; }
.category-card--dark:hover .category-card__arrow { background: rgba(0,0,0,0.22); }
.category-card--dark::after { background: linear-gradient(125deg, rgba(0,0,0,0.14), rgba(0,0,0,0) 55%); }
.category-card:hover {
  box-shadow: var(--shadow-lg);
  animation: cardBob 0.55s ease forwards;
}
@keyframes cardBob {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-16px) scale(1.03); }
  75%  { transform: translateY(-3px) scale(1.015); }
  100% { transform: translateY(-8px) scale(1.02); }
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.30), rgba(255,255,255,0) 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.category-card:hover::after { opacity: 1; }
.category-card__name { font-family: var(--font-head); font-size: 20px; font-weight: 700; text-shadow: 0 1px 10px rgba(0,0,0,0.28); position: relative; z-index: 1; }
.category-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.category-card:hover .category-card__arrow {
  background: rgba(255,255,255,0.35);
  transform: rotate(45deg);
}

/* ============ Testimonials ============ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-card .stars { margin-bottom: 16px; }
.testimonial-card p { font-size: 15px; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.testimonial-card__author { font-weight: 700; font-size: 14px; }
.testimonial-card__loc { color: var(--muted); font-size: 13px; }

/* ============ Reveal on scroll ============ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ Category page hero ============ */

.category-hero {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 70px 48px 60px;
}
.category-hero--rainbow {
  background: linear-gradient(120deg, #ff3d68, #ffb400, #7b2cbf, #00b4d8);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}
.breadcrumb { font-size: 13px; opacity: 0.85; margin-bottom: 16px; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.category-hero h1 { font-size: 48px; margin-bottom: 14px; }
.category-hero p { max-width: 560px; font-size: 16px; opacity: 0.92; }

/* ============ Toolbar / pills ============ */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 48px;
  max-width: 1320px;
  margin: 0 auto;
}
.toolbar__count { color: var(--muted); font-size: 14px; font-weight: 600; }
.toolbar__pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover { border-color: var(--accent); }
.pill--active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}
.sort-select {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}

/* ============ Product grid ============ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px 90px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__swatch {
  height: 200px;
  position: relative;
}
.product-card__swatch .badge { position: absolute; top: 14px; left: 14px; }
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__body h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.product-card__link { display: block; color: inherit; text-decoration: none; }
.product-card__meta { display: flex; align-items: center; gap: 8px; }
.product-card__meta .stars { padding: 2px 6px; font-size: 10px; }
.product-card__meta span { color: var(--muted); font-size: 12px; }
.product-card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.product-card__rating-stars { color: #d99a2b; letter-spacing: 1px; }
.product-card__rating-count { color: var(--muted); }
.price { font-size: 17px; font-weight: 700; margin-top: auto; }
.price .was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 14px; margin-left: 8px; }
.product-card__body .btn { margin-top: 8px; width: 100%; }

/* swatch patterns */
.swatch-1 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.swatch-2 {
  background-color: var(--accent-2);
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 3px, transparent 3px);
  background-size: 20px 20px;
}
.swatch-3 {
  background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 14px, var(--accent-2) 14px, var(--accent-2) 28px);
}
.swatch-4 {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.18) 0 6px, transparent 6px 26px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.08) 0 6px, transparent 6px 26px),
    linear-gradient(135deg, var(--accent), var(--accent-2));
}
.swatch-5 {
  background: conic-gradient(from 45deg, var(--accent), var(--accent-2), var(--accent));
}

/* ============ CTA band ============ */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  max-width: 1320px;
  margin: 0 auto 100px;
}
.cta-band h2 { font-size: 32px; margin-bottom: 24px; }

/* ============ Footer ============ */

.site-footer { background: var(--ink); color: #fff; }
.footer-newsletter {
  text-align: center;
  padding: 70px 48px 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-newsletter h3 { font-size: 30px; margin-bottom: 12px; }
.footer-newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  white-space: nowrap;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; color: var(--accent-2); }
.footer-grid a { display: block; color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .logo img { height: 82px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.footer-social a:hover { background: var(--accent); }

.footer-bottom {
  text-align: center;
  padding: 20px 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 48px; }
}

@media (max-width: 760px) {
  .container, .site-header, .site-nav, .trust-bar, .announce-bar, .section, .toolbar,
  .product-grid, .footer-grid, .checkout-page, .account-section, .account-session { padding-left: 20px; padding-right: 20px; }
  .site-header { position: relative; flex-wrap: nowrap; gap: 14px; }
  .logo img { height: 44px; }
  .search { display: none; }
  .search.is-mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    z-index: 90;
    padding: 14px 20px;
  }
  .mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
  }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px;
    gap: 16px;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    z-index: 89;
  }
  .site-nav.is-open { display: flex; }
  .nav-item { width: 100%; }
  .mega-menu { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 80px 20px 32px; min-height: auto; }
  .hero__title { font-size: 34px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 26px 0; margin-top: 44px; }
  .hero__stat { padding-right: 16px; }
  .hero__stat + .hero__stat { padding-left: 20px; }
  .hero__stat:nth-child(3)::before { display: none; }
  .hero__stat strong { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .checkout-page, .account-section, .account-session { padding-top: 40px; padding-bottom: 70px; }
  .checkout-page__title, .account-section > h1 { font-size: 30px; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .header-actions { gap: 0; }
  .cart, .wishlist-toggle { margin-left: 14px; }
  #header-signin-label,
  .header-actions > .divider,
  #header-register-link { display: none; }
  .checkout-item {
    grid-template-columns: 56px 1fr;
    grid-template-areas: "photo name" "photo qty" "photo price";
    row-gap: 4px;
  }
  .checkout-item__photo { grid-area: photo; width: 56px; height: 56px; }
  .checkout-item__name { grid-area: name; }
  .checkout-item__qty { grid-area: qty; }
  .checkout-item__price { grid-area: price; }
  .product-detail__size-row { flex-wrap: wrap; row-gap: 10px; }
  .product-detail__size-stock { width: auto; }
}

/* ============ Shopping cart drawer ============ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 26, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--surface);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.22);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__head h3 { font-size: 22px; }
.cart-drawer__close {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}
.cart-drawer__close:hover { color: var(--ink); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 26px;
}

.cart-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.cart-empty p { margin-bottom: 22px; font-size: 15px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__name { font-weight: 700; font-size: 15px; margin-bottom: 4px; line-height: 1.3; }
.cart-item__unit { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.qty-btn:hover { border-color: var(--accent); background: var(--cream); }
.qty-input {
  width: 46px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-item__line { font-weight: 700; font-size: 15px; }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  letter-spacing: 0.02em;
}
.cart-item__remove:hover { color: var(--accent); }

.cart-drawer__foot {
  border-top: 1px solid var(--border);
  padding: 22px 26px 26px;
}
.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  margin-bottom: 4px;
}
.cart-drawer__subtotal strong { font-size: 22px; font-family: var(--font-head); }
.cart-drawer__note { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.cart-drawer__checkout { width: 100%; }

@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
}

/* ============ Wishlist drawer ============ */

.wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 26, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.wishlist-overlay.is-open { opacity: 1; visibility: visible; }

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--surface);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.22);
}
.wishlist-drawer.is-open { transform: translateX(0); }

.wishlist-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 26px;
}

.wishlist-item .cart-item__main { flex: 1; }
.wishlist-item__add { margin-top: 10px; }

@media (max-width: 480px) {
  .wishlist-drawer { width: 100%; }
}

/* ============ Finalizar Compra (checkout) ============ */

.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 48px 110px;
}
.checkout-page__title { font-size: 42px; margin-bottom: 36px; }
.checkout-page__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}
.checkout-page__main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.checkout-page__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@keyframes stepUnfold {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
.checkout-page__step,
.checkout-page__address,
.checkout-page__summary,
.address-continue,
.checkout-page__payment {
  animation: stepUnfold 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.checkout-page__address {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.checkout-page__address h3 { font-size: 18px; margin-bottom: 16px; }
.checkout-page__address .address-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-page__address .address-form[hidden] { display: none; }
.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.address-list[hidden] { display: none; }
.address-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 14px 16px;
  cursor: pointer;
}
.address-card--selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.address-card__radio { margin-top: 3px; }
.address-card__body { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.address-card__name { font-weight: 700; font-size: 14px; }
.address-card__default {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.address-card__delete {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.address-card__delete:hover { color: var(--ink); }
.address-form__actions { display: flex; gap: 12px; }
.address-form__actions[hidden] { display: none; }
.address-add-btn { align-self: flex-start; }
.address-continue { margin-top: 20px; }
.address-continue[hidden] { display: none; }
.address-continue .btn { width: 100%; }
.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.checkout-item__photo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md, 8px);
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
}
.checkout-item__photo--empty { background-color: var(--border); }
.checkout-item__name { font-weight: 700; }
.checkout-item__qty { color: var(--muted); font-size: 14px; }
.checkout-item__price { font-weight: 700; }
.checkout-page__done {
  background: #e6f3ea;
  color: #1f7a3f;
  border-radius: var(--radius-lg);
  padding: 22px;
  font-weight: 600;
}
.checkout-page__summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
  min-width: 0;
}
.checkout-page__summary h3 { font-size: 18px; margin-bottom: 18px; }
.checkout-page__colors {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.checkout-page__colors h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.checkout-page__color-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}
.checkout-page__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--muted);
}
.checkout-page__row--total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.checkout-page__payment {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.checkout-page__payment[hidden] { display: none; }
.checkout-page__step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.checkout-page__step[hidden] { display: none; }
.checkout-page__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-page__step-title { font-size: 18px; }
.checkout-page__confirm { margin: 20px 0 32px; }
.checkout-page__confirm[hidden] { display: none; }
.checkout-page__payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-page__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.checkout-page__pay-btn { width: 100%; }
.checkout-page__empty {
  text-align: center;
  padding: 60px 0;
}
.checkout-page__empty p { margin-bottom: 20px; color: var(--muted); }

@media (max-width: 860px) {
  .checkout-page__layout { grid-template-columns: 1fr; }
  .checkout-page__summary { position: static; }
}

/* ============ Mi Cuenta (login / registro) ============ */

.account-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 48px 110px;
}
.account-section > h1 {
  font-size: 42px;
  margin-bottom: 36px;
}
.account-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.auth-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.auth-card__head {
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
}
.auth-card__head h2 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-body);
}
.auth-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.form-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.form-field input:not([type="checkbox"]):not([type="file"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--accent); text-decoration: underline; }
.auth-forgot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 0;
}
.auth-forgot a { color: var(--accent); font-weight: 700; }
.form-message {
  display: none;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 10px;
}
.form-message.is-error { display: block; background: #fbe8e7; color: #a8362c; }
.form-message.is-success { display: block; background: #e6f3ea; color: #1f7a3f; }
.auth-card__body .btn { width: 100%; }

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 32px 0;
}
.social-auth__google { min-height: 44px; display: flex; }
.social-auth__google > div { width: 100% !important; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 32px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.account-session {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 48px 110px;
  text-align: center;
}
.account-session h1 { font-size: 36px; margin-bottom: 14px; }
.account-session p { color: var(--muted); margin-bottom: 28px; }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ Páginas de contenido (Sobre Nosotros, Contacto, etc.) ============ */

.info-page { max-width: 780px; }
.info-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.info-page__head h1 { font-size: 42px; margin: 0; }
.info-page__body p { margin: 0 0 18px; line-height: 1.7; color: var(--ink); }
.info-page__body p:last-child { margin-bottom: 0; }
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
}
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.info-page__edit-actions {
  display: flex;
  gap: 12px;
}
.info-page__edit-actions .btn { width: auto; flex: 1; }

/* ============================================================
   Panel de administración de catálogo (acceso especial)
   ============================================================ */
.admin-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  z-index: 900;
  transition: transform 0.15s ease;
}
.admin-fab:hover { transform: scale(1.06); }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
}
.admin-modal.is-open { display: block; }
.admin-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 26, 0.55);
}
.admin-modal__panel {
  position: relative;
  max-width: 640px;
  margin: 40px auto;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 32px 36px;
}
.admin-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-modal__head h3 { font-size: 20px; margin: 0; }
.admin-modal__close {
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.admin-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.admin-form select {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
}
.admin-form select:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.form-field--checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--ink); }
.admin-form__preview {
  margin-top: 8px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.admin-form__message { font-size: 13px; font-weight: 600; padding: 0; }
.admin-form__message.is-error { padding: 11px 16px; border-radius: 10px; background: #fbe8e7; color: #a8362c; }
.admin-form__message.is-success { padding: 11px 16px; border-radius: 10px; background: #e6f3ea; color: #1f7a3f; }
.admin-form__actions { display: flex; gap: 12px; }
.admin-form__actions .btn { flex: 1; }

.admin-list { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }
.admin-list__loading { color: var(--muted); font-size: 14px; text-align: center; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-row__thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--cream);
  overflow: hidden;
}
.admin-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row__info { flex: 1; min-width: 0; }
.admin-row__name { font-weight: 700; font-size: 14px; }
.admin-row__tags { font-size: 12px; color: var(--muted); }
.admin-row__price { font-size: 13px; margin-top: 2px; }
.stock-badge { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.stock-badge.is-in { background: #e6f3ea; color: #1f7a3f; }
.stock-badge.is-out { background: #fbe8e7; color: #a8362c; }
.admin-row__actions { display: flex; gap: 8px; }
.admin-row__actions .btn { padding: 8px 12px; font-size: 12px; }

@media (max-width: 640px) {
  .admin-modal__panel { margin: 0; max-height: 100vh; border-radius: 0; }
  .admin-row { flex-wrap: wrap; }
}

/* Admin: color-variant rows inside the catalog form */
.admin-variants { display: flex; flex-direction: column; gap: 10px; }
.admin-variant-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.admin-variant-row__top { display: flex; align-items: center; gap: 10px; }
.admin-variant-row .admin-variant-color {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: var(--cream);
}
.admin-variant-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-variant-remove:hover { color: #a8362c; }
.admin-variant-images { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-variant-image {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-variant-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-variant-image-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-variant-image-remove:hover { background: #a8362c; }
.admin-variant-add-image {
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.admin-variant-add-image:hover { border-color: var(--accent); color: var(--accent); }

.admin-sizes { display: flex; flex-direction: column; gap: 10px; }
.admin-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.admin-size-row input:not([type="checkbox"]) {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: var(--cream);
}
.admin-size-row .admin-size-name { flex: 2; min-width: 0; }
.admin-size-row .admin-size-price { flex: 1; min-width: 0; }
.admin-size-stock-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  white-space: nowrap;
}
.admin-size-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-size-remove:hover { color: #a8362c; }

/* ============ Página de producto ============ */
.product-detail__breadcrumb {
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0 48px;
}
.product-detail {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 48px 100px;
  display: grid;
  grid-template-columns: minmax(0, calc(52.38% + 200px)) minmax(0, calc(47.62% - 200px));
  gap: 56px;
}
.product-detail[hidden] { display: none; }
.product-detail__collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  max-width: 2900px;
}
.product-detail__collage-item {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--cream);
  overflow: hidden;
  cursor: zoom-in;
}
.product-detail__collage-item.is-big {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}
.product-detail__collage-item.is-full {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}
.product-detail__collage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .product-detail__collage { grid-template-columns: repeat(2, 1fr); }
  .product-detail__collage-item,
  .product-detail__collage-item.is-big,
  .product-detail__collage-item.is-full {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }
}

/* Product detail image lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 16, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 60px 20px 30px;
}
.pd-lightbox.is-open { display: flex; }
.pd-lightbox__image {
  width: min(80vw, 820px);
  height: min(65vh, 820px);
  background: center / contain no-repeat;
  border-radius: 8px;
}
.pd-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.pd-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.pd-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.pd-lightbox__nav--prev { left: 24px; }
.pd-lightbox__nav--next { right: 24px; }
.pd-lightbox__nav[hidden] { display: none; }
.pd-lightbox__thumbs {
  display: flex;
  gap: 10px;
  max-width: 90vw;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pd-lightbox__thumbs[hidden] { display: none; }
.pd-lightbox__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}
.pd-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-lightbox__thumb.is-active { border-color: #fff; }
.product-detail__info { min-width: 0; }
.product-detail__info-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
  position: sticky;
  top: 188px;
}
.product-detail__info h1 { font-size: 34px; line-height: 1.15; }
.product-detail__tags { font-size: 13px; color: var(--muted); }
.product-detail__price { font-size: 24px; margin: 0; }
.product-detail__colour { display: flex; flex-direction: column; gap: 10px; }
.product-detail__colour-label { font-size: 13px; font-weight: 700; }
.product-detail__colour-label strong { font-weight: 700; color: var(--accent); }
.product-detail__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail__swatch {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 2px;
  background: var(--cream);
  cursor: pointer;
  overflow: hidden;
}
.product-detail__swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.product-detail__swatch.is-active { border-color: var(--accent); }
.product-detail__qty { display: inline-flex; align-items: center; gap: 10px; }
.product-detail__qty[hidden] { display: none; }
.product-detail__qty input {
  width: 56px;
  height: 38px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.product-detail__add { width: 100%; max-width: 320px; }

.product-detail__sizes { display: flex; flex-direction: column; gap: 10px; }
.product-detail__sizes-list { display: flex; flex-direction: column; }
.product-detail__size-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 20px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.75s;
}
.product-detail__size-row:nth-child(even) { background: var(--surface); }
.product-detail__size-row.is-selected {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 1.5px #6fbf73;
}
.product-detail__size-name { flex: 1; min-width: 70px; font-weight: 600; }
.product-detail__size-price { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 18px; }
.product-detail__size-stock { flex-shrink: 0; font-size: 13px; color: #1f7a3f; width: auto; min-width: 60px; white-space: nowrap; }
.product-detail__size-stock.is-out { color: #a8362c; }
.product-detail__sizes-total {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: baseline;
  padding: 8px 4px 0;
  font-weight: 700;
}
.product-detail__sizes-total span { color: var(--ink); }
.product-detail__sizes-total strong { font-family: var(--font-head); font-size: 20px; color: var(--accent); }
.product-detail__empty {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.product-detail__empty[hidden] { display: none; }

.product-detail__extra {
  max-width: 100%;
  margin: 0 auto 80px;
  padding: 48px 48px 0;
  border-top: 1px solid var(--border);
}
.product-detail__extra[hidden] { display: none; }

.product-detail__viewed {
  max-width: 100%;
  margin: 0 auto 80px;
  padding: 48px 48px 0;
  border-top: 1px solid var(--border);
}
.product-detail__viewed[hidden] { display: none; }
.product-detail__viewed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 0 48px;
}
.product-detail__viewed-head h2 { font-family: var(--font-head); font-size: 24px; margin: 0; }
.product-detail__viewed-more { font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; }
@media (min-width: 1024px) {
  .product-detail__viewed .product-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .product-detail__viewed { padding: 40px 24px 0; }
  .product-detail__viewed-head { padding: 0; }
}

.product-detail__reviews {
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 48px 48px 0;
  border-top: 1px solid var(--border);
}
.product-detail__reviews[hidden] { display: none; }
.product-detail__reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.product-detail__reviews-head h2 { font-family: var(--font-head); font-size: 24px; margin: 0; }
.product-detail__reviews-summary { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.product-detail__reviews-summary .product-detail__reviews-average { font-size: 20px; font-weight: 700; color: var(--ink); }
.product-detail__reviews-summary .product-detail__reviews-star-row { color: #d99a2b; letter-spacing: 2px; }

.product-detail__reviews-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.product-detail__reviews-empty { color: var(--muted); font-size: 14px; }
.product-detail__reviews-item { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.product-detail__reviews-item:last-child { border-bottom: none; padding-bottom: 0; }
.product-detail__reviews-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.product-detail__reviews-item-name { font-weight: 700; font-size: 14px; }
.product-detail__reviews-item-date { font-size: 12px; color: var(--muted); }
.product-detail__reviews-item-stars { color: #d99a2b; letter-spacing: 2px; font-size: 14px; }
.product-detail__reviews-item-comment { font-size: 14px; line-height: 1.5; margin: 0; }

.product-detail__reviews-panel { max-width: 520px; }
.product-detail__reviews-form-title { font-weight: 700; margin: 0 0 10px; }
.product-detail__reviews-stars { display: flex; gap: 4px; margin-bottom: 12px; }
.product-detail__reviews-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--border);
  padding: 0;
  transition: color 0.15s ease;
}
.product-detail__reviews-star.is-filled { color: #d99a2b; }
.product-detail__reviews-form textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 12px;
}
.product-detail__reviews-form-actions { display: flex; align-items: center; gap: 16px; }
.product-detail__reviews-message { margin: 0; font-size: 13px; }
.product-detail__reviews-message.is-error { color: #a8362c; }
.product-detail__reviews-message.is-success { color: #1f7a3f; }
.product-detail__reviews-gate { font-size: 14px; color: var(--muted); }
.product-detail__reviews-gate[hidden] { display: none; }
.product-detail__reviews-gate a { color: inherit; text-decoration: underline; }
@media (max-width: 860px) {
  .product-detail__reviews { padding: 40px 24px 0; }
}

.product-detail__related {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.product-detail__related[hidden] { display: none; }
.product-detail__related h2 {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.product-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-detail__related-grid .product-card__swatch { height: 140px; }
.product-detail__related-grid .product-card__body { padding: 14px 14px 16px; gap: 6px; }
.product-detail__related-grid .product-card__body h3 { font-size: 13px; }
.product-detail__related-grid .product-card__rating { font-size: 11px; }
.product-detail__related-grid .price { font-size: 14px; }
@media (max-width: 520px) {
  .product-detail__related-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-detail__extra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.product-detail__extra-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-detail__extra-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
}
.product-detail__extra-body[hidden] { display: none; }
.product-detail__extra-main h3 { font-family: var(--font-head); font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; }
.product-detail__extra-side { display: flex; flex-direction: column; }
.product-detail__extra-block { padding: 18px 0; border-top: 1px solid var(--border); }
.product-detail__extra-side .product-detail__extra-block:last-child { border-bottom: 1px solid var(--border); }
.product-detail__extra-block summary {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-detail__extra-block summary::-webkit-details-marker { display: none; }
.product-detail__extra-block summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.product-detail__extra-block[open] summary::after { content: "\2212"; }
.product-detail__extra-block:not([open]) > .product-detail__extra-text { display: block; }
.product-detail__extra-block .product-detail__extra-text {
  margin-top: 14px;
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
}

/* Support chat */
.support-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}
.support-chat-toggle:hover { transform: translateY(-2px); background: var(--accent); }
.support-chat-toggle.is-active { background: var(--accent); }

.support-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 440px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 900;
}
.support-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.support-chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.support-chat-panel__close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.support-chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream);
}
.support-chat-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-chat-msg--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}
.support-chat-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--cream);
}
.support-chat-msg--human {
  align-self: flex-start;
  background: var(--ink);
  color: var(--cream);
}
.support-chat-msg--system {
  align-self: center;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.support-chat-escalate {
  align-self: flex-start;
  display: flex;
}
.support-chat-escalate button {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: none;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12.5px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.support-chat-escalate button:hover { background: var(--accent); color: var(--cream); }
.support-chat-panel__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.support-chat-panel__form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
}
.support-chat-panel__form input:focus { outline: none; border-color: var(--accent); }
.support-chat-panel__form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.support-chat-panel__form button:hover { background: var(--accent); }
@media (max-width: 640px) {
  .support-chat-toggle { right: 16px; bottom: 16px; }
  .support-chat-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 84px;
  }
}
.product-detail__extra-block:not([open]) .product-detail__extra-text { max-height: 0; margin-top: 0; }
.product-detail__extra-text { color: var(--muted); line-height: 1.7; white-space: pre-line; margin: 0; }
.product-detail__extra-text:empty::before { content: "—"; }
.product-detail__extra-form { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.product-detail__extra-form[hidden] { display: none; }
.product-detail__extra-message { margin: 0; font-size: 14px; color: #a8362c; }
.product-detail__extra-message:empty { display: none; }
.product-detail__extra-actions { display: flex; gap: 12px; }
@media (max-width: 860px) {
  .product-detail__extra { padding: 40px 24px 0; }
}

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; padding: 16px 24px 70px; }
  .product-detail__breadcrumb { padding: 0 24px; }
  .product-detail__info-inner { position: static; top: auto; }
}

/* ============ Cookie consent ============ */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 -12px 40px rgba(20, 12, 30, 0.28);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-consent__text { flex: 1 1 420px; margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.cookie-consent__text a { text-decoration: underline; color: #fff; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent .btn { padding: 12px 20px; font-size: 13px; white-space: nowrap; }
.cookie-consent .btn--outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cookie-consent .btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cookie-consent .btn--dark { background: #fff; color: var(--ink); }
.cookie-consent .btn--dark:hover { background: var(--accent); color: #fff; }

.cookie-modal[hidden] { display: none; }
.cookie-modal { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 30, 0.55); }
.cookie-modal__panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 36px;
}
.cookie-modal__panel h3 { font-size: 20px; margin: 0 0 12px; }
.cookie-modal__panel > p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.cookie-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.cookie-modal__row strong { font-size: 14px; letter-spacing: 0.03em; }
.cookie-modal__row p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cookie-modal__actions .btn { flex: 1 1 auto; padding: 12px 18px; font-size: 13px; }

.cookie-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(20,12,30,0.25);
  transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(18px); }
.cookie-toggle--disabled { cursor: not-allowed; opacity: 0.6; }
.cookie-toggle--disabled .cookie-toggle__slider { cursor: not-allowed; }

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.8;
}
.footer-cookie-link:hover { opacity: 1; }

@media (max-width: 640px) {
  .cookie-consent__inner { padding: 20px 24px; }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__actions .btn { flex: 1 1 auto; }
  .cookie-modal__panel { padding: 26px; }
}
