:root {
  --primary: #1f3b2c;
  --primary-dark: #163223;
  --primary-light: #6c8f72;
  --accent: #2f5b3b;
  --dark: #111111;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #e0e0e0;
  --text: #243126;
  --muted: #677268;
  --green: #083a14;
  --red: #c23a3a;
  --radius: 6px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; font-family: inherit; min-height: 44px; touch-action: manipulation; }
input, select, textarea { min-height: 44px; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary-dark);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo img {
  display: block;
  height: 56px;
  width: auto;
}

.search-bar {
  flex: 1;
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.search-bar button {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
}
.header-actions a, .header-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--primary-dark);
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
}
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary-light);
  color: var(--dark);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Category nav ---------- */
.category-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.category-nav .container {
  display: flex;
  gap: 26px;
  padding: 10px 16px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 600;
}
.category-nav button {
  background: none;
  border: none;
  white-space: nowrap;
  color: var(--text);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
}
.category-nav .cat-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}
.category-nav button.active,
.category-nav button:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 40%, var(--dark) 100%);
  color: #fff;
  padding: 46px 0;
  margin-bottom: 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  max-width: 540px;
}
.hero h1 span { color: var(--primary-light); }
.hero p {
  margin-top: 16px;
  color: #e1eee4;
  max-width: 500px;
  font-size: 16px;
}
.hero .badge {
  display: inline-block;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #f3f8ef;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
}
.hero-slider {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 18px;
  min-height: 380px;
}
.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #d8f1d5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slider-nav button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  margin-left: 6px;
}
.slider-frame {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.slider-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.slide-image {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: #f7f7f7;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slide-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #6c8f72;
}
.slide-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.slide-price {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 19px;
}
.slider-indicators {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}
.slider-indicators button.active {
  background: #fff;
  opacity: 1;
}


/* ---------- Promo tiles ---------- */
.promo-tiles {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.promo-tile {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  border: none;
  text-align: left;
}
.promo-tile .thumb {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f4ef;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.promo-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-tile .label { font-size: 12px; font-weight: 700; line-height: 1.3; }

/* ---------- Promo banner (admin-editable) ---------- */
.promo-banner-section { margin: 22px 0; }
.promo-banner-section img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ---------- Section titles ---------- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
}
.section-title h2 {
  font-size: 19px;
  font-weight: 700;
  border-left: 4px solid var(--primary-light);
  padding-left: 10px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 8px 22px rgba(31, 59, 44, 0.12);
  transform: translateY(-2px);
}
.product-card .discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
}
.product-card .thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  background: #f8faf7;
  border-radius: 5px;
}
.product-card .thumb img { max-height: 160px; object-fit: contain; }
.product-card .name {
  font-size: 13px;
  color: var(--text);
  height: 36px;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.product-card .price { font-size: 16px; font-weight: 700; color: var(--text); }
.product-card .old-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-card .rating { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.product-card .rating strong { color: var(--primary-dark); }
.product-card .stock-tag { font-size: 11px; margin-bottom: 8px; }
.stock-tag.low { color: var(--red); }
.stock-tag.ok { color: var(--green); }
.product-card .view-details-btn {
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}
.product-card .view-details-btn:hover { background: var(--primary-dark); }
.product-card.clickable { cursor: pointer; }

.wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  min-height: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.wishlist-toggle.active { color: var(--red); border-color: #f4c9c9; }

.rating { margin: 2px 0; }
.stars { color: #e0a527; font-size: 12px; letter-spacing: 1px; }
.stars .empty { color: #dcdcdc; }
.rating-count { color: var(--muted); font-size: 12px; margin-left: 4px; }

/* ---------- Skeleton loading ---------- */
.skeleton { position: relative; overflow: hidden; background: #eef1ee; }
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: skeleton-shimmer 1.3s infinite;
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-card { pointer-events: none; }
.skeleton-card .thumb { background: #eef1ee; }
.skeleton-line { height: 10px; border-radius: 4px; background: #eef1ee; margin-bottom: 8px; position: relative; overflow: hidden; }
.skeleton-line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: skeleton-shimmer 1.3s infinite;
}
.skeleton-line.short { width: 60%; }

/* ---------- Toolbar / sort ---------- */
.grid-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: #fff;
}

/* ---------- Recently viewed / related ---------- */
.mini-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.mini-product-card {
  flex: 0 0 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  background: #fff;
}
.mini-product-card .thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: #f8faf7;
  border-radius: 5px;
  margin-bottom: 8px;
  overflow: hidden;
}
.mini-product-card .thumb img { max-height: 100px; object-fit: contain; }
.mini-product-card .name {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.mini-product-card .price { font-size: 13px; font-weight: 700; color: var(--primary-dark); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 0;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.trust-bar span { display: flex; align-items: center; gap: 6px; }

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  z-index: 240;
}
.product-modal-backdrop.open { display: block; }
.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 250;
}
.product-modal.open { display: flex; }
.product-modal-card {
  width: min(900px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--muted);
}
.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-modal-media-col { display: flex; flex-direction: column; gap: 10px; }
.product-modal-media {
  background: #f7f8f3;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-gallery { display: none; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.detail-gallery img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}
.detail-gallery img.active { border-color: var(--primary); }
.detail-gallery-label { font-size: 12px; color: var(--muted); min-height: 16px; }
.product-modal-info { display: flex; flex-direction: column; gap: 12px; }
.detail-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #eaf2ea;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-price-row { display: flex; align-items: baseline; gap: 10px; }
.detail-price { font-size: 24px; font-weight: 800; color: var(--primary-dark); }
.detail-old-price { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.detail-stock { font-size: 14px; color: var(--green); font-weight: 600; }
#detailOptions { display: flex; flex-direction: column; gap: 10px; }
.detail-option-group { display: flex; flex-direction: column; gap: 6px; }
.detail-option-label { font-size: 13px; font-weight: 700; color: var(--text); }
.detail-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
}
.variant-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.detail-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  font-size: 18px;
}
.qty-stepper input {
  width: 56px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 0;
  font-size: 14px;
}
.detail-add-btn {
  margin-top: 8px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
}
.detail-add-btn:hover { background: var(--primary-dark); }
.detail-actions-row { display: flex; gap: 8px; margin-top: 8px; }
.detail-actions-row .detail-add-btn { margin-top: 0; flex: 1; }
.detail-wishlist-btn {
  width: 48px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--muted);
}
.detail-wishlist-btn.active { color: var(--red); border-color: #f4c9c9; background: #fdf2f2; }

.related-products { margin-top: 10px; }
.related-products h4 { font-size: 13px; margin-bottom: 8px; color: var(--text); }

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

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  z-index: 200;
}
.overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0; right: -400px;
  width: 380px; max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .25s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.cart-drawer.open { right: 0; }
.cart-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 16px; }
.cart-header button { background: none; border: none; font-size: 20px; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 18px; }
.cart-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border); border-radius: 3px; }
.cart-item-info { flex: 1; font-size: 13px; }
.cart-item-info .name { margin-bottom: 4px; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-controls button {
  width: 22px; height: 22px; border: 1px solid var(--border); background: #fff; border-radius: 3px; font-size: 13px;
}
.remove-btn { color: var(--red); font-size: 12px; background: none; border: none; margin-top: 4px; }
.cart-footer { padding: 16px 18px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.checkout-btn {
  width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: var(--radius); font-weight: 700; font-size: 14px;
}
.checkout-btn:hover { background: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  color: var(--text);
  margin-top: 50px;
  padding: 34px 0 18px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: var(--primary-dark); font-size: 14px; margin-bottom: 10px; }
.footer-grid li { margin-bottom: 6px; color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

body.no-scroll { overflow: hidden; }

.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  display: none;
  z-index: 250;
}
.auth-backdrop.open { display: block; }

.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 260;
}
.auth-modal.open { display: flex; }

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--muted);
}
.auth-header h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 6px; }
.auth-header p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: #f5f7f2;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.auth-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.auth-form { display: none; flex-direction: column; gap: 10px; }
.auth-form.active { display: flex; }
.auth-form input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.auth-submit, .google-btn, .secondary-btn {
  width: 100%;
  border: none;
  padding: 11px 12px;
  border-radius: var(--radius);
  font-weight: 700;
}
.auth-submit {
  background: var(--primary);
  color: #fff;
}
.google-btn {
  display: inline-block;
  margin-top: 12px;
  text-align: center;
  color: var(--primary-dark);
  background: #f2f5ee;
  border: 1px solid var(--border);
}
.auth-message {
  margin-top: 12px;
  min-height: 18px;
  font-size: 13px;
  color: var(--green);
}
.auth-message.error { color: var(--red); }
.auth-actions { margin-top: 12px; }
.secondary-btn {
  background: #f2f2f2;
  color: var(--text);
}

.checkout-success { display: none; flex-direction: column; gap: 12px; text-align: center; }
.checkout-success.active { display: flex; }
.checkout-success .success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e6f4ea;
  color: var(--green);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.checkout-success h3 { font-size: 19px; color: var(--primary-dark); }
.checkout-success .order-ref {
  font-size: 13px;
  background: #f5f7f2;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-weight: 700;
  color: var(--text);
}
.checkout-success p { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .search-bar { order: 3; width: 100%; }
}

@media (max-width: 720px) {
  .top-strip .container { flex-direction: column; gap: 4px; }
  .hero { padding: 36px 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero h1 { font-size: 26px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-modal-content { grid-template-columns: 1fr; }
  .cart-drawer { width: min(100vw, 100%); }
  .auth-card { padding: 20px; }
  .auth-tabs { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 12px; }
  .header-actions a, .header-actions button { font-size: 12px; }
  .cart-drawer { width: 100vw; }
  .cart-item { flex-direction: column; }
  .cart-item img { width: 100%; height: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
}
