/* Bosveld Biltong Bar – brand theme on top of Bootstrap 5.
   Colours come from the logo: charcoal, chilli red, sunset gold and wood brown. */

:root {
  --bbb-black: #14110e;
  --bbb-charcoal: #1f1a15;
  --bbb-wood: #3b2416;
  --bbb-wood-light: #6b4226;
  --bbb-red: #c8161d;
  --bbb-red-dark: #9e0f15;
  --bbb-gold: #f6c21a;
  --bbb-amber: #f39c12;
  --bbb-cream: #faf6ef;
  --bbb-sand: #efe4d2;
  --bbb-ink: #2a2118;
  --bbb-muted: #6f6253;
  --bbb-radius: 14px;
  --bbb-shadow: 0 6px 20px rgba(20, 17, 14, 0.08);

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--bbb-ink);
  --bs-body-bg: var(--bbb-cream);
  --bs-link-color: var(--bbb-red);
  --bs-link-color-rgb: 200, 22, 29;
  --bs-link-hover-color: var(--bbb-red-dark);
  --bs-link-hover-color-rgb: 158, 15, 21;
  --bs-border-color: var(--bbb-sand);
  --bs-focus-ring-color: rgba(200, 22, 29, 0.3);
}

body {
  background: var(--bbb-cream);
  color: var(--bbb-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, .display-font {
  font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bbb-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.script-tagline {
  font-family: "Kaushan Script", cursive;
  font-size: 1.35rem;
  color: var(--bbb-gold);
}

.pre-line { white-space: pre-line; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--bbb-gold);
  color: var(--bbb-black);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bbb-red);
  --bs-btn-border-color: var(--bbb-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bbb-red-dark);
  --bs-btn-hover-border-color: var(--bbb-red-dark);
  --bs-btn-active-bg: var(--bbb-red-dark);
  --bs-btn-active-border-color: var(--bbb-red-dark);
  --bs-btn-disabled-bg: var(--bbb-red);
  --bs-btn-disabled-border-color: var(--bbb-red);
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 1.25rem;
}
.btn-brand.btn-sm { padding-inline: 0.9rem; }

.btn-gold {
  --bs-btn-color: var(--bbb-black);
  --bs-btn-bg: var(--bbb-gold);
  --bs-btn-border-color: var(--bbb-gold);
  --bs-btn-hover-color: var(--bbb-black);
  --bs-btn-hover-bg: #ffd447;
  --bs-btn-hover-border-color: #ffd447;
  --bs-btn-active-bg: #e0ae0a;
  font-weight: 700;
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.btn-outline-light { border-radius: 999px; padding-inline: 1.25rem; font-weight: 600; }
.btn-outline-dark { border-radius: 999px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bbb-black);
  border-bottom: 3px solid var(--bbb-red);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar { padding-block: 0.4rem; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
}
.navbar-brand img { width: 56px; height: 56px; }
.brand-text {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  line-height: 1;
  font-size: 1.05rem;
  color: var(--bbb-gold);
  letter-spacing: 0.04em;
}
.brand-text strong {
  display: block;
  font-weight: 400;
  font-size: 1.35rem;
  color: #fff;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding-inline: 0.9rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible { color: var(--bbb-gold); }
.site-header .nav-link.active { color: var(--bbb-gold); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: var(--bbb-red);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.cart-link:hover { background: var(--bbb-red-dark); color: #fff; }
.cart-count {
  background: var(--bbb-gold);
  color: var(--bbb-black);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.3rem;
}

@media (max-width: 767.98px) {
  .navbar-brand img { width: 48px; height: 48px; }
  .brand-text { font-size: 0.9rem; }
  .brand-text strong { font-size: 1.1rem; }
  .site-header .navbar-collapse { padding-bottom: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--bbb-black); }
.hero picture img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}
.hero-strip {
  background: linear-gradient(90deg, var(--bbb-wood) 0%, var(--bbb-charcoal) 100%);
  color: #fff;
  padding: 1.5rem 0;
}
.hero-strip h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  margin: 0;
}
.hero-strip h1 span { color: var(--bbb-gold); }
.hero-strip p { color: rgba(255, 255, 255, 0.8); margin: 0.35rem 0 0; }

/* ---------- Quality ticks ---------- */
.ticks {
  background: var(--bbb-red);
  color: #fff;
  padding: 0.9rem 0;
}
.ticks ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ticks li::before {
  content: "\2714";
  color: var(--bbb-gold);
  font-family: system-ui, sans-serif;
}
.ticks small {
  font-family: "Inter", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
  font-size: 0.75rem;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bbb-sand); }
.section-dark {
  background: var(--bbb-charcoal);
  color: rgba(255, 255, 255, 0.88);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.section-heading h2 { margin: 0; }
.eyebrow {
  font-family: "Kaushan Script", cursive;
  color: var(--bbb-red);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.15rem;
}
.section-dark .eyebrow { color: var(--bbb-gold); }

.page-header {
  background: var(--bbb-charcoal);
  color: #fff;
  padding: 2.25rem 0 2rem;
  border-bottom: 3px solid var(--bbb-gold);
}
.page-header h1 { color: #fff; margin: 0; }
.page-header p { color: rgba(255, 255, 255, 0.75); margin: 0.4rem 0 0; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: 0.5rem; }
.page-header .breadcrumb a { color: var(--bbb-gold); }
.page-header .breadcrumb-item.active { color: rgba(255, 255, 255, 0.7); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 575.98px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
}

.product-card {
  background: #fff;
  border-radius: var(--bbb-radius);
  overflow: hidden;
  box-shadow: var(--bbb-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 17, 14, 0.14); }

.product-card-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bbb-charcoal);
  overflow: hidden;
}
.product-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.sold-out {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bbb-black);
  color: var(--bbb-gold);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.product-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-title {
  font-size: 1.25rem;
  margin: 0;
}
.product-card-title a { color: var(--bbb-ink); text-decoration: none; }
.product-card-title a:hover { color: var(--bbb-red); }
.unit { color: var(--bbb-muted); font-size: 0.85rem; }
.product-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bbb-red);
}
@media (max-width: 575.98px) {
  .product-card-title { font-size: 1.05rem; }
  .product-card-footer .btn { width: 100%; }
  .product-card-footer form { width: 100%; }
}

/* ---------- Product details ---------- */
.gallery-main {
  border-radius: var(--bbb-radius);
  overflow: hidden;
  background: var(--bbb-charcoal);
  aspect-ratio: 1 / 1;
  box-shadow: var(--bbb-shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  width: 72px;
  height: 72px;
  background: none;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--bbb-red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bbb-red);
}
.qty-input { max-width: 6rem; }
.info-note {
  background: #fff;
  border-left: 4px solid var(--bbb-gold);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

/* ---------- Cards / panels ---------- */
.panel {
  background: #fff;
  border-radius: var(--bbb-radius);
  box-shadow: var(--bbb-shadow);
  padding: 1.5rem;
}
.panel h2 { font-size: 1.5rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}
.summary-total {
  border-top: 2px solid var(--bbb-sand);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bbb-sand);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bbb-charcoal);
}
.cart-item-name { font-weight: 600; color: var(--bbb-ink); text-decoration: none; }
.cart-item-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.cart-item-actions input { width: 4.5rem; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bbb-muted);
  text-decoration: underline;
  font-size: 0.875rem;
}
.link-button:hover { color: var(--bbb-red); }

.free-shipping-note {
  background: #fff8dc;
  border: 1px dashed var(--bbb-amber);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background-color: #fff;
  border-radius: 10px;
  border-color: #dccfb9;
  padding: 0.6rem 0.8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bbb-red);
  box-shadow: 0 0 0 0.2rem rgba(200, 22, 29, 0.15);
}
.form-label { font-weight: 600; font-size: 0.92rem; }
.field-validation-error, .validation-summary-errors { color: var(--bbb-red); font-size: 0.875rem; }
.validation-summary-errors ul { margin-bottom: 0; padding-left: 1.1rem; }
.input-validation-error { border-color: var(--bbb-red); }

.payment-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 2px solid #dccfb9;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  background: #fff;
}
.payment-option:has(input:checked) { border-color: var(--bbb-red); background: #fff7f5; }
.payment-option input { margin-top: 0.3rem; accent-color: var(--bbb-red); }
.payment-option small { color: var(--bbb-muted); display: block; }

.alert-brand {
  background: #fff8dc;
  border: 1px solid var(--bbb-gold);
  color: var(--bbb-ink);
}

/* ---------- Order status ---------- */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.status-awaiting { background: #fff1c2; color: #7a5600; }
.status-paid { background: #dff3e4; color: #1d6b34; }
.status-packed { background: #e2ecff; color: #234a9a; }
.status-shipped { background: #e6e0ff; color: #4b2e9a; }
.status-delivered { background: #d4f0ef; color: #0f5e5a; }
.status-cancelled { background: #f1e3e3; color: #7d2a2a; }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bbb-radius);
  padding: 1.5rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: "Anton", Impact, sans-serif;
  font-size: 2.4rem;
  color: var(--bbb-gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; font-size: 0.95rem; }

.visit-img {
  width: 100%;
  border-radius: var(--bbb-radius);
  box-shadow: var(--bbb-shadow);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bbb-black);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 5.5rem;
  margin-top: 0;
  border-top: 3px solid var(--bbb-red);
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--bbb-gold); }
.site-footer li { margin-bottom: 0.35rem; }
.footer-heading {
  color: var(--bbb-gold);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.admin-link { opacity: 0.5; }

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 1040;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.05); }

/* ---------- Admin ---------- */
.admin-body { background: #f6f3ee; }
.admin-header { background: var(--bbb-black); border-bottom: 3px solid var(--bbb-red); }
.admin-header .navbar-brand img { width: 40px; height: 40px; }
.admin-header .nav-link { color: rgba(255,255,255,.8); font-weight: 600; }
.admin-header .nav-link:hover, .admin-header .nav-link.active { color: var(--bbb-gold); }
.admin-body h1 { font-size: 2rem; }
.admin-body .table { --bs-table-bg: #fff; }
.admin-body .table td, .admin-body .table th { vertical-align: middle; }
.admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bbb-charcoal);
}
.stat-card {
  background: #fff;
  border-radius: var(--bbb-radius);
  padding: 1.25rem;
  box-shadow: var(--bbb-shadow);
  text-decoration: none;
  color: var(--bbb-ink);
  display: block;
}
.stat-card:hover { color: var(--bbb-ink); box-shadow: 0 8px 24px rgba(20,17,14,.14); }
.stat-card .stat-value {
  font-family: "Anton", Impact, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--bbb-red);
}
.stat-card .stat-label { color: var(--bbb-muted); font-weight: 600; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.photo-tile {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
}
.photo-tile.is-main { border-color: var(--bbb-red); }
.photo-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.photo-tile .photo-actions { display: flex; gap: 0.35rem; padding: 0.5rem; flex-wrap: wrap; }

.address-block { font-size: 1.05rem; line-height: 1.5; }

@media print {
  .admin-header, .no-print, .whatsapp-fab, .site-footer, .site-header { display: none !important; }
  .admin-body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}
