/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ak-orange: #f97316;
  --ak-orange-dark: #ea6d04;
  --ak-dark: #1a1a2e;
  --ak-navy: #16213e;
  --ak-accent: #fbbf24;
  --ak-surface: #f8f7f4;
  --ak-white: #ffffff;
  --ak-text: #1a1a2e;
  --ak-muted: #6b7280;
  --ak-border: #e5e7eb;
  --ak-green: #10b981;
  --ak-red: #ef4444;
  --ak-blue: #3b82f6;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--ak-surface); color: var(--ak-text); font-size: 16px; }
a { text-decoration: none; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--ak-dark);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.topbar span { font-size: 12px; color: #a0aec0; }
.topbar span strong { color: var(--ak-accent); }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--ak-navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  border-bottom: 3px solid var(--ak-orange);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--ak-white);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand span { color: var(--ak-orange); }

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--ak-white);
  border-radius: 8px;
  overflow: hidden;
  max-width: 520px;
}
.search-bar select {
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 13px;
  background: #f3f4f6;
  height: 42px;
  font-family: 'Outfit', sans-serif;
  color: var(--ak-text);
  border-right: 1px solid var(--ak-border);
  cursor: pointer;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  height: 42px;
  color: var(--ak-text);
  min-width: 0;
}
.search-btn {
  background: var(--ak-orange);
  border: none;
  padding: 0 18px;
  height: 42px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--ak-orange-dark); }

.nav-actions { display: flex; gap: 12px; margin-left: auto; }
.nav-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ak-orange);
  color: var(--ak-accent);
}
.cart-btn {
  background: var(--ak-orange);
  border: none;
  color: white;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
  white-space: nowrap;
}
.cart-btn:hover { background: var(--ak-orange-dark); }
.cart-count {
  background: var(--ak-accent);
  color: var(--ak-dark);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-search { display: none; padding: 10px 16px; background: var(--ak-navy); }
.mobile-search .search-bar { max-width: 100%; }

/* ===== CATEGORY NAV ===== */
.cat-nav {
  background: var(--ak-dark);
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-link {
  color: #d1d5db;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  user-select: none;
}
.cat-link:hover, .cat-link.active {
  color: white;
  border-bottom-color: var(--ak-orange);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-text h1 span { color: var(--ak-orange); }
.hero-text p {
  color: #9ca3af;
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 420px;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--ak-orange);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--ak-orange-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ak-accent);
  border: 2px solid var(--ak-accent);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--ak-accent); color: var(--ak-dark); }

.hero-badge {
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  color: white;
  min-width: 200px;
  flex-shrink: 0;
}
.hero-badge .big-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--ak-orange);
  font-family: 'Playfair Display', serif;
}
.hero-badge p { font-size: 13px; color: #9ca3af; margin-top: 4px; }
.hero-stats { margin-top: 16px; display: flex; gap: 8px; justify-content: center; }
.hero-stat { text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--ak-accent); }
.stat-label { font-size: 11px; color: #9ca3af; }
.hero-divider { width: 1px; background: rgba(255,255,255,0.1); }

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--ak-white);
  border-bottom: 1px solid var(--ak-border);
  padding: 14px 32px;
  display: flex;
  justify-content: center;
  gap: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ak-muted);
  white-space: nowrap;
}
.trust-icon { font-size: 18px; }

/* ===== DEALS STRIP ===== */
.deals-strip {
  background: #fff8f0;
  border-top: 3px solid var(--ak-orange);
  border-bottom: 1px solid #fde8d0;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.deals-strip::-webkit-scrollbar { display: none; }
.deals-label {
  background: var(--ak-orange);
  color: white;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.deal-chip {
  background: white;
  border: 1px solid #fcd9a0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #b45309;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}
.deal-chip:hover { background: var(--ak-orange); color: white; border-color: var(--ak-orange); }

/* ===== SECTIONS ===== */
.section { padding: 32px 24px; }
.alt-bg { background: #f0f9ff; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ak-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--ak-orange);
  border-radius: 2px;
}
.see-all {
  color: var(--ak-orange);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.see-all:hover { text-decoration: underline; }

/* ===== CATEGORY CARDS ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--ak-white);
  border: 0.5px solid var(--ak-border);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-card:hover { border-color: var(--ak-orange); background: #fff8f0; }
.cat-emoji { font-size: 36px; margin-bottom: 8px; }
.cat-name { font-size: 13px; font-weight: 500; color: var(--ak-text); }
.cat-count { font-size: 11px; color: var(--ak-muted); margin-top: 3px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--ak-white);
  border: 0.5px solid var(--ak-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.product-card:hover {
  border-color: var(--ak-orange);
  box-shadow: 0 4px 20px rgba(249,115,22,0.12);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.badge-sale { background: var(--ak-red); color: white; }
.badge-new  { background: var(--ak-green); color: white; }
.badge-hot  { background: var(--ak-orange); color: white; }

.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: white;
  border: 0.5px solid var(--ak-border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .wishlist-btn { opacity: 1; }

.product-img {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: #f9fafb;
  border-bottom: 0.5px solid var(--ak-border);
  user-select: none;
}
.product-info { padding: 12px; }
.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ak-text);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-brand { font-size: 11px; color: var(--ak-muted); margin-bottom: 6px; }

.stars { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.star-row { color: var(--ak-accent); font-size: 12px; letter-spacing: 1px; }
.review-count { font-size: 11px; color: var(--ak-muted); }

.price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.price { font-size: 18px; font-weight: 700; color: var(--ak-text); }
.price-old { font-size: 13px; color: var(--ak-muted); text-decoration: line-through; }
.discount { font-size: 12px; color: var(--ak-green); font-weight: 600; }

.stock-low { font-size: 11px; color: var(--ak-red); margin-bottom: 6px; }
.prime-badge { font-size: 10px; color: var(--ak-blue); font-weight: 600; margin-bottom: 4px; }

.add-cart {
  width: 100%;
  background: var(--ak-orange);
  color: white;
  border: none;
  padding: 9px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background var(--transition);
}
.add-cart:hover { background: var(--ak-orange-dark); }
.add-cart:active { transform: scale(0.98); }

/* ===== PROMO BANNERS ===== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-card {
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform var(--transition);
}
.promo-card:hover { transform: translateY(-2px); }
.promo-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.promo-card p { font-size: 13px; opacity: 0.85; margin-bottom: 12px; }
.shop-link { font-size: 13px; font-weight: 600; }
.promo-1 { background: linear-gradient(135deg, #0f3460, #533483); color: white; }
.promo-2 { background: linear-gradient(135deg, #1a4731, #166534); color: white; }
.promo-1 .shop-link { color: var(--ak-accent); }
.promo-2 .shop-link { color: #86efac; }
.promo-emoji {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 72px;
  opacity: 0.25;
  user-select: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--ak-dark);
  color: #9ca3af;
  padding: 40px 32px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  cursor: pointer;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--ak-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 20px; color: white; }
.footer-brand span { color: var(--ak-orange); }
.footer-copy { font-size: 12px; }
.footer-links { display: flex; gap: 12px; }
.footer-links a { color: #9ca3af; font-size: 12px; cursor: pointer; }
.footer-links a:hover { color: var(--ak-orange); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: none;
}
.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  background: white;
  z-index: 901;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--ak-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 18px; font-weight: 600; }
.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ak-muted);
  transition: color var(--transition);
}
.close-btn:hover { color: var(--ak-text); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 40px; color: var(--ak-muted); }
.cart-empty-icon { font-size: 48px; margin-bottom: 12px; }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--ak-border); }
.cart-item-img {
  font-size: 36px;
  background: #f9fafb;
  border-radius: 8px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--ak-orange); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  background: none;
  border: 1px solid var(--ak-border);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--ak-orange); color: var(--ak-orange); }
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--ak-red);
  margin-left: 8px;
  font-family: 'Outfit', sans-serif;
}

.cart-footer { padding: 16px; border-top: 1px solid var(--ak-border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.checkout-btn {
  width: 100%;
  background: var(--ak-orange);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background var(--transition);
}
.checkout-btn:hover { background: var(--ak-orange-dark); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ak-dark);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  border-left: 4px solid var(--ak-green);
  transform: translateX(200%);
  transition: transform 0.3s ease;
  z-index: 1000;
  max-width: 300px;
}
.toast.show { transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .topbar { display: none; }

  .navbar { gap: 12px; padding: 0 16px; }
  .search-bar { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: block; }

  .mobile-search { display: block; }

  .hero {
    flex-direction: column;
    padding: 32px 20px;
    text-align: center;
  }
  .hero-text h1 { font-size: 32px; }
  .hero-text p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-badge { display: none; }

  .trust-strip { gap: 20px; justify-content: flex-start; padding: 12px 16px; }

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

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

  .cat-grid { grid-template-columns: repeat(4, 1fr); }

  .section { padding: 24px 16px; }

  .cart-sidebar { width: 100%; max-width: 360px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-card h3 { font-size: 16px; }
}
