/* ===== FastFood Pro – Premium UI ===== */
:root {
  --primary: #E63946;
  --primary-dark: #C1121F;
  --primary-light: #FF6B6B;
  --accent: #F77F00;
  --accent-light: #FCBF49;
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --text: #2D3436;
  --text-light: #636E72;
  --bg: #FFF8F0;
  --bg-card: #FFFFFF;
  --border: #FFE0C2;
  --success: #2A9D8F;
  --purple: #9B59B6;
  --shadow: 0 4px 20px rgba(230, 57, 70, 0.1);
  --shadow-hover: 0 16px 40px rgba(230, 57, 70, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
  animation: pulse-logo 2.5s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}
.nav a:hover, .nav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.cart-btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
  transition: all var(--transition);
}
.cart-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.5);
}
.badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 56px 0 70px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 35%, #E63946 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(247, 127, 0, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(230, 57, 70, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(252, 191, 73, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  animation: fadeUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -1.2px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent-light), #fff 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 480px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--dark);
  box-shadow: 0 6px 22px rgba(247, 127, 0, 0.45);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(247, 127, 0, 0.55);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--accent-light);
  font-weight: 800;
}
.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.hero-visual {
  position: relative;
  animation: fadeUp 0.7s 0.25s ease both;
}
.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.5s;
}
.hero-visual:hover img { transform: scale(1.02); }
.hero-visual-overlay {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PROMO BANNER ===== */
.promo-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}
.promo-bar span { opacity: 0.9; }

/* ===== TOOLBAR (Search + Sort) ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color var(--transition);
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}
.sort-select {
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg);
  cursor: pointer;
  color: var(--text);
  min-width: 160px;
}
.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}
.result-count {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== SECTION ===== */
.section { padding: 48px 0 60px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.6px;
}
.section-sub {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ===== CATEGORIES ===== */
.category-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.cat-btn:hover {
  border-color: var(--cat-color, var(--primary));
  color: var(--cat-color, var(--primary));
  transform: translateY(-2px);
}
.cat-btn.active {
  background: var(--cat-color, var(--primary));
  border-color: var(--cat-color, var(--primary));
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cat-color, var(--primary)) 40%, transparent);
}
.cat-icon { font-size: 1.1rem; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
  border: 1px solid transparent;
  animation: cardIn 0.5s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}
.product-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #FFE0C2, #FFD6A5);
  cursor: pointer;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
  letter-spacing: 0.3px;
}
.badge.vip { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.badge.new { background: var(--success); }
.badge.hot { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 10px;
  z-index: 2;
}
.wish-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.wish-btn:hover { transform: scale(1.15); }
.wish-btn.active { background: #fff; }
.product-body { padding: 16px 18px 18px; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.product-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.product-rating {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.product-rating small { color: var(--text-light); font-weight: 500; }
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s;
}
.product-name:hover { color: var(--primary); }
.product-desc {
  font-size: 0.84rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sold {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price { display: flex; flex-direction: column; }
.price-now {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.price-old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.btn-add {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}
.btn-add:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
}
.btn-add:active { transform: scale(0.95); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--bg-card);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s;
  position: relative;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--primary); }
.modal-img {
  position: relative;
  min-height: 280px;
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 0 0 24px;
}
.modal-info {
  padding: 28px 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.modal-info h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  margin: 8px 0 10px;
  line-height: 1.25;
}
.modal-rating {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.65;
}
.modal-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.modal-price .price-now { font-size: 1.5rem; }
.discount-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}
.modal-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.modal-qty button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-qty button:hover { background: var(--primary); color: #fff; }
.modal-qty span {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.modal-actions {
  display: flex;
  gap: 12px;
}
.btn-wish-modal {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-wish-modal:hover, .btn-wish-modal.active {
  border-color: var(--primary);
  background: #FFF0F0;
}

/* ===== CART ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-card);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-panel.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-close:hover { background: var(--bg); color: var(--primary); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}
.cart-empty .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-empty p { font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 4px; }
.cart-empty span { font-size: 0.9rem; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item img {
  width: 68px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.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 {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cart-item-qty button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}
.cart-item-remove:hover { color: var(--primary); }
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.cart-total-row strong {
  font-size: 1.4rem;
  color: var(--primary);
}
.btn-checkout {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 400;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  opacity: 0.8;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ===== PAGE CONTENT ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 52px 0;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p { opacity: 0.85; font-size: 1.05rem; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}
.page-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 28px 0 12px;
}
.page-content p, .page-content li {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.7;
}
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.contact-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--dark); }
.contact-card p { font-size: 0.9rem; color: var(--text-light); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { grid-template-columns: 1fr; max-width: 480px; }
  .modal-img img { border-radius: 24px 24px 0 0; max-height: 240px; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 90;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .product-body { padding: 12px; }
  .product-name { font-size: 0.95rem; }
  .product-desc { display: none; }
  .product-sold { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: 1.85rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .section-title { font-size: 1.45rem; }
}
