/* ============================================
   ZETTY MART – Global Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --gold:      #F4B400;
  --gold-dark: #d99e00;
  --gold-light:#FFD454;
  --dark:      #1F2937;
  --darker:    #111827;
  --white:     #FFFFFF;
  --blue:      #2563EB;
  --blue-dark: #1d4ed8;
  --text:      #111827;
  --text-muted:#6B7280;
  --bg:        #FFFFFF;
  --bg-soft:   #F9FAFB;
  --border:    #E5E7EB;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 28px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

/* ── Section Header ── */
.section-header { margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244,180,0,.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--darker);
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--darker);
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(244,180,0,.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cart {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: var(--transition);
}
.nav-cart:hover { background: var(--gold); color: white; border-color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--darker);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,180,0,.35);
}
.btn-dark {
  background: var(--darker);
  color: white;
}
.btn-dark:hover {
  background: #0d1520;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--darker);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-blue {
  background: var(--blue);
  color: white;
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.35);
}
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--darker);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--darker);
  color: #9CA3AF;
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand .nav-logo .logo-icon { background: var(--gold); }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: var(--transition);
  color: #9CA3AF;
}
.social-link:hover { background: var(--gold); color: var(--darker); }
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: #9CA3AF;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: white;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: var(--transition);
}
.footer-newsletter input:focus { border-color: var(--gold); }
.footer-newsletter input::placeholder { color: #6B7280; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--gold); }

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-img {
  position: relative;
  height: 240px;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-sale { background: #EF4444; color: white; }
.badge-new  { background: var(--blue); color: white; }
.badge-hot  { background: var(--gold); color: var(--darker); }
.product-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: white;
  border: none;
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--text);
}
.product-action-btn:hover { background: var(--gold); }
.product-card-body { padding: 20px; }
.product-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 8px;
  transition: var(--transition);
}
.product-card:hover .product-name { color: var(--gold); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-current {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--darker);
}
.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.add-cart-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--gold);
  border: none;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--darker);
  transition: var(--transition);
}
.add-cart-btn:hover {
  background: var(--darker);
  color: white;
  transform: scale(1.1);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 9999;
  background: var(--darker);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 18px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(17,24,39,.96);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  padding: 12px 24px;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
