/* ═══════════════════════════════════════════════════════════════════════════
   Run Amuck Ranch Kitchen — Main Stylesheet
   Farm-oriented, card-based, responsive (mobile-first)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────────────────── */
:root {
  --cream:        #f8f3e8;
  --cream-dark:   #ede5d0;
  --tan:          #c8a96e;
  --tan-light:    #e8d5aa;
  --green:        #4a7c59;
  --green-dark:   #2d5238;
  --green-light:  #6ea882;
  --brown:        #6b4226;
  --brown-light:  #9c6b44;
  --red:          #8b2635;
  --red-light:    #b03244;
  --white:        #ffffff;
  --gray-50:      #fafaf7;
  --gray-100:     #f0ebe0;
  --gray-200:     #ddd5c0;
  --gray-400:     #a89880;
  --gray-600:     #6b5c4a;
  --gray-800:     #3a2e20;
  --text:         #2c1f10;
  --text-muted:   #7a6550;
  --border:       #ddd0ba;
  --shadow-sm:    0 1px 3px rgba(44,31,16,.08);
  --shadow:       0 4px 12px rgba(44,31,16,.12);
  --shadow-lg:    0 8px 30px rgba(44,31,16,.16);
  --radius:       8px;
  --radius-lg:    14px;
  --radius-pill:  999px;
  --nav-h:        68px;
  --transition:   .2s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; }
input, select, textarea, button { border-radius: var(--radius); }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--gray-800);
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Utility ────────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container--sm { max-width: 700px; }
.container--md { max-width: 900px; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem;
  font-size: .9375rem; font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }

.btn-secondary { background: var(--tan); color: var(--gray-800); }
.btn-secondary:hover { background: #b8954a; color: var(--gray-800); }

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: var(--red-light); color: var(--white); }

.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--green-dark);
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
}
.nav__brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo {
  width: 42px; height: 42px;
  background: var(--tan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav__brand-text { color: var(--cream); }
.nav__brand-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; display: block; line-height: 1; }
.nav__brand-tagline { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

.nav__links {
  display: flex; align-items: center; gap: .25rem;
  flex: 1; justify-content: center;
}
.nav__link {
  color: rgba(255,255,255,.85);
  padding: .5rem .85rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover, .nav__link--active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.nav__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav__cart-btn {
  position: relative;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: 1.3rem;
  transition: background var(--transition);
  text-decoration: none;
  display: flex; align-items: center;
}
.nav__cart-btn:hover { background: rgba(255,255,255,.2); color: var(--white); }
.nav__cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red);
  color: var(--white);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav__hamburger {
  display: none;
  background: none; border: none;
  color: var(--white);
  font-size: 1.6rem;
  padding: .25rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; align-items: flex-start; }
  .nav__links.is-open {
    display: flex;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--green-dark);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 199;
    gap: .25rem;
  }
  .nav__links.is-open .nav__link { display: block; width: 100%; padding: .75rem 1rem; }
  .nav__hamburger { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--tan) 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--tan-light);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: var(--radius-pill); margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; font-size: clamp(2.2rem, 6vw, 3.75rem); }
.hero p { font-size: 1.125rem; opacity: .9; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section ────────────────────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--alt { background: var(--gray-50); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); display: block; margin-bottom: .5rem;
}
.section__title { margin-bottom: .5rem; }
.section__subtitle { color: var(--text-muted); font-size: 1.0625rem; }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gray-400);
}
.card__body { padding: 1.25rem; }
.card__title { font-size: 1.1rem; margin-bottom: .35rem; }
.card__text { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.card__price {
  font-size: 1.2rem; font-weight: 700; color: var(--green-dark);
}
.card__price-compare {
  font-size: .9rem; color: var(--gray-400);
  text-decoration: line-through; margin-left: .5rem;
}
.card__footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

/* ── Product Grid ───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ── Category Grid ──────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.category-card {
  display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 180px; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.category-card__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}
.category-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 100%);
}
.category-card__body {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; height: 100%; padding: 1.5rem;
}
.category-card__name { color: var(--white); font-size: 1.4rem; font-weight: 700; }

/* ── Reviews ────────────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.review-card { padding: 1.5rem; }
.review-card__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.review-card__avatar {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--white); font-weight: 700;
  flex-shrink: 0;
}
.review-card__name { font-weight: 600; }
.review-card__date { font-size: .8rem; color: var(--text-muted); }
.review-card__subject { font-weight: 600; margin-bottom: .4rem; }
.review-card__body { color: var(--text-muted); font-size: .9rem; }
.stars { color: var(--tan); font-size: 1.1rem; display: inline-flex; gap: 1px; }
.star.filled { color: #f0a500; }
.star { color: var(--gray-200); }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--gray-800);
}
.form-label .req { color: var(--red); margin-left: .15rem; }
.form-control {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: .9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,124,89,.15);
}
.form-control.is-error { border-color: var(--red); }
.form-error { color: var(--red); font-size: .8rem; margin-top: .3rem; }
.form-hint { color: var(--text-muted); font-size: .8rem; margin-top: .25rem; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { 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 fill='%236b5c4a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input[type=checkbox], .form-check input[type=radio] {
  width: 16px; height: 16px; accent-color: var(--green);
}

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1.25rem;
  font-size: .9375rem;
}
.alert-success { background: #edf7f0; border-color: var(--green); color: #1e5030; }
.alert-error   { background: #fdf0f1; border-color: var(--red); color: #6b1421; }
.alert-info    { background: #edf4fb; border-color: #3b82f6; color: #1e3a5f; }
.alert-warning { background: #fef9ed; border-color: var(--tan); color: #6b4a10; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-green   { background: #edf7f0; color: #1e5030; }
.badge-red     { background: #fdf0f1; color: #6b1421; }
.badge-tan     { background: #fef8ec; color: #6b4a10; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-blue    { background: #edf4fb; color: #1e3a5f; }

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { background: var(--gray-50); padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-600); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .6rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .875rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.page-link:hover, .page-link--active {
  background: var(--green); border-color: var(--green); color: var(--white);
}
.page-link--disabled { opacity: .45; pointer-events: none; }

/* ── Cart ───────────────────────────────────────────────────────────────────── */
.cart-table td, .cart-table th { vertical-align: middle; }
.cart-item__img {
  width: 70px; height: 70px;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cart-item__img-placeholder {
  width: 70px; height: 70px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--gray-400);
}
.qty-input {
  width: 64px; text-align: center;
  padding: .35rem; border: 1.5px solid var(--border); border-radius: var(--radius);
}

/* ── Order Summary Card ─────────────────────────────────────────────────────── */
.order-summary { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.order-summary__row { display: flex; justify-content: space-between; margin-bottom: .6rem; font-size: .9375rem; }
.order-summary__total { font-size: 1.2rem; font-weight: 700; padding-top: .75rem; border-top: 2px solid var(--border); }

/* ── Checkout layout ────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr 360px;
  align-items: start;
}
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ── Product detail ─────────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery { display: flex; flex-direction: column; gap: .75rem; }
.product-gallery__main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.product-gallery__thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.product-gallery__thumb {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: var(--radius); border: 2px solid var(--border);
  cursor: pointer; transition: border-color var(--transition);
}
.product-gallery__thumb--active { border-color: var(--green); }
.product-price { font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.product-stock { font-size: .875rem; font-weight: 600; }
.product-stock--in { color: var(--green); }
.product-stock--low { color: var(--tan); }
.product-stock--out { color: var(--red); }

/* ── Admin Layout ───────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; flex-direction: column; }
.admin-top {
  background: var(--green-dark);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.admin-top__brand {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  text-decoration: none;
}
.admin-top__nav { display: flex; gap: .25rem; margin-left: auto; }
.admin-top__link {
  color: rgba(255,255,255,.8); padding: .4rem .8rem; border-radius: var(--radius);
  font-size: .875rem; text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.admin-top__link:hover, .admin-top__link--active { background: rgba(255,255,255,.15); color: var(--white); }

.admin-body { display: flex; flex: 1; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.admin-sidebar__section { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); padding: .75rem .5rem .25rem; }
.admin-sidebar__link {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border-radius: var(--radius);
  color: var(--gray-600); font-size: .9rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.admin-sidebar__link:hover, .admin-sidebar__link--active {
  background: var(--cream); color: var(--green-dark);
}
.admin-sidebar__link--active { font-weight: 600; }
.admin-main { flex: 1; padding: 2rem; min-width: 0; }
.admin-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap;
}
.admin-page-header h1 { font-size: 1.75rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.stat-card__label { font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ── Account Layout ─────────────────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 700px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; overflow: hidden;
}
.account-sidebar__name { font-weight: 700; font-size: 1.05rem; }
.account-sidebar__email { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.account-sidebar__link {
  display: block; padding: .6rem .75rem; border-radius: var(--radius);
  color: var(--gray-600); font-size: .9rem; text-decoration: none;
  transition: background var(--transition), color var(--transition);
  margin-bottom: .15rem;
}
.account-sidebar__link:hover, .account-sidebar__link--active {
  background: var(--cream); color: var(--green-dark);
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 1rem 0; font-size: .875rem; }
.breadcrumb__item { color: var(--text-muted); }
.breadcrumb__item + .breadcrumb__item::before { content: '/'; margin-right: .5rem; color: var(--gray-400); }
.breadcrumb__link { color: var(--green); }
.breadcrumb__link:hover { color: var(--green-dark); }

/* ── Rating widget ──────────────────────────────────────────────────────────── */
.rating-input { display: flex; gap: .25rem; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { display: none; }
.rating-input label {
  font-size: 2rem; color: var(--gray-200); cursor: pointer;
  transition: color var(--transition);
}
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: #f0a500; }

/* ── Shipping rate picker ───────────────────────────────────────────────────── */
.rate-option {
  display: flex; align-items: center; gap: 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.25rem; margin-bottom: .75rem; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.rate-option:has(input:checked) { border-color: var(--green); background: #edf7f0; }
.rate-option input { accent-color: var(--green); }
.rate-option__info { flex: 1; }
.rate-option__label { font-weight: 600; }
.rate-option__carrier { font-size: .8rem; color: var(--text-muted); }
.rate-option__cost { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: .5rem; }
.footer__tagline { font-size: .875rem; opacity: .7; }
.footer__heading { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .75rem; }
.footer__links { display: flex; flex-direction: column; gap: .35rem; }
.footer__link { color: rgba(255,255,255,.65); font-size: .875rem; transition: color var(--transition); }
.footer__link:hover { color: var(--tan-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; text-align: center; font-size: .8rem; opacity: .55; }

/* ── Page header band ───────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white); padding: 3rem 0 2.5rem; text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.75rem); }
.page-header p { opacity: .85; font-size: 1.0625rem; margin-top: .5rem; }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state__title { font-size: 1.5rem; margin-bottom: .5rem; }
.empty-state__text { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Misc ───────────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.label-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--cream-dark); color: var(--brown);
  padding: .2rem .65rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600;
}
.product-image-list { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.product-image-thumb {
  position: relative; width: 80px; height: 80px;
  border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border);
}
.product-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-image-thumb__remove {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: var(--white);
  border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.search-bar { display: flex; gap: .5rem; }
.search-bar .form-control { flex: 1; }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: center; }

@media (max-width: 480px) {
  .admin-sidebar { display: none; }
  .admin-body { flex-direction: column; }
}
