/* ── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #195f59;
  --green-mid:   #287b72;
  --green-light: #43958a;
  --tan:         #fffdf4;
  --tan-dark:    #fff0a3;
  --brown:       #d7192d;
  --brown-dark:  #a80f20;
  --wood-base:   #f4d51e;
  --wood-dark:   #b79400;
  --steel:       #202020;
  --text:        #171717;
  --text-muted:  #595959;
  --white:       #ffffff;
  --border:      #e5d26b;
  --shadow:      0 2px 8px rgba(0,0,0,.14);
  --radius:      6px;
  --font:        'Georgia', 'Times New Roman', serif;
  --font-sans:   system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

/* ── Sign-inspired page background ───────────────────────────────── */
body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-color: #fff7cf;
  background-image:
    repeating-linear-gradient(
      91.5deg,
      transparent 0px,
      transparent 4px,
      rgba(23, 23, 23, 0.025) 4px,
      rgba(23, 23, 23, 0.025) 5px,
      transparent 5px,
      transparent 11px,
      rgba(215, 25, 45, 0.022) 11px,
      rgba(215, 25, 45, 0.022) 12px,
      transparent 12px,
      transparent 19px,
      rgba(25, 95, 89, 0.03) 19px,
      rgba(25, 95, 89, 0.03) 20px,
      transparent 20px,
      transparent 28px,
      rgba(23, 23, 23, 0.02) 28px,
      rgba(23, 23, 23, 0.02) 29px,
      transparent 29px,
      transparent 38px,
      rgba(215, 25, 45, 0.022) 38px,
      rgba(215, 25, 45, 0.022) 39px,
      transparent 39px,
      transparent 50px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(244, 213, 30, 0.08) 0px,
      rgba(255, 255, 255, 0.18) 80px,
      rgba(244, 213, 30, 0.06) 160px,
      rgba(255, 255, 255, 0.15) 280px,
      rgba(244, 213, 30, 0.08) 420px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 80px,
      rgba(25, 95, 89, 0.025) 80px,
      rgba(25, 95, 89, 0.025) 82px,
      transparent 82px,
      transparent 160px
    );
}

a { color: var(--brown); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Utilities ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: .9rem; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .2em .55em; border-radius: 999px; }
.badge-green { background: var(--green-light); color: var(--white); }
.badge-red   { background: #c0392b; color: var(--white); }
.badge-brown { background: var(--brown); color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.25rem; border-radius: var(--radius); border: none;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-dark); text-decoration: none; color: var(--white); }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-mid); text-decoration: none; color: var(--white); }
.btn-outline   { background: transparent; color: var(--brown); border: 2px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); text-decoration: none; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-danger { background: #c0392b; color: var(--white); }
.btn-danger:hover { background: #a93226; text-decoration: none; color: var(--white); }
.btn-full { width: 100%; }

/* ── Navigation ──────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(100deg, #195f59 0%, #287b72 62%, #195f59 100%);
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 4px solid var(--wood-base);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 86px;
  padding: .45rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.navbar-brand {
  display: block;
  width: 108px;
  height: 76px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  text-decoration: none;
}
.navbar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.08);
}
.navbar-links { display: flex; align-items: center; gap: .25rem; }
.navbar-links a {
  color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 700;
  padding: .38rem .85rem; border-radius: var(--radius); transition: background .15s, color .15s;
  text-decoration: none; border: 1px solid transparent;
}
.navbar-links a:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.navbar-links a.active { background: var(--wood-base); color: #111; border-color: #111; }
.navbar-cart {
  display: flex; align-items: center; gap: .4rem;
  background: var(--brown); color: #fff;
  padding: .4rem .9rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s;
  border: 2px solid #111;
}
.navbar-cart:hover { background: var(--brown-dark); text-decoration: none; color: #fff; }
.cart-badge {
  background: var(--wood-base); color: #111;
  border-radius: 999px; font-size: .75rem; font-weight: 800;
  min-width: 1.3em; height: 1.3em; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .25em;
}

.home-page > .container { width: 100%; }
.knife-store-page > .container { width: 100%; }

/* ── Flash Messages ──────────────────────────────────────────────── */
.flashes { padding: .75rem 1.5rem; }
.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: .5rem; font-size: .9rem; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Hero Banner ─────────────────────────────────────────────────── */
.hero {
  color: var(--white);
  min-height: clamp(440px, 62vh, 640px);
  padding: 3.5rem 1.5rem;
  border-bottom: 3px solid rgba(0,0,0,.3);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: #314b44;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -36px;
  background: var(--hero-image) center / cover no-repeat;
  filter: blur(28px) brightness(.55);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(100%, 1100px);
  transform: translateX(-50%);
  background-image:
    linear-gradient(90deg, rgba(13, 21, 12, .43), rgba(13, 21, 12, .3)),
    var(--hero-image);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  z-index: -1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
}
.hero h1 { font-family: var(--font); font-size: 2.8rem; font-weight: bold; margin-bottom: .75rem; text-shadow: 0 2px 6px rgba(0,0,0,.55); letter-spacing: .02em; }
.hero p { font-size: 1.15rem; color: #f0deb8; max-width: 560px; margin: 0 auto 1.75rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.store-info-text { white-space: pre-line; overflow-wrap: anywhere; }

/* ── Sophia's Cutlery feature below the Hardware hero ─────────────── */
.sophias-feature-banner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 1.5rem 0 .25rem;
  padding: .75rem;
  min-height: 190px;
  color: #fff;
  text-decoration: none;
  background: var(--green);
  border: 3px solid var(--steel);
  border-top: 6px solid var(--wood-base);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.sophias-feature-banner:hover { text-decoration: none; background: #14534e; }
.sophias-feature-banner:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.sophias-feature-banner img {
  width: 166px;
  height: 166px;
  flex: 0 0 166px;
  object-fit: contain;
  background: #f8f0ea;
  border-radius: 4px;
}
.sophias-feature-copy { display: flex; flex-direction: column; align-items: flex-start; }
.sophias-feature-eyebrow { color: var(--wood-base); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.sophias-feature-title { font: bold clamp(1.5rem, 3vw, 2.5rem)/1.2 var(--font); margin: .3rem 0 .65rem; }
.sophias-feature-link { color: #fff; font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
.sophias-feature-rail {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Desktop home layout: feature rail beside homepage content ─────── */
@media (min-width: 1100px) {
  .home-content-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
  }
  .sophias-feature-rail {
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 1.5rem 1rem;
    background: var(--green);
    border-right: 3px solid var(--steel);
  }
  .sophias-feature-banner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 1rem;
    text-align: center;
  }
  .sophias-feature-banner img {
    width: 100%;
    height: clamp(180px, 28vh, 320px);
    flex: 0 0 auto;
    object-fit: contain;
  }
  .sophias-feature-copy { align-items: center; }
  .home-main-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 2rem;
  }
}

/* ── Section Headers ─────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 0 1rem;
}
.section-header h2 { font-family: var(--font); font-size: 1.6rem; color: var(--green); }
.section-header a  { font-size: .9rem; color: var(--brown); font-weight: 600; }
.divider { border: none; border-top: 2px solid var(--border); margin: .5rem 0 1.5rem; }

/* ── Ads Grid ────────────────────────────────────────────────────── */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding-bottom: 2rem;
}
.ad-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: .6rem;
}
.ad-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.15); transform: translateY(-2px); }
.ad-card-icon { font-size: 2rem; line-height: 1; }
.ad-card h3 { font-family: var(--font); font-size: 1.1rem; color: var(--green); }
.ad-card p  { color: var(--text-muted); font-size: .9rem; flex: 1; }
.ad-card a  { font-size: .85rem; font-weight: 600; color: var(--brown); }

/* ── Knife Cards Grid ────────────────────────────────────────────── */
.knives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding-bottom: 2rem;
}
.knife-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.knife-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.15); transform: translateY(-3px); }
.knife-card-img {
  height: 160px; background: linear-gradient(135deg, var(--tan-dark), var(--tan));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
}
.knife-card-img:focus-visible { outline: 3px solid var(--brown); outline-offset: -3px; }
.knife-card-img img { width: 100%; height: 100%; object-fit: cover; }
.knife-card-img .no-img { opacity: .35; }
.knife-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.knife-card-brand { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.knife-card-name  { font-family: var(--font); font-size: 1rem; color: var(--text); font-weight: bold; line-height: 1.3; }
.knife-item-number { font-size: .76rem; font-weight: 800; letter-spacing: .05em; color: var(--green); }
.knife-card-meta  { font-size: .8rem; color: var(--text-muted); }
.knife-card-price { font-size: 1.2rem; font-weight: 800; color: var(--brown); margin-top: auto; padding-top: .5rem; }
.knife-card-footer { padding: .75rem 1rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.out-of-stock { color: #c0392b; font-size: .8rem; font-weight: 700; }

/* ── Out-of-stock card overlay ───────────────────────────────────── */
.knife-card-oos { opacity: .82; }
.knife-card-img { position: relative; }
.oos-card-overlay {
  position: absolute; inset: 0;
  background: rgba(30,10,5,.58);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
.oos-card-overlay span {
  background: #c0392b; color: #fff;
  font-size: .78rem; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; padding: .35rem 1rem; border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.oos-footer-label { font-size: .82rem; font-weight: 700; color: #c0392b; }

/* ── Out-of-stock detail banner ──────────────────────────────────── */
.oos-banner {
  display: flex; align-items: flex-start; gap: .75rem;
  background: #fde8e6; border: 2px solid #c0392b; border-radius: var(--radius);
  padding: .9rem 1.1rem; margin: 1rem 0;
}
.oos-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.oos-title { font-weight: 800; color: #c0392b; font-size: 1rem; }
.oos-sub { font-size: .85rem; color: #8a3a30; margin-top: .2rem; line-height: 1.4; }
.btn-oos {
  margin-top: .5rem; padding: .65rem 2rem; font-size: 1rem; font-weight: 700;
  background: #e8e4dc; color: #999; border: 2px solid #ccc;
  border-radius: var(--radius); cursor: not-allowed; width: 100%;
}

/* ── Knife Catalog Layout ────────────────────────────────────────── */
.catalog-layout { display: flex; gap: 2rem; padding: 1.5rem 0 3rem; align-items: flex-start; }
.filter-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); position: sticky; top: 106px;
  max-height: min(640px, calc(100vh - 250px));
  max-height: min(640px, calc(100dvh - 250px));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--wood-dark) var(--tan);
}
.filter-sidebar h3 { font-family: var(--font); font-size: 1.1rem; color: var(--green); margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
.filter-scroll-hint { margin: -.45rem 0 .95rem; color: var(--text-muted); font-size: .76rem; }
.filter-sidebar::-webkit-scrollbar { width: 10px; }
.filter-sidebar::-webkit-scrollbar-track { background: var(--tan); }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--wood-dark); border-radius: 8px; border: 2px solid var(--tan); }
.filter-group { margin-bottom: 1.1rem; }
.filter-group label.group-label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .4rem; }
.filter-select {
  width: 100%; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--tan); font-size: .9rem; color: var(--text); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 10px;
  padding-right: 2rem;
}
.filter-select:focus { outline: 2px solid var(--brown); border-color: var(--brown); }
.filter-input {
  width: 100%; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--tan); font-size: .9rem; color: var(--text);
}
.filter-input:focus { outline: 2px solid var(--brown); border-color: var(--brown); }
.filter-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.filter-check input[type=checkbox] { accent-color: var(--brown); width: 1rem; height: 1rem; }
.price-row { display: flex; gap: .5rem; align-items: center; }
.price-row input { width: 0; flex: 1; }
.price-row span { font-size: .8rem; color: var(--text-muted); }
.filter-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.catalog-main { flex: 1; min-width: 0; }
.catalog-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.catalog-bar .result-count { font-size: .9rem; color: var(--text-muted); }
.search-row { display: flex; gap: .5rem; margin-bottom: .75rem; }
.search-row input { flex: 1; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; background: var(--white); }
.search-row input:focus { outline: 2px solid var(--brown); border-color: var(--brown); }
.no-results { text-align: center; padding: 3rem; color: var(--text-muted); }
.no-results span { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── Knife Detail ────────────────────────────────────────────────── */
.detail-layout { display: flex; gap: 2.5rem; padding: 2rem 0 3rem; align-items: flex-start; }
.detail-img {
  width: 380px; flex-shrink: 0; background: linear-gradient(135deg, var(--tan-dark), var(--tan));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 7rem; overflow: hidden;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img .no-img { opacity: .25; }
.detail-info { flex: 1; min-width: 0; }
.detail-brand { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .3rem; }
.detail-name  { font-family: var(--font); font-size: 2rem; color: var(--text); line-height: 1.2; margin-bottom: .6rem; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--brown); margin-bottom: 1rem; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; margin-bottom: 1.25rem; }
.spec-row { display: contents; }
.spec-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.spec-value { font-size: .9rem; color: var(--text); }
.detail-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.qty-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.qty-label { font-size: .9rem; font-weight: 600; color: var(--text); }
.qty-input { width: 70px; padding: .5rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.related-section { padding: 2rem 0 3rem; border-top: 2px solid var(--border); }
.related-section h2 { font-family: var(--font); font-size: 1.4rem; color: var(--green); margin-bottom: 1.25rem; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-muted); padding: 1rem 0 0; }
.breadcrumb a { color: var(--brown); }
.breadcrumb span { color: var(--text-muted); }

/* ── Cart & Checkout ─────────────────────────────────────────────── */
.cart-layout { display: flex; gap: 2rem; padding: 2rem 0 3rem; align-items: flex-start; }
.cart-items { flex: 1; min-width: 0; }
.cart-summary { width: 300px; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 80px; }
.cart-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.cart-item-icon { font-size: 2rem; width: 3.5rem; height: 3.5rem; background: var(--tan); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 700; color: var(--text); }
.cart-item-brand { font-size: .8rem; color: var(--text-muted); }
.cart-item-price { font-size: .95rem; color: var(--brown); font-weight: 700; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.qty-control { display: flex; align-items: center; gap: .35rem; }
.qty-control input { width: 55px; text-align: center; padding: .3rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; }
.qty-control .btn-sm { padding: .3rem .6rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.cart-empty span { font-size: 4rem; display: block; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; font-size: .95rem; }
.summary-row.total { border-top: 2px solid var(--border); padding-top: .75rem; margin-top: .25rem; font-weight: 800; font-size: 1.1rem; color: var(--brown); }
.summary-title { font-family: var(--font); font-size: 1.1rem; color: var(--green); margin-bottom: .75rem; border-bottom: 1px solid var(--border); padding-bottom: .6rem; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-page { padding: 2rem 0 3rem; }
.form-page h1 { font-family: var(--font); font-size: 1.8rem; color: var(--green); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: flex-start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.form-card h2 { font-family: var(--font); font-size: 1.15rem; color: var(--green); margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font-sans); background: var(--tan); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--brown); border-color: var(--brown); background: var(--white); }
.form-error { color: #c0392b; font-size: .8rem; margin-top: .25rem; }
.form-group input.invalid, .form-group textarea.invalid { border-color: #c0392b; }

/* ── Order Confirmation ──────────────────────────────────────────── */
.confirm-page { text-align: center; padding: 3rem 1rem; }
.confirm-icon { font-size: 5rem; margin-bottom: 1rem; }
.confirm-page h1 { font-family: var(--font); font-size: 2rem; color: var(--green); margin-bottom: .5rem; }
.confirm-page p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }
.order-summary-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 520px; margin: 0 auto 2rem; text-align: left; box-shadow: var(--shadow); }
.order-summary-card h3 { font-family: var(--font); font-size: 1rem; color: var(--green); margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.order-line { display: flex; justify-content: space-between; font-size: .9rem; padding: .3rem 0; }
.order-total { border-top: 2px solid var(--border); padding-top: .6rem; margin-top: .3rem; font-weight: 800; color: var(--brown); font-size: 1rem; }
.order-lookup { max-width: 560px; margin: 0 auto; }
.lookup-help { color: var(--text-muted); margin-bottom: 1.25rem; }
.tracking-details { display: grid; gap: .6rem; margin: 1rem 0 1.4rem; word-break: break-word; }
.tracking-details .btn { justify-self: start; }
.confirm-page .order-summary-card p { margin: .5rem 0 1rem; }
.order-address { padding-top: .75rem; border-top: 1px solid var(--border); white-space: pre-line; }
.confirm-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Page Header Strip ───────────────────────────────────────────── */
.page-header { background: var(--green); color: var(--white); padding: 1.25rem 1.5rem; }
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-family: var(--font); font-size: 1.6rem; font-weight: bold; }
.page-header p  { font-size: .9rem; color: #a8c4a8; margin-top: .2rem; }

/* ── Tag pills ───────────────────────────────────────────────────── */
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.tag { font-size: .72rem; padding: .2em .6em; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); background: var(--tan); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: #195f59; color: #d8f0ec;
  padding: 1.5rem 1.5rem; margin-top: auto;
  font-size: .85rem; text-align: center;
  border-top: 4px solid var(--wood-base);
}
footer a { color: #fff4a8; }
.admin-login-btn {
  display: inline-block; font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.45); text-decoration: none;
  border: 1px solid rgba(255,255,255,.15); border-radius: 4px;
  padding: .3rem .75rem; letter-spacing: .04em;
  transition: color .15s, border-color .15s, background .15s;
}
.admin-login-btn:hover {
  color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .catalog-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; max-height: min(60vh, 540px); max-height: min(60dvh, 540px); }
  .detail-layout { flex-direction: column; }
  .detail-img { width: 100%; max-width: 380px; }
  .cart-layout { flex-direction: column; }
  .cart-summary { width: 100%; position: static; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: 500px; padding: 3rem 1.25rem; }
  .hero::after { mask-image: none; }
  .hero h1 { font-size: 1.9rem; }
  .sophias-feature-banner { flex-direction: column; text-align: center; padding: 1rem; gap: .75rem; }
  .sophias-feature-banner img { width: min(180px, 100%); height: auto; aspect-ratio: 1; flex-basis: auto; }
  .sophias-feature-copy { align-items: center; }
  .navbar-inner { flex-wrap: wrap; gap: .5rem; }
  .navbar-brand { width: 88px; height: 58px; }
  .navbar-links { flex-wrap: wrap; }
}
