/* Warrior Whimsy — storefront styles
   Palette: military olive + warm sand + a friendly "whimsy" accent. */

:root {
  --olive:      #4b5320;
  --olive-dark: #363c17;
  --sand:       #f4efe6;
  --sand-dark:  #e6ddcb;
  --ink:        #24261c;
  --muted:      #6b6d5f;
  --accent:     #c96a4a;   /* warm terracotta */
  --accent-dark:#a9502f;
  --gold:       #b8944d;   /* medal / brass */
  --gold-light: #c9a55e;
  --white:      #ffffff;
  --ok:         #3f7d43;
  --err:        #b23b3b;
  --radius:     10px;
  --shadow:     0 2px 10px rgba(0,0,0,.08);
  --wrap:       1080px;
  --display:    "Oswald", "Arial Narrow", system-ui, sans-serif;
  --stencil:    "Saira Stencil One", "Oswald", sans-serif;
  /* subtle diagonal service-stripe texture, layered over solid fills */
  --stripes:    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 13px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}

h1, h2, h3, .brand-text { font-family: var(--display); letter-spacing: .01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--olive); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--olive);
  background-image: var(--stripes);
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: 48px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 0 0 2px var(--gold); }
.brand-text { font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.brand-mark { color: var(--accent); font-size: 1.4rem; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: #f4efe6; font-family: var(--display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; font-size: .98rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--gold); }
.cart-link { position: relative; }
.cart-badge {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: .78rem; font-weight: 700; margin-left: 2px;
}

.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 720px) {
  .nav-toggle-label { display: block; font-size: 1.6rem; cursor: pointer; color: #fff; }
  .site-nav {
    display: none; position: absolute; top: 66px; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--olive-dark); padding: 8px 20px 16px;
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 24px; text-align: center;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn-olive { background: var(--olive); }
.btn-olive:hover { background: var(--olive-dark); }
.btn-ghost { background: transparent; color: var(--olive); border: 2px solid var(--olive); }
.btn-ghost:hover { background: var(--olive); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { background: var(--muted); cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 60px 46px; margin: 26px 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.2);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--stripes); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 14px; border: 2px solid var(--gold); opacity: .55;
  border-radius: 6px; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-family: var(--stencil); letter-spacing: .12em;
  color: var(--gold-light); text-transform: uppercase; font-size: .92rem; margin-bottom: 14px;
}
.hero h1 { margin: 0 0 14px; font-size: 2.9rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 .accent { color: var(--gold-light); }
.hero p { margin: 0 0 26px; font-size: 1.15rem; max-width: 640px; color: #f0ecdf; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.section-title {
  margin: 40px 0 18px; font-size: 1.7rem; color: var(--olive-dark);
  text-transform: uppercase; letter-spacing: .02em;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ""; width: 26px; height: 4px; background: var(--gold); border-radius: 2px;
  box-shadow: 6px 0 0 var(--olive), 12px 0 0 var(--accent);
  flex: 0 0 auto;
}

/* ---------- Feature badges strip ---------- */
.badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 8px;
}
.badge-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; text-align: center; border-top: 3px solid var(--gold);
}
.badge-card .ico { color: var(--gold); line-height: 0; }
.badge-card .ico svg { width: 38px; height: 38px; }
.badge-card .t {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .03em;
  font-weight: 600; color: var(--olive-dark); margin: 8px 0 2px; font-size: .98rem;
}
.badge-card .d { color: var(--muted); font-size: .84rem; }
@media (max-width: 720px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border-top: 3px solid transparent;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.14); border-top-color: var(--gold); }
.card a.card-img { display: block; aspect-ratio: 1/1; background: var(--sand-dark); }
.card a.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.02rem; }
.card-body h3 a { color: var(--ink); }
.card-cat { font-family: var(--display); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; }
.card-price { font-weight: 700; color: var(--olive-dark); font-size: 1.1rem; margin-top: auto; }
.card-price-inquire {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .04em;
  font-size: .95rem; font-weight: 600; color: var(--accent-dark);
}
.card-price-inquire:hover { color: var(--accent); text-decoration: none; }
.badge-soldout { color: var(--err); font-weight: 600; font-size: .85rem; }
.badge-mto { color: var(--olive); font-weight: 600; font-size: .8rem; }

/* ---------- Category filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; }
.chip {
  border: 1.5px solid var(--sand-dark); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 7px 15px; font-size: .9rem;
}
.chip:hover { border-color: var(--olive); text-decoration: none; }
.chip.active { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------- Product detail ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin: 26px 0; }
.gallery-main { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img.active { border-color: var(--accent); }
.product-info h1 { margin: 0 0 6px; }
.product-price { font-size: 1.6rem; font-weight: 700; color: var(--olive-dark); margin: 10px 0 16px; }
.product-desc { white-space: pre-line; margin: 16px 0; }
.inquire-box { background: var(--sand); border: 1px solid var(--sand-dark); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px 20px; margin: 8px 0; }
.inquire-lead { margin: 0 0 14px; color: var(--ink); }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--sand-dark);
  border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff;
}
.qty-row { display: flex; gap: 12px; align-items: end; }
.qty-row .field { margin: 0; }
.qty-row input { width: 90px; }

@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 1.8rem; }
}

/* ---------- Cart & checkout ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--sand-dark); vertical-align: middle; }
.table th { background: var(--sand-dark); font-family: var(--display); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--olive-dark); }
.table img.mini { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.table input.qty { width: 64px; padding: 6px 8px; border: 1.5px solid var(--sand-dark); border-radius: 6px; }
.line-note { font-size: .82rem; color: var(--muted); }

.totals { max-width: 360px; margin-left: auto; margin-top: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { border-top: 2px solid var(--sand-dark); margin-top: 8px; padding-top: 12px; font-size: 1.25rem; font-weight: 700; color: var(--olive-dark); }

.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; margin: 24px 0; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.panel h2 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .checkout-grid, .form-row { grid-template-columns: 1fr; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

.notice { padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.notice-ok  { background: #e7f2e8; color: var(--ok); border: 1px solid #bcd9be; }
.notice-err { background: #f7e6e6; color: var(--err); border: 1px solid #e0b4b4; }
.notice-info{ background: #eef1e4; color: var(--olive-dark); border: 1px solid #d5dab8; }

/* ---------- About page ---------- */
.about-hero {
  display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start;
  margin: 30px 0 10px;
}
.about-photo img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-intro h1 { margin: 0 0 8px; font-size: 2.2rem; color: var(--olive-dark); }
.about-tagline { font-size: 1.15rem; color: var(--accent-dark); font-weight: 600; margin: 0 0 14px; }
.about-body { margin: 24px 0; }
.about-body .panel { max-width: 820px; }
.about-body h2 { color: var(--olive-dark); margin: 24px 0 8px; }
.about-body h2:first-child { margin-top: 0; }
.about-quote {
  margin: 22px 0; padding: 16px 22px; border-left: 4px solid var(--accent);
  background: var(--sand); border-radius: 0 8px 8px 0; font-size: 1.12rem;
  font-style: italic; color: var(--olive-dark);
}
@media (max-width: 720px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-photo { max-width: 260px; margin: 0 auto; }
}

/* ---------- Events / Where to Find Us ---------- */
.events-list { display: flex; flex-direction: column; gap: 16px; margin: 8px 0; }
.event-card {
  display: flex; gap: 20px; align-items: stretch;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 4px solid var(--gold); overflow: hidden;
}
.event-date {
  flex: 0 0 92px; background: var(--olive); background-image: var(--stripes);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px;
}
.event-mon { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--gold-light); }
.event-day { font-family: var(--display); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.event-info { padding: 16px 18px 16px 4px; display: flex; flex-direction: column; gap: 4px; }
.event-info h3 { margin: 0; font-size: 1.25rem; color: var(--olive-dark); }
.event-when { margin: 0; font-weight: 600; color: var(--ink); }
.event-where { margin: 0; color: var(--muted); }
.event-note { margin: 4px 0 0; color: var(--ink); }
.event-link { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; font-weight: 600; margin-top: 4px; }
@media (max-width: 560px) {
  .event-card { flex-direction: row; }
  .event-date { flex-basis: 74px; }
  .event-info { padding: 14px 16px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-dark); background-image: var(--stripes); color: #e9e4d6; margin-top: 50px; border-top: 3px solid var(--gold); }
.footer-col strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 40px 20px 26px; }
.footer-col strong { display: block; margin-bottom: 10px; color: #fff; }
.footer-col a { display: block; color: #e9e4d6; padding: 3px 0; }
.footer-col p { margin: 6px 0; color: #c9c4b4; font-size: .92rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: .85rem; color: #b7b3a3; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer-admin { color: #8f8b7b; font-size: .82rem; }
.footer-admin:hover { color: var(--gold-light); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Admin ---------- */
.admin-body { background: #eef0e8; }
.admin-header { background: var(--olive-dark); background-image: var(--stripes); color: #fff; border-bottom: 3px solid var(--gold); }
.admin-nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; }
.login-box { border-top: 4px solid var(--gold); }
.login-box h1 { color: var(--olive-dark); }
.admin-header .header-inner { height: 56px; }
.admin-header a { color: #e9e4d6; }
.admin-nav { display: flex; gap: 20px; }
.admin-wrap { max-width: 1000px; margin: 26px auto; padding: 0 20px; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.login-box { max-width: 380px; margin: 8vh auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--olive-dark); }
.stat .lbl { color: var(--muted); font-size: .9rem; }
.inline-form { display: inline; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill-pending { background: #fdeccd; color: #8a5a12; }
.pill-paid { background: #d9efdb; color: #2f6b33; }
.pill-shipped { background: #d5e4f5; color: #2c5488; }
.pill-cancelled { background: #f0d9d9; color: #8a2f2f; }
