:root {
  --primary: #0f2d4a;
  --primary-hover: #183d61;
  --accent: #e85d24;
  --accent-hover: #cf4e1a;
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a2332;
  --text-mid: #4a5568;
  --text-light: #8a9ab0;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow: 0 2px 10px rgba(0,0,0,0.09);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 66px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-logo-fallback {
  width: 38px;
  height: 38px;
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Search in nav */
.nav-search {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.nav-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: background 0.2s;
}

.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search input:focus { background: rgba(255,255,255,0.2); }

.nav-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,0.55);
  width: 18px;
  height: 18px;
}

.nav-search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  display: none;
}

.nav-search-clear.visible { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: white; }

.cart-link {
  position: relative;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.cart-link:hover { color: white; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a73 60%, #1e5c8a 100%);
  color: white;
  padding: 3.5rem 1.5rem 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.03'%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: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  padding: 8px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: var(--text);
}

.hero-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.hero-search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: none;
  padding: 2px;
}

.hero-search-clear.visible { display: block; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.13);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge svg { width: 16px; height: 16px; }

/* Category quick-tiles */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.cat-tile {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.cat-tile svg { width: 28px; height: 28px; color: var(--primary); opacity: 0.7; }
.cat-tile:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile.active { background: var(--primary); color: white; border-color: var(--primary); }
.cat-tile.active svg { color: white; opacity: 1; }

/* ---- MAIN LAYOUT ---- */
.shop-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ---- SIDEBAR ---- */
.sidebar {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 82px;
}

.sidebar-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mid);
}

.sidebar-clear {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  display: none;
}

.sidebar-clear.visible { display: block; }

.sidebar-section {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child { border-bottom: none; }

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.7rem;
}

.sidebar-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-mid);
  text-align: left;
}

.sidebar-btn:hover { background: var(--bg); color: var(--text); }

.sidebar-btn.active {
  background: #e8f0f8;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-btn .count {
  font-size: 0.75rem;
  background: var(--bg);
  color: var(--text-light);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 500;
}

.sidebar-btn.active .count {
  background: rgba(15,45,74,0.12);
  color: var(--primary);
}

/* ---- PRODUCTS AREA ---- */
.products-area { min-width: 0; }

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.products-count {
  font-size: 0.9rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.products-count strong { color: var(--text); }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.85rem;
  font-family: inherit;
  background: white;
  color: var(--text);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9ab0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.sort-select:focus { border-color: var(--primary); }

.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.view-btn {
  background: white;
  border: none;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.view-btn:first-child { border-right: 1.5px solid var(--border); }
.view-btn:hover { background: var(--bg); color: var(--text); }
.view-btn.active { background: var(--primary); color: white; }
.view-btn svg { width: 16px; height: 16px; }

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #e8f0f8;
  border: 1px solid #c4d9ef;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.filter-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  display: flex;
  align-items: center;
}

.filter-chip button:hover { opacity: 1; }

/* Search chip — highlight */
.filter-chip.search-chip {
  background: #fff3e8;
  border-color: #f0c89a;
  color: var(--accent);
}

.filter-chip.search-chip button { color: var(--accent); }

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.product-grid.list-view {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c0d0e4;
  transform: translateY(-3px);
}

.list-view .product-card {
  flex-direction: row;
  transform: none !important;
}

.list-view .product-card:hover {
  box-shadow: var(--shadow);
  border-color: #c0d0e4;
}

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #edf1f7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.list-view .product-image {
  width: 160px;
  aspect-ratio: 1;
}

.product-image svg {
  width: 56px;
  height: 56px;
  color: #b0bfd0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.product-card:hover .product-image img { transform: scale(1.04); }
.list-view .product-card:hover .product-image img { transform: none; }

.stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stock-badge.in-stock { background: #dcfce7; color: #15803d; }
.stock-badge.low-stock { background: #fef3c7; color: #b45309; }
.stock-badge.out-of-stock { background: #fee2e2; color: #b91c1c; }

.condition-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(15,45,74,0.82);
  color: white;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 0.9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-view .product-info {
  padding: 1rem 1.25rem;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4px;
}

.product-vehicle-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 4px;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.product-name {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.3;
}

.product-fits {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  flex: 1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.list-view .product-desc { -webkit-line-clamp: 3; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.product-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.25;
}

.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-mid); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 1020px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.92);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 10;
  transition: background 0.15s, transform 0.15s;
}
.modal-close:hover { background: white; transform: scale(1.08); }

/* Gallery (left column) */
.modal-gallery {
  background: #f0f3f8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 320px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  max-height: 480px;
}

.gallery-main svg { width: 100px; height: 100px; color: #b0bfd0; }

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  background: rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: white;
  transition: border-color 0.15s, transform 0.15s;
}

.gallery-thumb:hover { transform: scale(1.05); }
.gallery-thumb.active { border-color: var(--primary); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body (right column) */
.modal-body {
  padding: 2rem 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-body .product-name { font-size: 1.5rem; margin-bottom: 0.9rem; font-weight: 700; }

.detail-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.detail-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-mid);
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.detail-tag svg { width: 14px; height: 14px; flex-shrink: 0; }

.modal-body .product-desc {
  display: block;
  -webkit-line-clamp: unset;
  margin: 0.75rem 0 1rem;
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.modal-footer .product-price { font-size: 1.55rem; }

/* ---- CART ---- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 300;
  box-shadow: -4px 0 24px rgba(0,0,0,0.14);
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { right: 0; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-backdrop.open { opacity: 1; pointer-events: all; }

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 { font-size: 1.15rem; font-weight: 700; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  line-height: 1;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.cart-empty svg { width: 56px; height: 56px; margin-bottom: 1rem; opacity: 0.25; display: block; margin-left: auto; margin-right: auto; }

.cart-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-image svg { width: 28px; height: 28px; opacity: 0.25; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.cart-item-remove:hover { background: #fef2f2; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 0.5rem; }

.pickup-notice {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #713f12;
}

.pickup-notice svg { width: 18px; height: 18px; flex-shrink: 0; }

#paypal-button-container { min-height: 45px; }

/* ---- ABOUT + FOOTER ---- */
.about-section { background: white; padding: 4rem 1.5rem; }

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.about-text p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.75; }

.about-info { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }

.info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: none; }

.info-icon { width: 40px; height: 40px; background: #dbeafe; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 20px; height: 20px; color: var(--primary); }
.info-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.info-item p { font-size: 0.82rem; color: var(--text-light); }

/* Contact */
.contact-section { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem; }
.contact-section h2 { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.contact-section p.subtitle { color: var(--text-mid); margin-bottom: 2rem; }

.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 110px; }

.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 1.75rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer a { color: white; text-decoration: none; }

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--text);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }

/* ---- MOBILE FILTER DRAWER ---- */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.filter-toggle-btn svg { width: 16px; height: 16px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

.sidebar-overlay.open { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-content { grid-template-columns: auto auto 1fr auto; }
  .nav-search { display: none; }
  .category-tiles { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .shop-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    z-index: 160;
    overflow-y: auto;
    border-radius: 0;
    transition: left 0.3s;
    border: none;
  }

  .sidebar.mobile-open { left: 0; }
  .filter-toggle-btn { display: flex; }
}

@media (max-width: 640px) {
  .nav-content { height: 58px; }
  .nav-logo span { display: none; }

  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.95rem; }

  .category-tiles { display: none; }

  .products-toolbar { gap: 0.5rem; }
  .view-toggle { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.75rem; }
  .product-name { font-size: 0.875rem; }

  .cart-sidebar { width: 100vw; right: -100vw; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }
  .modal-gallery { border-radius: 16px 16px 0 0; min-height: 260px; }
  .gallery-main { min-height: 220px; }
  .gallery-main img { max-height: 260px; }
  .modal-body { padding: 1.25rem; }

  .about-grid { grid-template-columns: 1fr; }

  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { transform: translateY(120%); }
  .toast.show { transform: translateY(0); }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}
