/* =========================================
   Silk & Shines — Beejwala-inspired Theme
   ========================================= */

:root {
  --green-primary: #2d7a22;
  --green-dark: #1a4f14;
  --green-light: #e8f5e5;
  --green-mid: #4caf50;
  --accent-gold: #e8a600;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --white: #ffffff;
  --bg-soft: #f7fbf5;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, .brand-name {
  font-family: 'Playfair Display', serif;
}

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--green-dark);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ── Navbar ── */
.main-navbar {
  background: #fff;
  border-bottom: 2px solid var(--green-light);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand-icon {
  font-size: 2rem;
  line-height: 1;
}

.brand-name {
  font-size: 1.4rem;
  color: var(--green-primary);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search-bar {
  max-width: 480px;
  width: 100%;
}

.search-input {
  border-radius: 24px 0 0 24px !important;
  border: 2px solid var(--green-primary) !important;
  border-right: none !important;
  font-size: .9rem;
  padding: 0.4rem 1rem;
}

.search-input:focus {
  box-shadow: none !important;
  border-color: var(--green-primary) !important;
}

.search-btn {
  border-radius: 0 24px 24px 0 !important;
  background: var(--green-primary) !important;
  color: #fff !important;
  border: 2px solid var(--green-primary) !important;
  border-left: none !important;
  padding: 0.4rem 1rem;
}

.nav-icon-link {
  color: var(--text-dark) !important;
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav-icon-link:hover {
  background: var(--green-light);
  color: var(--green-primary) !important;
}

.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: #e53935;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* Category dropdown */
.category-dropdown {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: .5rem 0;
}
.category-dropdown .dropdown-item {
  font-size: .88rem;
  padding: .5rem 1.2rem;
  display: flex; align-items: center; gap: .5rem;
}
.category-dropdown .dropdown-item:hover {
  background: var(--green-light);
  color: var(--green-primary);
}
.cat-dot {
  width: 7px; height: 7px;
  background: var(--green-primary);
  border-radius: 50%;
  display: inline-block;
}

/* ── Category Pill Bar ── */
.category-pill-bar {
  background: #fff;
  position: sticky;
  top: 65px;
  z-index: 1020;
}

.category-pills-scroll {
  scrollbar-width: none;
}
.category-pills-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  white-space: nowrap;
  padding: .35rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--border-light);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: all .2s;
  background: #fff;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

/* ── Hero Carousel ── */
.hero-carousel .carousel-item {
  border-radius: 0;
  overflow: hidden;
}

.hero-carousel .carousel-item img {
  height: 420px;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-text h1 {
  font-size: 2.6rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  line-height: 1.2;
}

.hero-text p {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  margin: .8rem 0 1.2rem;
}

.hero-cta {
  background: var(--green-primary);
  border: none;
  color: #fff;
  padding: .6rem 1.8rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.hero-cta:hover { background: var(--green-dark); color: #fff; }

/* ── Section Headers ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-light);
}

.section-title {
  font-size: 1.35rem;
  color: var(--green-dark);
  margin: 0;
}

.section-title span {
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--green-primary);
  border-radius: 2px;
  margin-right: .5rem;
  vertical-align: middle;
}

.view-all-link {
  font-size: .82rem;
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex; align-items: center; gap: .2rem;
}
.view-all-link:hover { color: var(--green-dark); }

/* ── Product Cards ── */
.product-card {
  border: 1px solid var(--border-light) !important;
  border-radius: 14px !important;
  transition: all .3s ease;
  background: #fff;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45,122,34,.12) !important;
  border-color: var(--green-primary) !important;
}

.product-card .card-img-top {
  height: 220px;
  object-fit: contain;
  padding: 1rem;
  transition: transform .3s ease;
  background: #fff;
}

.product-card:hover .card-img-top {
  transform: scale(1.06);
}

.discount-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #e53935;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  letter-spacing: .02em;
}

.product-brand {
  font-size: .72rem;
  color: var(--green-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-name {
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: .3rem;
}

.price-offer {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-primary);
}

.price-original {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-view-detail {
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .8rem;
  transition: background .2s;
  width: 100%;
}

.btn-view-detail:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-cart-outline {
  border: 1.5px solid var(--green-primary);
  color: var(--green-primary);
  background: transparent;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  padding: .38rem .6rem;
  transition: all .2s;
}

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

/* ── Category Icon Cards ── */
.cat-icon-card {
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  padding: .8rem .5rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all .25s;
  background: #fff;
}

.cat-icon-card:hover {
  border-color: var(--green-primary);
  background: var(--green-light);
  color: var(--green-primary);
  transform: translateY(-3px);
}

.cat-icon-card img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--green-light);
  background: var(--green-light);
  padding: 4px;
}

.cat-icon-card .cat-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-top: .4rem;
}

/* ── Offer Banner ── */
.offer-banner img {
  border-radius: 12px;
}

/* ── Trust / Footer ── */
.trust-bar {
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-item i { color: var(--green-primary); }

.site-footer {
  background: #1a2e1a;
  color: #d1e8d0;
}

.footer-main { border-bottom: 1px solid #2d4a2d; }
.footer-bottom { background: #111e11; }

.footer-heading {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: .8rem;
  position: relative;
  padding-bottom: .4rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
}

.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  color: #a8c8a8;
  text-decoration: none;
  font-size: .86rem;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

.footer-contact { margin: 0; padding: 0; }
.footer-contact li {
  font-size: .86rem;
  color: #a8c8a8;
  margin-bottom: .5rem;
}

.footer-social {
  color: #a8c8a8;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-social:hover { color: var(--green-mid); transform: scale(1.2); }

.text-footer-muted { color: #6b8f6b !important; }
.text-success-light { color: var(--green-mid); }

.footer-newsletter-input {
  background: #2d4a2d;
  border: 1px solid #3d6a3d;
  color: #fff;
  border-radius: 8px;
}
.footer-newsletter-input::placeholder { color: #6b8f6b; }
.footer-newsletter-input:focus {
  background: #2d4a2d;
  color: #fff;
  border-color: var(--green-mid);
  box-shadow: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-carousel .carousel-item img { height: 240px; }
  .hero-text h1 { font-size: 1.6rem; }
  .product-card .card-img-top { height: 170px; }
  .search-bar { max-width: 100%; margin-top: 8px; }
  .announcement-bar { font-size: .72rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .product-card .card-img-top { height: 200px; }
}
