/* ================================================================
   TAMARA'S WOLLWUNDER  ·  Design v3  ·  Warm Modern Boutique
   Fonts: Instrument Serif (headings) + Manrope (body)
   ================================================================ */

:root {
  --cream:        #FAF8F5;
  --cream-2:      #F3ECE3;
  --white:        #FFFFFF;
  --brand:        #1B6259;
  --brand-dark:   #134740;
  --brand-light:  #24897F;
  --brand-bg:     rgba(27, 98, 89, 0.08);
  --accent:       #D2704A;
  --accent-bg:    rgba(210, 112, 74, 0.09);
  --text:         #1C1714;
  --text-soft:    #4A3E38;
  --text-muted:   #877269;
  --line:         rgba(26, 20, 16, 0.08);
  --line-strong:  rgba(26, 20, 16, 0.14);
  --danger:       #B03A3A;
  --ok:           #2A7A50;
  --shadow-xs:    0 1px 4px rgba(26, 20, 16, 0.06);
  --shadow-sm:    0 3px 12px rgba(26, 20, 16, 0.08);
  --shadow-md:    0 8px 28px rgba(26, 20, 16, 0.10);
  --shadow-lg:    0 20px 52px rgba(26, 20, 16, 0.13);
  --shadow-xl:    0 36px 72px rgba(26, 20, 16, 0.17);
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-full: 999px;
  --max-w:  1160px;
  --gap:    1.5rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 5% 0%, rgba(210, 112, 74, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 95% 100%, rgba(27, 98, 89, 0.09) 0%, transparent 60%);
}
.bg-blob { display: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: "Instrument Serif", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
p  { line-height: 1.65; color: var(--text-soft); }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────────── */
.layout {
  width: min(var(--max-w), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: var(--gap);
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.layout.shop-modern,
.layout.custom-modern { gap: 1.75rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 64px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(1rem, calc((100% - var(--max-w)) / 2 + 1rem));
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.75; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-badge { display: none; }
.brand-text { display: grid; gap: 0.05rem; }
.brand-text strong { font-size: 0.93rem; line-height: 1.2; letter-spacing: -0.2px; font-weight: 700; }
.brand-text small  { color: var(--text-muted); font-size: 0.7rem; font-weight: 500; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}
.top-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.18s, background 0.18s;
}
.top-nav a:hover  { color: var(--brand); background: var(--brand-bg); }
.top-nav a.active { color: var(--brand-dark); background: var(--brand-bg); }

.top-nav-language {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.top-nav-language select {
  min-height: 34px;
  padding: 0.3rem 2rem 0.3rem 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.82rem;
}

/* ── Cookie Banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 180;
  width: min(520px, calc(100% - 2rem));
  background: linear-gradient(145deg, #fff 0%, #f7efe6 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  animation: cookie-slide-in 280ms ease-out;
}

.cookie-banner__content {
  display: grid;
  gap: 0.35rem;
}

.cookie-banner__content strong {
  color: var(--brand-dark);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.cookie-banner__content p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@keyframes cookie-slide-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 180px;
  }
}

/* ── Kicker ─────────────────────────────────────────────────── */
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-bg);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  margin-bottom: 0.7rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--r-full);
  padding: 0.7rem 1.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(145deg, var(--brand-light) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27, 98, 89, 0.28);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27, 98, 89, 0.36); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--white);
  color: var(--brand-dark);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--cream-2); border-color: var(--brand); }

/* ── Cards / Panels ─────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.hero-card {
  background: linear-gradient(140deg, #FFFBF7 0%, #F4EDE3 55%, #EBF3F1 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
}
.panel-contrast {
  background: linear-gradient(135deg, rgba(27, 98, 89, 0.06), rgba(210, 112, 74, 0.05));
  border-color: rgba(27, 98, 89, 0.12);
}

/* ── Hero Actions ───────────────────────────────────────────── */
.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ucp-quick-access {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-support {
  background: linear-gradient(145deg, #ffffff 0%, #f7efe6 100%);
  color: var(--brand-dark);
  border: 1.5px solid rgba(27, 98, 89, 0.22);
  box-shadow: 0 8px 20px rgba(27, 98, 89, 0.13);
}

.btn-support:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 98, 89, 0.35);
}

.btn-ucp {
  background: linear-gradient(145deg, #1b6259 0%, #0f3f39 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px rgba(15, 63, 57, 0.34);
}

.btn-ucp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 63, 57, 0.38);
}

.ucp-btn-icon {
  width: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.ucp-badge {
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

/* ── Grids ──────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr;
}
.custom-offers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.custom-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Controls bar ───────────────────────────────────────────── */
.controls-modern {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.controls {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.controls > div {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  min-width: 130px;
}
label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Account / Portals ─────────────────────────────────────── */
.auth-panel {
  max-width: 760px;
  margin: 0 auto;
}

body.auth-pending .site-header,
body.auth-pending main,
body.auth-pending .site-footer {
  visibility: hidden;
}

.auth-gate-loader {
  display: none;
  width: min(520px, calc(100% - 2rem));
  margin: 26vh auto 0;
  text-align: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

body.auth-pending .auth-gate-loader {
  display: block;
}

.auth-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.login-page .layout {
  min-height: calc(100dvh - 64px - 140px);
  align-content: center;
}

.auth-copy {
  background: linear-gradient(145deg, #fffdf8 0%, #f0f7f5 55%, #f5ede6 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-md);
}

.auth-copy h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-bottom: 0.8rem;
  max-width: 14ch;
}

.auth-copy p {
  max-width: 46ch;
}

.auth-benefits {
  margin-top: 1.1rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.35rem;
}

.auth-panel-modern {
  padding: 1.5rem;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.auth-panel-modern .auth-tabs {
  margin-bottom: 1rem;
}

.auth-tabs {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.auth-tabs .btn.active {
  background: var(--brand-bg);
  border-color: var(--brand);
}

.auth-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.auth-form input {
  min-height: 46px;
  font-size: 0.95rem;
}

.auth-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.86rem 1rem;
  font-size: 0.95rem;
}

.account-head {
  display: grid;
  gap: 0.55rem;
}

.portal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.portal-table th {
  color: var(--text-muted);
  font-weight: 700;
}

.profile-form {
  margin-top: 0.45rem;
}

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

.profile-grid-2 > div {
  display: grid;
  gap: 0.35rem;
}

.checkout-steps-panel {
  display: grid;
  gap: 1rem;
}

.checkout-steps-indicator {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.checkout-steps-indicator li {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: 0.5rem 0.8rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--white);
  text-align: center;
}

.checkout-steps-indicator li.active {
  color: var(--brand-dark);
  border-color: rgba(27, 98, 89, 0.28);
  background: var(--brand-bg);
}

.checkout-step {
  display: grid;
  gap: 0.9rem;
}

.checkout-items-list {
  display: grid;
  gap: 0.55rem;
}

.checkout-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.checkout-item-actions .btn {
  padding: 0.36rem 0.72rem;
  font-size: 0.78rem;
}

.checkout-summary-box {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.status-pill {
  display: inline-block;
  border-radius: var(--r-full);
  padding: 0.2rem 0.56rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cream-2);
  color: var(--text-soft);
}

.status-paid,
.status-completed {
  background: rgba(42, 122, 80, 0.14);
  color: var(--ok);
}

.status-open,
.status-pending,
.status-authorized,
.status-shipping {
  background: rgba(27, 98, 89, 0.12);
  color: var(--brand-dark);
}

.status-canceled,
.status-failed,
.status-expired {
  background: rgba(176, 58, 58, 0.14);
  color: var(--danger);
}

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

.stat-card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.admin-actions-inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.admin-edit-stack {
  display: grid;
  gap: 0.45rem;
}

.admin-edit-stack input,
.admin-edit-stack select {
  font-size: 0.82rem;
}

.ucp-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.ucp-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 1rem;
  background: linear-gradient(155deg, #fffdf8 0%, #f0f7f5 100%);
}

.ucp-nav {
  display: grid;
  gap: 0.45rem;
}

.ucp-side-metrics {
  display: grid;
  gap: 0.4rem;
}

.ucp-metric-card {
  border: 1px solid rgba(11, 33, 30, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.55rem;
}

.ucp-metric-card p {
  margin: 0;
  font-size: 0.7rem;
  color: #5f746f;
}

.ucp-metric-card strong {
  display: block;
  margin-top: 0.16rem;
  color: #244b44;
  font-size: 1.05rem;
}

.ucp-nav-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--text-soft);
  border-radius: 10px;
  padding: 0.52rem 0.72rem;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.56rem;
}

.ucp-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 1.6rem;
  border-radius: 7px;
  border: 1px solid rgba(11, 33, 30, 0.14);
  background: #f6fbf9;
  color: #2d5851;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.ucp-nav-label {
  white-space: nowrap;
}

.ucp-nav-btn:hover {
  border-color: rgba(27, 98, 89, 0.28);
  color: var(--brand-dark);
}

.ucp-nav-btn.active {
  border-color: rgba(27, 98, 89, 0.42);
  background: linear-gradient(180deg, rgba(27, 98, 89, 0.14) 0%, rgba(27, 98, 89, 0.08) 100%);
  color: #1a4f49;
}

.ucp-content-stack {
  display: grid;
  gap: 1rem;
}

.ucp-shop-toolbar {
  display: grid;
  grid-template-columns: 1.2fr minmax(160px, 0.5fr) repeat(6, auto);
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  align-items: center;
}

.ucp-shop-toolbar input,
.ucp-shop-toolbar select {
  min-height: 42px;
}

.ucp-shop-toolbar-secondary {
  grid-template-columns: repeat(5, auto) minmax(140px, auto);
}

.ucp-pagination {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ucp-pagination span {
  font-size: 0.86rem;
  color: var(--text-soft);
  font-weight: 700;
}

.ucp-pagination label {
  margin-left: auto;
}

.ucp-pagination select {
  min-width: 88px;
}

.ucp-calendar-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.ucp-calendar-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ucp-calendar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0.7rem;
  align-items: start;
}

.ucp-calendar-daypanel {
  padding: 0.7rem;
}

.ucp-calendar-day-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ucp-calendar-day-list li {
  border: 1px solid rgba(11, 33, 30, 0.12);
  border-radius: 10px;
  padding: 0.45rem;
  background: #ffffff;
  font-size: 0.8rem;
  color: #32524d;
}

.ucp-calendar-day-list strong {
  display: block;
  color: #1f4640;
}

.ucp-calendar-head span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
}

.ucp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.ucp-cal-cell {
  min-height: 104px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.45rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

button.ucp-cal-cell {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

button.ucp-cal-cell:hover {
  border-color: rgba(27, 98, 89, 0.34);
}

.ucp-cal-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(27, 98, 89, 0.32);
}

.ucp-cal-cell.is-selected {
  border-color: rgba(27, 98, 89, 0.55);
  background: rgba(27, 98, 89, 0.1);
}

.ucp-cal-cell.muted {
  background: var(--cream-2);
}

.ucp-cal-cell.has-entry {
  border-color: rgba(27, 98, 89, 0.28);
  background: rgba(27, 98, 89, 0.05);
}

.ucp-cal-day {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}

.ucp-cal-marks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.ucp-cal-marks li {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--brand-dark);
  background: rgba(27, 98, 89, 0.1);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* UCP Program Shell */
.ucp-app {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0.9rem;
}

.ucp-window-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(11, 33, 30, 0.14);
  background: linear-gradient(180deg, #f8fbfa 0%, #eef4f2 100%);
  border-radius: 14px;
  padding: 0.58rem 0.9rem;
  justify-content: space-between;
}

.ucp-window-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ucp-window-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.ucp-window-bar p {
  margin: 0;
  font-size: 0.82rem;
  color: #33554f;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ucp-window-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.ucp-window-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1px solid rgba(11, 33, 30, 0.2);
  background: #dfe8e4;
}

.ucp-window-dots span:nth-child(1) { background: #f5a39a; }
.ucp-window-dots span:nth-child(2) { background: #f2d38f; }
.ucp-window-dots span:nth-child(3) { background: #9fd2b7; }

.ucp-pane {
  border: 1px solid rgba(11, 33, 30, 0.12);
  box-shadow: 0 10px 28px rgba(11, 33, 30, 0.09);
  background: linear-gradient(160deg, #f3f8f6 0%, #e8f0ed 100%);
  border-radius: 18px;
}

.ucp-sidebar h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}

.ucp-workspace {
  gap: 0.7rem;
}

.ucp-workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(11, 33, 30, 0.12);
  background: #f4f8f6;
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
}

.ucp-workspace-toolbar span {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(11, 33, 30, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #2f5750;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ucp-work-panel {
  border: 1px solid rgba(11, 33, 30, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(11, 33, 30, 0.08);
}

.ucp-work-panel .portal-title-row h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.3rem);
}

.ucp-orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.ucp-orders-layout.with-dock {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.ucp-orders-main {
  min-width: 0;
}

.ucp-order-dock {
  border: 1px solid rgba(11, 33, 30, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  box-shadow: 0 8px 20px rgba(11, 33, 30, 0.1);
  padding: 0.72rem;
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.ucp-order-dock .portal-title-row h2 {
  font-size: 1.1rem;
}

.ucp-commandbar {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 20, 18, 0.3);
  display: grid;
  place-items: start center;
  padding: 12vh 1rem 1rem;
}

.ucp-commandbar-panel {
  width: min(760px, 100%);
  border: 1px solid rgba(11, 33, 30, 0.2);
  border-radius: 14px;
  background: #f6fbf9;
  box-shadow: 0 20px 40px rgba(11, 33, 30, 0.28);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

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

.ucp-commandbar-head p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #33554f;
}

.ucp-command-results {
  display: grid;
  gap: 0.35rem;
  max-height: 44vh;
  overflow: auto;
}

.ucp-command-item {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(11, 33, 30, 0.14);
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.54rem 0.62rem;
  text-align: left;
  cursor: pointer;
}

.ucp-command-item:hover,
.ucp-command-item:focus-visible {
  border-color: rgba(27, 98, 89, 0.38);
  background: #eff7f4;
  outline: none;
}

.ucp-command-item strong {
  font-size: 0.86rem;
  color: #234942;
}

.ucp-command-item span {
  font-size: 0.75rem;
  color: #5a706b;
}

.ucp-empty-command {
  margin: 0;
  border: 1px dashed rgba(11, 33, 30, 0.2);
  border-radius: 10px;
  padding: 0.6rem;
  font-size: 0.78rem;
  color: #5c706c;
  background: #ffffff;
}

.ucp-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 19, 17, 0.42);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.ucp-confirm-panel {
  width: min(560px, 100%);
  border: 1px solid rgba(11, 33, 30, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  box-shadow: 0 24px 46px rgba(9, 27, 24, 0.3);
  padding: 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.ucp-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ucp-confirm-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.ucp-confirm-message {
  margin: 0;
  font-size: 0.9rem;
  color: #355a53;
  line-height: 1.5;
}

.ucp-app.ucp-sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.ucp-app.ucp-sidebar-collapsed .ucp-sidebar {
  padding: 0.9rem 0.55rem;
}

.ucp-app.ucp-sidebar-collapsed .ucp-sidebar .kicker,
.ucp-app.ucp-sidebar-collapsed .ucp-sidebar h1,
.ucp-app.ucp-sidebar-collapsed .ucp-sidebar p,
.ucp-app.ucp-sidebar-collapsed .ucp-quick-access,
.ucp-app.ucp-sidebar-collapsed .ucp-nav-label {
  display: none;
}

.ucp-app.ucp-sidebar-collapsed .ucp-nav-btn {
  justify-content: center;
  padding: 0.44rem;
}

.ucp-app .portal-table {
  min-width: 980px;
}

.ucp-app .portal-table th,
.ucp-app .portal-table td {
  font-size: 0.8rem;
  padding: 0.55rem 0.58rem;
}

.ucp-app .admin-actions-inline input,
.ucp-app .admin-actions-inline select,
.ucp-app .admin-actions-inline .btn {
  min-height: 38px;
  font-size: 0.8rem;
}

.ucp-app .admin-actions-inline {
  flex-wrap: wrap;
}

.ucp-app .btn {
  font-size: 0.8rem;
}

.ucp-app .status-pill {
  font-size: 0.68rem;
  padding: 0.16rem 0.46rem;
}

.ucp-inventory-stats {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 33, 30, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
}

.stock-pill.ok {
  background: rgba(42, 122, 80, 0.12);
  color: #1e5b3c;
}

.stock-pill.low {
  background: rgba(176, 58, 58, 0.14);
  color: #8f2e2e;
}

.ucp-product-title-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #244b44;
  cursor: pointer;
  text-align: left;
}

.ucp-product-title-btn:hover {
  text-decoration: underline;
}

.ucp-product-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ucp-product-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  min-height: 1.6rem;
  border: 1px solid rgba(11, 33, 30, 0.14);
  border-radius: 8px;
  background: #f4faf7;
  color: #2f5a53;
  font-size: 0.85rem;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.ucp-product-drag-handle:active {
  cursor: grabbing;
}

.ucp-size-fieldset {
  border: 1px solid rgba(11, 33, 30, 0.14);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ucp-size-fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.74rem;
  color: #5b726d;
  font-weight: 700;
}

.ucp-size-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.8rem;
  color: #2e5450;
  font-weight: 700;
}

.ucp-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(11, 33, 30, 0.14);
  border-radius: 10px;
  background: #f8fcfa;
}

.ucp-color-chip {
  border: 1px solid rgba(11, 33, 30, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #2e5450;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.72rem;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ucp-color-chip:hover {
  border-color: rgba(27, 98, 89, 0.42);
}

.ucp-color-chip.is-active {
  background: #1b6259;
  border-color: #1b6259;
  color: #ffffff;
}

.ucp-color-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ucp-color-actions input {
  flex: 1 1 220px;
}

/* Image preview grid */
.ucp-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.ucp-image-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream-2);
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
}

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

.ucp-image-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(26, 20, 16, 0.65);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}

.ucp-image-remove:hover {
  background: var(--danger);
}

.ucp-image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 20, 16, 0.55);
  color: #fff;
  font-size: 9px;
  text-align: center;
  padding: 2px 0 3px;
  letter-spacing: 0.02em;
}

.ucp-image-badge--new {
  background: rgba(27, 98, 89, 0.80);
}

.portal-table tr.product-editing-row {
  background: rgba(27, 98, 89, 0.08);
}

/* Dedicated fullscreen runtime for UCP page */
body.ucp-fullscreen {
  overflow-x: hidden;
  overflow-y: auto;
}

body.ucp-fullscreen .site-header,
body.ucp-fullscreen .site-footer,
body.ucp-fullscreen .bg-blob {
  display: none;
}

body.ucp-fullscreen .layout.ucp-app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem;
  min-height: 100dvh;
  gap: 0.75rem;
  grid-template-rows: auto minmax(0, 1fr);
}

body.ucp-fullscreen .ucp-window-bar {
  border-radius: 12px;
}

body.ucp-fullscreen .ucp-sidebar,
body.ucp-fullscreen .ucp-workspace,
body.ucp-fullscreen .ucp-work-panel {
  min-height: 0;
}

body.ucp-fullscreen .ucp-sidebar,
body.ucp-fullscreen .ucp-workspace {
  overflow: visible;
}

body.ucp-fullscreen .ucp-orders-main .table-wrap,
body.ucp-fullscreen [data-ucp-panel="calendar"] .table-wrap,
body.ucp-fullscreen [data-ucp-panel="shop"] .table-wrap {
  max-height: 56dvh;
  overflow: auto;
}

body.ucp-fullscreen [data-ucp-panel="orders"] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

body.ucp-fullscreen .ucp-orders-layout {
  min-height: 0;
  height: 100%;
}

body.ucp-fullscreen .ucp-orders-main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

body.ucp-fullscreen .ucp-orders-main .table-wrap {
  max-height: none;
  height: 100%;
}

body.ucp-fullscreen .ucp-order-dock {
  max-height: calc(100dvh - 170px);
}

@media (max-width: 900px) {
  .auth-hero {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .login-page .layout {
    min-height: auto;
    align-content: start;
  }

  .auth-copy h1 {
    max-width: 18ch;
  }

  .auth-panel-modern {
    padding: 1.15rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .ucp-layout {
    grid-template-columns: 1fr;
  }

  .ucp-app {
    grid-template-columns: 1fr;
  }

  .ucp-window-bar {
    order: -2;
  }

  .ucp-window-main {
    gap: 0.45rem;
  }

  .ucp-window-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .ucp-orders-layout {
    grid-template-columns: 1fr;
  }

  .ucp-calendar-workspace {
    grid-template-columns: 1fr;
  }

  .ucp-order-dock {
    position: static;
    max-height: none;
  }

  body.ucp-fullscreen .layout.ucp-app {
    padding: 0.55rem;
  }

  body.ucp-fullscreen .ucp-sidebar,
  body.ucp-fullscreen .ucp-workspace {
    overflow: visible;
  }

  body.ucp-fullscreen .ucp-orders-main .table-wrap,
  body.ucp-fullscreen [data-ucp-panel="calendar"] .table-wrap,
  body.ucp-fullscreen [data-ucp-panel="shop"] .table-wrap {
    max-height: none;
  }

  .ucp-sidebar {
    position: static;
  }

  .ucp-shop-toolbar {
    grid-template-columns: 1fr;
  }

  .ucp-shop-toolbar-secondary {
    grid-template-columns: 1fr;
  }

  .ucp-shop-toolbar .btn {
    width: 100%;
  }

  .ucp-pagination label {
    margin-left: 0;
  }

  .ucp-cal-cell {
    min-height: 88px;
  }

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

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

  .checkout-steps-indicator {
    grid-template-columns: 1fr;
  }
}

select, input {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--brand);
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23877269' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.2rem; }
select:focus, input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 98, 89, 0.1);
}
#cartButton { padding: 0.65rem 1.25rem; }
#cartButton span {
  background: rgba(255,255,255,0.22);
  border-radius: var(--r-full);
  padding: 0.1rem 0.5rem;
  margin-left: 0.25rem;
  font-weight: 800;
  font-size: 0.82rem;
}

.currency-only-bar {
  width: min(360px, 100%);
  margin-left: auto;
}

.currency-only-bar .controls > div {
  min-width: 0;
}

/* ── Shop Hero ──────────────────────────────────────────────── */
.shop-intro-modern {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #FFFBF6 0%, #EFF7F5 40%, #F3EDE3 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}
.shop-intro-modern::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 112, 74, 0.14), transparent 65%);
  pointer-events: none;
}
.shop-intro-modern::after { display: none; }
.shop-intro-modern h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  max-width: 18ch;
  margin-bottom: 0.75rem;
}
.shop-intro-modern > p {
  font-size: 1.03rem;
  max-width: 54ch;
  margin-bottom: 1.1rem;
}
.shop-intro-aside {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(27, 98, 89, 0.14);
  border-radius: var(--r-lg);
}
.shop-intro-note {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.shop-intro-aside p { font-size: 0.87rem; color: var(--text-soft); }
.shop-editorial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.shop-editorial-row p {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}
.shop-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* ── Trust Band ─────────────────────────────────────────────── */
.shop-trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.trust-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.3rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.trust-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-chip::before { display: none; }
.trust-chip strong { font-size: 0.95rem; color: var(--brand-dark); font-weight: 700; }
.trust-chip span   { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; }

/* ── Product Grid ───────────────────────────────────────────── */
.shop-list-modern { display: contents; }

.shop-categories-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #fffdf8 0%, #f6f1e9 62%, #eef6f4 100%);
  border: 1px solid rgba(27, 98, 89, 0.14);
  box-shadow: 0 12px 28px rgba(26, 20, 16, 0.08);
}

.shop-categories-panel::before {
  content: "";
  position: absolute;
  inset: auto -90px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 98, 89, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.shop-categories-panel .portal-title-row {
  margin-bottom: 1rem;
  align-items: center;
}

#shopCategoryCount.kicker {
  background: rgba(27, 98, 89, 0.12);
  color: var(--brand-dark);
  border: 1px solid rgba(27, 98, 89, 0.2);
}

#shopCategoryFilter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

#shopCategoryFilter .btn {
  min-height: 38px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  border-width: 1.2px;
  box-shadow: none;
}

#shopCategoryFilter .btn.btn-primary {
  box-shadow: 0 8px 18px rgba(27, 98, 89, 0.23);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  padding-bottom: 6.6rem;
  align-items: start;
}

/* Reset all editorial grid-column overrides to clean uniform grid */
.product-card,
.product-card.featured-large,
.product-card.featured-wide,
.product-card.editorial-offset {
  grid-column: span 1 !important;
  margin-top: 0 !important;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 98, 89, 0.15);
}

.product-card.soldout {
  background: linear-gradient(180deg, #fcf4f4 0%, #f7f7f7 100%);
  border-color: rgba(176, 58, 58, 0.35);
  box-shadow: 0 8px 24px rgba(176, 58, 58, 0.12);
}

.product-card.soldout:hover {
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  display: block;
  background: var(--cream-2);
  padding: 1.2rem;
  transition: transform 0.4s ease;
}

.product-card.soldout img {
  filter: grayscale(42%);
  opacity: 0.78;
}

.soldout-overlay {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #c92f2f, #991f1f);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(120, 29, 29, 0.46);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card.soldout .product-meta strong {
  color: #8f2e2e;
}

.product-card.soldout .add-button,
.product-card.soldout .add-button:disabled {
  background: linear-gradient(145deg, #c54646, #9e2f2f);
  color: #fff;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(145, 36, 36, 0.3);
}
.product-card:hover img { transform: scale(1.03); }

.product-content {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1;
}
.product-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.1rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  background: var(--brand-bg);
  color: var(--brand-dark);
  border: 1px solid rgba(27, 98, 89, 0.12);
}

.tag.tag-soldout {
  background: rgba(176, 58, 58, 0.16);
  color: #9f2525;
  border-color: rgba(176, 58, 58, 0.35);
}
.product-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}
.product-content h3 {
  font-size: 1.15rem;
  line-height: 1.18;
  color: var(--text);
  margin: 0.1rem 0 0;
}
.product-content p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
  margin: 0.15rem 0 0;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.9rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.product-size-select,
.product-color-select {
  margin-top: 0.45rem;
  min-height: 38px;
}

.product-color-select {
  min-width: min(100%, 220px);
}

.product-card.active-spotlight {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(27, 98, 89, 0.2);
  border-color: rgba(27, 98, 89, 0.28);
}

.product-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.product-spotlight-gallery {
  display: grid;
  gap: 0.6rem;
}

.product-spotlight-main {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.product-spotlight-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-spotlight-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.product-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-spotlight-thumb.active {
  border-color: rgba(27, 98, 89, 0.45);
  box-shadow: 0 0 0 2px rgba(27, 98, 89, 0.18);
}

.product-spotlight-content {
  display: grid;
  gap: 0.6rem;
}

.product-spotlight-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.product-spotlight-title-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.product-spotlight-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product-spotlight-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.product-spotlight-actions .product-color-select,
.product-spotlight-actions .product-size-select {
  margin-top: 0;
}

@media (max-width: 900px) {
  .product-spotlight {
    grid-template-columns: 1fr;
  }
}
.product-meta strong {
  font-size: 1.22rem;
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}
.add-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--r-full);
  background: linear-gradient(145deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  box-shadow: 0 3px 10px rgba(27, 98, 89, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.add-button:hover  { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 98, 89, 0.3); }
.add-button:active { transform: translateY(0); }

/* ── Cart Drawer ────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(420px, 100%);
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0, 0.12, 1);
  /* Reset conflicting styles from panel base */
  border-radius: 0;
  padding: 0;
}
.cart-drawer.open { transform: translateX(0); }

.cart-bump { animation: cartBump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cartBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
}
.cart-head h2 { font-size: 1.15rem; margin: 0; }

.close {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-full);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  transition: all 0.18s ease;
}
.close:hover { color: var(--text); border-color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.cart-item h4 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.15rem; font-family: "Manrope", sans-serif; }
.cart-item p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.remove-button {
  flex-shrink: 0;
  border: 0;
  background: rgba(176, 58, 58, 0.08);
  color: var(--danger);
  border-radius: var(--r-full);
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  transition: background 0.18s;
}
.remove-button:hover { background: rgba(176, 58, 58, 0.16); }

/* Cart footer: summary + form – flex-shrink 0 to stay at bottom */
.cart-summary {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
  background: var(--cream);
}
.cart-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
}
.cart-summary .total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 0.45rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line-strong);
}
.note {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.checkout-form {
  padding: 0.85rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.checkout-form input { width: 100%; padding: 0.65rem 0.85rem; }
.checkout-form .btn  { width: 100%; padding: 0.8rem; font-size: 0.93rem; }
.checkout-mode {
  border: 1px solid rgba(27, 98, 89, 0.2);
  border-radius: var(--r-lg);
  padding: 0.8rem;
  background: linear-gradient(135deg, #fff 0%, #f6efe6 100%);
  display: grid;
  gap: 0.55rem;
}

.checkout-mode-panel {
  border: 1px solid rgba(27, 98, 89, 0.2);
  background: linear-gradient(135deg, #fffefb 0%, #f1f8f6 100%);
}

.checkout-mode-panel > p {
  max-width: 62ch;
}

.address-group {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.6rem 0.7rem 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.address-group legend {
  padding: 0 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.address-grid input:nth-child(1),
.address-grid input:nth-child(2),
.address-grid input:nth-child(5) {
  grid-column: 1 / -1;
}

.checkout-mode legend {
  padding: 0 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-mode-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.6rem 0.7rem;
  background: var(--white);
}

.checkout-mode-option input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.checkout-mode-option span {
  line-height: 1.35;
}

.checkout-mode-option input:checked + span {
  color: var(--brand-dark);
  font-weight: 700;
}

.account-state {
  margin-top: 0.1rem;
}
.cart-foot-notes {
  padding: 0.65rem 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
  background: var(--white);
}
.checkout-status {
  font-size: 0.84rem;
  color: var(--ok);
  margin: 0;
  min-height: 1.1em;
}
.checkout-status.error { color: var(--danger); }

/* ── Sticky CTA Bar ─────────────────────────────────────────── */
.sticky-shop-cta {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: min(760px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.72rem 0.62rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(26, 20, 16, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(26, 20, 16, 0.12), 0 2px 4px rgba(26, 20, 16, 0.05);
}
.sticky-shop-cta strong { font-size: 0.83rem; color: var(--text); display: block; }
.sticky-shop-cta p      { font-size: 0.74rem; color: var(--text-muted); margin: 0; }
.sticky-shop-actions    { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.sticky-shop-actions .btn {
  padding: 0.52rem 0.9rem;
  font-size: 0.79rem;
}
.sticky-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 0.3rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.22);
  font-weight: 800;
  font-size: 0.76rem;
}

body:has(.sticky-shop-cta) { padding-bottom: 6.2rem; }

/* ── Inquiry/Custom page ────────────────────────────────────── */
.custom-hero {
  background: linear-gradient(140deg, #FFFBF7 0%, #F4EDE3 60%, #EBF3F1 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}
.nested {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: none;
  padding: 1.2rem;
}
.offer-card {
  background: linear-gradient(135deg, var(--white), #F5EEE7);
  border: 1px solid rgba(27, 98, 89, 0.14);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.inquiry-box { background: var(--white); }
.inquiry-box ul { padding-left: 1.3rem; }
.inquiry-box ul li { margin-bottom: 0.35rem; font-size: 0.93rem; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-static {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.faq-static article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-xs);
}
.faq-static article h2 { font-size: 1.05rem; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.faq-static article p  { font-size: 0.9rem; }

/* ── Tracking ───────────────────────────────────────────────── */
.tracking-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}
.tracking-hero { padding: clamp(1.5rem, 4vw, 2.5rem); }
.tracking-panel, .tracking-info-panel { padding: 1.5rem; }
.tracking-panel h2, .tracking-info-panel h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.tracking-form { display: grid; gap: 0.7rem; }
.tracking-info-panel ul { padding-left: 1.2rem; }
.tracking-info-panel li { margin-bottom: 0.45rem; font-size: 0.92rem; }

/* ── Order Status ───────────────────────────────────────────── */
.order-status-panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.order-status-grid  { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.status-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.2rem;
  box-shadow: var(--shadow-xs);
}
.status-card strong { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.status-card ul     { padding-left: 1.2rem; }
.status-card-primary {
  background: linear-gradient(145deg, rgba(27, 98, 89, 0.07), var(--white));
  border-color: rgba(27, 98, 89, 0.16);
}

/* ── Legal Pages ────────────────────────────────────────────── */
.legal-panel { padding: clamp(1.4rem, 4vw, 2.4rem); }
.legal-panel h2 { margin-top: 1.6rem; margin-bottom: 0.5rem; font-size: 1.3rem; }
.legal-panel h2:first-child { margin-top: 0; }
.legal-panel p, .legal-panel li { font-size: 0.93rem; line-height: 1.72; }
.legal-panel ul, .legal-panel ol { padding-left: 1.4rem; }
.legal-panel ul li, .legal-panel ol li { margin-bottom: 0.35rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer,
.footer-clean {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-main p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 500;
}
.site-footer nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.18s;
}
.site-footer a:hover   { color: var(--brand); }
.footer-primary a      { color: var(--text-soft); font-weight: 600; }
.footer-credit-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.footer-credit-link:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  justify-content: flex-start;
}
.footer-legal a { font-size: 0.8rem; }

/* ── Enter animations ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .product-card { animation: fadeUp 0.4s ease both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Responsive: tablet ─────────────────────────────────────── */
@media (max-width: 1280px) {
  .layout {
    width: min(var(--max-w), calc(100% - 1.6rem));
  }

  .site-header {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .top-nav a {
    padding: 0.42rem 0.72rem;
  }
}

@media (max-width: 960px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .shop-trust-band { grid-template-columns: repeat(2, 1fr); }
  .product-grid   { grid-template-columns: repeat(2, 1fr); }
  .faq-static     { grid-template-columns: 1fr; }
  .order-status-grid { grid-template-columns: 1fr; }
  .tracking-layout { grid-template-columns: 1fr; }
  .custom-steps   { grid-template-columns: 1fr; }
  .split          { grid-template-columns: 1fr; }
  .site-header    { padding: 0 1.05rem; }
  .top-nav {
    gap: 0.02rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 60vw;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { flex: 0 0 auto; }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.45rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .top-nav {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-bottom: 0.1rem;
  }

  .layout {
    padding-top: 1.4rem;
  }

  .ucp-app,
  .ucp-layout {
    grid-template-columns: 1fr;
  }

  .portal-table {
    min-width: 700px;
  }
}

/* ── Responsive: mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --gap: 1rem; }

  .site-header {
    height: auto;
    min-height: 58px;
    padding: 0.55rem 0.8rem;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }
  .brand-logo { width: 36px; height: 36px; }
  .brand-text strong { font-size: 0.85rem; }
  .brand-text small { font-size: 0.66rem; }
  .top-nav {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    padding-bottom: 0.05rem;
  }
  .top-nav a { padding: 0.38rem 0.6rem; font-size: 0.8rem; }

  .layout { width: calc(100% - 1.5rem); padding-top: 1.25rem; }

  .features-grid  { grid-template-columns: 1fr; }
  .shop-trust-band { grid-template-columns: 1fr; }
  .product-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; padding-bottom: 10rem; }
  .custom-offers  { grid-template-columns: 1fr; }

  .hero-card { padding: 1.5rem; }
  .panel     { padding: 1.2rem; }
  .auth-copy,
  .auth-panel-modern { border-radius: 22px; }
  .auth-copy h1 { font-size: clamp(1.85rem, 10vw, 2.55rem); }
  .auth-copy p { font-size: 0.96rem; }
  .auth-benefits { font-size: 0.93rem; }
  .shop-intro-modern { padding: 1.4rem; }
  .legal-panel { padding: 1.25rem; }

  .btn           { font-size: 0.88rem; padding: 0.65rem 1.1rem; }
  .address-grid { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .shop-cta-row  { flex-direction: column; }
  .shop-cta-row .btn { width: 100%; }

  .cart-drawer {
    width: 100%;
    height: 92dvh;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }

  .sticky-shop-cta {
    left: 0.5rem; right: 0.5rem; bottom: 0.5rem;
    transform: none;
    width: auto;
    border-radius: var(--r-xl);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
  }
  .sticky-shop-actions { flex-direction: column; }
  .sticky-shop-actions .btn { width: 100%; }

  body:has(.sticky-shop-cta) { padding-bottom: calc(12rem + env(safe-area-inset-bottom)); }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .controls {
    align-items: stretch;
  }

  .controls > div {
    min-width: 100%;
  }

  .footer-main,
  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-main p {
    width: 100%;
  }

  .product-meta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .add-button   { width: 100%; text-align: center; }
}

@media (max-width: 540px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .hero-card,
  .shop-intro-modern,
  .tracking-panel,
  .tracking-info-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .site-footer,
  .footer-clean {
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .top-nav a:not(.active) { display: none; }
}
