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

:root {
  --primary: #8B4513;
  --primary-dark: #6B3410;
  --primary-light: #D2691E;
  --accent: #E67E22;
  --green: #2E7D32;
  --bg: #FDF8F2;
  --surface: #ffffff;
  --text: #2C1810;
  --muted: #7D6B5E;
  --border: #E8D5C4;
  --shadow: 0 4px 24px rgba(139,69,19,0.12);
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,69,19,0.3); }

.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--bg); transform: translateY(-2px); }

.full-width { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 90px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { font-weight: 500; color: var(--muted); transition: color 0.2s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
/* Row that holds Staff + Admin login links side by side */
.alt-login-row {
  display: flex;
  gap: 8px;
}

.staff-login-link {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 50px;
  border: 1.5px dashed #a5d6a7;
  color: #2e7d32;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  background: #f1f8f1;
}
.staff-login-link:hover {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.admin-login-link {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 50px;
  border: 1.5px dashed var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.admin-login-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139,69,19,0.05);
}

.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px 8px 40px;
  font-size: 0.9rem;
  width: 220px;
  outline: none;
  background: var(--bg);
  transition: border-color 0.2s;
  font-family: inherit;
}
.search-wrap input:focus { border-color: var(--primary); }
.search-icon { position: absolute; left: 12px; font-size: 1rem; pointer-events: none; }

.cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
}
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== STRIP ===== */
.strip {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.strip-inner span {
  padding: 0 28px;
  position: relative;
}

.strip-inner span:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: 0;
  opacity: 0.4;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-block;
  background: rgba(139,69,19,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--primary); }

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-visual {
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-img-main {
  font-size: 9rem;
  line-height: 1;
  filter: drop-shadow(0 12px 32px rgba(139,69,19,0.2));
  animation: float 3s ease-in-out infinite;
}

.hero-floats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}
.hero-card span { font-size: 0.85rem; font-weight: 600; color: var(--text); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.floating { animation: float 3s ease-in-out infinite; }
.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.8s; }
.delay-3 { animation-delay: 1.2s; }

/* ===== CATEGORIES ===== */
.categories { padding: 64px 0; background: var(--surface); }

.category-grid { display: flex; gap: 16px; flex-wrap: wrap; }

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  flex: 1;
  min-width: 110px;
  font-family: inherit;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-icon { font-size: 1.8rem; }

/* ===== PRODUCTS ===== */
.products-section { padding: 64px 0; }

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 16px;
}

.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.sort-wrap select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.9rem;
  outline: none;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

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

/* ===== 3D PRODUCT CARD ===== */
@keyframes card-float-in {
  0%   { opacity: 0; transform: perspective(900px) rotateX(18deg) translateY(40px) scale(0.94); }
  100% { opacity: 1; transform: perspective(900px) rotateX(0deg)  translateY(0px)  scale(1);    }
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(139,69,19,0.09);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
  will-change: transform;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale3d(1,1,1);
  /* Staggered entrance animation */
  animation: card-float-in 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ── Glare layer ── */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

/* ── Edge glow layer ── */
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

/* ── Product image area ── */
.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF8F0 0%, #FDEBD0 100%);
  position: relative;
  overflow: hidden;
}

/* ── Floating emoji ── */
.card-emoji {
  font-size: 5rem;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), filter 0.45s ease;
  transform-origin: center center;
  user-select: none;
}

/* ── Blurred emoji shadow (depth illusion) ── */
.card-emoji-shadow {
  position: absolute;
  font-size: 5rem;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  filter: blur(10px) brightness(0.3) saturate(0.4);
  pointer-events: none;
  transition: all 0.45s ease;
  z-index: 1;
  user-select: none;
}

/* ── Discount chip ── */
.card-discount-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e53e3e, #c62828);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(198,40,40,0.35);
  z-index: 5;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}
.product-badge.new { background: var(--green); }
.product-badge.organic { background: var(--green); }
.out-of-stock-badge { background: #c0392b !important; }
.low-stock-badge { background: #f39c12 !important; }
.add-to-cart.out-btn { background: #e0e0e0; color: #9e9e9e; cursor: not-allowed; }
.add-to-cart.out-btn:hover { transform: none; background: #e0e0e0; }

.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }

.product-weight {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.82rem; color: var(--muted); }
.stars { color: #F59E0B; }

.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.product-price { display: flex; flex-direction: column; }
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.price-original { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }

.add-to-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  position: relative;
  overflow: visible;
}
.add-to-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 6px 18px rgba(139,69,19,0.35);
}
.add-to-cart:active { transform: scale(0.96); }
.add-to-cart.added  { background: var(--green); }

/* ── Sparkle particles ── */
@keyframes sparkle-burst {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  60%  { opacity: 0.8; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.sparkle-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  animation: sparkle-burst 0.65s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

/* ── Cart ring pulse ── */
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

.cart-ring-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid var(--primary);
  pointer-events: none;
  animation: ring-pulse 0.55s ease-out forwards;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #E67E22 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.promo-emoji { font-size: 3rem; margin-bottom: 12px; }
.promo-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.promo-content p { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.9; }

/* ===== BENEFITS ===== */
.benefits { padding: 80px 0; background: var(--surface); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.8rem; display: block; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 80px 0; background: var(--bg); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(139,69,19,0.06);
}
.t-stars { font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.t-author { font-size: 0.88rem; font-weight: 700; color: var(--primary); }

/* ===== FOOTER ===== */
.footer { background: var(--text); color: rgba(255,255,255,0.8); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; font-size: 1.3rem; }
.footer-socials span { cursor: pointer; transition: transform 0.2s; }
.footer-socials span:hover { transform: scale(1.2); }

.footer-links h4 { color: #fff; margin-bottom: 16px; font-size: 0.92rem; }
.footer-links a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-newsletter h4 { color: #fff; margin-bottom: 12px; font-size: 0.92rem; }
.footer-newsletter p { font-size: 0.88rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  backdrop-filter: blur(3px);
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--surface);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.cart-header h2 { font-size: 1.2rem; font-weight: 700; }

.close-cart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.close-cart:hover { background: var(--border); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 48px; font-size: 1rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-emoji { font-size: 2.2rem; background: var(--bg); border-radius: 10px; padding: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.88rem; }

.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.remove-item { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1rem; margin-left: 4px; }

.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; margin-bottom: 16px; }
.cart-total strong { font-size: 1.3rem; color: var(--primary); }

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.product-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.close-modal:hover { background: var(--border); }

.modal-product-emoji {
  font-size: 6rem;
  text-align: center;
  background: linear-gradient(135deg, #FFF8F0, #FDEBD0);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
}
.modal-product-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.modal-product-cat { color: var(--primary); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; margin-bottom: 8px; }
.modal-product-weight { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.modal-product-desc { color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.modal-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 0.88rem; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-tag { background: rgba(139,69,19,0.1); color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.modal-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.modal-price-current { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.modal-price-original { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.modal-discount { background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }

/* ===== CHECKOUT ===== */
.checkout-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.checkout-modal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.checkout-form h3 { font-size: 0.82rem; font-weight: 700; margin: 20px 0 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.form-group input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
  outline: none;
  background: var(--bg);
  transition: border-color 0.2s;
  font-family: inherit;
  color: var(--text);
}
.form-group input:focus { border-color: var(--primary); }
.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(139,69,19,0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 1rem;
  border: 1px solid var(--border);
}
.checkout-summary strong { font-size: 1.25rem; color: var(--primary); }

/* ===== CHECKOUT COUPON ===== */
.co-coupon-section {
  margin: 18px 0 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  border: 1.5px solid #c8e6c9;
  border-radius: 12px;
}
.co-coupon-label {
  font-size: 0.8rem; font-weight: 700; color: #2e7d32;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.co-coupon-row {
  display: flex; gap: 8px; align-items: center;
}
.co-coupon-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid #a5d6a7;
  border-radius: 8px; font-size: 0.88rem; font-family: inherit;
  color: #1b5e20; background: #fff; letter-spacing: 0.08em; font-weight: 600;
  outline: none;
}
.co-coupon-input:focus { border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,0.12); }
.co-coupon-btn {
  padding: 10px 18px; background: #2e7d32; color: #fff;
  border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.2s;
}
.co-coupon-btn:hover { background: #1b5e20; }
.co-coupon-remove {
  width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid #ef9a9a;
  background: #fff; color: #c62828; font-weight: 700; cursor: pointer;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.co-coupon-remove:hover { background: #ffebee; }
.co-coupon-status {
  margin-top: 8px; font-size: 0.8rem; min-height: 18px;
  font-weight: 600; border-radius: 6px;
}
.co-coupon-status.ok   { color: #2e7d32; }
.co-coupon-status.err  { color: #c62828; }

/* ===== CHECKOUT SUMMARY BOX ===== */
.checkout-summary-box {
  background: rgba(139,69,19,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0 18px;
}
.co-sum-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.co-sum-row:last-child { border-bottom: none; }
.co-sum-total {
  padding-top: 10px; margin-top: 4px;
  font-size: 1.05rem; font-weight: 700;
}
.co-sum-total strong { font-size: 1.2rem; color: var(--primary); }
.co-coupon-tag {
  display: inline-block; background: #2e7d32; color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 2px 7px;
  border-radius: 10px; letter-spacing: 0.06em; vertical-align: middle;
  margin-left: 5px;
}

/* ===== SUCCESS ===== */
.success-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-modal h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.success-modal p { color: var(--muted); margin-bottom: 28px; line-height: 1.7; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== NAVBAR PROFILE BUTTON ===== */
.profile-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px 7px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
}
.profile-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(139,69,19,0.05); }
.profile-btn.logged-in { border-color: var(--primary); background: rgba(139,69,19,0.08); }

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-logo { font-size: 2.8rem; text-align: center; margin-bottom: 8px; }
.auth-modal h2 { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 0; }

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input {
  flex: 1;
  padding-right: 44px !important;
}
.toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
}

.mobile-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.2s;
}
.mobile-wrap:focus-within { border-color: var(--primary); }
.country-code {
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(139,69,19,0.06);
  border-right: 1.5px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-wrap input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
  padding: 11px 14px;
}
.mobile-wrap input:focus { outline: none; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.84rem;
}
.remember-me { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); }
.remember-me input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.forgot-link { color: var(--primary); font-weight: 600; font-size: 0.84rem; }
.forgot-link:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-error {
  color: #e74c3c;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 18px;
}
.auth-success {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 18px;
}

/* ===== PROFILE MODAL ===== */
.profile-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  color: #fff;
}

.profile-big-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 3px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.profile-header-info h2 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.profile-header-info p { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.profile-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
}

.profile-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  padding: 0 24px;
  background: var(--bg);
}
.ptab {
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.ptab:hover { color: var(--primary); }
.ptab.active { color: var(--primary); border-bottom-color: var(--primary); }

.ptab-content { padding: 28px 32px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.info-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.edit-profile-form {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.orders-empty { text-align: center; color: var(--muted); padding: 32px 0; }
.orders-empty p { font-size: 1rem; }

.order-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.order-id { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.order-date { font-size: 0.78rem; color: var(--muted); }
.order-items { font-size: 0.88rem; color: var(--text); margin-bottom: 6px; }
.order-total { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.order-status {
  display: inline-block;
  background: rgba(46,125,50,0.1);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-left: 8px;
}

.profile-footer {
  padding: 16px 32px 28px;
  border-top: 1px solid var(--border);
}
.btn-logout {
  background: none;
  border: 1.5px solid #e74c3c;
  color: #e74c3c;
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-logout:hover { background: #e74c3c; color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 60px 24px; min-height: auto; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cart-sidebar { width: 100%; right: -100%; }
}

@media (max-width: 600px) {
  .section-title { font-size: 1.5rem; }
  .category-grid { gap: 10px; }
  .cat-card { min-width: 90px; padding: 14px 12px; font-size: 0.8rem; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search-wrap input { width: 130px; }
  .product-modal, .checkout-modal { padding: 24px; }
  .strip-inner { gap: 0; }
  .strip-inner span { padding: 4px 14px; font-size: 0.78rem; }
}

/* ===== UPI PAYMENT ===== */
.co-upi-hint {
  font-size: 0.75rem;
  color: #888;
  margin-top: 5px;
}
.co-upi-apps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.co-upi-app-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}
.co-upi-app-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.co-upi-app-logo:hover { opacity: 1; }
