:root {
  --green: #0f5132;
  --green-2: #14663f;
  --green-dark: #08301e;
  --red: #b81d24;
  --red-2: #d3262e;
  --gold: #c9a227;
  --gold-light: #f4d06f;
  --cream: #fbf7ef;
  --cream-2: #f3ebdd;
  --ink: #2c2320;
  --muted: #7a6f68;
  --line: #e7ddcf;
  --white: #fff;
  --shadow: 0 10px 30px rgba(60, 30, 20, 0.08);
  --shadow-lg: 0 22px 60px rgba(60, 30, 20, 0.16);
  --radius: 18px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Dancing Script", cursive;
  --font-sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0; }

.container { width: min(1240px, 92%); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--green-dark), var(--green), var(--green-dark));
  color: var(--gold-light);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  font-weight: 600;
}
.topbar span { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 24px; color: var(--green); white-space: nowrap; }
.logo .logo-mark { font-size: 30px; }
.logo b { color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a.active { background: var(--cream-2); color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  font-size: 19px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}
.search-wrap { position: relative; flex: 1; max-width: 320px; }
.search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--green); }
.search-wrap::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.6; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #1c7a4d 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
  border-radius: 0 0 34px 34px;
  padding: 76px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.22) 1px, transparent 1px), radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 46px 46px, 72px 72px;
  background-position: 0 0, 23px 23px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero .eyebrow { font-family: var(--font-script); font-size: 34px; color: var(--gold-light); margin-bottom: 4px; display: block; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); margin-bottom: 18px; letter-spacing: -0.5px; }
.hero p { font-size: 17px; max-width: 520px; color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); font-size: 13px; font-weight: 500; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(184,29,36,0.35); }
.btn-primary:hover { background: var(--red-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(184,29,36,0.45); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--green-dark); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,162,39,0.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.24); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Sections ---------- */
main { padding: 12px 0 60px; }
.section { padding: 52px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head .eyebrow { font-family: var(--font-script); color: var(--red); font-size: 26px; display: block; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 560px; }

/* ---------- Category pills ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.cat-card .ico { font-size: 38px; }
.cat-card b { font-size: 15px; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--cream-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-media img { transform: scale(1.06); }
.badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15,81,50,0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.product-title { font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; min-height: 38px; }
.product-title a:hover { color: var(--green); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 14px; }
.price { font-family: var(--font-serif); font-size: 21px; color: var(--green); font-weight: 700; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn-primary { flex: 1; padding: 11px 14px; font-size: 13px; }

/* ---------- Toolbar / listing ---------- */
.listing-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.filter-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.filter-card h3 { font-size: 16px; margin-bottom: 14px; font-family: var(--font-sans); font-weight: 700; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 14px; transition: background 0.15s; }
.filter-list a:hover, .filter-list a.active { background: var(--cream-2); color: var(--green); font-weight: 600; }
.filter-list .count { color: var(--muted); font-size: 12px; }
.price-inputs { display: flex; gap: 8px; margin-bottom: 12px; }
.price-inputs input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--green); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .result-count { color: var(--muted); font-size: 14px; }
.toolbar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-family: inherit; font-size: 14px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 14px; font-weight: 600;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Product page ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a:hover { color: var(--green); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.product-gallery { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-info .product-cat { font-size: 12px; }
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pd-price .price { font-size: 32px; }
.pd-price .price-old { font-size: 18px; }
.pd-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--green); font-weight: 600; margin-bottom: 16px; }
.pd-stock::before { content: "●"; color: #2fa360; }
.pd-desc { color: #4d423c; margin-bottom: 20px; }
.pd-short { font-size: 16px; color: #4d423c; margin-bottom: 16px; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.qty-box button { width: 42px; height: 46px; border: none; background: transparent; font-size: 18px; font-weight: 700; color: var(--green); }
.qty-box button:hover { background: var(--cream-2); }
.qty-box input { width: 54px; height: 46px; border: none; text-align: center; font-size: 16px; font-family: inherit; font-weight: 600; outline: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.buy-row .btn-primary { min-width: 200px; }
.pd-meta { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.pd-meta b { color: var(--ink); }
.pd-perks { display: grid; gap: 10px; margin-top: 18px; }
.pd-perk { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 14px; background: var(--cream-2); border-radius: 12px; }

.tabs { margin-top: 46px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab-nav button { background: none; border: none; padding: 14px 20px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-nav button.active { color: var(--green); border-bottom-color: var(--green); }
.tab-panel { display: none; color: #4d423c; max-width: 820px; }
.tab-panel.active { display: block; }
.tab-panel ul { padding-left: 20px; }

/* ---------- Cart ---------- */
.page-head { margin: 24px 0 26px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.page-head .sub { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 6px 0 34px; flex-wrap: wrap; font-size: 14px; }
.stepper .step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.stepper .step.active { color: var(--green); }
.stepper .step.done { color: var(--green); }
.stepper .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper .step.active .dot, .stepper .step.done .dot { background: var(--green); color: #fff; border-color: var(--green); }
.stepper .sep { width: 40px; height: 2px; background: var(--line); }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cart-row .ci-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cart-row .ci-name:hover { color: var(--green); }
.cart-row .ci-price { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cart-row .line-total { font-weight: 700; font-family: var(--font-serif); color: var(--green); font-size: 17px; min-width: 80px; text-align: right; }
.remove-btn { border: none; background: none; font-size: 18px; color: var(--muted); padding: 6px; border-radius: 8px; }
.remove-btn:hover { background: #fbeaea; color: var(--red); }

.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.summary-card h3 { font-size: 20px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.sum-row.total { border-bottom: none; font-size: 20px; font-weight: 700; font-family: var(--font-serif); color: var(--green); padding-top: 16px; }
.free-ship-note { background: var(--cream-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; margin: 14px 0; }
.free-ship-bar { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.free-ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #37a56c); border-radius: 999px; transition: width 0.4s; }

.empty-state { text-align: center; padding: 70px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state .ico { font-size: 60px; margin-bottom: 12px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.form-card h3 { font-size: 19px; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #4a3f39; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,81,50,0.1); background: #fff; }
.field textarea { min-height: 92px; resize: vertical; }
.radio-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.radio-option:hover { border-color: var(--green); }
.radio-option.selected { border-color: var(--green); background: rgba(15,81,50,0.05); }
.radio-option input { accent-color: var(--green); width: 18px; height: 18px; }
.radio-option .ro-main { flex: 1; }
.radio-option .ro-name { font-weight: 600; font-size: 14px; }
.radio-option .ro-note { font-size: 12px; color: var(--muted); }
.radio-option .ro-price { font-weight: 700; color: var(--green); }
.order-mini { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-mini img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.order-mini .om-name { font-size: 13px; font-weight: 600; flex: 1; }
.order-mini .om-qty { font-size: 12px; color: var(--muted); }
.order-mini .om-total { font-size: 13px; font-weight: 700; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.error { display: block; background: #fdecec; color: #a11; border: 1px solid #f5c6c6; }
.alert.success { display: block; background: #eaf7ef; color: #136b3a; border: 1px solid #bfe6cf; }

/* ---------- Account / auth ---------- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.orders-list { display: grid; gap: 14px; }
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.order-card .oc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.order-card .oc-num { font-weight: 700; color: var(--green); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--cream-2); font-size: 12px; font-weight: 600; }
.status-pill.done { background: #eaf7ef; color: #136b3a; }

/* ---------- Success ---------- */
.success-box { max-width: 680px; margin: 40px auto; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 46px 40px; text-align: center; box-shadow: var(--shadow); }
.success-box .check { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #2fa360, var(--green)); color: #fff; font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-box h1 { font-size: 30px; margin-bottom: 10px; }
.success-box .order-no { display: inline-block; margin: 14px 0; padding: 10px 22px; border: 1.5px dashed var(--green); border-radius: 12px; font-family: var(--font-serif); font-size: 20px; color: var(--green); font-weight: 700; }
.success-details { text-align: left; margin: 26px auto 0; max-width: 460px; border-top: 1px solid var(--line); padding-top: 20px; }
.success-details .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.success-details .row b { color: var(--green); }

/* ---------- Info pages ---------- */
.info-page { max-width: 820px; margin: 0 auto; }
.info-page h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.info-page .lead { color: var(--muted); margin-bottom: 30px; font-size: 17px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 18px; }
.info-card h2 { font-size: 21px; margin-bottom: 12px; }
.info-card p, .info-card li { color: #4d423c; }
.info-card ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: rgba(255,255,255,0.78); margin-top: 70px; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer a:hover { color: var(--gold-light); }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo b { color: var(--gold-light); }
.footer p { font-size: 14px; margin: 0 0 10px; }
.footer .pay-icons { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer .pay-icons span { padding: 6px 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--green-dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  max-width: 340px;
}
.toast.err { background: var(--red); }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Breadcrumb hero small ---------- */
.cat-hero { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border-radius: var(--radius); padding: 38px 36px; margin: 22px 0 30px; position: relative; overflow: hidden; }
.cat-hero::after { content: "❄"; position: absolute; right: 34px; top: 10px; font-size: 120px; opacity: 0.12; }
.cat-hero .eyebrow { font-family: var(--font-script); color: var(--gold-light); font-size: 26px; }
.cat-hero h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 8px; }
.cat-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0; }

/* ---------- Locker picker / modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 20px;
  width: min(920px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; }
.modal-head .close-x { border: none; background: none; font-size: 22px; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.modal-head .close-x:hover { background: var(--cream-2); }
.modal-body { display: grid; grid-template-columns: 1fr 320px; gap: 0; overflow: hidden; }
.map-wrap { position: relative; min-height: 380px; background: #dfe8dd; }
#locker-map { position: absolute; inset: 0; }
.locker-list { border-left: 1px solid var(--line); display: flex; flex-direction: column; max-height: 460px; }
.locker-search { padding: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.locker-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; }
.locker-items { overflow-y: auto; flex: 1; }
.locker-item { padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
.locker-item:hover, .locker-item.active { background: rgba(15,81,50,0.06); }
.locker-item .li-name { font-weight: 700; color: var(--green); font-size: 14px; }
.locker-item .li-addr { font-size: 13px; color: var(--muted); margin-top: 2px; }
.locker-item .li-dist { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 3px; }
.locker-selected {
  display: none;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--green);
  background: rgba(15,81,50,0.05);
  border-radius: 12px;
  font-size: 14px;
}
.locker-selected.show { display: block; }
.leaflet-container { font-family: var(--font-sans); }
.locker-picker-btn {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px dashed var(--green);
  background: rgba(15,81,50,0.04);
  border-radius: 12px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.locker-picker-btn:hover { background: rgba(15,81,50,0.09); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { display: none; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-features { justify-content: center; }
  .listing-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .search-wrap { display: none; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 0; }
  .nav { display: none; flex-direction: column; width: 100%; align-items: stretch; order: 10; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-actions .account-label { display: none; }
  .cart-row { grid-template-columns: 64px 1fr; grid-template-areas: "img info" "img total"; gap: 10px 14px; }
  .cart-row img { width: 64px; height: 64px; grid-area: img; }
  .cart-row .ci-info { grid-area: info; }
  .cart-row .qty-control { grid-column: 1 / -1; justify-self: start; display: flex; align-items: center; gap: 12px; }
  .cart-row .line-total { grid-area: total; text-align: left; }
  .cart-row .remove-btn { position: absolute; }
  .form-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .section { padding: 36px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 50px 0 60px; }
  .btn { padding: 13px 24px; }
}

/* ---------- Mobile optimization ---------- */
html { -webkit-text-size-adjust: 100%; }
button, a, .btn { -webkit-tap-highlight-color: transparent; }
img { height: auto; }

@media (max-width: 720px) {
  /* Zapobiega automatycznemu zoomowi iOS przy focusie (font >= 16px) */
  input, select, textarea { font-size: 16px !important; }

  /* Większe, wygodne pola dotykowe */
  .field input, .field textarea, .field select, .qty-box button, .qty-box input { min-height: 48px; }
  .icon-btn { width: 46px; height: 46px; }
  .btn { min-height: 46px; }

  /* Karty produktów: stabilna 2-kolumnowa siatka */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-title { font-size: 13px; min-height: 34px; }
  .price { font-size: 18px; }
  .product-actions .btn-primary { padding: 10px 8px; font-size: 12px; }

  /* Header */
  .topbar { font-size: 11px; padding: 7px 10px; letter-spacing: .04em; }
  .logo { font-size: 20px; }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .header-actions { gap: 6px; }

  /* Sekcje */
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero p { font-size: 15px; }
  .cat-hero { padding: 26px 20px; }

  /* Koszyk / podsumowanie */
  .cart-row { padding: 14px; }
  .cart-table { border-radius: 14px; }
  .summary-card { padding: 18px; }
  .stepper { gap: 8px; font-size: 12px; }
  .stepper .sep { width: 18px; }

  /* Checkout */
  .form-card { padding: 18px; border-radius: 14px; }
  .radio-option { padding: 13px 14px; }

  /* Modal paczkomatu: pełny ekran na telefonie */
  .modal { border-radius: 16px; max-height: 94vh; }
  .modal-body { grid-template-columns: 1fr; }
  .map-wrap { min-height: 240px; }
  .locker-list { border-left: none; border-top: 1px solid var(--line); max-height: 300px; }

  /* Stopka */
  .footer { padding: 36px 0 18px; }
  .footer-bottom { margin-top: 24px; }

  /* Marginesy kontenera */
  .container { width: min(1240px, 94%); }
}

@media (max-width: 400px) {
  .product-grid { gap: 10px; }
  .product-title { font-size: 12.5px; }
}

/* Safe area (iPhone z notch) */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Admin panel - mobile */
@media (max-width: 900px) {
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-tabs button { white-space: nowrap; padding: 11px 14px; font-size: 14px; }
  .admin-bar .who { font-size: 12px; gap: 8px; flex-wrap: wrap; }
  .prod-row { padding: 10px 12px; }
  .stat-card .val { font-size: 28px; }
}
