/* Mitchell's Market — original Buscon IT styles */

:root {
  --ink: #14261c;
  --ink-soft: #3a4f42;
  --paper: #f3f6f1;
  --paper-deep: #e4ebe3;
  --panel: #ffffff;
  --forest: #1f4d36;
  --forest-deep: #143526;
  --gold: #c7922a;
  --gold-soft: #e8c56a;
  --danger: #8b2e2e;
  --ok: #1f5b3a;
  --line: rgba(20, 38, 28, 0.12);
  --shadow: 0 18px 40px rgba(20, 38, 28, 0.08);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 146, 42, 0.14), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(31, 77, 54, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faf6 0%, var(--paper) 45%, #eef3ec 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--forest-deep); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-banner {
  background: var(--forest-deep);
  color: #f7faf6;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 241, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: auto;
  height: 3.1rem;
  object-fit: contain;
  background: var(--forest-deep);
  border-radius: 10px;
  padding: 0.25rem 0.45rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold) 45%, var(--forest) 70%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35);
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.story-gallery figure {
  margin: 0;
  background: var(--paper-deep);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.story-gallery img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.story-gallery figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-logo {
  width: min(220px, 55vw);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.site-nav { flex: 1; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-list a[aria-current="page"],
.nav-list a:hover { color: var(--forest-deep); }

.header-carts {
  display: flex;
  gap: 0.5rem;
}
.cart-link {
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(20, 53, 38, 0.15), rgba(20, 53, 38, 0.78)),
    radial-gradient(circle at 70% 30%, rgba(232, 197, 106, 0.35), transparent 40%),
    linear-gradient(135deg, #1f4d36, #0f2a1d 60%, #2b2110);
  color: #f7faf6;
}

.hero-photo {
  background:
    linear-gradient(105deg, rgba(15, 42, 29, 0.88) 0%, rgba(15, 42, 29, 0.55) 42%, rgba(15, 42, 29, 0.35) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero-inner {
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: rgba(247, 250, 246, 0.9);
  max-width: 32rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(199, 146, 42, 0.28);
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-dark {
  background: var(--forest);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.section {
  padding: 3.5rem 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.section-head h2,
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}
.muted { color: var(--ink-soft); }

.split-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.split-cta article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.split-cta h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.split-cta-photo article {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 11rem auto;
}
.cta-photo {
  background-size: cover;
  background-position: center;
  min-height: 11rem;
}
.cta-copy {
  padding: 1.25rem 1.35rem 1.4rem;
}

.mood-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.mood-strip figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 12rem;
  box-shadow: var(--shadow);
}
.mood-strip img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.story-spotlight {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
}
.story-spotlight-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 22rem;
}
.story-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-spotlight-copy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.empty-state-photo {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  align-items: center;
  text-align: left;
  overflow: hidden;
  padding: 0;
}
.empty-state-photo img {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
}
.empty-state-photo > div {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.page-hero-photo {
  position: relative;
  color: #f7faf6;
  padding: 4rem 0 2.5rem;
  background:
    linear-gradient(100deg, rgba(15, 42, 29, 0.88), rgba(15, 42, 29, 0.45)),
    var(--page-hero-image) center / cover no-repeat;
}
.page-hero-photo .page-title { color: #fff; }
.page-hero-photo .muted { color: rgba(247, 250, 246, 0.88); }

.story-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}
.story-side-photos {
  display: grid;
  gap: 0.85rem;
}
.story-side-photos figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.story-side-photos img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}
.story-side-photos figcaption,
.info-photo figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.story-gallery-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-gallery-wide img {
  height: 14rem;
}

.visit-photo {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.info-with-photo {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.info-photo {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-photo img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); }
.product-card-media {
  aspect-ratio: 4/3;
  background:
    linear-gradient(145deg, #dfe8df, #c8d5c8);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 700;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.product-card h3 a { text-decoration: none; color: inherit; }
.price { font-weight: 700; color: var(--forest-deep); }
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: var(--paper-deep);
  color: var(--ink-soft);
}
.badge-pickup { background: #d9ebe0; color: #1f4d36; }
.badge-ship { background: #f3e4c2; color: #6a4a10; }
.badge-var { background: #ece2d6; color: #5a3d22; }

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}
.prose {
  max-width: 48rem;
}
.prose p { margin-top: 0; }

.form-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 700;
  margin: 0.85rem 0 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.form-actions { margin-top: 1.2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
}
.checkbox-row input { margin-top: 0.25rem; }

.flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}
.flash-success { background: #dcefe3; color: var(--ok); }
.flash-error { background: #f3dede; color: var(--danger); }
.flash-info { background: #e7efe9; color: var(--forest-deep); }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}
table.data th,
table.data td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.data th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.cart-layout,
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.site-footer {
  margin-top: 3rem;
  background: var(--forest-deep);
  color: rgba(247, 250, 246, 0.88);
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #f0d78a; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-brand,
.footer-heading {
  font-family: var(--font-display);
  color: #fff;
  margin: 0 0 0.6rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0.35rem 0; }
.footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}

.admin-body { background: #eef2ef; }
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--forest-deep);
  color: #fff;
  padding: 1.25rem;
}
.admin-sidebar a {
  color: #e8f0ea;
  text-decoration: none;
  display: block;
  padding: 0.45rem 0.2rem;
}
.admin-sidebar a:hover { color: var(--gold-soft); }
.admin-main { padding: 1.25rem; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.stat {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 0.75rem;
  }
  .nav-list.is-open { display: flex; }
  .site-nav { order: 3; width: 100%; }
  .split-cta,
  .cart-layout,
  .two-col,
  .footer-grid,
  .admin-shell,
  .story-spotlight,
  .story-layout,
  .info-with-photo,
  .mood-strip,
  .story-gallery-wide,
  .empty-state-photo {
    grid-template-columns: 1fr;
  }
  .story-gallery { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .empty-state-photo > div { padding: 0 1.25rem 1.25rem; }
}
