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

:root {
  --cream:        #FAF8F5;
  --cream-2:      #F3ECE3;
  --white:        #FFFFFF;
  --brand:        #5e1a2f;
  --brand-dark:   #45101f;
  --brand-light:  #96687f;
  --brand-bg:     rgba(94, 26, 47, 0.08);
  --accent:       #96687f;
  --accent-bg:    rgba(150, 104, 127, 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(150, 104, 127, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 95% 100%, rgba(94, 26, 47, 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(94, 26, 47, 0.28);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(94, 26, 47, 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%, #f9e9e8 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(94, 26, 47, 0.06), rgba(150, 104, 127, 0.05));
  border-color: rgba(94, 26, 47, 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(94, 26, 47, 0.22);
  box-shadow: 0 8px 20px rgba(94, 26, 47, 0.13);
}

.btn-support:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 26, 47, 0.35);
}

.btn-ucp {
  background: linear-gradient(145deg, #5e1a2f 0%, #45101f 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px rgba(69, 16, 31, 0.34);
}

.btn-ucp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(69, 16, 31, 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;
}

.ucp-product-form-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.ucp-product-form-fields {
  display: grid;
  gap: 0.75rem;
}

.ucp-product-form-preview {
  position: sticky;
  top: 1rem;
}

.ucp-product-preview {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(94, 26, 47, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f9f4f6);
  box-shadow: 0 8px 24px rgba(58, 20, 32, 0.14);
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 860px) {
  .ucp-product-form-layout {
    grid-template-columns: 1fr;
  }
  .ucp-product-form-preview {
    position: static;
  }
}

.ucp-product-preview-media {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(58, 20, 32, 0.14);
  background: #f7f2e9;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ucp-product-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
}

.ucp-product-preview-content {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.35rem;
  align-content: end;
  justify-items: center;
  text-align: center;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.92) 100%);
  color: #2b1d22;
}

.ucp-product-preview-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: inherit;
}

.ucp-product-preview-content h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  color: inherit;
}

.ucp-product-preview-description {
  margin: 0;
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-line;
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ucp-product-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: min(100%, 24rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.55rem;
}

.ucp-product-preview-meta strong {
  color: inherit;
  font-size: 1rem;
}

.ucp-product-preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
}

.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(94, 26, 47, 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(94, 26, 47, 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%, #f6f1f3 100%);
}

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

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

.ucp-metric-card {
  border: 1px solid rgba(58, 20, 32, 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: #716267;
}

.ucp-metric-card strong {
  display: block;
  margin-top: 0.16rem;
  color: #452a33;
  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(58, 20, 32, 0.14);
  background: #fdf6f5;
  color: #52333d;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

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

.ucp-nav-btn:hover {
  border-color: rgba(94, 26, 47, 0.28);
  color: var(--brand-dark);
}

.ucp-nav-btn.active {
  border-color: rgba(94, 26, 47, 0.42);
  background: linear-gradient(180deg, rgba(94, 26, 47, 0.14) 0%, rgba(94, 26, 47, 0.08) 100%);
  color: #47222e;
}

.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-work-panel[data-ucp-panel="shop"] {
  background: linear-gradient(180deg, #fffefb 0%, #fdf6f5 100%);
  border: 1px solid rgba(94, 26, 47, 0.16);
}

.ucp-work-panel[data-ucp-panel="shop"] .portal-title-row h2 {
  color: #391d26;
}

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

.ucp-shop-toolbar .btn {
  border-radius: 999px;
  border-color: rgba(94, 26, 47, 0.24);
  background: #ffffff;
}

.ucp-shop-toolbar .btn:hover {
  border-color: rgba(94, 26, 47, 0.45);
  background: #f8f2f4;
}

.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(58, 20, 32, 0.12);
  border-radius: 10px;
  padding: 0.45rem;
  background: #ffffff;
  font-size: 0.8rem;
  color: #4d373e;
}

.ucp-calendar-day-list strong {
  display: block;
  color: #40252e;
}

.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(94, 26, 47, 0.34);
}

.ucp-cal-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(94, 26, 47, 0.32);
}

.ucp-cal-cell.is-selected {
  border-color: rgba(94, 26, 47, 0.55);
  background: rgba(94, 26, 47, 0.1);
}

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

.ucp-cal-cell.has-entry {
  border-color: rgba(94, 26, 47, 0.28);
  background: rgba(94, 26, 47, 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(94, 26, 47, 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(58, 20, 32, 0.14);
  background: linear-gradient(180deg, #fbf8f9 0%, #f4eef0 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: #503840;
  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(58, 20, 32, 0.2);
  background: #e7e0e2;
}

.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(58, 20, 32, 0.12);
  box-shadow: 0 10px 28px rgba(58, 20, 32, 0.09);
  background: linear-gradient(160deg, #f8f3f5 0%, #efe9eb 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(58, 20, 32, 0.12);
  background: #f8f4f5;
  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(58, 20, 32, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #51353e;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ucp-work-panel {
  border: 1px solid rgba(58, 20, 32, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(58, 20, 32, 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(58, 20, 32, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6f8 100%);
  box-shadow: 0 8px 20px rgba(58, 20, 32, 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(19, 12, 14, 0.3);
  display: grid;
  place-items: start center;
  padding: 12vh 1rem 1rem;
}

.ucp-commandbar-panel {
  width: min(760px, 100%);
  border: 1px solid rgba(58, 20, 32, 0.2);
  border-radius: 14px;
  background: #fdf6f5;
  box-shadow: 0 20px 40px rgba(58, 20, 32, 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: #503840;
}

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

.ucp-command-item {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(58, 20, 32, 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(94, 26, 47, 0.38);
  background: #f6f0f2;
  outline: none;
}

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

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

.ucp-empty-command {
  margin: 0;
  border: 1px dashed rgba(58, 20, 32, 0.2);
  border-radius: 10px;
  padding: 0.6rem;
  font-size: 0.78rem;
  color: #6d5f64;
  background: #ffffff;
}

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

.ucp-confirm-panel {
  width: min(560px, 100%);
  border: 1px solid rgba(58, 20, 32, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f8 100%);
  box-shadow: 0 24px 46px rgba(24, 12, 16, 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: #543b43;
  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(58, 20, 32, 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: #452a33;
  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(58, 20, 32, 0.14);
  border-radius: 8px;
  background: #faf4f6;
  color: #54353f;
  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(58, 20, 32, 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: #6f5e64;
  font-weight: 700;
}

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

#ucpProductForm {
  border: 1px solid rgba(94, 26, 47, 0.16);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(32, 16, 21, 0.08);
  padding: 0.9rem;
}

#ucpProductForm input,
#ucpProductForm select,
#ucpProductForm textarea {
  border-radius: 10px;
  border-color: rgba(58, 20, 32, 0.18);
  background: #fefcfd;
  color: #2b1e22;
}

#ucpProductForm input::placeholder,
#ucpProductForm textarea::placeholder {
  color: #7c6e73;
}

#ucpProductForm input:focus,
#ucpProductForm select:focus,
#ucpProductForm textarea:focus {
  border-color: rgba(94, 26, 47, 0.52);
  box-shadow: 0 0 0 3px rgba(94, 26, 47, 0.12);
}

.ucp-inline-hint {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.76rem;
  color: #716267;
}

.ucp-inline-hint.warning {
  color: #9a2f2f;
  font-weight: 700;
}

.ucp-inline-hint.ok {
  color: #1f6b4a;
  font-weight: 700;
}

.ucp-input-warning {
  border-color: rgba(176, 58, 58, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(176, 58, 58, 0.12) !important;
}

.ucp-input-ok {
  border-color: rgba(42, 122, 80, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(42, 122, 80, 0.12) !important;
}

.ucp-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(58, 20, 32, 0.14);
  border-radius: 10px;
  background: #fcf8f9;
}

.ucp-color-chip {
  border: 1px solid rgba(58, 20, 32, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #4e343d;
  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(94, 26, 47, 0.42);
}

.ucp-color-chip.is-active {
  background: #5e1a2f;
  border-color: #5e1a2f;
  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;
}

.portal-table tr.product-editing-row {
  background: rgba(94, 26, 47, 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);
}

body.ucp-fullscreen.ucp-theme-dark {
  --cream: #181215;
  --cream-2: #281d22;
  --white: #20161b;
  --brand: #e2aeb5;
  --brand-dark: #c98d98;
  --brand-light: #f0d3d4;
  --brand-bg: rgba(226, 174, 181, 0.16);
  --accent: #e49f7f;
  --accent-bg: rgba(228, 159, 127, 0.15);
  --text: #f5eff2;
  --text-soft: #d7cdd1;
  --text-muted: #b3a4ab;
  --line: rgba(179, 164, 171, 0.18);
  --line-strong: rgba(179, 164, 171, 0.28);
  --shadow-xs: 0 1px 4px rgba(9, 5, 7, 0.4);
  --shadow-sm: 0 4px 14px rgba(9, 5, 7, 0.45);
  --shadow-md: 0 10px 28px rgba(9, 5, 7, 0.52);
  --shadow-lg: 0 20px 52px rgba(9, 5, 7, 0.6);
  --shadow-xl: 0 36px 72px rgba(9, 5, 7, 0.68);
  background-color: #161013;
}

body.ucp-fullscreen.ucp-theme-dark::before {
  background:
    radial-gradient(ellipse 60% 50% at 5% 0%, rgba(226, 174, 181, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 95% 100%, rgba(169, 110, 137, 0.18) 0%, transparent 60%);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-window-bar,
body.ucp-fullscreen.ucp-theme-dark .ucp-pane,
body.ucp-fullscreen.ucp-theme-dark .ucp-workspace-toolbar,
body.ucp-fullscreen.ucp-theme-dark .ucp-work-panel,
body.ucp-fullscreen.ucp-theme-dark .ucp-order-dock,
body.ucp-fullscreen.ucp-theme-dark .ucp-commandbar-panel,
body.ucp-fullscreen.ucp-theme-dark .ucp-confirm-panel,
body.ucp-fullscreen.ucp-theme-dark #ucpProductForm,
body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview {
  background: linear-gradient(180deg, #25191e 0%, #1c1418 100%);
  border-color: rgba(179, 164, 171, 0.26);
  box-shadow: 0 14px 34px rgba(11, 6, 8, 0.58);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-product-form-preview .kicker {
  color: #b7a8af;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-window-bar p,
body.ucp-fullscreen.ucp-theme-dark .ucp-workspace-toolbar span,
body.ucp-fullscreen.ucp-theme-dark .ucp-nav-btn,
body.ucp-fullscreen.ucp-theme-dark .ucp-command-item strong,
body.ucp-fullscreen.ucp-theme-dark .ucp-product-title-btn {
  color: #eee5e9;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-sidebar,
body.ucp-fullscreen.ucp-theme-dark .ucp-pane,
body.ucp-fullscreen.ucp-theme-dark .ucp-work-panel,
body.ucp-fullscreen.ucp-theme-dark .panel,
body.ucp-fullscreen.ucp-theme-dark #ucpProductForm,
body.ucp-fullscreen.ucp-theme-dark .ucp-order-dock,
body.ucp-fullscreen.ucp-theme-dark .ucp-calendar-daypanel,
body.ucp-fullscreen.ucp-theme-dark .ucp-commandbar-panel,
body.ucp-fullscreen.ucp-theme-dark .ucp-confirm-panel {
  color: #eee5e9;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-sidebar h1,
body.ucp-fullscreen.ucp-theme-dark .ucp-work-panel .portal-title-row h2,
body.ucp-fullscreen.ucp-theme-dark .ucp-calendar-daypanel h3,
body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-content,
body.ucp-fullscreen.ucp-theme-dark #ucpProductForm label,
body.ucp-fullscreen.ucp-theme-dark #ucpProductForm small,
body.ucp-fullscreen.ucp-theme-dark .ucp-calendar-daypanel p,
body.ucp-fullscreen.ucp-theme-dark .ucp-order-dock p,
body.ucp-fullscreen.ucp-theme-dark .ucp-order-dock label {
  color: #f5eef1;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-app,
body.ucp-fullscreen.ucp-theme-dark .ucp-app p,
body.ucp-fullscreen.ucp-theme-dark .ucp-app label,
body.ucp-fullscreen.ucp-theme-dark .ucp-app small,
body.ucp-fullscreen.ucp-theme-dark .ucp-app span,
body.ucp-fullscreen.ucp-theme-dark .ucp-app li,
body.ucp-fullscreen.ucp-theme-dark .ucp-app td,
body.ucp-fullscreen.ucp-theme-dark .ucp-app th {
  color: #eee5e9;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-window-dots span {
  border-color: rgba(179, 164, 171, 0.3);
  background: #4a3840;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-nav-btn {
  background: #2d2026;
  border-color: rgba(179, 164, 171, 0.26);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-nav-btn.active {
  border-color: rgba(226, 174, 181, 0.5);
  background: linear-gradient(180deg, rgba(226, 174, 181, 0.25) 0%, rgba(226, 174, 181, 0.12) 100%);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-nav-icon,
body.ucp-fullscreen.ucp-theme-dark .ucp-metric-card,
body.ucp-fullscreen.ucp-theme-dark .ucp-command-item,
body.ucp-fullscreen.ucp-theme-dark .ucp-empty-command {
  background: #2a1d23;
  border-color: rgba(179, 164, 171, 0.25);
  color: #ded2d7;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-workspace-toolbar {
  background: #271a20;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-workspace-toolbar span {
  background: #32232a;
  border-color: rgba(179, 164, 171, 0.26);
}

body.ucp-fullscreen.ucp-theme-dark .portal-table th,
body.ucp-fullscreen.ucp-theme-dark .portal-table td {
  background: transparent;
  border-color: rgba(179, 164, 171, 0.18);
  color: #e9dfe3;
}

body.ucp-fullscreen.ucp-theme-dark .portal-table th {
  color: #c5b7bd;
}

body.ucp-fullscreen.ucp-theme-dark .table-wrap {
  background: #20161b;
  border-color: rgba(179, 164, 171, 0.2);
}

body.ucp-fullscreen.ucp-theme-dark input,
body.ucp-fullscreen.ucp-theme-dark select,
body.ucp-fullscreen.ucp-theme-dark textarea {
  background: #2d1f25;
  color: #f4edf0;
  border-color: rgba(179, 164, 171, 0.3);
}

body.ucp-fullscreen.ucp-theme-dark input::placeholder,
body.ucp-fullscreen.ucp-theme-dark textarea::placeholder {
  color: #a8979f;
}

body.ucp-fullscreen.ucp-theme-dark input:focus,
body.ucp-fullscreen.ucp-theme-dark select:focus,
body.ucp-fullscreen.ucp-theme-dark textarea:focus {
  border-color: rgba(226, 174, 181, 0.6);
  box-shadow: 0 0 0 3px rgba(226, 174, 181, 0.2);
}

body.ucp-fullscreen.ucp-theme-dark .btn-secondary,
body.ucp-fullscreen.ucp-theme-dark .btn-support,
body.ucp-fullscreen.ucp-theme-dark .ucp-shop-toolbar .btn {
  background: #2e2026;
  color: #eee4e9;
  border-color: rgba(179, 164, 171, 0.3);
}

body.ucp-fullscreen.ucp-theme-dark .btn-secondary:hover,
body.ucp-fullscreen.ucp-theme-dark .btn-support:hover,
body.ucp-fullscreen.ucp-theme-dark .ucp-shop-toolbar .btn:hover {
  background: #3c2a32;
  border-color: rgba(226, 174, 181, 0.55);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-media,
body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-tag,
body.ucp-fullscreen.ucp-theme-dark .ucp-size-fieldset,
body.ucp-fullscreen.ucp-theme-dark .checkout-mode-option,
body.ucp-fullscreen.ucp-theme-dark .ucp-color-picker {
  background: #2d2026;
  border-color: rgba(179, 164, 171, 0.26);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview {
  background: linear-gradient(180deg, #261b20 0%, #1c1418 100%);
  border-color: rgba(179, 164, 171, 0.28);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-content {
  background: linear-gradient(180deg, rgba(21, 13, 17, 0) 35%, rgba(21, 13, 17, 0.88) 100%);
  color: #f5eef1;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-eyebrow,
body.ucp-fullscreen.ucp-theme-dark .ucp-inline-hint,
body.ucp-fullscreen.ucp-theme-dark .kicker,
body.ucp-fullscreen.ucp-theme-dark .ucp-command-item span,
body.ucp-fullscreen.ucp-theme-dark .ucp-empty-command {
  color: #b7a8af;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-content h3,
body.ucp-fullscreen.ucp-theme-dark .ucp-product-preview-meta strong,
body.ucp-fullscreen.ucp-theme-dark #ucpAdminTitle {
  color: #f5eef1;
}

body.ucp-fullscreen.ucp-theme-dark .status-pill {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(179, 164, 171, 0.34);
  font-weight: 800;
}

body.ucp-fullscreen.ucp-theme-dark .status-open,
body.ucp-fullscreen.ucp-theme-dark .status-pending,
body.ucp-fullscreen.ucp-theme-dark .status-authorized,
body.ucp-fullscreen.ucp-theme-dark .status-shipping {
  background: rgba(226, 174, 181, 0.32);
  border-color: rgba(226, 174, 181, 0.55);
  color: #fdeef0;
}

body.ucp-fullscreen.ucp-theme-dark .status-paid,
body.ucp-fullscreen.ucp-theme-dark .status-completed {
  background: rgba(86, 182, 126, 0.3);
  border-color: rgba(128, 219, 164, 0.52);
  color: #dcf8e7;
}

body.ucp-fullscreen.ucp-theme-dark .status-canceled,
body.ucp-fullscreen.ucp-theme-dark .status-failed,
body.ucp-fullscreen.ucp-theme-dark .status-expired {
  background: rgba(186, 67, 67, 0.32);
  border-color: rgba(240, 128, 128, 0.5);
  color: #ffd8d8;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-cell {
  border-color: rgba(179, 164, 171, 0.3);
  background: #281b21;
}

body.ucp-fullscreen.ucp-theme-dark button.ucp-cal-cell:hover {
  border-color: rgba(226, 174, 181, 0.55);
  background: #302128;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(226, 174, 181, 0.62);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-cell.is-selected {
  border-color: rgba(226, 174, 181, 0.68);
  background: linear-gradient(160deg, rgba(226, 174, 181, 0.28) 0%, rgba(226, 174, 181, 0.15) 100%);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-cell.muted {
  background: #25181e;
  opacity: 0.9;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-cell.has-entry {
  border-color: rgba(226, 174, 181, 0.52);
  background: linear-gradient(160deg, rgba(226, 174, 181, 0.2) 0%, rgba(226, 174, 181, 0.1) 100%);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-day {
  color: #e7dae0;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-cal-marks li {
  color: #f6dde0;
  background: rgba(226, 174, 181, 0.2);
}

body.ucp-fullscreen.ucp-theme-dark .ucp-calendar-day-list li {
  border-color: rgba(179, 164, 171, 0.28);
  background: #2e2026;
  color: #ded1d7;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-calendar-day-list strong {
  color: #f4ecf0;
}

body.ucp-fullscreen.ucp-theme-dark .ucp-calendar-daypanel {
  background: linear-gradient(180deg, #2b1e24 0%, #23181d 100%);
  border-color: rgba(179, 164, 171, 0.28);
}

body.ucp-fullscreen.ucp-theme-dark #ucpCalendarForm input,
body.ucp-fullscreen.ucp-theme-dark #ucpCalendarForm select,
body.ucp-fullscreen.ucp-theme-dark #ucpCalendarForm textarea {
  color-scheme: dark;
}

@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(94, 26, 47, 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: 100%;
  margin: 0;
}

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

.currency-only-bar > div label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.currency-only-bar > div select {
  min-height: 42px;
}

/* ── Shop Hero ──────────────────────────────────────────────── */
.shop-intro-modern {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #FFFBF6 0%, #f9e9e8 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(150, 104, 127, 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(94, 26, 47, 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(auto-fit, minmax(240px, 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%, #f9e9e8 100%);
  border: 1px solid rgba(94, 26, 47, 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(94, 26, 47, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

#shopCategoryCount.kicker {
  background: rgba(94, 26, 47, 0.12);
  color: var(--brand-dark);
  border: 1px solid rgba(94, 26, 47, 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(94, 26, 47, 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(94, 26, 47, 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;
  object-fit: contain;
  display: block;
  background: var(--cream-2);
  padding: 0.7rem;
  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(94, 26, 47, 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;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.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(94, 26, 47, 0.2);
  border-color: rgba(94, 26, 47, 0.28);
}

.product-spotlight {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 1rem;
  margin: 0;
  background: rgba(248, 244, 236, 0.72);
  backdrop-filter: blur(12px);
  overflow: auto;
}

.product-spotlight-gallery {
  display: grid;
  gap: 0.6rem;
  width: min(100%, 760px);
  background: #ffffff;
  border: 1px solid rgba(58, 20, 32, 0.12);
  border-radius: 18px 18px 0 0;
  padding: 0.85rem;
  box-shadow: 0 24px 60px rgba(58, 20, 32, 0.18);
}

.product-spotlight-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  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: contain;
}

.product-spotlight-thumb.active {
  border-color: rgba(94, 26, 47, 0.45);
  box-shadow: 0 0 0 2px rgba(94, 26, 47, 0.18);
}

.product-spotlight-content {
  display: grid;
  gap: 0.6rem;
  width: min(100%, 760px);
  background: #ffffff;
  border: 1px solid rgba(58, 20, 32, 0.12);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 24px 60px rgba(58, 20, 32, 0.18);
}

.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 {
    padding: 0.65rem;
  }

  .ucp-product-preview {
    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(94, 26, 47, 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(94, 26, 47, 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(94, 26, 47, 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(94, 26, 47, 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%, #f9e9e8 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(94, 26, 47, 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(94, 26, 47, 0.07), var(--white));
  border-color: rgba(94, 26, 47, 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-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;
  }
}

/* ── Chromebook / small laptops (~1536x864 and below): UCP layout */
@media (max-width: 1600px) and (max-height: 950px) {
  .layout {
    width: min(var(--max-w), calc(100% - 1.25rem));
  }

  .top-nav {
    max-width: 58vw;
  }

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

  .ucp-sidebar h1 {
    font-size: 1.35rem;
  }

  .ucp-workspace-toolbar {
    flex-wrap: wrap;
  }

  .ucp-workspace-toolbar span {
    font-size: 0.69rem;
    padding: 0.14rem 0.42rem;
  }

  .ucp-shop-toolbar {
    grid-template-columns: 1fr minmax(140px, 0.6fr) repeat(4, auto);
  }

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

  .ucp-window-actions {
    flex-wrap: wrap;
  }

  .ucp-window-actions .btn {
    min-height: 34px;
    padding: 0.35rem 0.62rem;
    font-size: 0.74rem;
  }

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

  .ucp-calendar-workspace {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

  .ucp-product-form-layout {
    grid-template-columns: 1fr 240px;
  }

  .ucp-image-strip {
    gap: 0.45rem;
  }

  .ucp-img-card {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 1160px) {
  .top-nav {
    max-width: 100%;
  }

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

  .ucp-window-bar {
    align-items: flex-start;
  }

  .ucp-window-main,
  .ucp-window-actions {
    width: 100%;
  }

  .ucp-window-actions {
    justify-content: flex-start;
  }

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

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

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

  .ucp-product-form-preview {
    position: static;
    max-width: none;
  }

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

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

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

  .ucp-pagination {
    gap: 0.35rem;
  }

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

/* Chromebook landscape height: keep controls visible without cramped blocks */
@media (max-width: 1700px) and (max-height: 950px) {
  .ucp-pane,
  .ucp-work-panel,
  .ucp-window-bar,
  .ucp-workspace-toolbar {
    border-radius: 12px;
  }

  .ucp-sidebar {
    gap: 0.55rem;
  }

  .ucp-sidebar h1 {
    font-size: 1.2rem;
  }

  .ucp-side-metrics {
    gap: 0.45rem;
  }

  .ucp-metric-card {
    padding: 0.4rem 0.48rem;
  }

  .ucp-work-panel .portal-title-row h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  }
}

@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; }
}

/* ── UCP Image Strip ───────────────────────────────────────────*/
.ucp-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.6rem;
  background: rgba(94, 26, 47, 0.04);
  border: 1px solid rgba(94, 26, 47, 0.14);
  border-radius: 12px;
}

.ucp-img-card {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(94, 26, 47, 0.18);
  background: #f5f5f3;
  cursor: grab;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ucp-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  color: var(--text-muted);
}

.ucp-img-card--main {
  border-color: rgba(94, 26, 47, 0.55);
  box-shadow: 0 0 0 2px rgba(94, 26, 47, 0.18);
}

.ucp-img-badge {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(94, 26, 47, 0.82);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.ucp-img-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(180, 30, 30, 0.85);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.ucp-img-card:hover .ucp-img-remove {
  opacity: 1;
}

.ucp-img-card.ucp-img-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.ucp-img-card.ucp-img-over {
  border-color: rgba(94, 26, 47, 0.7);
  box-shadow: 0 0 0 3px rgba(94, 26, 47, 0.25);
}

/* ── Cooperations Page ──────────────────────────────────────── */
.coop-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem 0;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.coop-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(94, 26, 47, 0.24);
  transform: translateY(-2px);
}

.coop-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(94, 26, 47, 0.1), rgba(150, 104, 127, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.coop-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.coop-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}

.coop-card-topic {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-bg);
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  width: fit-content;
}

.coop-card-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.coop-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
}

.coop-card-link:hover {
  color: var(--brand-dark);
}

.coop-card-link-arrow {
  transition: transform 0.15s;
}

.coop-card-link:hover .coop-card-link-arrow {
  transform: translateX(3px);
}

.coop-contact-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.coop-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.coop-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.coop-contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.coop-contact-value a {
  color: var(--brand);
  text-decoration: none;
}

.coop-contact-value a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .coop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ── Toast Notification System ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
  width: min(460px, calc(100% - 2rem));
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 0.72rem 1.3rem;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  animation: toast-in 220ms cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
.toast.toast-ok  { background: var(--ok); }
.toast.toast-err { background: var(--danger); }
.toast.toast-info { background: var(--brand); }
.toast.removing  { animation: toast-out 180ms ease-in forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to   { opacity: 0; transform: scale(0.93); } }

/* ── Button loading state ────────────────────────────────────── */
.btn--loading {
  pointer-events: none;
  opacity: 0.74;
}
.btn--loading::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.55s linear infinite;
  margin-left: 0.45rem;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── Product skeleton (loading shimmer) ──────────────────────── */
@keyframes shimmer {
  from { background-position: -500px 0; }
  to   { background-position:  500px 0; }
}
.product-skeleton {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.product-skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--cream) 50%, var(--cream-2) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
}
.product-skeleton-body { padding: 1rem 1.2rem 1.3rem; display: grid; gap: 0.55rem; }
.product-skeleton-line {
  height: 0.82rem;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--cream) 50%, var(--cream-2) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
}
.product-skeleton-line.short { width: 45%; }
.product-skeleton-line.med   { width: 70%; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; line-height: 1; }
.empty-state h3 { color: var(--text-soft); margin-bottom: 0.1rem; }
.empty-state p  { max-width: 32ch; font-size: 0.93rem; }

/* ── UCP Size Tag Input ───────────────────────────────────────── */
.ucp-size-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  min-height: 44px;
  cursor: text;
  transition: border-color 0.18s;
}
.ucp-size-tags:focus-within { border-color: var(--brand); }
.ucp-size-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--brand-bg);
  color: var(--brand-dark);
  border: 1px solid rgba(87, 38, 54, 0.2);
  border-radius: var(--r-full);
  padding: 0.18rem 0.55rem 0.18rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.ucp-size-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  border-radius: 50%;
  width: 1.1rem;
  height: 1.1rem;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.ucp-size-tag-remove:hover { background: rgba(176,58,58,0.12); color: var(--danger); }
.ucp-size-tag-input-field {
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.88rem;
  min-width: 90px;
  flex: 1;
  background: transparent;
  padding: 0.1rem 0;
  color: var(--text);
}
.ucp-size-quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
  align-items: center;
}
.ucp-size-quick-add-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.ucp-size-quick-btn {
  font-size: 0.78rem;
  padding: 0.18rem 0.62rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: var(--cream-2);
  cursor: pointer;
  font-weight: 700;
  color: var(--text-soft);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.ucp-size-quick-btn:hover {
  background: var(--brand-bg);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.ucp-soldout-size-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem 0;
}
.ucp-soldout-size-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
  background: var(--cream-2);
  padding: 0.22rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s;
}
.ucp-soldout-size-checks label:has(input:checked) {
  background: rgba(176,58,58,0.09);
  border-color: rgba(176,58,58,0.3);
  color: #8f2e2e;
}
