@import url("https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Open+Sans:wght@400;600;700&family=Poppins:wght@600;700;800&display=swap");

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-border: #000000;
  --color-muted: #000000;
  --color-inverse: #ffffff;

  --bg: var(--color-bg);
  --paper: var(--color-surface);
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --accent: var(--color-text);
  --accent-dark: var(--color-text);
  --teal: var(--color-surface);
  --teal-deep: var(--color-text);
  --gold: var(--color-surface);
  --pink: var(--color-text);
  --blue: var(--color-surface);
  --footer: var(--color-surface);
  --line: var(--color-border);
  --radius: 6px;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  line-height: 1.45;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

main {
  overflow: hidden;
}

/* ───────── HEADER ───────── */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
}

.top-nav {
  width: min(1180px, 94vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 0.68rem 0;
  font-size: 0.96rem;
}

.top-nav-minimal {
  position: absolute;
  inset: 0;
  width: min(1180px, 94vw);
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  pointer-events: none;
}

.top-nav-minimal a,
.top-nav-minimal .cart-chip,
.top-nav-minimal .mobile-nav-menu {
  pointer-events: auto;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.back-home-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-home-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.cart-chip {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-chip span {
  color: var(--ink);
}

.mobile-nav-menu {
  display: none;
  position: relative;
}

.mobile-nav-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav-icon {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-icon::before,
.mobile-nav-icon::after {
  content: "";
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-icon::before {
  position: absolute;
  top: -0.34rem;
}

.mobile-nav-icon::after {
  position: absolute;
  top: 0.34rem;
}

.mobile-nav-menu[open] .mobile-nav-icon {
  background: transparent;
}

.mobile-nav-menu[open] .mobile-nav-icon::before {
  transform: translateY(0.34rem) rotate(45deg);
}

.mobile-nav-menu[open] .mobile-nav-icon::after {
  transform: translateY(-0.34rem) rotate(-45deg);
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 25;
}

.mobile-nav-panel a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.38rem 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  background: var(--paper);
}

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.42rem 0 0.55rem;
  text-decoration: none;
}

.brand-logo {
  width: 120px;
  height: auto;
  max-width: 88vw;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  display: block;
  background: transparent;
  box-shadow: none;
}

.gold-divider {
  height: 18px;
  background: var(--gold);
}

.flash {
  width: min(900px, 92vw);
  margin: 1rem auto;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.flash.alert {
  background: var(--paper);
  border-color: var(--line);
}

/* ───────── PANELS ───────── */

.panel {
  position: relative;
  padding: clamp(2.8rem, 6vw, 5.8rem) 0;
}

.panel-neutral {
  background: var(--bg);
}

.panel-aqua {
  background: var(--teal);
  overflow: visible;
}

.panel-grid {
  position: relative;
  z-index: 1;
  width: min(1140px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.panel-grid-tight {
  align-items: start;
}

/* ───────── STORY SECTION ───────── */

.photo-stack {
  position: relative;
  text-align: center;
  padding-top: 2rem;
}

.paint-stroke {
  position: absolute;
  border-radius: 30px;
  filter: saturate(1.07);
}

.paint-yellow {
  width: min(170px, 42vw);
  height: 42px;
  background: var(--gold);
  top: 0;
  left: clamp(0%, 10%, 16%);
  transform: rotate(-20deg);
}

.paint-orange {
  width: min(190px, 46vw);
  height: 34px;
  background: var(--accent);
  bottom: 88px;
  right: clamp(0%, 5%, 10%);
  transform: rotate(-16deg);
}

.photo-main,
.photo-secondary,
.catalog-image,
.product-hero-image,
.thanks-photo {
  width: 100%;
  display: block;
  border-radius: 5px;
}

.photo-main {
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.photo-main-story {
  max-width: 480px;
  aspect-ratio: auto;
  object-fit: cover;
}

.photo-main-square {
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-main-intro {
  max-width: 480px;
  object-fit: contain;
  box-shadow: none;
}

.photo-secondary {
  margin-top: 0;
  max-width: 100%;
  width: 100%;
  object-fit: cover;
  border: none;
  border-radius: 5px;
}

/* Sister photo wrap */
.sister-photo-wrap {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 5px;
  overflow: hidden;
}

.sister-label {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
  transform: rotate(-3deg);
}

.photo-sister-full {
  width: 100%;
  display: block;
  border-radius: 5px;
}

.story-copy p {
  margin: 0 0 0.95rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.54;
  max-width: 62ch;
}

.script-heading {
  width: min(220px, 68%);
  margin-bottom: 1rem;
}

.script-stuff-makes {
  width: min(360px, 85%);
  margin-bottom: 1.2rem;
}

.script-logo {
  width: min(280px, 74%);
}

.script-intro {
  width: min(440px, 95%);
  margin-bottom: 1rem;
}

/* ───────── BUTTONS ───────── */

.shop-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 9px;
  padding: 0.64rem 1.28rem;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, box-shadow 0.2s ease;
}

.shop-pill:hover,
.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 107, 46, 0.3);
}

.shop-pill:active,
.button:active {
  transform: translateY(0) scale(0.98);
}

.shop-pill.large,
.button.full {
  width: 100%;
  margin-top: 1.2rem;
}

.etsy-pill {
  background: var(--pink);
  margin-top: 1.35rem;
}

.etsy-pill:hover {
  background: #b51376;
  box-shadow: 0 6px 20px rgba(214, 26, 141, 0.3);
}

/* ───────── IMAGINE SECTION ───────── */

.imagine-section {
  position: relative;
  background: linear-gradient(165deg, #0f7c97 0%, #15a88a 40%, #bfe3df 100%);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: visible;
}

.imagine-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.imagine-hero {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  margin: 0 auto;
}

.imagine-badge-float {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.imagine-badge {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  border: 7px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-family: "Baloo 2", cursive;
  font-size: 1.65rem;
  font-weight: 700;
  box-shadow:
    0 12px 35px rgba(214, 26, 141, 0.35),
    0 0 0 6px rgba(15, 124, 151, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.imagine-badge:hover {
  transform: scale(1.08) rotate(-5deg);
}

.imagine-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(4rem, 6vw, 5rem);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.imagine-card-visual {
  position: relative;
  width: 160px;
  flex-shrink: 0;
}

.imagine-art-img {
  width: 140px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  margin: 10px;
}

.imagine-art-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px dashed rgba(15, 124, 151, 0.25);
}

.imagine-card-body p {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.65;
  color: #2a2a2a;
}

.imagine-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem) !important;
  color: #0f7c97 !important;
  border-left: 3px solid var(--pink);
  padding-left: 1rem;
}

.imagine-cta-row {
  padding-top: 0.5rem;
}

.imagine-shop-pill {
  background: var(--teal-deep);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.imagine-shop-pill:hover {
  background: #0a6579;
  box-shadow: 0 8px 24px rgba(15, 124, 151, 0.35);
}

.imagine-callout {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.imagine-callout-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: "Baloo 2", cursive;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(214, 26, 141, 0.3);
}

.imagine-callout p {
  margin: 0;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.5;
  color: #fff;
  font-weight: 600;
}

.imagine-callout em {
  font-style: italic;
}

/* ───────── INTRO PANEL ───────── */

.intro-grid-reversed {
  grid-template-columns: 1fr 1fr;
}

.intro-photo-frame {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 20px;
}

.intro-photo-frame::before,
.intro-photo-frame::after {
  content: "";
  position: absolute;
  border: 8px solid;
  pointer-events: none;
  border-radius: 4px;
}

.intro-photo-frame::before {
  border-color: var(--gold);
  inset: 0 30px 30px 0;
}

.intro-photo-frame::after {
  border-color: var(--accent);
  inset: 20px 0 0 20px;
}

.intro-photo-frame .photo-main {
  position: relative;
  z-index: 1;
}

.intro-copy {
  padding: 1rem 0;
}

.intro-copy p {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  text-align: justify;
}

/* ───────── PRODUCT CATALOG ───────── */

.panel-gold {
  background: var(--gold);
  padding: 2.2rem 0 4rem;
}

.product-catalog {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.catalog-header {
  text-align: center;
}

.catalog-header-left {
  text-align: center;
  padding-left: 0;
}

.catalog-script {
  width: min(260px, 64vw);
}

.catalog-header h1,
.catalog-header h2,
.product-content-card h1,
.checkout-title,
.cart-title,
.confirmation-title {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  color: var(--accent-dark);
}

.catalog-grid {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.catalog-support-copy {
  max-width: 760px;
  margin: 0.4rem auto 0;
  padding-top: 0.2rem;
}

.catalog-support-divider {
  width: min(240px, 42%);
  height: 1px;
  margin: 0 auto 0.75rem;
  background: var(--line);
}

.catalog-support-message {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.catalog-tools {
  margin-top: 1.1rem;
}

.catalog-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(160px, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.catalog-filter-field label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-filter-field input,
.catalog-filter-field select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 0.75rem;
  background: var(--paper);
  font: inherit;
}

.catalog-type-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.catalog-type-chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 0.52rem 0.95rem;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.catalog-type-chip.is-active {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.catalog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid #ececec;
}

.catalog-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
}

.catalog-body h2 {
  margin: 0;
  font-size: 1.17rem;
  line-height: 1.3;
  min-height: 2.6em;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-type {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.catalog-price {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
}

.catalog-cta {
  display: inline-flex;
  margin-top: auto;
  width: 100%;
  justify-content: center;
  align-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  padding: 0.64rem 1.28rem;
  font-weight: 700;
  font-size: 0.97rem;
}

.catalog-empty {
  margin-top: 1.2rem;
  font-weight: 700;
}

.catalog-body .shop-pill,
.catalog-body .catalog-cta {
  margin-top: auto;
  width: 100%;
}

/* ───────── THANKS STRIP ───────── */

.thanks-strip {
  background: var(--blue);
  padding: clamp(2.3rem, 5vw, 4rem) 0;
  margin-top: 0;
}

.thanks-grid {
  width: min(1140px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: stretch;
}

.thanks-photo-card {
  background: transparent;
  border-radius: 4px;
  padding: 0;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-note-card {
  background: #ededeb;
  border-radius: 4px;
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.thanks-photo {
  object-fit: cover;
  aspect-ratio: 5 / 3;
}

.thanks-photo-paintbrush {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.thanks-gif {
  width: min(200px, 50%);
  margin-bottom: 1rem;
  border-radius: 4px;
}

.thanks-note-card p {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.6;
  max-width: 52ch;
}

/* ───────── FOOTER ───────── */

.footer-brush {
  height: clamp(90px, 17vw, 180px);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--footer) 100%);
}

.footer-brush-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.site-footer {
  background: var(--footer);
  color: var(--cgc-primary);
  padding: 1.8rem 0 1.2rem;
  position: relative;
  overflow: hidden;
}

.site-footer-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.footer-back-to-top {
  display: block;
  text-align: center;
  margin: 0 auto 1.65rem;
  text-decoration: none;
  font-size: 16px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr;
  gap: 1.6rem;
}

.footer-logo-link {
  display: inline-flex;
}

.footer-logo {
  width: min(260px, 70vw);
  object-fit: contain;
}

.footer-col h3 {
  margin: 0 0 0.65rem;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.34rem 0;
  font-size: 16px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-col a:hover {
  color: var(--cgc-primary);
}

.footer-social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
}

.footer-social-link img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.92;
  transition: opacity 0.18s ease;
}

.footer-social-link:hover img {
  opacity: 0.65;
}

.footer-community-col h3 {
  margin-bottom: 0.8rem;
}

.footer-community-col .footer-social-link {
  margin: 0.62rem 0;
  gap: 0.92rem;
  font-size: 16px;
  line-height: 1.1;
  display: flex !important;
  align-items: center;
  width: fit-content;
}

.footer-community-col .footer-social-link img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 16px;
}

/* ───────── ANIMATIONS ───────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(-20deg); }
  50% { transform: translateY(-8px) rotate(-18deg); }
}

@keyframes floatBobAlt {
  0%, 100% { transform: translateY(0) rotate(-16deg); }
  50% { transform: translateY(-6px) rotate(-14deg); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.08); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

.anim-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-delay-1 {
  animation-delay: 0.15s;
}

.anim-delay-2 {
  animation-delay: 0.3s;
}

.anim-float {
  animation: floatBob 3s ease-in-out infinite;
}

.anim-float-alt {
  animation: floatBobAlt 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.anim-bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.anim-wobble {
  animation: wobble 2.5s ease-in-out infinite;
  animation-delay: 1s;
}

.anim-pop {
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.4s;
}

/* ───────── PRODUCT DETAIL PAGE ───────── */

.pdp-wrap {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Image column */
.pdp-image-col {
  position: sticky;
  top: 80px;
}

.pdp-image-outer {
  position: relative;
  padding: 0;
}

.pdp-frame-accent {
  position: absolute;
  width: 65%;
  height: 65%;
  border: 4px solid;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.pdp-frame-accent-tl {
  border-color: var(--gold);
  top: 0;
  left: 0;
}

.pdp-frame-accent-br {
  border-color: var(--accent);
  bottom: 0;
  right: 0;
}

.pdp-image-frame {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.pdp-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Details column */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.pdp-breadcrumb a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.pdp-breadcrumb a:hover {
  color: var(--accent);
}

.pdp-breadcrumb-sep {
  opacity: 0.4;
}

.pdp-breadcrumb span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.pdp-title {
  margin: 0 0 0.5rem;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
}

.pdp-price {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.pdp-description {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.pdp-description p {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444;
}

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

.pdp-description ul,
.pdp-description ol {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.pdp-description li {
  margin-bottom: 0.38rem;
}

/* Form card */
.pdp-form-card {
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.2rem, 2vw, 1.8rem);
}

.pdp-field {
  margin-bottom: 1.2rem;
}

.pdp-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.pdp-label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.pdp-select-wrap {
  position: relative;
}

.pdp-select {
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff;
  border: 1.5px solid #d4d4d0;
  border-radius: 10px;
  padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-select option {
  font-family: "Open Sans", sans-serif;
  color: var(--ink);
}

.pdp-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 46, 0.12);
}

.pdp-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #888;
  pointer-events: none;
}

/* Quantity control */
.pdp-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d4d4d0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pdp-qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.pdp-qty-btn:hover {
  background: var(--accent);
  color: #fff;
}

.pdp-qty-input {
  width: 52px;
  height: 44px;
  border: none;
  border-left: 1px solid #e8e8e5;
  border-right: 1px solid #e8e8e5;
  border-radius: 0;
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
}

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

/* Add to cart button */
.pdp-add-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, box-shadow 0.2s ease;
}

.pdp-add-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 46, 0.3);
}

.pdp-add-btn:active {
  transform: translateY(0) scale(0.98);
}

.pdp-add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pdp-selection-note {
  margin: -0.2rem 0 1rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3f566e;
}

.pdp-cart-link {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.pdp-cart-link:hover {
  color: var(--accent);
}

/* Legacy product page compat */
.product-page-wrap {
  width: min(1140px, 92vw);
  margin: 2.2rem auto 4rem;
}

.cart-page,
.checkout-page,
.confirmation-wrap {
  width: min(1140px, 92vw);
  margin: 2.2rem auto 4rem;
}

.cart-item,
.checkout-main-card,
.summary-block,
.totals,
.confirmation-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

label {
  display: block;
  margin-top: 0.95rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid #cfd4db;
  border-radius: 9px;
  padding: 0.68rem;
  margin-top: 0.35rem;
  font: inherit;
}

.ghost-link {
  color: #3568b8;
  text-decoration: underline;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* ───────── CART / CHECKOUT ───────── */

.cart-page,
.checkout-page,
.confirmation-wrap {
  display: grid;
  gap: 1.2rem;
}

.checkout-header {
  background: linear-gradient(145deg, #f5cc5f 0%, #ffeec0 44%, #ffffff 100%);
  border: 1px solid #e6d39b;
  border-radius: var(--radius);
  padding: clamp(0.75rem, 1.5vw, 1.05rem);
}

.cart-title,
.checkout-title,
.confirmation-title {
  color: #141414;
}

.checkout-title {
  font-size: clamp(1.7rem, 2.35vw, 2.3rem);
  line-height: 1.04;
}

.checkout-subtitle {
  margin: 0.2rem 0 0;
  color: #294766;
  font-weight: 700;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
}

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

.cart-gamification {
  border: 1px solid var(--cgc-border);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.82rem 0.9rem;
}

.cart-gamification-message {
  margin: 0;
  color: var(--cgc-primary);
  font-size: 0.96rem;
  line-height: 1.4;
}

.cart-gamification-bar {
  margin-top: 0.62rem;
  height: 11px;
  border-radius: 4px;
  background: var(--gold);
  overflow: hidden;
}

.cart-gamification-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--cgc-accent);
  transition: width 0.22s ease;
}

.cart-gamification-milestones {
  margin-top: 0.64rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cart-gamification-milestone {
  flex: 1 1 160px;
  min-width: 0;
  border: 1px dashed var(--cgc-border);
  border-radius: 10px;
  padding: 0.3rem 0.5rem;
  background: var(--paper);
  display: grid;
  gap: 0.08rem;
}

.cart-gamification-milestone-threshold {
  color: var(--cgc-primary);
  font-size: 0.8rem;
}

.cart-gamification-milestone strong {
  color: var(--cgc-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-gamification-milestone.is-unlocked {
  border-style: solid;
  border-color: var(--cgc-primary);
  background: var(--cgc-footer);
}

.cart-gamification-milestone.is-next {
  border-style: solid;
  border-color: var(--cgc-accent);
  background: var(--gold);
}

.cart-list,
.summary-item,
.checkout-grid,
.product-layout,
.grid {
  all: unset;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
}

.cart-item-body {
  min-width: 0;
}

.cart-thumb-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.cart-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e2df;
}

.cart-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.32;
}

.cart-item p {
  margin: 0.16rem 0;
  font-size: 0.95rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.variant-select-groups {
  margin: 0.2rem 0 0.12rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.14rem;
  align-items: start;
  justify-items: start;
}

.variant-select-form {
  margin: 0;
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.2rem;
  min-width: 0;
  width: min(100%, 21rem);
}

.variant-select-label {
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #445a74;
  white-space: nowrap;
}

.variant-select-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.variant-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.05rem;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(68, 90, 116, 0.55);
  font-size: 0.68rem;
  line-height: 1;
  pointer-events: none;
}

.variant-select-input {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0.8rem 0 0.08rem;
  border: 0;
  border-bottom: 1px solid rgba(68, 90, 116, 0.28);
  border-radius: 0;
  background: transparent;
  color: #2f3f50;
  font-family: "Open Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: default;
  text-overflow: ellipsis;
}

.variant-select-input:focus {
  outline: none;
  border-bottom-color: rgba(68, 90, 116, 0.58);
}

.variant-select-input:hover {
  border-bottom-color: rgba(68, 90, 116, 0.42);
}

.line-price-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.3rem;
  padding: 0.14rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--cgc-primary);
  font-family: "Open Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.inline-form {
  display: grid;
  gap: 0.4rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-self: end;
  margin-left: auto;
}

.cart-item-controls .inline-form {
  display: flex;
  margin: 0;
}

.cart-item-controls .inline-form button,
.cart-item-controls .link-button {
  white-space: nowrap;
}

.cart-item-controls .link-button {
  justify-self: auto;
}

.cart-qty-form {
  margin: 0;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 34px 52px 34px;
  align-items: center;
  border: 1px solid #cfd4db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.inline-form .qty-stepper-btn {
  border: 0;
  background: #f2f4f9;
  color: #1f1f1f;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.inline-form .qty-stepper-btn:hover {
  background: #e6e9f0;
}

.qty-stepper-input {
  margin: 0;
  border: 0;
  border-left: 1px solid #dde3eb;
  border-right: 1px solid #dde3eb;
  border-radius: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0;
  height: 34px;
  min-width: 0;
  background: #fff;
}

.qty-stepper-input[readonly] {
  cursor: default;
}

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

.qty-stepper-input[type="number"] {
  -moz-appearance: textfield;
}

.inline-form input {
  margin-top: 0;
}

.inline-form button,
.link-button {
  background: #f2f4f9;
  border: 1px solid #cfd4db;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.inline-form button:hover {
  background: #e6e9f0;
}

.button_to {
  margin: 0;
}

.link-button {
  color: #893030;
  background: #fff1f1;
  border-color: #f1c9c9;
}

.link-button:hover {
  background: #ffe4e4;
}

.totals {
  padding: 0.95rem 1rem;
}

.totals p {
  margin: 0.28rem 0;
  font-size: 1rem;
}

.cart-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cart-actions .button.button-continue {
  background: var(--gold) !important;
  color: var(--cgc-primary) !important;
  border: 1px solid var(--cgc-border) !important;
}

.cart-actions .button.button-continue:hover {
  background: var(--paper) !important;
  color: var(--cgc-primary) !important;
}

.cart-actions .button.button-checkout {
  background: var(--cgc-accent) !important;
  color: #fff !important;
  border: 0 !important;
}

.cart-order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.74rem 0.82rem;
}

.cart-order-summary h2 {
  margin: 0 0 0.48rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.cart-order-summary p {
  margin: 0.24rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.93rem;
}

.cart-order-summary-total {
  margin-top: 0.35rem !important;
  padding-top: 0.4rem;
  border-top: 1px dashed #d5dde8;
  font-weight: 700;
}

.cart-order-summary-note {
  display: block !important;
  margin-top: 0.42rem !important;
  color: #4a617e;
  font-size: 0.8rem !important;
}

.cart-suggestions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.74rem;
  background: var(--paper);
}

.cart-suggestions h2 {
  margin: 0 0 0.52rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.cart-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.cart-suggestion-card {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 0.45rem;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.48rem;
  align-items: start;
}

.cart-suggestion-image-link {
  display: block;
}

.cart-suggestion-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #e2e2df;
  border-radius: 8px;
}

.cart-suggestion-body {
  min-width: 0;
}

.cart-suggestion-type {
  margin: 0 0 0.12rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #355a89;
  font-weight: 700;
}

.cart-suggestion-body h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.24;
}

.cart-suggestion-body h3 a {
  text-decoration: none;
}

.cart-suggestion-price {
  margin: 0.16rem 0 0;
  font-size: 0.84rem;
}

.cart-suggestion-add {
  margin-top: 0.36rem;
  width: 100%;
  padding: 0.4rem 0.58rem !important;
  min-height: 32px;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
}

.store-unavailable {
  width: min(820px, 92vw);
  margin: 3.5rem auto 5rem;
}

.store-unavailable-card {
  border-radius: var(--radius);
  border: 1px solid #f2c6c6;
  background: linear-gradient(145deg, #fff2f2 0%, #ffffff 70%);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: 0 18px 34px rgba(96, 13, 13, 0.08);
}

.store-unavailable-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8d3c3c;
  font-weight: 800;
}

.store-unavailable-card h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.store-unavailable-card p {
  margin: 0.7rem 0 0;
  color: #5b3f3f;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: start;
}

.checkout-main-card {
  overflow: hidden;
}

#checkout-form {
  padding: 1rem 1rem 1.15rem;
}

.checkout-page #checkout-form h3,
.checkout-page .summary h3 {
  margin: 0 0 0.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#checkout-form h3 + label {
  margin-top: 0;
}

#checkout-form label {
  margin-top: 0.72rem;
  font-size: 0.93rem;
  font-weight: 700;
}

#checkout-form input,
#checkout-form select {
  padding: 0.58rem 0.64rem;
  margin-top: 0.3rem;
  font-size: 0.96rem;
}

.checkout-section + .checkout-section {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #d7dfeb;
}

.checkout-section-payment {
  display: grid;
  gap: 0.45rem;
}

.checkout-section-payment > * {
  margin-top: 0;
}

.checkout-checkbox {
  margin-top: 0.22rem;
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
}

.checkout-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0;
  padding: 0;
  accent-color: #0a4f8e;
}

#billing-details-fields {
  margin-top: 0.55rem;
}

.checkout-payment-note {
  margin: 0;
  color: #415f7f;
  font-size: 0.9rem;
}

.checkout-payment-note-compact {
  font-size: 0.84rem;
  color: #5d7390;
}

.checkout-acknowledgement {
  margin-top: 0.05rem;
  line-height: 1.35;
}

.checkout-disclaimer {
  margin: 0;
  color: #2f3f50;
  line-height: 1.5;
  font-size: 0.94rem;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.country-combobox {
  position: relative;
}

.country-combobox-input {
  padding-right: 2.2rem;
}

.country-combobox-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #355a89;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.country-combobox-toggle:hover {
  color: #0a4f8e;
}

.country-combobox-toggle:focus-visible {
  outline: 2px solid #0a4f8e;
  border-radius: 6px;
}

.checkout-summary {
  display: grid;
  gap: 0.75rem;
  align-self: start;
  position: sticky;
  top: calc(76px + 0.55rem);
  z-index: 14;
}

.summary-block {
  padding: 0.95rem;
}

.summary-kicker {
  margin: -0.05rem 0 0.5rem;
  color: #355a89;
  font-weight: 700;
  font-size: 0.9rem;
}

.summary-accordion {
  padding: 0;
  overflow: hidden;
}

.summary-accordion-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.95rem;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.93rem;
  font-weight: 700;
}

.summary-accordion-toggle::-webkit-details-marker {
  display: none;
}

.summary-accordion-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.summary-accordion-label::after {
  content: "▾";
  font-size: 0.8rem;
  line-height: 1;
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.summary-accordion[open] .summary-accordion-label::after {
  transform: rotate(0deg);
}

.summary-accordion-total {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
}

.summary-accordion-content {
  padding: 0 0.95rem 0.9rem;
  border-top: 1px solid #dae2ea;
  display: grid;
  gap: 0.35rem;
}

#shipping-estimate-status {
  margin: 0.08rem 0 0.28rem;
  color: #2f3f50;
  font-size: 0.94rem;
}

.summary-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.65rem;
  align-items: start;
  margin: 0;
  padding: 0.62rem 0;
  border-top: 1px solid #e3e7ee;
}

.summary-item:first-of-type {
  padding-top: 0.45rem;
  border-top: 0;
}

.summary-item-body {
  min-width: 0;
}

.summary-item-body strong {
  display: block;
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.33;
}

.summary-item p {
  margin: 0.15rem 0;
  font-size: 0.93rem;
  line-height: 1.38;
}

.summary-item-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.summary-line-total {
  margin-top: 0.12rem;
}

.summary-item-form {
  margin-top: 0.34rem;
  display: block;
}

.summary-breakdown {
  margin-top: 0.24rem;
  padding-top: 0.7rem;
  border-top: 1px solid #dae2ea;
}

.summary-breakdown p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0.34rem 0;
  font-size: 0.98rem;
}

.summary-breakdown p span {
  color: #2e4660;
}

.summary-total {
  font-size: 1.05rem;
  padding-top: 0.45rem;
  margin-top: 0.48rem;
  border-top: 1px solid #dae2ea;
}

.card-element {
  margin-top: 0.1rem;
  padding: 0.7rem;
  border: 1px solid #ccd2dc;
  border-radius: 8px;
  background: #fff;
}

.checkout-alt-payments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  align-items: stretch;
}

.checkout-alt-payments.has-apple-pay {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.button.button-alt-payment {
  margin-top: 0 !important;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
}

.checkout-express-pay {
  min-height: 46px;
  border: 1px solid #ccd2dc;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  display: flex;
  align-items: center;
}

.checkout-express-pay[hidden] {
  display: none !important;
}

.checkout-express-pay-button {
  width: 100%;
  min-height: 38px;
}

.checkout-express-pay-button .__PrivateStripeElement {
  width: 100% !important;
}

.checkout-express-pay.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.checkout-section-payment #checkout-submit {
  margin-top: 0.15rem;
}

#checkout-error {
  margin: 0;
  min-height: 0;
}

#checkout-error:empty {
  display: none;
}

.error {
  color: #b40000;
  min-height: 1.2rem;
}

.confirmation-card {
  padding: 1.2rem;
}

.confirmation-meta {
  margin: 0;
  color: var(--muted);
}

.confirmation-whimsy {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #d9dfeb;
  border-radius: 12px;
  background: linear-gradient(130deg, #fdf7ff 0%, #eff9ff 100%);
}

.confirmation-whimsy-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #3a5d87;
}

.confirmation-whimsy-copy {
  margin: 0;
  color: #2e4460;
  font-weight: 600;
}

.confirmation-whimsy-image {
  width: 150px;
  max-width: 100%;
  justify-self: start;
}

.confirmation-top {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.confirmation-status,
.confirmation-total {
  margin: 0;
}

.confirmation-section {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #dde3eb;
}

.confirmation-section h2 {
  margin: 0 0 0.75rem;
  font-family: "Baloo 2", cursive;
  font-size: 1.35rem;
}

.confirmation-item-list {
  display: grid;
  gap: 0.8rem;
}

.confirmation-item-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #dce2ea;
  border-radius: 12px;
  background: #fff;
}

.confirmation-item-image {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e4e8ef;
}

.confirmation-item-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.confirmation-item-variant {
  margin: 0 0 0.35rem;
  color: #365678;
  font-size: 0.92rem;
  font-weight: 700;
}

.confirmation-item-meta {
  margin: 0.14rem 0;
  font-size: 0.9rem;
  color: #2f3f50;
}

.confirmation-item-price {
  text-align: right;
}

.confirmation-item-price p {
  margin: 0.22rem 0;
  font-size: 0.9rem;
}

.confirmation-item-price span {
  color: #52667a;
  margin-right: 0.4rem;
}

.confirmation-fulfillment-status,
.confirmation-fulfillment-note {
  margin: 0.2rem 0;
}

.confirmation-fulfillment-note {
  color: #34536f;
}

.confirmation-actions {
  margin-top: 1.2rem;
}

/* ───────── RESPONSIVE ───────── */

@media (max-width: 980px) {
  .panel-grid,
  .checkout-grid,
  .thanks-grid,
  .intro-grid-reversed {
    grid-template-columns: 1fr;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pdp-image-col {
    position: static;
  }

  .imagine-card {
    grid-template-columns: 1fr;
  }

  .imagine-card-visual {
    justify-self: center;
  }

  .imagine-callout {
    flex-direction: column;
    text-align: center;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .catalog-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-filter-search {
    grid-column: span 2;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
  }

  .cart-item-controls {
    grid-column: 2;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cart-item-controls .inline-form {
    justify-content: flex-start;
  }

  .summary-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .checkout-summary {
    grid-row: 1;
    top: 0.55rem;
  }

  .checkout-main-card {
    grid-row: 2;
  }

  .cart-suggestions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thanks-note-card {
    min-height: 220px;
  }

  .catalog-header-left {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-col {
    grid-column: span 2;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-payments {
    justify-content: flex-start;
  }

  .checkout-main-card,
  .summary-block {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  }

  .confirmation-item-card {
    grid-template-columns: 72px 1fr;
    gap: 0.7rem;
  }

  .confirmation-whimsy {
    grid-template-columns: 112px 1fr;
  }

  .confirmation-whimsy-image {
    width: 112px;
  }

  .confirmation-item-image {
    width: 72px;
    height: 72px;
  }

  .confirmation-item-price {
    grid-column: 1 / -1;
    text-align: left;
    border-top: 1px dashed #dce2ea;
    padding-top: 0.45rem;
    margin-top: 0.2rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-nav-minimal {
    position: absolute;
    inset: 0;
    width: min(94vw, 1180px);
    margin: 0 auto;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 0.7rem;
  }

  .top-nav-left,
  .top-nav-minimal > .cart-chip {
    display: none;
  }

  .mobile-nav-menu {
    display: block;
    margin-left: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .top-nav-left {
    gap: 0.5rem;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }

  #checkout-form {
    padding: 0.88rem 0.88rem 1rem;
  }

  .checkout-page #checkout-form h3,
  .checkout-page .summary h3 {
    font-size: 1rem;
    letter-spacing: 0.035em;
  }

  #checkout-form label {
    font-size: 0.9rem;
  }

  #checkout-form input,
  #checkout-form select {
    padding: 0.54rem 0.6rem;
    font-size: 0.94rem;
  }

  .checkout-section + .checkout-section {
    margin-top: 0.78rem;
    padding-top: 0.76rem;
  }

  .checkout-checkbox,
  .checkout-payment-note,
  .checkout-disclaimer {
    font-size: 0.9rem;
  }

  .summary-block {
    padding: 0.82rem;
  }

  .summary-accordion {
    padding: 0;
  }

  .summary-accordion-toggle {
    padding: 0.7rem 0.82rem;
    font-size: 0.89rem;
  }

  .summary-accordion-content {
    padding: 0 0.82rem 0.82rem;
  }

  .checkout-summary {
    top: 0.4rem;
  }

  .summary-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.68rem 0;
    align-items: start;
    text-align: left;
    justify-items: stretch;
  }

  .summary-item .cart-thumb {
    width: 64px;
  }

  .summary-item-body {
    text-align: left;
  }

  .summary-item-form {
    margin-top: 0.25rem;
  }

  .summary-item-right {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .summary-breakdown p {
    font-size: 0.94rem;
  }

  .summary-total {
    font-size: 1rem;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    text-align: left;
    justify-items: stretch;
    gap: 0.62rem;
    padding: 0.76rem;
  }

  .cart-item .cart-thumb {
    width: 76px;
  }

  .cart-item-body {
    text-align: left;
  }

  .cart-item-controls {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .cart-actions {
    justify-content: center;
    gap: 0.6rem;
  }

  .cart-actions .button {
    width: min(100%, 340px);
    margin-top: 0.7rem;
  }

  .cart-suggestions-grid {
    grid-template-columns: 1fr;
  }

  .cart-suggestion-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 0.42rem;
  }

  .cart-suggestion-thumb {
    width: 64px;
    height: 64px;
  }

  .qty-row {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-body h2 {
    min-height: 0;
  }

  .catalog-filter-form {
    grid-template-columns: 1fr;
  }

  .catalog-filter-search {
    grid-column: span 1;
  }

  .thanks-note-card {
    padding-bottom: 2rem;
  }

  .thanks-gif {
    width: 146px;
  }

  .imagine-badge {
    width: 100px;
    height: 100px;
    font-size: 1.3rem;
    border-width: 5px;
  }

  .imagine-badge-float {
    top: -2.5rem;
  }

  .imagine-art-img {
    width: 110px;
  }

  .imagine-card-visual {
    width: 130px;
  }

  .pdp-frame-accent {
    display: none;
  }

  .pdp-title {
    font-size: 1.8rem;
  }

  .pdp-option-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ───────── REDUCED MOTION ───────── */

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-float,
  .anim-float-alt,
  .anim-bounce-in,
  .anim-wobble,
  .anim-pop {
    animation: none;
  }
  
  .shop-pill,
  .button,
  .catalog-card,
  .cart-chip,
  .social-links a,
  .imagine-badge {
    transition: none;
  }
}

/* ───────── ADMIN ───────── */

.admin-body {
  --adm-sidebar-bg: #1e2536;
  --adm-sidebar-text: #9aa5b4;
  --adm-sidebar-text-active: #fff;
  --adm-accent: #6366f1;
  --adm-main-bg: #f0f2f8;
  --adm-card-bg: #fff;
  --adm-border: #e2e8f0;
  --adm-text: #1a2235;
  --adm-muted: #64748b;
  background: var(--adm-main-bg);
  font-family: "Nunito", sans-serif;
  color: var(--adm-text);
  margin: 0;
}

/* ── Shell & Sidebar Layout ── */

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--adm-sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-body .admin-sidebar {
  color: var(--adm-sidebar-text);
}

.admin-sidebar-header {
  padding: 1.1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-body .admin-brand-link {
  color: var(--adm-sidebar-text-active);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.admin-sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
}

.admin-nav-section-label {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adm-sidebar-text);
  opacity: 0.6;
}

.admin-nav-category-group {
  margin: 0;
}

.admin-nav-category-group > summary {
  list-style: none;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--adm-sidebar-text);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-nav-category-group > summary::-webkit-details-marker {
  display: none;
}

.admin-nav-category-group > summary::before {
  content: "▸";
  font-size: 0.65rem;
  transition: transform 0.15s;
  display: inline-block;
}

.admin-nav-category-group[open] > summary::before {
  transform: rotate(90deg);
}

.admin-nav-category-group > summary:hover {
  color: var(--adm-sidebar-text-active);
}

.admin-nav-category-list {
  list-style: none;
  padding: 0 0 0.25rem;
  margin: 0;
}

.admin-nav-product-item {
  display: block;
  padding: 0.3rem 1rem 0.3rem 1.75rem;
  font-size: 0.82rem;
  color: var(--adm-sidebar-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 2px solid transparent;
}

.admin-nav-product-item:hover {
  color: var(--adm-sidebar-text-active);
  background: rgba(255,255,255,0.05);
}

.admin-nav-product-item.is-active {
  color: var(--adm-sidebar-text-active);
  background: rgba(99, 102, 241, 0.15);
  border-right-color: var(--adm-accent);
}

.admin-nav-link {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--adm-sidebar-text);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-right: 2px solid transparent;
}

.admin-nav-link:hover {
  color: var(--adm-sidebar-text-active);
  background: rgba(255,255,255,0.05);
}

.admin-nav-link.is-active {
  color: var(--adm-sidebar-text-active);
  background: rgba(99, 102, 241, 0.15);
  border-right-color: var(--adm-accent);
}

.admin-sidebar-footer {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.admin-logout-link {
  color: var(--adm-sidebar-text);
}

.admin-logout-link:hover {
  color: var(--adm-sidebar-text-active);
}

/* ── Topbar (mobile only) ── */

.admin-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--adm-sidebar-bg);
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  z-index: 300;
}

.admin-topbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.admin-hamburger {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── Overlay ── */

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 190;
}

.admin-sidebar-overlay.is-visible {
  display: block;
}

/* ── Main Content ── */

.admin-main {
  margin-left: 240px;
  padding: 2rem;
  flex: 1;
  min-width: 0;
}

/* ── Cards ── */

.admin-body .admin-card,
.admin-body .admin-auth-card,
.admin-body .admin-detail-card,
.admin-body .admin-product-form,
.admin-body .admin-table-wrap {
  background: var(--adm-card-bg);
  color: var(--adm-text);
  border-radius: 12px;
  border: 1px solid var(--adm-border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-auth-card {
  width: min(450px, 94vw);
  margin: 3rem auto 0;
}

.admin-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--adm-text);
}

/* ── Page head ── */

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  flex-wrap: wrap;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.admin-inline-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Buttons ── */

.admin-body .admin-primary-link,
.admin-body .admin-submit {
  background: var(--adm-accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.admin-body .admin-primary-link:hover,
.admin-body .admin-submit:hover {
  background: #4f52d4;
}

.admin-body .admin-secondary-link {
  background: #fff;
  color: var(--adm-text);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-body .admin-secondary-link:hover {
  border-color: #94a3b8;
}

.admin-link-btn {
  background: none;
  border: 0;
  color: var(--adm-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  padding: 0;
  text-decoration: underline;
}

.admin-logout-btn {
  background: none;
  border: 0;
  color: var(--adm-sidebar-text);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

/* ── Badges ── */

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-badge.is-visible { background: #d1fae5; color: #065f46; }
.admin-badge.is-hidden  { background: #f1f5f9; color: #475569; }
.admin-badge.is-featured { background: #fef3c7; color: #92400e; }
.admin-badge.is-provider { background: #ede9fe; color: #5b21b6; }
.admin-badge.is-custom  { background: #e0f2fe; color: #0369a1; }

/* ── Product header ── */

.admin-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-product-header-left h1 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.admin-product-header-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ── Forms ── */

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-grid-2,
.admin-grid-4 {
  display: grid;
  gap: 0.75rem;
}

.admin-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-field-wide {
  grid-column: span 2;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid #c8d2e3;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
  color: var(--adm-text);
  box-sizing: border-box;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.admin-store-toggle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.9rem;
  background: #f8fbff;
}

.admin-store-toggle.is-disabled {
  border-color: #fecaca;
  background: #fff6f6;
}

.admin-store-toggle-copy h2 {
  margin: 0;
  font-size: 1.04rem;
}

.admin-store-toggle-copy p {
  margin: 0.35rem 0 0;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 700;
  margin-top: 0;
}

.admin-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.admin-switch-track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #9daac0;
  background: #dbe3f2;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.admin-switch-input:checked + .admin-switch-track {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
}

.admin-switch-input:checked + .admin-switch-track::after {
  transform: translateX(18px);
}

.admin-variants {
  display: grid;
  gap: 0.8rem;
}

.admin-variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-variant-row {
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
  background: #f9fbff;
}

.admin-remove-wrap {
  display: flex;
  align-items: end;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-errors {
  border: 1px solid #ffd3d3;
  background: #fff1f1;
  border-radius: 8px;
  padding: 0.8rem;
}

/* ── Tables ── */

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--adm-border);
  font-size: 0.88rem;
}

.admin-table th {
  font-weight: 700;
  color: var(--adm-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-actions-cell {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.admin-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--adm-text);
}

/* ── Images ── */

.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.admin-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--adm-border);
  border-radius: 8px;
}

.admin-image-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.admin-image-choice {
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 0.5rem;
  display: grid;
  gap: 0.4rem;
  background: #f9fbff;
}

.admin-image-choice input[type="radio"] {
  justify-self: start;
}

/* ── Color order ── */

.admin-color-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.admin-color-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #f9fbff;
}

.admin-color-order-actions {
  display: inline-flex;
  gap: 0.6rem;
}

.admin-muted-note {
  margin: 0;
  color: var(--adm-muted);
  font-size: 0.92rem;
}

.danger-link {
  color: #b42318;
}

/* ── Stats overview ── */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  background: var(--adm-card-bg);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.admin-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-muted);
  margin: 0 0 0.35rem;
}

.admin-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--adm-text);
  line-height: 1;
}

.admin-empty-state {
  background: var(--adm-card-bg);
  border: 1px dashed var(--adm-border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--adm-muted);
}

.admin-empty-state p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

/* ── PDP gallery (storefront) ── */

.pdp-gallery-strip {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.pdp-gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  cursor: pointer;
}

.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-gallery-thumb.is-active {
  border-color: #1f67c8;
  box-shadow: 0 0 0 2px rgba(31, 103, 200, 0.25);
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .admin-topbar {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

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

  .admin-main {
    margin-left: 0;
    padding: calc(52px + 1rem) 1rem 2rem;
  }

  .admin-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-grid-2,
  .admin-grid-4 {
    grid-template-columns: 1fr;
  }

  .admin-field-wide {
    grid-column: span 1;
  }

  .admin-store-toggle {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-product-header {
    flex-direction: column;
  }
}

/* ───────── MONOCHROME OVERRIDES ───────── */

.site-header,
.panel-gold,
.panel-aqua,
.panel-neutral,
.thanks-strip,
.checkout-main-card,
.summary-block,
.cart-item,
.confirmation-card,
.catalog-card {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.catalog-card,
.catalog-image,
.pdp-image-frame,
.pdp-form-card,
.checkout-main-card,
.summary-block,
.cart-item,
.confirmation-item-card,
.catalog-filter-field input,
.catalog-filter-field select,
.catalog-type-chip,
.cart-chip,
.flash,
.flash.alert {
  border-color: var(--line) !important;
}

.catalog-header h1,
.catalog-header h2,
.catalog-type,
.catalog-price,
.catalog-body h2,
.pdp-title,
.pdp-price,
.confirmation-title,
.confirmation-item-variant,
.confirmation-fulfillment-note,
.cart-price,
.danger-link {
  color: var(--ink) !important;
}

.button,
.shop-pill,
.catalog-cta,
.pdp-add-btn {
  background: var(--ink) !important;
  color: var(--color-inverse) !important;
  border: 1px solid var(--ink) !important;
}

.pdp-cart-link,
.catalog-type-chip {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}

.catalog-card:hover,
.cart-chip:hover,
.shop-pill:hover,
.button:hover {
  box-shadow: none !important;
}

/* Template-safe visual polish */

:root {
  --cgc-primary: var(--ink);
  --cgc-accent: var(--accent);
  --cgc-footer: var(--footer);
  --cgc-border: var(--line);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--cgc-primary);
}

.catalog-header h1,
.catalog-header h2,
.pdp-title,
.checkout-title,
.cart-title,
.confirmation-title {
  font-family: "Lora", serif !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cgc-primary) !important;
}

.confirmation-fulfillment h2 {
  font-family: "Lora", serif !important;
}

.catalog-header h2 {
  letter-spacing: 0.04em !important;
}

.catalog-intro-title {
  font-size: clamp(1.6rem, 2.25vw, 2.35rem) !important;
}

.catalog-filter-field label,
.catalog-type,
.pdp-label,
.cart-chip {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.catalog-filter-field input,
.catalog-filter-field select {
  background: var(--paper);
  border-color: var(--cgc-border) !important;
  color: var(--cgc-primary);
}

.catalog-filter-field input::placeholder {
  color: var(--muted);
}

.button,
.shop-pill,
.catalog-cta,
.pdp-add-btn {
  background: var(--cgc-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button:hover,
.shop-pill:hover,
.catalog-cta:hover,
.pdp-add-btn:hover {
  background: var(--accent-dark) !important;
}

.catalog-card,
.pdp-form-card,
.cart-item,
.checkout-main-card,
.summary-block,
.confirmation-card,
.totals {
  border-color: var(--cgc-border) !important;
}

.catalog-type-chip.is-active,
.pdp-gallery-thumb.is-active {
  border-color: var(--cgc-primary);
  color: var(--cgc-primary);
}

.catalog-price,
.pdp-price,
.checkout-subtitle,
.summary-kicker,
.confirmation-item-variant,
.confirmation-fulfillment-note {
  color: var(--cgc-primary) !important;
}

.site-footer {
  background: var(--cgc-footer) !important;
  color: var(--cgc-primary);
  border-top: 1px solid var(--cgc-border);
}

.checkout-section-payment .button.button-alt-payment {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 700;
}

.checkout-section-payment .button.button-klarna {
  background: #0f072b !important;
  color: #fff !important;
  border: 1px solid #0f072b !important;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.checkout-section-payment .button.button-klarna:hover {
  background: #190b44 !important;
}

.checkout-section-payment .button.button-klarna:disabled {
  opacity: 0.58 !important;
}

.klarna-lockup-prefix {
  font-size: 0.86rem;
  color: #fff;
}

.klarna-lockup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.12rem 0.62rem;
  border-radius: 4px;
  background: #ffb3d6;
  color: #0f072b;
  font-weight: 800;
  font-size: 0.83rem;
  line-height: 1;
}

/* Storefront edge treatment: sharp corners across customer-facing pages. */
body:not(.admin-body) .site-header,
body:not(.admin-body) .site-header *,
body:not(.admin-body) main,
body:not(.admin-body) main *,
body:not(.admin-body) .site-footer,
body:not(.admin-body) .site-footer * {
  border-radius: 0 !important;
}

#apple-pay-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

#apple-pay-hint[hidden] {
  display: none !important;
}

.apple-pay-hint-logo {
  height: 0.78rem;
  width: auto;
  opacity: 0.9;
}
