/* =====================================================
   Saste Tools — Base Stylesheet
   Written from scratch. Loads AFTER variables.css + animations.css
   and BEFORE header.css/footer.css/hero.css/products.css/product-page.css
   (those files only add polish/overrides on top of what's here).
   ===================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { color: var(--text-muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--gold-glow); }
.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Section titles ---------- */
.section-title { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.section-title span { color: var(--gold); }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.content-section { padding: 60px 0; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 50px 0 60px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero-content h1 { margin-bottom: 18px; }
.hero-content h1 span { color: var(--gold); }
.hero-content > p { max-width: 480px; margin-bottom: 24px; font-size: 1.02rem; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.hero-tags span i { color: var(--gold); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual: floating tool icons around a glowing center logo */
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glow-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 68%);
  filter: blur(4px);
  z-index: 0;
}
.hero-center-icon {
  position: relative;
  z-index: 2;
  width: 150px; height: 150px;
  background: var(--black-soft);
  box-shadow: 0 0 0 1px var(--glass-border), var(--shadow-gold);
}
.floating-icon {
  position: absolute;
  z-index: 2;
  width: 66px; height: 66px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  animation: float 4.5s ease-in-out infinite;
}
.floating-icon.f1 { top: 4%;   left: 6%;   animation-delay: 0s; }
.floating-icon.f2 { top: 0%;   right: 8%;  animation-delay: 0.6s; }
.floating-icon.f3 { top: 42%;  left: -4%;  animation-delay: 1.2s; }
.floating-icon.f4 { top: 40%;  right: -6%; animation-delay: 1.8s; }
.floating-icon.f5 { bottom: 6%; left: 14%; animation-delay: 2.4s; }
.floating-icon.f6 { bottom: 2%; right: 18%; animation-delay: 3s; }

@media (max-width: 1024px) {
  .hero-visual { height: 400px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content > p { margin-left: auto; margin-right: auto; }
  .hero-tags, .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .hero { padding: 30px 0 40px; }
  .hero-visual { height: 340px; }
  h1 { font-size: 1.9rem; }
  .floating-icon.f1 { left: 2%; }
  .floating-icon.f2 { right: 4%; }
  .floating-icon.f3 { left: -2%; }
  .floating-icon.f4 { right: -2%; }
  .floating-icon.f5 { left: 8%; }
  .floating-icon.f6 { right: 10%; }
  .hero-tags { flex-wrap: nowrap; gap: 6px; width: 100%; }
  .hero-tags span { padding: 7px 8px; font-size: 0.66rem; gap: 4px; flex: 1; justify-content: center; white-space: nowrap; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; width: 100%; }
  .hero-actions .btn { flex: 1; padding: 12px 10px; font-size: 0.85rem; white-space: nowrap; }
}

/* ---------- CATEGORIES ---------- */
.categories { padding: 70px 0 20px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}
.category-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(252,192,10,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.category-card h3 { font-size: 1rem; }
.category-card p { font-size: 0.82rem; margin: 0; }
.category-card .arrow {
  position: absolute;
  bottom: 18px; right: 16px;
  color: var(--text-faint);
  transition: var(--transition-fast);
}
.category-card:hover .arrow { color: var(--gold); transform: translateX(3px); }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { padding: 18px 14px; }
}

/* ---------- FEATURED / RELATED PRODUCTS ---------- */
.products-section { padding: 70px 0; }
.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.products-header .section-title,
.products-header .section-sub { margin-bottom: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card-link { display: block; }
.product-img-wrap {
  background: #fff;
  height: 170px;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-info { padding: 16px 18px 20px; }
.product-category { font-size: 0.75rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.product-info h3 { font-size: 1.02rem; margin-bottom: 4px; }
.product-plan { font-size: 0.82rem; margin-bottom: 8px; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.product-price small { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.2rem; color: var(--gold); margin-bottom: 14px; display: block; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .product-grid { gap: 14px; }
  .product-info { padding: 12px 14px 16px; }
}

/* ---------- WHY CHOOSE US ---------- */
.why-choose { padding: 70px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-item { text-align: center; }
.why-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(252,192,10,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.why-item h4 { margin-bottom: 6px; }
.why-item p { font-size: 0.88rem; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-item {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 14px;
  }
  .why-icon { margin: 0 auto 14px; width: 48px; height: 48px; font-size: 1.1rem; }
  .why-item h4 { font-size: 0.92rem; }
  .why-item p { font-size: 0.78rem; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 70px 0; }
.testimonials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.rating-badge {
  text-align: right;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 20px;
}
.rating-badge .stars { color: var(--gold); font-size: 0.9rem; }
.rating-badge .score { color: var(--text-light); font-weight: 700; margin-left: 4px; }
.rating-badge small { color: var(--text-muted); display: block; margin-top: 2px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
}
.review-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-name { font-size: 0.92rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.review-name i { color: #3b82f6; font-size: 0.8rem; }
.review-stars { color: var(--gold); font-size: 0.78rem; margin-top: 2px; }
.review-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- WHATSAPP CHANNEL CTA (homepage, above footer) ---------- */
.whatsapp-cta {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 30px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.whatsapp-cta-left { display: flex; align-items: center; gap: 18px; }
.whatsapp-cta-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.whatsapp-cta h3 { margin-bottom: 4px; }
.whatsapp-cta p { margin: 0; }

@media (max-width: 560px) {
  .whatsapp-cta { padding: 24px; margin: 0 16px 40px; flex-direction: column; text-align: center; }
}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.breadcrumb { padding: 18px 24px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--gold-light); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-detail-img img { width: 100%; height: auto; }
.product-detail-info h1 { margin: 10px 0 14px; }
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.product-detail-price { font-size: 1.5rem; font-weight: 700; margin: 16px 0; }
.product-detail-desc h3 { margin-bottom: 10px; }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Mobile nav search icon-btn spacing fallback ---------- */
@media (max-width: 992px) {
  .header-actions { gap: 10px; }
}
