/* ==========================================================================
   Etched & Resin — Warm British Artisan Boutique Stylesheet
   ========================================================================== */

:root {
  --bg-oat: #faf6f0;
  --bg-birch: #f2eae0;
  --bg-ivory: #fffdf9;
  --bg-sand: #ede2d3;
  --border-warm: #e5d9ca;
  --border-strong: #d4c3ae;

  --text-espresso: #2c221b;
  --text-umber: #6b5b4e;
  --text-muted: #8a7869;

  --amber: #b86b2b;
  --amber-hover: #9a551c;
  --amber-soft: #f7e8d8;

  --sage: #4b6b57;
  --sage-soft: #e7f0ea;

  --shadow-sm: 0 2px 8px rgba(44, 34, 27, 0.05);
  --shadow-md: 0 10px 28px rgba(44, 34, 27, 0.08);
  --shadow-lg: 0 20px 48px rgba(44, 34, 27, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --sidebar-w: 296px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-oat);
  color: var(--text-espresso);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ---------- App Shell & Left Sidebar ---------- */

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

.mobile-header {
  display: none;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-birch);
  border-right: 1px solid var(--border-warm);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.sidebar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 20px;
  gap: 22px;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  flex-shrink: 0;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-umber);
  margin-top: 2px;
}

.icon-btn.sidebar-close-btn {
  display: none;
}

.pilot-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 600;
}

.pilot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.sidebar-nav {
  flex: 1;
}

.nav-section-label {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 10px 8px;
}

.nav-section-label--spaced {
  margin-top: 22px;
}

.category-list,
.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: var(--text-espresso);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.category-btn:hover {
  background: rgba(255, 253, 249, 0.7);
}

.category-btn.is-active {
  background: var(--bg-ivory);
  border-color: var(--border-warm);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  position: relative;
}

.category-btn.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--amber);
}

.category-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-icon {
  display: inline-flex;
  color: var(--amber);
  flex-shrink: 0;
}

.category-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.cat-count {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-sand);
  color: var(--text-umber);
}

.cat-soon-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-hover);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--text-umber);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quick-link:hover {
  background: rgba(255, 253, 249, 0.7);
  color: var(--text-espresso);
}

.sidebar-footer {
  margin-top: auto;
}

.studio-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.studio-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.studio-card-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-umber);
  line-height: 1.45;
}

.studio-card-domain {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-hover);
}

/* ---------- Main Content & Topbar ---------- */

.main-content {
  flex: 1;
  min-width: 0;
  padding: 26px 34px 48px;
  max-width: 1220px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-warm);
}

.topbar-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-hover);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--text-umber);
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 230px;
  color: var(--text-umber);
  box-shadow: var(--shadow-sm);
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-espresso);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.basket-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--bg-ivory);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.basket-btn:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}

.basket-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.basket-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.basket-btn-label {
  font-size: 0.78rem;
  color: var(--text-umber);
  font-weight: 600;
}

.basket-btn-total {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-espresso);
}

/* ---------- Buttons, Badges & Inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--amber);
  color: #fffdf9;
}

.btn-primary:hover {
  background: var(--amber-hover);
}

.btn-secondary {
  background: var(--bg-birch);
  border-color: var(--border-strong);
  color: var(--text-espresso);
}

.btn-secondary:hover {
  background: var(--bg-sand);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-warm);
  color: var(--text-umber);
}

.btn-ghost:hover {
  background: var(--bg-birch);
  color: var(--text-espresso);
}

.btn-disabled,
.btn:disabled {
  background: var(--bg-sand);
  border-color: var(--border-warm);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-warm);
  background: var(--bg-ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-espresso);
}

.icon-btn:hover {
  background: var(--bg-birch);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge--sage {
  background: var(--sage-soft);
  color: var(--sage);
}

.badge--warm {
  background: var(--bg-birch);
  color: var(--text-umber);
  border: 1px solid var(--border-warm);
}

.badge--amber {
  background: var(--amber-soft);
  color: var(--amber-hover);
}

.field-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-hint {
  font-weight: 400;
  color: var(--text-muted);
}

.text-input,
.textarea-input {
  width: 100%;
  padding: 10px 10px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-ivory);
  font-size: 0.92rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184, 107, 43, 0.15);
}

/* ---------- Featured Pilot Spotlight ---------- */

.spotlight-section {
  margin-top: 24px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.spotlight-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-main-frame {
  position: relative;
  border: 1px solid var(--border-warm);
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1f1712;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.spotlight-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.spotlight-main-frame:hover img {
  transform: scale(1.02);
}

.zoom-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(44, 34, 27, 0.82);
  color: #fffdf9;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.spotlight-thumbs {
  display: flex;
  gap: 10px;
}

.thumb-btn {
  width: 88px;
  height: 66px;
  padding: 0;
  border-radius: 11px;
  overflow: hidden;
  border: 2px solid var(--border-warm);
  background: var(--bg-birch);
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.thumb-btn:hover {
  opacity: 1;
}

.thumb-btn.is-active {
  opacity: 1;
  border-color: var(--amber);
}

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

.spotlight-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.spotlight-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
}

.spotlight-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.spotlight-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--amber-hover);
}

.spotlight-price-note {
  font-size: 0.82rem;
  color: var(--text-umber);
  background: var(--bg-birch);
  padding: 3px 10px;
  border-radius: 999px;
}

.spotlight-desc {
  margin: 14px 0;
  color: var(--text-umber);
  font-size: 0.94rem;
}

.spotlight-specs {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.spotlight-specs li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-espresso);
}

.spotlight-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.spotlight-custom-box {
  margin-bottom: 16px;
}

.spotlight-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-oat);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
}

.qty-btn:hover {
  background: var(--bg-birch);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.94rem;
}

/* ---------- Promise Strip ---------- */

.promise-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promise-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
}

.promise-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--amber-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promise-title {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 700;
}

.promise-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-umber);
  line-height: 1.45;
}

/* ---------- Catalog Grid ---------- */

.catalog-section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--text-umber);
  font-size: 0.9rem;
}

.catalog-count-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-birch);
  border: 1px solid var(--border-warm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-umber);
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-card--coming-soon {
  border-style: dashed;
  background: linear-gradient(180deg, #fffdf9 0%, #faf4eb 100%);
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-birch);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-media--svg {
  background: radial-gradient(circle at 50% 35%, #fff9f0 0%, #f1e6d8 100%);
  padding: 18px;
}

.coming-soon-art {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 130px;
}

.card-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-cat {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-card-desc {
  margin: 8px 0 14px;
  font-size: 0.87rem;
  color: var(--text-umber);
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-warm);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--amber-hover);
}

.product-price--forthcoming {
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-umber);
}

.btn-card {
  padding: 8px 13px;
  font-size: 0.83rem;
  border-radius: 10px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-ivory);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* ---------- Workshop & Payment Placeholder Cards ---------- */

.info-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.info-card--payments {
  background: linear-gradient(180deg, #fffdf9 0%, #f6ede2 100%);
}

.info-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber-hover);
  margin-bottom: 6px;
}

.info-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.22;
}

.info-body {
  margin: 0 0 12px;
  color: var(--text-umber);
  font-size: 0.92rem;
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 253, 249, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-umber);
}

.provider-chip-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-hover);
}

.payments-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.payments-status-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-espresso);
}

/* ---------- Basket Drawer ---------- */

.drawer-backdrop,
.modal-backdrop,
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 34, 27, 0.44);
  backdrop-filter: blur(2px);
  z-index: 45;
}

.basket-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: var(--bg-oat);
  border-left: 1px solid var(--border-warm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  background: var(--bg-birch);
  border-bottom: 1px solid var(--border-warm);
}

.drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.drawer-subtitle {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-umber);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.basket-empty {
  text-align: center;
  padding: 36px 14px;
  color: var(--text-umber);
}

.basket-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
}

.basket-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-warm);
}

.basket-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.basket-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.basket-remove-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 4px;
}

.basket-remove-btn:hover {
  color: #a13a2d;
}

.basket-item-note {
  font-size: 0.79rem;
  color: var(--amber-hover);
  margin-top: 3px;
}

.basket-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  background: var(--bg-oat);
}

.mini-qty button {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.mini-qty span {
  min-width: 22px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
}

.basket-item-price {
  font-weight: 700;
  font-size: 0.94rem;
}

.drawer-footer {
  padding: 16px 22px 20px;
  background: var(--bg-ivory);
  border-top: 1px solid var(--border-warm);
}

.subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
}

.subtotal-note {
  margin: 4px 0 14px;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.checkout-placeholder-box {
  background: var(--bg-oat);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 14px;
}

.checkout-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.checkout-box-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.checkout-box-copy {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-umber);
  line-height: 1.45;
}

.checkout-provider-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.checkout-provider-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-ivory);
  color: var(--text-muted);
}

.checkout-action-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- Express Interest Modal ---------- */

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 28px));
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 55;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  background: var(--bg-birch);
  border-bottom: 1px solid var(--border-warm);
}

.modal-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.modal-body {
  padding: 18px 22px 22px;
}

.modal-product-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-umber);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.interest-saved-banner {
  margin-top: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 14, 0.9);
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-figure {
  margin: 0;
  max-width: min(920px, 88vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-height: 76vh;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.lightbox-figure figcaption {
  color: #f4ece2;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(44, 34, 27, 0.72);
  color: #fffdf9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav--prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav--next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: var(--text-espresso);
  color: #fffdf9;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

/* ---------- Responsive Breakpoints ---------- */

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

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

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-birch);
    border-bottom: 1px solid var(--border-warm);
    position: sticky;
    top: 0;
    z-index: 25;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand-text {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
  }

  .basket-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-ivory);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 84vw);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 52;
    box-shadow: var(--shadow-lg);
  }

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

  .icon-btn.sidebar-close-btn {
    display: inline-flex;
  }

  .main-content {
    padding: 20px 18px 40px;
  }

  .promise-strip,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

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

  .topbar-actions {
    width: 100%;
  }

  .search-box {
    flex: 1;
    min-width: 0;
  }

  .desktop-only-basket,
  .topbar .basket-btn {
    display: none;
  }

  .spotlight-card {
    padding: 16px;
  }
}
