:root {
  --primary: #c97c3a;
  --primary-dark: #a05c20;
  --primary-light: #f7e8d5;
  --primary-mid: #e8a96a;
  --accent: #6b4226;
  --accent-light: #f2d5b0;
  --cream: #fdf6ee;
  --text: #2d1f0e;
  --text-light: #7a5c3e;
  --text-muted: #b08060;
  --bg: #fdf6ee;
  --white: #ffffff;
  --border: #e8d5bf;
  --border-light: #f2e4d0;
  --success: #2d7a4f;
  --success-bg: #d4f0e3;
  --danger: #c0392b;
  --danger-bg: #fde8e6;
  --warning: #d97706;
  --shadow: 0 2px 12px rgba(100, 60, 20, 0.08);
  --shadow-md: 0 4px 20px rgba(100, 60, 20, 0.12);
  --shadow-lg: 0 8px 32px rgba(100, 60, 20, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --max-width: 1200px;
  --transition: all 0.22s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(100,60,20,0.07);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo-icon { font-size: 1.8rem; }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover { color: var(--primary-dark); }
nav a:hover::after { width: 100%; }

.cart-link { position: relative; font-size: 1.4rem; }
.cart-link::after { display: none; }

.cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f7e8d5 0%, #e8c49a 50%, #c97c3a 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(255,255,255,0.4);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(201,124,58,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,124,58,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--primary-light); }

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #9b2d22; }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-warm { background: linear-gradient(180deg, var(--cream) 0%, var(--primary-light) 100%); }

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.section-action {
  text-align: center;
  margin-top: 36px;
}

/* ===== CATEGORIES ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.category-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card:hover::before,
.category-card.active::before { opacity: 1; }

.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  position: relative;
  z-index: 1;
}

.category-card span:not(.cat-icon) { position: relative; z-index: 1; }

.category-card.active {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: var(--white);
}

.category-card.active::before { opacity: 0; }

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: block;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary-mid);
}

.product-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--primary-light);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img { transform: scale(1.06); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(201,124,58,0.3);
}

.badge-new {
  background: var(--success);
  right: 12px;
  left: auto;
}

.product-card-body { padding: 16px 18px 18px; }

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 5px 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.stock-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
}

.in-stock { background: var(--success-bg); color: var(--success); }
.out-of-stock { background: var(--danger-bg); color: var(--danger); }

.product-card-footer {
  padding: 0 18px 16px;
  display: flex;
  gap: 8px;
}

.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-add-cart:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== HOME: FILTER BAR ===== */
.home-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.home-search-box {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 1;
  max-width: 340px;
  transition: var(--transition);
}

.home-search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,124,58,0.15); }

.home-search-box input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
}

.home-search-box button {
  padding: 10px 16px;
  background: var(--primary);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.home-search-box button:hover { background: var(--primary-dark); }

.home-sort-select {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

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

.products-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
  padding: 36px 0 28px;
  border-bottom: 2px solid var(--border-light);
}

.page-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  gap: 8px;
  flex: 1;
}

.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,124,58,0.12); }

.filter-bar select {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

/* ===== PRODUCT DETAIL ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.back-link:hover { color: var(--primary-dark); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.product-detail-image img { width: 100%; height: 420px; object-fit: cover; }

.product-detail-info { padding: 8px 0; }

.product-detail-info h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 12px 0;
  color: var(--accent);
  line-height: 1.2;
}

.product-detail-info .product-price { font-size: 1.6rem; margin-bottom: 16px; }

.product-description {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 0.97rem;
}

.stock-info { margin-bottom: 24px; }

.product-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.quantity-control button {
  width: 40px;
  height: 42px;
  border: none;
  background: var(--bg);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary-dark);
  font-weight: 700;
}

.quantity-control button:hover { background: var(--primary-light); }

.quantity-control input {
  width: 52px;
  height: 42px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  -moz-appearance: textfield;
  background: var(--white);
  color: var(--text);
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ===== CART ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.cart-item:hover { box-shadow: var(--shadow-md); }

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.cart-item-price { color: var(--text-muted); font-size: 0.88rem; margin-top: 3px; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  background: var(--bg);
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--white);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  color: var(--primary-dark);
}

.cart-item-qty button:hover { background: var(--primary-light); }
.cart-item-qty span { width: 28px; text-align: center; font-weight: 700; }
.cart-item-subtotal { font-weight: 800; color: var(--primary-dark); white-space: nowrap; font-size: 1rem; }

.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
  transition: var(--transition);
}

.cart-item-remove:hover { opacity: 1; transform: scale(1.1); }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 88px;
  border: 1px solid var(--border-light);
}

.cart-summary h3 { margin-bottom: 20px; font-size: 1.2rem; color: var(--accent); font-weight: 800; }

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  border-top: 2px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}

.cart-summary .btn { margin-top: 14px; }

/* ===== CHECKOUT ===== */
.checkout-layout { max-width: 700px; margin: 0 auto; }

.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.form-section h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  color: var(--accent);
  font-weight: 800;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,124,58,0.12);
}

/* Payment method cards */
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }
.payment-option .pay-icon { font-size: 1.5rem; }

.order-items { margin-bottom: 16px; }

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  color: var(--accent);
}

/* ===== ORDER SUCCESS ===== */
.success-page { text-align: center; max-width: 600px; margin: 0 auto; }

.success-icon {
  width: 84px;
  height: 84px;
  background: linear-gradient(135deg, var(--success), #22c55e);
  color: var(--white);
  font-size: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 6px 20px rgba(45,122,79,0.3);
}

.success-page h1 { font-size: 2rem; margin-bottom: 8px; color: var(--accent); font-weight: 800; }
.order-id { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; }

.order-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin: 24px 0;
  text-align: left;
  border: 1px solid var(--border-light);
}

.order-detail-card h3 { margin-bottom: 16px; color: var(--accent); font-weight: 800; }

.order-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.status-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-preparing { background: #e0e7ff; color: #3730a3; }
.status-ready { background: #d1fae5; color: #065f46; }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ===== TRACK ORDER ===== */
.track-form { max-width: 500px; margin: 0 auto 32px; }

.track-form form {
  display: flex;
  gap: 12px;
  align-items: end;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.track-form .form-group { flex: 1; }

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-header h3 { margin-bottom: 0; color: var(--accent); font-weight: 800; }

.track-steps {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
  position: relative;
}

.track-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border);
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--border);
  margin-bottom: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.track-step.active .step-dot { background: var(--primary-light); border: 2px solid var(--primary-mid); }
.track-step.current .step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-light);
  transform: scale(1.12);
}

.step-label { font-size: 0.73rem; font-weight: 700; color: var(--text-muted); text-align: center; }
.track-step.active .step-label,
.track-step.current .step-label { color: var(--primary-dark); }
.track-step.current .step-label { font-weight: 800; }

.step-desc { font-size: 0.68rem; color: var(--text-muted); text-align: center; margin-top: 3px; }

.order-info {
  margin: 20px 0;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.info-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-light); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-weight: 600; }
.info-value { font-weight: 700; color: var(--text); }

/* ===== ORDER ITEMS (track/detail) ===== */
.order-items h4 { margin-bottom: 12px; font-size: 1rem; color: var(--accent); font-weight: 800; }

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-item:last-child { border-bottom: none; }

.order-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
  border: 1px solid var(--border-light);
}

.order-item-image img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.order-item-qty { display: block; font-size: 0.83rem; color: var(--text-muted); }
.order-item-price { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }

.order-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { margin-bottom: 8px; color: var(--accent); font-weight: 800; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== MISC ===== */
.error { text-align: center; padding: 80px 20px; }
.error h2 { font-size: 3rem; color: var(--danger); margin-bottom: 8px; }

.loading { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.loading::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent);
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.28s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ===== FOOTER ===== */
footer {
  background: var(--accent);
  border-top: none;
  padding: 32px 20px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

footer strong { color: var(--white); }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: 8px 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--primary-light);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.about-image-placeholder span {
  font-size: 5rem;
  opacity: 0.6;
}

.about-content { padding: 8px 0; }

.about-text {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.about-feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-stars {
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero { padding: 48px 20px; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-image { height: 150px; }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail-image img { height: 280px; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .filter-bar { flex-direction: column; }

  .category-grid { grid-template-columns: repeat(3, 1fr); }

  .track-steps { flex-wrap: wrap; gap: 8px; }
  .track-steps::before { display: none; }

  .order-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  nav { gap: 16px; }

  .success-actions { flex-direction: column; }
  .order-actions { flex-direction: column; }
  .order-actions .btn, .order-actions { width: 100%; }

  .order-item-image { width: 52px; height: 52px; }

  .home-filter-bar { justify-content: stretch; }
  .home-search-box { max-width: 100%; }

  .payment-options { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .track-form form { flex-direction: column; }
  .hero-content h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
