/* ============================================================
   Light Bay - shared styles
   Palette: deep bay teal (brand/action), warm ivory (ground),
   ink (text), candlelight amber (price/CTA accent), warm sand
   (structure/borders)
   Type: Fraunces for headings (a warm, boutique serif), Inter
   for body and UI text.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --forest: #1F4A44;
  --forest-dark: #163531;
  --cream: #FBF7F1;
  --paper: #FFFFFF;
  --ink: #2B2420;
  --ink-soft: #6B6058;
  --amber: #C98A3E;
  --amber-dark: #A66F2E;
  --sage: #F3ECDF;
  --sage-line: #E4DAC9;
  --danger: #B4442E;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(43, 36, 32, 0.06);
  --shadow-hover: 0 10px 24px rgba(43, 36, 32, 0.10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--forest);
  color: var(--cream);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}

.brand-mark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.nav-links a {
  color: #DCE6DD;
  text-decoration: none;
}

.nav-links a:hover { color: var(--paper); }
.nav-links a.current { color: var(--paper); border-bottom: 2px solid var(--amber); padding-bottom: 3px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  white-space: nowrap;
}

.cart-pill:hover { background: var(--amber-dark); color: var(--cream); }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  color: var(--cream);
  flex-shrink: 0;
}

.mobile-menu-btn svg { width: 20px; height: 20px; }
.mobile-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---------- Mobile nav drawer ---------- */

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 26, 18, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 44;
}

.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(280px, 82vw);
  background: var(--paper);
  border-right: 1px solid var(--sage-line);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sage-line);
}

.mobile-nav-head .brand-mark { color: var(--forest); }

.mobile-nav a {
  padding: 15px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sage-line);
}

.mobile-nav a:hover { background: var(--sage); }
.mobile-nav a.current { color: var(--forest); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .cart-pill { padding: 7px 11px; font-size: 0.84rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--sage) 0%, #FFFFFF 65%);
  border-radius: calc(var(--radius) + 6px);
  padding: 52px 44px;
  margin: 24px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  max-width: 15ch;
}

.hero p {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-stat {
  background: var(--paper);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.hero-stat .num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest);
  display: block;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------- Catalog controls ---------- */

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 18px;
  flex-wrap: wrap;
}

.catalog-head h2 { font-size: 1.4rem; }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--paper);
  border: 1px solid var(--sage-line);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink);
}

.filter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.filter-btn:hover:not(.active) { border-color: var(--forest); }

/* ---------- Product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.swatch, .card-media {
  height: 148px;
  border-radius: calc(var(--radius) - 3px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-media {
  text-decoration: none;
  transition: filter 0.15s ease;
}

.card-media:hover { filter: brightness(0.97); }

.swatch svg, .card-media svg { width: 84px; height: 84px; }
.swatch svg { width: 40px; height: 40px; }

.card-media .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  border-radius: inherit;
}

.card-media .media-icon-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card-media .media-icon-fallback svg { width: 84px; height: 84px; }

.brand-chip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius);
  background: rgba(31, 58, 46, 0.88);
  color: var(--cream);
  letter-spacing: 0.01em;
}

.stock-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.85);
  color: var(--forest-dark);
}

.stock-tag.low { color: var(--danger); }
.stock-tag.out { color: var(--danger); background: #F3E2DE; }

.card-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.4em;
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.card-name:hover { color: var(--forest-dark); text-decoration: underline; }

.card-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: -8px;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest-dark);
}

.add-btn {
  background: var(--forest);
  color: var(--cream);
  border: none;
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.add-btn:hover { background: var(--forest-dark); }

.add-btn:disabled {
  background: var(--sage);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.empty-note {
  padding: 40px 0;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Cart drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 26, 18, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 40;
}

.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--cream);
  border-left: 1px solid var(--sage-line);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 41;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--sage-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink-soft);
  line-height: 1;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 22px;
}

.drawer-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sage-line);
}

.drawer-item .swatch { width: 52px; height: 52px; flex-shrink: 0; }
.drawer-item .swatch svg { width: 22px; height: 22px; }

.drawer-item-body { flex: 1; min-width: 0; }

.drawer-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--sage-line);
  background: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1;
}

.qty-val { font-size: 0.86rem; min-width: 1.4em; text-align: center; }

.remove-link {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-decoration: underline;
  margin-left: auto;
}

.drawer-foot {
  border-top: 1px solid var(--sage-line);
  padding: 18px 22px 22px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.total-row .price { font-size: 1.5rem; }

.btn-primary {
  width: 100%;
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.btn-primary:disabled {
  background: var(--sage);
  color: var(--ink-soft);
}

/* ---------- Order form modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 26, 18, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--paper);
  border-radius: var(--radius);
  width: min(440px, 100%);
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 { font-size: 1.25rem; margin-bottom: 6px; }
.modal .modal-sub { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 20px; }

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 70px; }

.field-hint {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  background: none;
  border: 1px solid var(--sage-line);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--forest); }

/* ---------- Site footer ---------- */

.site-footer {
  margin-top: 40px;
  background: var(--forest-dark);
  color: #C9D6EE;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.footer-col h4 {
  font-family: 'Fraunces', serif;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-brand-mark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #FFFFFF;
  display: block;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 0.86rem;
  color: #A9BADB;
  line-height: 1.6;
  margin: 0;
}

.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: #C9D6EE;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #8FA1C7;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest-dark);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Home page: extra sections ---------- */

.section-head {
  padding: 8px 0 20px;
}

.section-head h2 {
  font-size: 1.5rem;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 56ch;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.category-tile {
  background: var(--paper);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.category-tile:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.category-tile .tile-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.category-tile .tile-icon svg { width: 26px; height: 26px; }

.category-tile .tile-name {
  font-size: 0.86rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.feature-item {
  padding: 24px;
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-item .feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-item .feature-icon svg { width: 22px; height: 22px; }

.feature-item h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.testimonial-card p.quote {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-card .attribution {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cta-band {
  background: var(--forest);
  border-radius: calc(var(--radius) + 6px);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  color: #FFFFFF;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cta-band p {
  color: #D6E3FA;
  font-size: 0.94rem;
  margin: 0;
}

.cta-band .btn-primary {
  width: auto;
  padding: 13px 26px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .category-tiles { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-band { padding: 30px; flex-direction: column; align-items: flex-start; }
}

/* ---------- Small page hero (Shop / About / Contact) ---------- */

.hero-small {
  padding: 40px 44px 32px;
}

.hero-small h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.hero-small p {
  margin-top: 10px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- About page ---------- */

.about-block {
  max-width: 68ch;
  padding: 28px 0;
  border-top: 1px solid var(--sage-line);
}

.about-block:first-of-type { border-top: none; }

.about-block h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.about-block p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 6px;
}

.about-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest-dark);
  background: var(--sage);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-step h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.about-step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 8px 0 56px;
  align-items: start;
}

.contact-form textarea { min-height: 130px; }

.contact-info-block {
  border-top: 1px solid var(--sage-line);
  padding: 16px 0;
}

.contact-info-block:first-child { border-top: none; padding-top: 0; }

.contact-info-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.contact-info-block a {
  color: var(--forest-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-info-block a:hover { text-decoration: underline; }

.contact-info-block p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Product detail page ---------- */

.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest-dark); text-decoration: underline; }
.breadcrumb span.sep { margin: 0 6px; color: var(--sage-line); }
.breadcrumb span.current { color: var(--ink); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 28px 0 20px;
  align-items: start;
}

.product-media {
  height: 380px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-media svg { width: 190px; height: 190px; }

.product-media .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  border-radius: inherit;
}

.product-media .media-icon-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-media .media-icon-fallback svg { width: 190px; height: 190px; }

.product-info .badge { margin-bottom: 12px; }

.product-info h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.product-info .product-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.product-info .price {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.product-stock {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.product-stock.ok { color: var(--forest-dark); }
.product-stock.low { color: var(--danger); }
.product-stock.out { color: var(--danger); }

.product-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 52ch;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.qty-selector .qty-btn {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.qty-selector .qty-val {
  font-size: 1rem;
  min-width: 2em;
}

.product-detail-actions .btn-primary {
  width: auto;
  padding: 12px 28px;
}

.product-detail-actions .btn-primary:disabled {
  cursor: not-allowed;
}

.related-section {
  padding: 20px 0 56px;
  border-top: 1px solid var(--sage-line);
  margin-top: 20px;
}

.related-section h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.not-found {
  padding: 70px 0;
  text-align: center;
}

.not-found h1 { margin-bottom: 10px; }
.not-found p { color: var(--ink-soft); margin-bottom: 20px; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 34px 24px; margin: 16px 0 36px; }
  .hero-small { padding: 28px 22px 24px; }
  .catalog-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-media { height: 260px; }
  .product-media svg { width: 130px; height: 130px; }
}

/* ============================================================
   Admin dashboard specific
   ============================================================ */

.gate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-dark);
  padding: 20px;
}

.gate-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: min(360px, 100%);
}

.gate-card h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.gate-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-bottom: 22px;
}

.gate-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.admin-shell { display: none; }
.admin-shell.open { display: block; }

.admin-topbar {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.table-wrap {
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }

thead th {
  text-align: left;
  background: var(--sage);
  color: var(--forest-dark);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sage-line);
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sage-line);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FBFAF6; }

.row-name { font-weight: 600; }
.row-note { color: var(--ink-soft); font-size: 0.8rem; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--sage);
  color: var(--forest-dark);
}

.stock-input {
  width: 60px;
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 5px 7px;
  font-family: inherit;
  background: var(--cream);
}

.icon-btn {
  background: none;
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.icon-btn:hover { border-color: var(--forest); }
.icon-btn.danger { color: var(--danger); border-color: #E3C4BC; }
.icon-btn.danger:hover { border-color: var(--danger); }

.admin-note {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.83rem;
  color: var(--forest-dark);
  margin-bottom: 20px;
  line-height: 1.5;
}
