/*
Theme Name: Storefront Child
Theme URI: http://example.com/storefront-child/
Description: Storefront Child Theme for Waziristan Dry Fruits
Author: Your Name
Template: storefront
Version: 1.0.0
*/

/* NOTE: Google Fonts @import removed from here — loaded via functions.php to avoid duplicate requests */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:        #F5EADA;
  --warm-white:   #F7EFE0;
  --sand:         #E8D0A8;
  --caramel:      #B06A20;
  --caramel-dark: #8C5015;
  --amber:        #D4882E;
  --brown:        #4E2A0A;
  --brown-light:  #7A4A1A;
  --text-dark:    #2A1305;
  --text-mid:     #553418;
  --text-light:   #8A6030;
  --green-hint:   #5A7040;
  --shadow:       rgba(78, 42, 10, 0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAVBAR ── */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.site-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(245, 234, 218, 0.97) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(176, 106, 32, 0.2) !important;
  padding: 0 5% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 70px !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  animation: slideDown 0.6s ease;
}

.site-nav .logo {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--brown) !important;
  letter-spacing: -0.5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.site-nav .logo span { color: var(--caramel) !important; }

.site-nav .nav-menu {
  list-style: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  position: static !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.site-nav .nav-menu li {
  display: inline-block !important;
  float: none !important;
  position: static !important;
}

.site-nav .nav-menu a {
  text-decoration: none !important;
  color: var(--text-mid) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: color 0.2s !important;
  position: relative !important;
  display: inline-block !important;
  padding: 0 !important;
  background: none !important;
}

.site-nav .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--caramel);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.site-nav .nav-menu a:hover { color: var(--caramel) !important; }
.site-nav .nav-menu a:hover::after { width: 100%; }

.nav-cart {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: var(--caramel) !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.nav-cart:hover {
  background: var(--caramel-dark) !important;
  transform: translateY(-1px) !important;
}

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 5%;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70vmin;
  height: 70vmin;
  background: radial-gradient(circle, rgba(232, 162, 74, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -5%;
  bottom: -10%;
  width: 40vmin;
  height: 40vmin;
  background: radial-gradient(circle, rgba(200, 132, 58, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text { animation: fadeUp 0.8s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 132, 58, 0.12);
  color: var(--caramel-dark);
  border: 1px solid rgba(200, 132, 58, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before { content: '✦'; font-size: 0.6rem; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--caramel);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(107, 63, 31, 0.25);
}

.btn-primary:hover {
  background: var(--caramel-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107, 63, 31, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brown);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--brown);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-bowl {
  width: min(480px, 90%);
  height: min(480px, 90%);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sand) 0%, rgba(200,132,58,0.2) 60%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  box-shadow: 0 20px 60px rgba(107, 63, 31, 0.15), inset 0 -10px 30px rgba(200, 132, 58, 0.1);
  position: relative;
}

.hero-bowl::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(200, 132, 58, 0.25);
  animation: spin 30s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.float-tag {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 8px 24px var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-tag:nth-child(2) { top: 10%;  right: -5%;  animation-delay: 0s; }
.float-tag:nth-child(3) { bottom: 15%; left: -8%; animation-delay: 1.5s; }
.float-tag:nth-child(4) { top: 40%;  right: -12%; animation-delay: 0.8s; }

.float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-hint);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--brown);
  color: rgba(255,255,255,0.9);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-icon { font-size: 1.2rem; }

/* ── SECTIONS ── */
section { padding: 5rem 5%; position: relative; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
}

/* ── CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.cat-card {
  background: white;
  border-radius: 20px;
  padding: 1.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(200,132,58,0.1);
  text-decoration: none;
  color: inherit;
  display: block;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.cat-emoji { font-size: 2.8rem; display: block; margin-bottom: 0.8rem; }
.cat-name  { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.cat-count { font-size: 0.75rem; color: var(--text-light); }

/* ── PRODUCTS ── */
.products-section { background: var(--warm-white); }

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-all {
  color: var(--caramel);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.view-all:hover { gap: 0.6rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(200,132,58,0.08);
  animation: fadeUp 0.6s ease both;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.product-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--sand) 0%, rgba(232,162,74,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-hint);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.product-badge.sale { background: #C0392B; }

.product-info { padding: 1.3rem 1.4rem 1.4rem; }

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.product-weight { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.8rem; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price { font-size: 1.2rem; font-weight: 700; color: var(--caramel-dark); }

.product-price .old {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.3rem;
}

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--caramel);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.add-btn:hover {
  background: var(--caramel-dark);
  transform: scale(1.1);
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  padding: 2rem;
  border-radius: 20px;
  background: white;
  border-left: 4px solid var(--caramel);
  transition: transform 0.3s;
}

.why-card:hover { transform: translateX(4px); }
.why-icon  { font-size: 2.2rem; margin-bottom: 1rem; }
.why-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); margin-bottom: 0.5rem; }
.why-desc  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }

/* ── PROMO BANNER ── */
.banner {
  margin: 0 5% 5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brown) 0%, #3B1F0A 50%, var(--caramel-dark) 100%);
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  right: -5%; top: -30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(232, 162, 74, 0.12);
}

.banner::after {
  content: '';
  position: absolute;
  right: 15%; bottom: -40%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(232, 162, 74, 0.08);
}

.banner-text { position: relative; z-index: 1; }

.banner-tag {
  display: inline-block;
  background: rgba(232, 162, 74, 0.2);
  color: var(--amber);
  border: 1px solid rgba(232,162,74,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: white;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.banner p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 1.8rem; }

.banner-btn {
  background: var(--amber);
  color: var(--brown);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.banner-visual { font-size: 8rem; position: relative; z-index: 1; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--sand); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.testi-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s;
}

.testi-card:hover { transform: translateY(-4px); }

.stars { color: var(--amber); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }

.testi-text {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.3rem;
}

.testi-author { display: flex; align-items: center; gap: 0.8rem; }

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel), var(--amber));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: white; font-weight: 700;
}

.testi-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.testi-loc  { font-size: 0.75rem; color: var(--text-light); }

/* ── FOOTER ── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.8);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--cream);
}
.footer-brand .logo span { color: var(--amber); }

.footer-brand p {
  font-size: 0.88rem; line-height: 1.7; margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: white; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; }
  .hero-visual { order: -1; }
  .hero-bowl { width: 260px; height: 260px; font-size: 6rem; }
  .float-tag { display: none; }
  .site-nav .nav-menu { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { padding: 2.5rem; }
  .banner-visual { display: none; }
  .trust-bar { gap: 1.5rem; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}





