/* ==========================================================================
   BARAKAH AGRO - MASTER STYLESHEET (css/style.css)
   Pure CSS3 - Modern, Premium, Natural Agricultural Brand
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Natural Forest & Agro Greens */
  --primary-dark: #0f391e;
  --primary: #166534;
  --primary-hover: #14532d;
  --primary-light: #eaf4ed;
  --primary-subtle: #f2f8f4;

  /* Earthy & Warm Gold Accents */
  --accent: #c2782b;
  --accent-hover: #a35f1b;
  --accent-light: #fef5ea;

  /* Surfaces & Backgrounds */
  --bg-body: #fbfbf9;
  --bg-card: #ffffff;
  --bg-card-alt: #f6f8f5;

  /* Typography & Lines */
  --text-main: #142219;
  --text-muted: #536458;
  --text-light: #819586;
  --border-light: #e4ece5;
  --border-card: #edf2ed;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 57, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 57, 30, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 57, 30, 0.12);
  --shadow-card-hover: 0 18px 38px rgba(15, 57, 30, 0.11);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Sizing */
  --container-max: 1200px;
  --header-height: 78px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   3. TOP ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #d1ebd8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  color: #e2f2e6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.top-bar-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. STICKY NAVBAR
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-name span {
  color: var(--accent);
}

.logo-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--primary-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-phone-pill:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  position: relative;
}

.cart-btn:hover {
  background-color: var(--primary-light);
  transform: scale(1.04);
}

.cart-btn svg {
  width: 21px;
  height: 21px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(194, 120, 43, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count.bump {
  transform: scale(1.4);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. COMMON BUTTONS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.section {
  padding: 76px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.28);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 120, 43, 0.3);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.32);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: #0f391e;
  background-image: linear-gradient(
      to right,
      rgba(15, 45, 25, 0.88) 0%,
      rgba(15, 45, 25, 0.72) 50%,
      rgba(15, 45, 25, 0.45) 100%
    ),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3aa959;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #e3ede5;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Trust Bar Below Hero */
.trust-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-box svg {
  width: 24px;
  height: 24px;
}

.trust-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.trust-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. PRODUCT CARDS & GRID
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.products-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: #cce3d2;
}

/* Badges */
.product-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-offer {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.badge-best {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Product Image */
.product-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f8faf7;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Product Content */
.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-category-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #eab308;
}

.product-rating svg {
  width: 14px;
  height: 14px;
  fill: #eab308;
}

.product-rating-count {
  color: var(--text-light);
  font-size: 0.76rem;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-short-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Package Selector */
.product-package-select {
  margin-bottom: 16px;
}

.package-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.package-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pkg-chip {
  padding: 5px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--bg-body);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pkg-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pkg-chip.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* Price & CTA Row */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
  gap: 10px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-old {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-top: 2px;
}

.card-actions {
  display: flex;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   8. CATEGORY FILTER TABS (PRODUCTS PAGE)
   -------------------------------------------------------------------------- */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-muted);
  transition: var(--transition);
}

.cat-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.cat-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
}

/* --------------------------------------------------------------------------
   9. WHY CHOOSE BARAKAH AGRO
   -------------------------------------------------------------------------- */
.why-us-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  background-color: var(--primary-subtle);
  border-color: #cbe3d3;
  box-shadow: var(--shadow-sm);
}

.why-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.why-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.why-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   10. CUSTOMER REVIEWS & TESTIMONIALS
   -------------------------------------------------------------------------- */
.reviews-section {
  background-color: var(--bg-body);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6e8db;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.reviewer-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.reviewer-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.reviewer-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #eab308;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: #eab308;
}

.review-comment {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. ABOUT PAGE & SECTIONS
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: #cbe3d3;
  max-width: 600px;
  margin: 0 auto;
}

.about-card-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.about-card-box p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 20px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-item {
  background-color: var(--primary-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. CONTACT PAGE & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   13. CART & CHECKOUT PAGES
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: start;
}

.cart-items-card,
.order-summary-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.cart-table-wrap {
  width: 100%;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-card);
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.cart-item-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-package {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-body);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.qty-btn:hover {
  background-color: var(--border-light);
}

.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-item-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
}

.btn-remove {
  color: #94a3b8;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.btn-remove:hover {
  color: #dc2626;
  background-color: #fee2e2;
}

/* Order Summary Box */
.summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  padding-top: 14px;
  border-top: 2px dashed var(--border-light);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 16px;
}

.summary-row.total-row .total-amount {
  color: var(--primary);
}

.coupon-box {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.delivery-select-box {
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 18px 0;
}

.delivery-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.delivery-radio:last-child {
  margin-bottom: 0;
}

.free-delivery-badge {
  font-size: 0.76rem;
  background-color: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Checkout Form Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   14. PRODUCT DETAILS MODAL (POPUP)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 30, 20, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

.modal-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #f7f9f6;
  border: 1px solid var(--border-light);
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0;
}

.modal-price-current {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.modal-price-old {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-benefits-list {
  list-style: none;
  margin-bottom: 24px;
}

.modal-benefits-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-benefits-list li svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: #0d2815;
  color: #cfe3d5;
  padding-top: 70px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .footer-logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand .footer-tagline {
  color: #9cbda7;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #b1ccb9;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #b1ccb9;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #b1ccb9;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: #8da496;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #142219;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cart-layout,
  .checkout-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .top-bar-right {
    display: none;
  }

  .nav-phone-pill {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-160%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-card);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 480px;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .cart-item-row {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }
}
/* ==========================================================
   ADVERTISEMENT POPUP
   ========================================================== */

.ad-popup-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 99999;

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease;
}


/* Popup Open */
.ad-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* Popup Box */
.ad-popup {
  position: relative;

  width: 100%;
  max-width: 380px;

  background: white;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

  transform: scale(0.8);
  transition: transform 0.3s ease;
}


/* Popup Animation */
.ad-popup-overlay.show .ad-popup {
  transform: scale(1);
}


/* Advertisement Image */
.ad-popup-image {
  width: 100%;

  display: block;

  height: auto;
}


/* Close Button */
.ad-popup-close {
  position: absolute !important;

  top: 10px !important;
  right: 10px !important;

  width: 40px !important;
  height: 40px !important;

  border: none !important;
  border-radius: 50% !important;

  background: #000 !important;
  color: #fff !important;

  font-size: 25px !important;
  font-weight: bold !important;

  cursor: pointer !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  z-index: 999999 !important;

  opacity: 1 !important;
  visibility: visible !important;
}

.ad-popup-close:hover {
  background: red !important;
  transform: rotate(90deg);
}


/* Mobile */
@media (max-width: 600px) {

  .ad-popup {
    max-width: 85%;
  }

  .ad-popup-close {
    width: 34px;
    height: 34px;

    font-size: 22px;

    top: 8px;
    right: 8px;
  }

}

/* ==========================================================
   PRODUCT PAGE VIDEO ADVERTISEMENT
   ========================================================== */

.ad-popup-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 99999;

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease;
}

/* Popup দেখানোর সময় */
.ad-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Popup box */
.ad-popup {
  position: relative;

  width: 100%;
  max-width: 380px;

  background: #fff;

  border-radius: 15px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

  transform: scale(0.8);

  transition: transform 0.3s ease;
}

/* Popup animation */
.ad-popup-overlay.show .ad-popup {
  transform: scale(1);
}

/* Video */
.ad-popup-video {
  width: 100%;

  height: auto;

  max-height: 500px;

  display: block;

  object-fit: contain;
}

/* Cross button */
.ad-popup-close {
  position: absolute !important;

  top: 8px !important;
  right: 8px !important;

  width: 40px !important;
  height: 40px !important;

  border: none !important;

  border-radius: 50% !important;

  background: rgba(0, 0, 0, 0.75) !important;

  color: white !important;

  font-size: 25px !important;
  font-weight: bold !important;

  cursor: pointer !important;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  z-index: 999999 !important;

  transition: 0.2s ease;
}

/* Cross hover */
.ad-popup-close:hover {
  background: red !important;

  transform: rotate(90deg);
}


/* Mobile */
@media (max-width: 600px) {

  .ad-popup {
    max-width: 85%;
  }

  .ad-popup-close {
    width: 35px !important;
    height: 35px !important;

    font-size: 22px !important;

    top: 6px !important;
    right: 6px !important;
  }

}

/* Sound Button */

.ad-sound-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);

  padding: 10px 18px;

  border: none;
  border-radius: 25px;

  background: rgba(0, 0, 0, 0.8);
  color: white;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  z-index: 999999;

  transition: 0.2s ease;
}

.ad-sound-btn:hover {
  background: #198754;
  transform: translateX(-50%) scale(1.05);
}

/* ==========================================================
   PRODUCT DETAILS IMAGE GALLERY
   Mobile Responsive
   ========================================================== */

/* Image area */
.modal-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Main product image */
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery navigation buttons */
.modal-img-wrap button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  font-weight: 700;

  z-index: 5;

  transition: all 0.2s ease;
}

/* Left arrow */
.modal-img-wrap button:first-of-type {
  left: 12px;
}

/* Right arrow */
.modal-img-wrap button:last-of-type {
  right: 12px;
}

/* Hover */
.modal-img-wrap button:hover {
  background: rgba(22, 101, 52, 0.9);
  transform: translateY(-50%) scale(1.08);
}


/* ==========================================================
   MOBILE PRODUCT MODAL
   ========================================================== */

@media (max-width: 768px) {

  .modal-overlay {
    padding: 12px;
    align-items: center;
  }

  .modal-container {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;

    padding: 18px;

    border-radius: 16px;
    overflow-y: auto;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-img-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;

    border-radius: 12px;
  }

  .modal-img-wrap button {
    width: 38px;
    height: 38px;

    font-size: 21px;
  }

  .modal-img-wrap button:first-of-type {
    left: 8px;
  }

  .modal-img-wrap button:last-of-type {
    right: 8px;
  }

  .modal-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .modal-price-current {
    font-size: 1.55rem;
  }

  .modal-price-old {
    font-size: 0.95rem;
  }

  .modal-desc {
    font-size: 0.9rem;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;
  }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

  .modal-overlay {
    padding: 8px;
  }

  .modal-container {
    padding: 14px;
    max-height: 96vh;
    border-radius: 14px;
  }

  .modal-grid {
    gap: 16px;
  }

  .modal-img-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .modal-img-wrap button {
    width: 34px;
    height: 34px;

    font-size: 19px;
  }

  .modal-img-wrap button:first-of-type {
    left: 6px;
  }

  .modal-img-wrap button:last-of-type {
    right: 6px;
  }

  .modal-title {
    font-size: 1.12rem;
  }

  .modal-price-box {
    margin: 10px 0;
  }

  .modal-price-current {
    font-size: 1.4rem;
  }

  .modal-desc {
    font-size: 0.86rem;
    line-height: 1.55;
  }
}

/* ================================
   BARAKAH AGRO CATEGORY NAV
   ================================ */

.category-nav {
  display: none;
  width: 100%;
  background: #014826;
  border-bottom: 1px solid #112e15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-nav-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  padding: 10px 20px;
}

.category-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 9px 14px;

  background: #060606;
  border: 1px solid cyan;
  border-radius: 10px;

  color: cyan;
  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  white-space: nowrap;

  transition: all 0.2s ease;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  background: #ffffff;
  border-radius: 7px;

  font-size: 15px;
}

.category-nav-item:hover {
  background: #026073;
  border-color: #b9d5bf;
  color: #f3f5f4;
  transform: translateY(-1px);
}


/* ================================
   MOBILE CATEGORY NAV
   ================================ */

@media (max-width: 768px) {

  .category-nav-inner {
    justify-content: flex-start;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 12px;

    gap: 8px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .category-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .category-nav-item {
    flex: 0 0 auto;

    padding: 7px 11px;

    border-radius: 9px;

    font-size: 12px;
  }

  .category-icon {
    width: 23px;
    height: 23px;

    font-size: 14px;
  }
}

/* ================================
   MOBILE CATEGORY BAR FIX
   ================================ */

@media (max-width: 768px) {

  .category-nav {
    width: 100%;
    overflow: hidden;
  }

  .category-nav-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    gap: 8px;
    padding: 8px 12px;

    white-space: nowrap;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .category-nav-item {
    flex: 0 0 auto !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    font-size: 12px;
    white-space: nowrap;

    border-radius: 9px;
  }

  .category-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;

    font-size: 14px;
  }
}
/* =========================================
   MOBILE CATEGORY HORIZONTAL SCROLL - FIX
   ========================================= */

@media (max-width: 768px) {
  /* On mobile: Keep only one top bar. Hide the desktop category bar */
  .desktop-category-bar {
    display: none !important;
  }
}

@keyframes category-nav-marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 991px) {
  .category-nav {
    display: block;
    overflow: hidden;
  }

  .category-nav-inner {
    display: flex !important;
    justify-content: flex-start !important;
    width: max-content !important;
    max-width: none;
    overflow: visible !important;
    gap: 0;
    padding: 0;
    animation: category-nav-marquee 28s linear infinite;
  }

  .category-nav-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0 8px 12px;
  }

  .category-nav-inner:hover,
  .category-nav-inner:focus-within,
  .category-nav:active .category-nav-inner {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-nav-inner {
    animation: none !important;
  }
}

/* ==========================================================================
   BARAKAH AGRO - REDESIGNED MODERN ECOMMERCE STYLES (GHORER BAZAR INSPIRED UX)
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER ENHANCEMENTS: SEARCH, ACCOUNT & MOBILE CONTROLS
   -------------------------------------------------------------------------- */
.header-search-wrap {
  position: relative;
  width: auto;
  max-width: none;
}

.header-search-box {
  display: flex;
  align-items: center;
  background-color: #f1f5f2;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  transition: var(--transition);
}
/* ==========================================================
   DESKTOP SEARCH ICON
   ========================================================== */

.desktop-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);

  background-color: var(--primary-subtle);
  color: var(--primary);

  cursor: pointer;

  transition: var(--transition);
}

.desktop-search-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}


/* Desktop search box hidden by default */
.header-search-wrap > .header-search-box {
  display: none;
}

/* Desktop search box opens */
.header-search-wrap > .header-search-box.show {
  display: flex;
}

.header-search-box:focus-within {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.header-search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.header-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-main);
}

.header-search-input::placeholder {
  color: #7b8f80;
}

/* Live Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-card);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  background-color: var(--primary-subtle);
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #f8faf7;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-result-info {
  flex-grow: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.search-result-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Search Button & Overlay */
.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
}

.mobile-search-bar {
  display: none;
  background: #ffffff;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-search-bar.show {
  display: block;
}

/* Account Button */
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background-color: var(--primary-subtle);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.account-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.account-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   DESKTOP PRODUCT CATEGORY BAR (PROFESSIONAL E-COMMERCE SUB-HEADER)
   Visible on Desktop, Sticky beneath Header, with Mega Menu & Category Links
   ========================================================================== */
.desktop-category-bar {
  display: block;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5eee8;
  box-shadow: 0 4px 14px rgba(15, 57, 30, 0.03);
  position: sticky;
  top: var(--header-height, 78px);
  z-index: 995;
  transition: all 0.25s ease;
}

.desktop-cat-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

/* Left: "All Categories" Dropdown Button */
.desktop-cat-all-wrap {
  position: relative;
  flex-shrink: 0;
}

.desktop-cat-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 8px 16px;
  border-radius: 9px;
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-cat-all-btn:hover,
.desktop-cat-all-btn.active {
  background: linear-gradient(135deg, #14532d 0%, #0f391e 100%);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.32);
  transform: translateY(-1px);
}

.desktop-cat-all-btn .cat-chevron-icon {
  transition: transform 0.25s ease;
}

.desktop-cat-all-btn.active .cat-chevron-icon,
.desktop-cat-all-wrap:hover .cat-chevron-icon {
  transform: rotate(180deg);
}

/* Mega Dropdown Menu */
.desktop-cat-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 580px;
  background: #ffffff;
  border: 1px solid #dce8df;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(15, 57, 30, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 16px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.desktop-cat-dropdown-menu.show,
.desktop-cat-all-wrap:hover .desktop-cat-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.desktop-cat-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf4ee;
}

.desktop-cat-dropdown-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.desktop-cat-dropdown-badge {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 9999px;
}

.desktop-cat-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.desktop-cat-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: #fbfdfc;
  border: 1px solid #edf5ef;
  transition: all 0.2s ease;
}

.desktop-cat-drop-item:hover {
  background: #eef7f0;
  border-color: #cde6d2;
  transform: translateX(3px);
}

.desktop-cat-drop-item .drop-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.desktop-cat-drop-item:hover .drop-icon-box {
  transform: scale(1.08);
}

.desktop-cat-drop-item .drop-text-box {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.desktop-cat-drop-item .drop-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-cat-drop-item .drop-sub {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.desktop-cat-drop-item .drop-arrow {
  color: #a4b8aa;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.desktop-cat-drop-item:hover .drop-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.desktop-cat-dropdown-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf4ee;
  text-align: center;
}

.desktop-cat-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.desktop-cat-all-link:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Center: Quick Category Links Strip */
.desktop-cat-nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-grow: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-cat-nav-links::-webkit-scrollbar {
  display: none;
}

.desktop-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #2b3b30;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.desktop-cat-link:hover {
  background: #edf6ef;
  color: var(--primary);
  border-color: #d1e7d5;
  transform: translateY(-1px);
}

.desktop-cat-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #b9e0c1;
  font-weight: 700;
}

.cat-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.desktop-cat-link:hover .cat-link-icon {
  transform: scale(1.15);
}

/* Color Themes for Category Badges & Icons */
.oil-theme, .oil-color { background: #fef3c7; color: #d97706; }
.milk-theme, .milk-color { background: #e0f2fe; color: #0284c7; }
.meat-theme, .meat-color { background: #fee2e2; color: #dc2626; }
.leaves-theme, .leaves-color { background: #dcfce7; color: #16a34a; }
.dates-theme, .dates-color { background: #fef9c3; color: #854d0e; }
.fruits-theme, .fruits-color { background: #ffe4e6; color: #e11d48; }
.honey-theme, .honey-color { background: #fef3c7; color: #b45309; }
.spices-theme, .spices-color { background: #ffedd5; color: #ea580c; }
.all-theme, .all-color { background: #eaf4ed; color: var(--primary); }

/* Right: Promotional delivery badge */
.desktop-cat-promo {
  flex-shrink: 0;
}

.desktop-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: #fdf5ea;
  border: 1px solid #fde4c7;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a35f1b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.desktop-promo-badge:hover {
  background: #faecd6;
  border-color: #f7d5a5;
  transform: translateY(-1px);
}

.desktop-promo-badge .promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e27d18;
  box-shadow: 0 0 0 3px rgba(226, 125, 24, 0.2);
  animation: promoPulse 2s infinite;
}

@keyframes promoPulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 125, 24, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(226, 125, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 125, 24, 0); }
}

/* ==========================================================================
   MOBILE BAR & PRODUCTS CATEGORY ACCORDION
   Professional integrated single bar with expandable sub-categories
   ========================================================================== */
.mobile-cat-header-row {
  display: none;
}

.mobile-cat-dropdown-panel {
  display: none;
}

@media (max-width: 991px) {
  /* Strictly hide Desktop Category Bar on mobile/tablet so ONLY ONE bar exists */
  .desktop-category-bar {
    display: none !important;
  }

  /* Mobile Products row with Category trigger */
  .mobile-cat-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
  }

  .nav-link-product-text {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    border: none !important;
    padding: 0 !important;
  }

  .nav-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
  }

  .nav-link-with-icon svg {
    color: var(--primary);
  }

  .mobile-cat-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 9999px;
    margin-right: 6px;
  }

  .mobile-cat-chevron-btn {
    background: #f4f8f5;
    border: 1px solid #e0ebe2;
    outline: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.25s ease;
  }

  .mobile-cat-chevron-btn:active,
  .mobile-cat-chevron-btn.is-expanded {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }

  .mobile-cat-chevron-btn svg {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-cat-chevron-btn.is-expanded svg {
    transform: rotate(180deg);
  }

  /* Mobile Category Submenu Panel (Smooth Accordion) */
  .mobile-cat-dropdown-panel {
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
    width: 100%;
    margin-top: 0;
  }

  .mobile-cat-dropdown-panel.open {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .mobile-cat-panel-inner {
    background: #f7faf8;
    border: 1px solid #e2ebe4;
    border-radius: 14px;
    padding: 10px;
  }

  .mobile-cat-all-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #dce8df;
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.18s ease;
  }

  .mobile-cat-all-btn:active {
    background: var(--primary);
    color: #ffffff;
  }

  .mobile-cat-all-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-cat-mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cat-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-cat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid #edf4ee;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .mobile-cat-card:active {
    background: #eef7f0;
    border-color: #cde6d2;
  }

  .mobile-cat-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-cat-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .mobile-cat-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
  }

  .mobile-cat-card-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-cat-card-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.1;
    margin-top: 1px;
  }

  .mobile-cat-arrow {
    color: #a8bba8;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   HERO SLIDER
   -------------------------------------------------------------------------- */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0d2817;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 70px 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 35, 20, 0.92) 0%,
    rgba(10, 35, 20, 0.82) 45%,
    rgba(10, 35, 20, 0.45) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  max-width: 660px;
  color: #ffffff;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slide-title {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-slide-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #e2f2e6;
  margin-bottom: 28px;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Slider Controls */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.hero-slider-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-prev {
  left: 20px;
}

.hero-slider-next {
  right: 20px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider-dot.active {
  width: 32px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   FEATURED CATEGORIES SECTION
   -------------------------------------------------------------------------- */
.categories-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  cursor: grab;
}

.categories-grid::-webkit-scrollbar {
  display: none;
}

.categories-grid .category-card {
  flex: 0 0 170px;
}

.category-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.12);
}

.category-card-thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-subtle);
  border: 2px solid #e4ece5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 6px;
  overflow: hidden;
  transition: var(--transition);
}

.category-card:hover .category-card-thumb-wrap {
  border-color: var(--primary);
  transform: scale(1.08);
}

.category-card-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.category-card-count {
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 600;
}

.category-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   HORIZONTAL PRODUCT CAROUSEL COMPONENT
   -------------------------------------------------------------------------- */
.carousel-section {
  padding: 56px 0;
}

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.carousel-title-box {
  max-width: 720px;
}

.carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.carousel-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.carousel-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.carousel-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: var(--transition);
}

.carousel-view-all:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* The horizontal carousel track */
.product-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 20px 4px;
}

.product-carousel-track::-webkit-scrollbar {
  display: none;
}

.product-carousel-track .product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Enhanced Product Card Badges & Stock */
.badge-stock-out {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-stock-in {
  background-color: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-card-add {
  background: var(--primary-subtle);
  border: 1px solid var(--border-light);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-add:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.btn-card-add svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   PROMOTIONAL / VALUE SECTION
   -------------------------------------------------------------------------- */
.promo-banner {
  background: linear-gradient(135deg, #103f26 0%, #166534 60%, #1b7e42 100%);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(16, 63, 38, 0.2);
  margin: 20px 0;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.promo-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fef08a;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.promo-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #ffffff;
}

.promo-subtitle {
  font-size: 1.05rem;
  color: #e2f2e6;
  line-height: 1.6;
  margin-bottom: 24px;
}

.promo-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
}

.promo-countdown {
  padding: 16px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(4, 29, 16, 0.34);
}

.promo-countdown-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.promo-countdown-kicker {
  color: #d4f2a5;
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-countdown-copy strong {
  color: #ffffff;
  font-size: 1rem;
}

.promo-countdown-units {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.promo-countdown-unit {
  display: flex;
  min-width: 58px;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.promo-countdown-unit strong {
  color: #ffffff;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.promo-countdown-unit span {
  margin-top: 5px;
  color: #dcebdd;
  font-size: 0.72rem;
}

.promo-countdown-separator {
  color: #d4f2a5;
  font-size: 1.5rem;
  font-weight: 700;
}

.promo-countdown-status {
  margin: 10px 0 0;
  color: #e2f2e6;
  font-size: 0.78rem;
}

.promo-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.promo-feature-item svg {
  width: 20px;
  height: 20px;
  color: #fef08a;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CUSTOMER REVIEWS CAROUSEL
   -------------------------------------------------------------------------- */
.reviews-section {
  background-color: #f7faf8;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.reviews-carousel-track {
  display: flex;
  width: 100%;
  gap: 20px;
  overflow: hidden;
  padding: 10px 0 20px 0;
  white-space: nowrap;
  position: relative;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.review-marquee-group {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: max-content;
  flex-shrink: 0;
  animation: review-marquee 28s linear infinite;
}

@keyframes review-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.review-photo-card {
  flex: 0 0 260px;
  cursor: zoom-in;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  aspect-ratio: 1 / 1;
}

.review-photo-card:focus-visible {
  outline: 3px solid #23844b;
  outline-offset: 3px;
}

.review-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cce3d2;
}

.review-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #edf4ee;
  transition: transform 0.35s ease;
}

.review-photo-card:hover .review-photo-image {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   CUSTOMER LOGIN / ACCOUNT MODAL
   -------------------------------------------------------------------------- */
.account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.account-modal-overlay.open {
  display: flex;
}

.account-modal-box {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--primary-subtle);
}

.account-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: black;
  margin: 0;
}

.account-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.account-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.account-tab-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8faf8;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.account-tab-btn.active {
  color: var(--primary);
  background: #ffffff;
  border-bottom-color: var(--primary);
}

.account-modal-body {
  padding: 24px;
}

.account-form-group {
  margin-bottom: 16px;
}

.account-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.account-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.account-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

/* --------------------------------------------------------------------------
   PRODUCT DETAILS MODAL EXTENSIONS (Reviews & Related)
   -------------------------------------------------------------------------- */
.modal-reviews-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.modal-section-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-review-card {
  background: #f8faf8;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.modal-review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.88rem;
  font-weight: 700;
}

.modal-review-comment {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.modal-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-related-item:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.modal-related-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8faf7;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN RULES (TESTED: 320px, 360px, 375px, 390px, 414px, 430px, 480px, 600px, 768px, 1024px, 1280px, 1440px+)
   -------------------------------------------------------------------------- */

/* Global horizontal overflow prevention */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   LAPTOP / MEDIUM DESKTOP (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
  }
}

/* ==========================================================================
   TABLET LANDSCAPE & SMALL LAPTOP (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .header-search-wrap {
    max-width: 240px;
  }

  .nav-links {
    gap: 16px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   TABLET PORTRAIT & MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Header & Mobile Navbar */
  .header {
    height: 62px !important;
  }

  .navbar {
    height: 100%;
    padding: 0;
  }

  .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .logo-name {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .logo-tagline {
    font-size: 0.68rem;
  }

  .header-search-wrap {
    display: none !important;
  }

  .mobile-search-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background-color: var(--primary-subtle);
    border: 1px solid var(--border-light);
    color: var(--primary);
    cursor: pointer;
  }

  .account-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    background-color: var(--primary-subtle);
    border: 1px solid var(--border-light);
    color: var(--primary);
  }

  .nav-phone-pill {
    display: none !important;
  }

  .cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border-light);
  }

  .cart-count {
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-light);
    cursor: pointer;
    padding: 9px 8px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .nav-actions {
    gap: 6px;
  }

  /* Slide-Down Mobile Navigation Menu */
  .nav-links {
    position: fixed !important;
    top: 62px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 62px) !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    flex-direction: column !important;
    padding: 16px 20px 24px !important;
    border-bottom: 2px solid var(--primary) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    display: none !important;
    z-index: 1050 !important;
    gap: 0 !important;
  }

  .nav-links.open {
    display: flex !important;
    animation: mobileNavFade 0.22s ease-out;
  }

  @keyframes mobileNavFade {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    width: 100% !important;
    padding: 13px 4px !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--border-light) !important;
    color: var(--text-main) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav-link::after {
    display: none !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary) !important;
  }

  /* Expandable Mobile Search Bar */
  .mobile-search-bar {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 1040;
  }

  /* Sub-header Category Navigation Strip - Hidden on mobile so there is strictly ONLY ONE bar */
  .desktop-category-bar {
    display: none !important;
  }

  /* Homepage Hero Slider */
  .hero-slider {
    min-height: 420px !important;
    width: 100% !important;
  }

  .hero-slide {
    padding: 38px 16px 54px 16px !important;
    min-height: 420px !important;
  }

  .hero-slide-badge {
    font-size: 0.78rem;
    padding: 5px 11px;
    margin-bottom: 12px;
    max-width: 100%;
    line-height: 1.4;
  }

  .hero-slide-title {
    font-size: 1.9rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .hero-slide-desc {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-slide-actions {
    gap: 10px;
  }

  .hero-slider-nav {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
    top: auto !important;
    bottom: 14px !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    z-index: 5 !important;
  }

  .hero-slider-prev {
    left: 12px !important;
  }

  .hero-slider-next {
    right: 12px !important;
  }

  .hero-slider-dots {
    bottom: 18px !important;
    gap: 6px !important;
  }

  .hero-slider-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .hero-slider-dot.active {
    width: 22px !important;
  }

  /* Section Headings */
  .section {
    padding: 44px 0 !important;
  }

  .carousel-section {
    padding: 38px 0 !important;
  }

  .section-title {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }

  .carousel-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  .carousel-desc {
    font-size: 0.88rem !important;
  }

  .carousel-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .carousel-actions {
    align-self: flex-start !important;
  }

  /* Featured Categories Horizontal Swipe */
  .categories-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding: 4px 14px 14px 14px !important;
    margin: 0 -14px !important;
  }

  .categories-grid::-webkit-scrollbar {
    display: none !important;
  }

  .category-card {
    flex: 0 0 145px !important;
    scroll-snap-align: start !important;
    padding: 16px 10px !important;
    border-radius: 14px !important;
  }

  .category-card-thumb-wrap {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 10px !important;
  }

  .category-card-title {
    font-size: 0.88rem !important;
  }

  .category-card-count {
    font-size: 0.72rem !important;
  }

  /* Product Carousel Track */
  .product-carousel-track {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 14px 16px 14px !important;
    margin: 0 -14px !important;
  }

  .product-carousel-track::-webkit-scrollbar {
    display: none !important;
  }

  .product-carousel-track .product-card {
    flex: 0 0 240px !important;
    scroll-snap-align: start !important;
  }

  /* Catalog Grid on products.html: 2-Columns Responsive */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Product Cards Compact Mobile Presentation */
  .product-card {
    padding: 10px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
  }

  .product-image-box {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 160px !important;
    background-color: #f8faf7 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .product-badge-wrap {
    top: 6px !important;
    left: 6px !important;
    gap: 4px !important;
  }

  .badge-offer, .badge-best, .badge-stock-out, .badge-stock-in {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
  }

  .product-content {
    padding: 8px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
  }

  .product-meta-row {
    margin-bottom: 2px !important;
  }

  .product-category-name {
    font-size: 0.7rem !important;
  }

  .product-rating {
    font-size: 0.72rem !important;
    gap: 2px !important;
  }

  .product-rating svg {
    width: 11px !important;
    height: 11px !important;
  }

  .product-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 4px 0 6px 0 !important;
    min-height: 2.3em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .product-short-desc {
    display: none !important;
  }

  .product-package-select {
    margin-bottom: 6px !important;
  }

  .package-label {
    font-size: 0.68rem !important;
    margin-bottom: 3px !important;
    display: block !important;
  }

  .package-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .pkg-chip {
    padding: 3px 7px !important;
    font-size: 0.68rem !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
  }

  .product-card-footer {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--border-light) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .price-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 6px !important;
  }

  .price-current {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
  }

  .price-old {
    font-size: 0.75rem !important;
  }

  .card-actions {
    display: flex !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .card-actions .btn-accent {
    flex: 1 1 auto !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .btn-card-add {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 6px !important;
  }

  .btn-card-add svg {
    width: 15px !important;
    height: 15px !important;
  }

  .card-actions .btn-outline {
    height: 32px !important;
    padding: 0 6px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Category Filter Bar on products.html */
  .category-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    padding: 4px 12px 14px 12px !important;
    margin-bottom: 22px !important;
    gap: 8px !important;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .cat-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
  }

  /* Promotional Banner */
  .promo-banner {
    padding: 26px 18px !important;
    border-radius: 16px !important;
    margin: 10px 0 !important;
  }

  .promo-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }

  .promo-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .promo-features {
    padding: 14px !important;
    gap: 8px !important;
  }

  .promo-feature-item {
    font-size: 0.85rem !important;
  }

  /* Customer Reviews Carousel */
  .reviews-carousel-track {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 14px 14px 14px !important;
    margin: 0 -14px !important;
  }

  .reviews-carousel-track::-webkit-scrollbar {
    display: none !important;
  }

  .review-card-modern {
    flex: 0 0 250px !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .review-card-text {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  /* Trust Bar */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .trust-item {
    padding: 12px 10px !important;
    gap: 10px !important;
  }

  .trust-icon-box {
    width: 36px !important;
    height: 36px !important;
  }

  .trust-icon-box svg {
    width: 18px !important;
    height: 18px !important;
  }

  .trust-info h4 {
    font-size: 0.88rem !important;
  }

  .trust-info p {
    font-size: 0.75rem !important;
  }

  /* Why Choose Us */
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .why-card {
    padding: 18px 14px !important;
  }

  .why-card h3 {
    font-size: 1rem !important;
  }

  .why-card p {
    font-size: 0.84rem !important;
  }

  /* Cart Page */
  .cart-items-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  .cart-item-row {
    display: grid !important;
    grid-template-columns: 64px 1fr auto !important;
    grid-template-areas:
      "img info remove"
      "img qty price" !important;
    gap: 8px 10px !important;
    align-items: center !important;
    padding: 12px 0 !important;
  }

  .cart-item-thumb {
    grid-area: img !important;
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
  }

  .cart-item-info {
    grid-area: info !important;
    min-width: 0 !important;
  }

  .cart-item-info h4 {
    font-size: 0.9rem !important;
    margin-bottom: 2px !important;
  }

  .btn-remove {
    grid-area: remove !important;
    justify-self: end !important;
  }

  .qty-control {
    grid-area: qty !important;
    justify-self: start !important;
  }

  .cart-item-total {
    grid-area: price !important;
    justify-self: end !important;
    font-size: 1rem !important;
  }

  .coupon-box {
    flex-direction: column !important;
  }

  .coupon-box button {
    width: 100% !important;
  }

  /* Checkout Page */
  .form-control {
    font-size: 16px !important; /* Prevents auto-zoom in mobile Safari */
    padding: 11px 12px !important;
  }

  /* Product Details Modal */
  .modal-overlay {
    padding: 8px !important;
  }

  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .modal-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .modal-img-wrap {
    width: 100% !important;
    max-height: 250px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-img-wrap img {
    object-fit: contain !important;
  }

  .modal-title {
    font-size: 1.25rem !important;
  }

  .modal-actions-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--border-light) !important;
    position: sticky !important;
    bottom: -14px !important;
    background: #ffffff !important;
    z-index: 10 !important;
  }

  .modal-actions-bar .qty-control {
    flex: 0 0 auto !important;
  }

  .modal-actions-bar .modal-add-btn {
    flex: 1 1 auto !important;
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
  }

  .modal-actions-bar .modal-buy-btn {
    flex: 1 1 auto !important;
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    text-align: center !important;
  }

  /* Account Modal */
  .account-modal-box {
    max-width: 95vw !important;
    margin: 10px !important;
    border-radius: 16px !important;
  }

  .account-modal-header {
    padding: 16px 18px !important;
  }

  .account-modal-body {
    padding: 18px 16px !important;
  }

  /* Page Hero on Subpages */
  .page-hero {
    padding: 36px 16px !important;
  }

  .page-hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .page-hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  .about-card-box,
  .contact-card {
    padding: 22px 16px !important;
    border-radius: 16px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Footer */
  .footer {
    padding: 46px 0 24px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   STANDARD SMARTPHONES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .logo-tagline {
    display: none !important;
  }

  .logo-name {
    font-size: 1.15rem !important;
  }

  .hero-slider {
    min-height: 400px !important;
  }

  .hero-slide {
    min-height: 400px !important;
    padding: 30px 14px 50px 14px !important;
  }

  .hero-slide-title {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  .hero-slide-desc {
    font-size: 0.88rem !important;
    -webkit-line-clamp: 3 !important;
  }

  .product-carousel-track .product-card {
    flex: 0 0 220px !important;
  }

  .products-grid {
    gap: 10px !important;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .promo-banner {
    padding: 22px 14px !important;
  }

  .promo-title {
    font-size: 1.35rem !important;
  }

  .modal-related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   COMPACT SMARTPHONES (max-width: 380px, covers 320px - 375px)
   ========================================================================== */
@media (max-width: 380px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .header {
    height: 58px !important;
  }

  .logo-img {
    width: 32px !important;
    height: 32px !important;
  }

  .logo-name {
    font-size: 1.08rem !important;
  }

  .account-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
  }

  .account-btn-label {
    display: none !important;
  }

  .mobile-search-btn,
  .cart-btn,
  .hamburger {
    width: 34px !important;
    height: 34px !important;
  }

  .nav-actions {
    gap: 4px !important;
  }

  .hero-slider {
    min-height: 380px !important;
  }

  .hero-slide {
    min-height: 380px !important;
    padding: 26px 12px 48px 12px !important;
  }

  .hero-slide-badge {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
  }

  .hero-slide-title {
    font-size: 1.4rem !important;
  }

  .hero-slide-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-slide-actions .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
  }

  .product-carousel-track .product-card {
    flex: 0 0 195px !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-card {
    padding: 8px !important;
  }

  .product-image-box {
    max-height: 130px !important;
  }

  .product-title {
    font-size: 0.82rem !important;
  }

  .price-current {
    font-size: 0.98rem !important;
  }

  .card-actions .btn-outline {
    display: inline-flex !important;
    font-size: 0.72rem !important;
    padding: 0 5px !important;
    min-height: 28px !important;
    line-height: 28px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .card-actions .btn-accent {
    font-size: 0.72rem !important;
    padding: 0 6px !important;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-actions-bar .modal-add-btn,
  .modal-actions-bar .modal-buy-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   ULTRA-COMPACT SCREENS (max-width: 330px, e.g. iPhone 5 / SE 1st gen 320px)
   ========================================================================== */
@media (max-width: 330px) {
  .logo-name {
    font-size: 0.98rem !important;
  }

  .hero-slide-title {
    font-size: 1.25rem !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .product-card {
    padding: 6px !important;
  }

  .product-image-box {
    max-height: 110px !important;
  }

  .product-title {
    font-size: 0.78rem !important;
  }

  .price-current {
    font-size: 0.92rem !important;
  }

  .card-actions .btn-accent {
    font-size: 0.68rem !important;
    padding: 0 4px !important;
  }

  .card-actions .btn-outline {
    font-size: 0.66rem !important;
    padding: 0 3px !important;
  }
}

/* ==========================================================================
   PRODUCT DETAILS PAGE & REVIEW SYSTEM STYLES
   ========================================================================== */
.product-page-main {
  padding: 24px 0 60px;
  background-color: var(--bg-body);
}

.details-breadcrumb-wrap {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.breadcrumb-nav .sep {
  color: #cbd5e1;
}

.breadcrumb-nav .current {
  color: var(--text-main);
  font-weight: 600;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2-Column Product Details Grid */
.product-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  margin-bottom: 36px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* Gallery Box */
.details-gallery-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-view {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  background: #fbfdfb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  user-select: none;
}

.gallery-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.details-main-img {
 width: 100%;
 height: 100%;
 object-fit: cover;  
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.gallery-img-container:hover .details-main-img {
  transform: scale(1.05);
}

.gallery-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.badge-organic {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 6;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev-btn { left: 12px; }
.gallery-next-btn { right: 12px; }

.gallery-counter-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 5;
}

.gallery-thumbs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.gallery-thumbs-row::-webkit-scrollbar {
  display: none;
}

.gallery-thumb-item {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-thumb-item:hover {
  border-color: var(--primary-light);
}

.gallery-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.2);
}

/* Info Box */
.details-info-box {
  display: flex;
  flex-direction: column;
}

.details-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.details-category-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-decoration: none;
}

.details-sku-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
}

.stock-indicator.in { color: #166534; }
.stock-indicator.out { color: #dc2626; }
.stock-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stock-indicator.in .dot { background: #22c55e; }
.stock-indicator.out .dot { background: #ef4444; }

.details-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 6px 0;
  font-family: 'Hind Siliguri', sans-serif;
}

.details-en-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}

.details-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.rating-stars-visual {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.rating-numeric {
  font-weight: 800;
  color: var(--text-main);
}

.rating-sep {
  color: #cbd5e1;
}

.rating-reviews-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.rating-reviews-link:hover {
  text-decoration: underline;
}

.details-price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: #f8faf8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.details-price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.details-price-old {
  font-size: 1.15rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.details-discount-chip {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #fecaca;
}

.details-short-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Package Selector */
.details-package-selector {
  margin-bottom: 22px;
}

.package-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.details-pkg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.details-pkg-chip {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.details-pkg-chip .chip-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.details-pkg-chip .chip-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.details-pkg-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.details-pkg-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.details-pkg-chip.active .chip-label,
.details-pkg-chip.active .chip-price {
  color: #ffffff;
}

/* Purchase Bar */
.details-purchase-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.details-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
  background: #ffffff;
}

.details-qty-stepper .stepper-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: #f8faf8;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.details-qty-stepper .stepper-btn:hover {
  background: var(--border-light);
}

.details-qty-stepper .stepper-input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
}

.details-add-btn {
  flex: 1;
  min-width: 150px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.details-buy-btn {
  flex: 1;
  min-width: 150px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fast Order Options */
.details-fast-orders {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.details-fast-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem !important;
  padding: 8px 12px !important;
}

/* Trust Grid */
.details-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.details-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-trust-item .trust-icon {
  font-size: 1.5rem;
}

.details-trust-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
}

.details-trust-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* Card Sections: Description, Benefits, Reviews, Related */
.details-card-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.details-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  background: #fbfdfa;
}

.details-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  font-family: 'Hind Siliguri', sans-serif;
}

.details-card-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.details-card-body {
  padding: 28px;
}

.details-full-description {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin: 0 0 16px 0;
}

.details-ingredients-box {
  background: #f8faf8;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.details-ingredients-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
}

/* Benefits List */
.details-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.details-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8faf8;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.benefit-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-check-icon svg {
  width: 14px;
  height: 14px;
}

.benefit-text {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.5;
}

/* 7. Review Photo Carousel / Gallery */
.review-photos-carousel-wrapper {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.review-photos-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-photos-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.review-photos-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.review-photo-card {
  flex: 0 0 170px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8faf8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.review-photo-card:hover .review-photo-img {
  transform: scale(1.08);
}

.review-photo-zoom-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.review-photo-card:hover .review-photo-zoom-icon {
  opacity: 1;
}

.review-photo-meta {
  padding: 8px 10px;
}

.review-photo-caption {
  display: block;
  font-size: 0.78rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.review-photo-meta .verified-tag {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
}

/* Reviews List */
.customer-reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.details-review-card {
  background: #fbfdfa;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
}

.details-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.review-author-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.verified-customer-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
}

.review-date-text {
  font-size: 0.75rem;
  color: #94a3b8;
}

.review-stars-row {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-comment-body {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.review-card-photo-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  transition: all 0.2s;
}

.review-card-photo-box:hover {
  border-color: var(--primary);
}

.review-card-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.review-photo-click-tip {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

/* 8. Write a Review Form */
.write-review-container {
  background: #ffffff;
  border: 1.5px dashed var(--border-light);
  border-radius: 16px;
  padding: 24px;
}

.write-review-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.write-review-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 18px 0;
}

.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.star-pick-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s, transform 0.15s;
}

.star-pick-btn:hover {
  transform: scale(1.15);
}

.star-pick-btn.active {
  color: #f59e0b;
}

.rating-label-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-left: 8px;
}

.review-form-rating-row {
  margin-bottom: 16px;
}

.review-form-rating-row label,
.review-form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.review-form-field {
  margin-bottom: 14px;
}

.review-form-field input,
.review-form-field textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.review-form-field input:focus,
.review-form-field textarea:focus {
  border-color: var(--primary);
}

.review-photo-upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Lightbox Modal */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-lightbox-overlay.open {
  display: flex;
}

.image-lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-lightbox-close {
  position: absolute;
  top: -46px;
  right: -10px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.image-lightbox-img-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

/* Responsive Overrides for Product Details */
@media (max-width: 1024px) {
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
  .details-benefits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-details-grid {
    padding: 16px;
    border-radius: 16px;
  }
  .gallery-main-view {
    max-height: 340px;
  }
  .details-title {
    font-size: 1.45rem;
  }
  .details-price-current {
    font-size: 1.65rem;
  }
  .details-purchase-bar {
    flex-direction: column;
  }
  .details-qty-stepper {
    width: 100%;
    justify-content: center;
  }
  .details-add-btn,
  .details-buy-btn {
    width: 100%;
  }
  .details-fast-orders {
    flex-direction: column;
  }
  .review-form-grid {
    grid-template-columns: 1fr;
  }
  .details-card-header {
    padding: 16px 20px;
  }
  .details-card-body {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .product-details-grid {
    padding: 12px;
  }
  .gallery-main-view {
    max-height: 270px;
    padding: 0;
  }
  .gallery-thumb-item {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }
  .details-title {
    font-size: 1.25rem;
  }
  .review-photo-card {
    flex: 0 0 140px;
  }
}

/* ==========================================================
   BARAKAH AGRO - ULTRA PREMIUM 3D GLASS ACCOUNT UI
   ========================================================== */

/* ---------- PREMIUM LOGIN BACKDROP ---------- */

.account-modal-overlay {
    background:
        radial-gradient(circle at 15% 15%, rgba(74, 222, 128, 0.35), transparent 25%),
        radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.25), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.22), transparent 35%),
        linear-gradient(135deg, #021b0d 0%, #063b1c 45%, #01190b 100%) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    perspective: 1600px;
    overflow: hidden;
}


/* ---------- 3D FLOATING ORBS ---------- */

.account-modal-overlay::before,
.account-modal-overlay::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 28% 22%,
            rgba(255,255,255,0.95) 0%,
            rgba(167,243,208,0.8) 8%,
            rgba(74,222,128,0.65) 20%,
            rgba(22,101,52,0.9) 55%,
            rgba(1,35,15,1) 100%
        );

    box-shadow:
        inset -30px -35px 55px rgba(0,0,0,0.55),
        inset 10px 10px 25px rgba(255,255,255,0.15),
        0 35px 90px rgba(0,0,0,0.55);

    animation: premiumOrbFloat 9s ease-in-out infinite;
}

.account-modal-overlay::before {
    width: 240px;
    height: 240px;
    top: 5%;
    left: 5%;
}

.account-modal-overlay::after {
    width: 150px;
    height: 150px;
    right: 6%;
    bottom: 8%;

    animation-delay: -4s;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.9),
            rgba(110,231,183,0.65) 15%,
            rgba(5,150,105,0.8) 45%,
            rgba(2,44,25,1) 100%
        );
}


/* ---------- PREMIUM GLASS LOGIN BOX ---------- */

.account-modal-box {
    position: relative;
    z-index: 5;

    max-width: 470px !important;

    background:
        linear-gradient(
            135deg,
            rgba(236,253,245,0.82),
            rgba(187,247,208,0.55)
        ) !important;

    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);

    border: 1px solid rgba(255,255,255,0.75) !important;

    border-radius: 30px !important;

    box-shadow:
        0 45px 100px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(0,0,0,0.08);

    overflow: hidden;

    transform-style: preserve-3d;

    animation: premiumGlassEnter 0.65s cubic-bezier(.17,.67,.3,1.2);
}


/* glass shine */

.account-modal-box::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -80%;

    width: 70%;
    height: 220%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.22),
        transparent
    );

    transform: rotate(25deg);
    pointer-events: none;

    animation: glassShine 6s ease-in-out infinite;
}


/* ---------- HEADER ---------- */

.account-modal-header {
    position: relative;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.55),
            rgba(187,247,208,0.28)
        ) !important;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255,255,255,0.5) !important;
}

.account-modal-header h3 {
    color: #05837d !important;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    font-weight: 900;
}


/* ---------- CLOSE BUTTON ---------- */

.account-modal-close {
    color: #031b0b !important;

    background: rgba(255,255,255,0.45) !important;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.65);

    box-shadow:
        0 5px 15px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.8);

    transition: all 0.3s ease;
}

.account-modal-close:hover {
    background: #166534 !important;
    color: white !important;

    transform:
        rotate(90deg)
        scale(1.1);

    box-shadow:
        0 8px 22px rgba(22,101,52,0.45);
}


/* ---------- TABS ---------- */

.account-modal-tabs {
    background: rgba(255,255,255,0.18) !important;

    border-bottom:
        1px solid rgba(255,255,255,0.45) !important;
}

.account-tab-btn {
    background: transparent !important;

    color: #18351f !important;

    font-weight: 700;

    transition: all 0.25s ease;
}

.account-tab-btn:hover {
    color: #000 !important;

    background: rgba(255,255,255,0.22) !important;
}

.account-tab-btn.active {
    color: #000 !important;

    background:
        rgba(255,255,255,0.48) !important;

    border-bottom:
        3px solid #166534 !important;

    font-weight: 900;
}


/* ---------- BODY ---------- */

.account-modal-body {
    background: transparent !important;
}


/* ---------- LABELS ---------- */

.account-form-group label {
    color: #000 !important;

    font-weight: 800;

    letter-spacing: 0.2px;
}


/* ---------- INPUTS ---------- */

.account-form-group input {
    background:
        rgba(255,255,255,0.78) !important;

    color: #000 !important;

    border:
        1px solid rgba(22,101,52,0.25) !important;

    border-radius: 15px !important;

    padding: 13px 15px !important;

    box-shadow:
        inset 0 2px 7px rgba(0,0,0,0.06),
        0 5px 15px rgba(22,101,52,0.08);

    transition:
        all 0.3s ease;
}

.account-form-group input:hover {
    border-color:
        rgba(22,101,52,0.45) !important;

    transform: translateY(-1px);
}

.account-form-group input:focus {
    background:
        rgba(255,255,255,0.96) !important;

    color: #000 !important;

    border-color:
        #15803d !important;

    transform:
        translateY(-2px);

    box-shadow:
        0 0 0 4px rgba(34,197,94,0.13),
        0 12px 28px rgba(22,101,52,0.18);
}

.account-form-group input::placeholder {
    color: #64748b !important;
}


/* ---------- LOGIN BUTTON ---------- */

.account-modal-body .btn-primary {
    width: 100%;

    background:
        linear-gradient(
            135deg,
            #166534,
            #15803d,
            #16a34a
        ) !important;

    color: #ffffff !important;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 15px;

    padding: 13px 18px;

    font-weight: 800;

    letter-spacing: 0.3px;

    box-shadow:
        0 10px 25px rgba(22,101,52,0.38),
        inset 0 1px 0 rgba(255,255,255,0.25);

    transition:
        all 0.3s ease;
}

.account-modal-body .btn-primary:hover {
    transform:
        translateY(-3px)
        scale(1.01);

    background:
        linear-gradient(
            135deg,
            #14532d,
            #166534,
            #15803d
        ) !important;

    box-shadow:
        0 16px 35px rgba(22,101,52,0.48);
}

.account-modal-body .btn-primary:active {
    transform:
        translateY(1px);
}


/* ---------- LINKS ---------- */

.account-modal-body a,
.forgot-link {
    color: #064e1b !important;

    font-weight: 800;

    transition: 0.25s ease;
}

.account-modal-body a:hover,
.forgot-link:hover {
    color: #000 !important;
}


/* ==========================================================
   PREMIUM ACCOUNT PAGE
   ========================================================== */

body.account-3d {
    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(74,222,128,0.35),
            transparent 25%
        ),

        radial-gradient(
            circle at 90% 25%,
            rgba(16,185,129,0.25),
            transparent 28%
        ),

        radial-gradient(
            circle at 50% 100%,
            rgba(34,197,94,0.18),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #021b0d,
            #063b1c 45%,
            #01190b
        ) !important;

    min-height: 100vh;

    overflow-x: hidden;
}


/* ---------- ACCOUNT PAGE 3D ORBS ---------- */

body.account-3d::before,
body.account-3d::after {
    content: "";

    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    background:
        radial-gradient(
            circle at 28% 22%,
            rgba(255,255,255,0.9),
            rgba(134,239,172,0.65) 15%,
            rgba(22,101,52,0.85) 55%,
            #01190b 100%
        );

    box-shadow:
        inset -28px -30px 55px rgba(0,0,0,0.5),
        0 40px 90px rgba(0,0,0,0.4);

    animation:
        premiumOrbFloat 10s ease-in-out infinite;
}

body.account-3d::before {
    width: 280px;
    height: 280px;

    top: 12%;
    right: -70px;
}

body.account-3d::after {
    width: 180px;
    height: 180px;

    bottom: 7%;
    left: -40px;

    animation-delay: -5s;
}


/* ---------- ACCOUNT CARDS ---------- */

body.account-3d .acc-card,
body.account-3d .acc-order,
body.account-3d .acc-gate {

    background:
        linear-gradient(
            135deg,
            rgba(236,253,245,0.82),
            rgba(187,247,208,0.55)
        ) !important;

    backdrop-filter:
        blur(25px) saturate(140%);

    -webkit-backdrop-filter:
        blur(25px) saturate(140%);

    border:
        1px solid rgba(255,255,255,0.7) !important;

    border-radius:
        26px !important;

    box-shadow:
        0 30px 65px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.9);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    position: relative;

    overflow: hidden;
}


/* card shine */

body.account-3d .acc-card::before,
body.account-3d .acc-order::before,
body.account-3d .acc-gate::before {

    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 50%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.25),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left 0.8s ease;

    pointer-events: none;
}

body.account-3d .acc-card:hover::before,
body.account-3d .acc-order:hover::before,
body.account-3d .acc-gate:hover::before {
    left: 130%;
}


/* card hover */

body.account-3d .acc-card:hover,
body.account-3d .acc-order:hover,
body.account-3d .acc-gate:hover {

    transform:
        translateY(-8px)
        rotateX(1deg);

    box-shadow:
        0 40px 85px rgba(0,0,0,0.42),
        0 0 35px rgba(74,222,128,0.12);
}


/* ---------- ACCOUNT TEXT BLACK ---------- */

body.account-3d .acc-card *,
body.account-3d .acc-gate * {
    color: #000000;
}

/* ---------- ORDER PROCESSING UNIT ---------- */

body.account-3d .acc-order * {
  background: rgba(0, 12, 13, 0.837) !important;
    color: #04e9fe !important;
    font-size: 0.92rem;
    padding: 6px 8px;
    border-radius: 10px;
}
/* অর্ডার কার্ডের ভেতরের বিশেষ অংশগুলোর গোল কোণা */
body.account-3d .acc-order .acc-badge {
    border-radius: 999px;
    padding: 6px 12px;
}

body.account-3d .acc-order .acc-steps .dot {
    border-radius: 50%;
    padding: 0;
}

body.account-3d .acc-order .acc-steps li.done .dot {
    background: #01200c !important;
    border-color: #0abaf5;
    box-shadow: 0 0 8px rgba(218, 242, 6, 0.55);
}

body.account-3d .acc-order .acc-steps li.current .dot {
    background: #0a8b42 !important;
    border-color: #3dbbed;
    box-shadow: 0 2px 8px rgba(214, 13, 240, 0.738);
}

body.account-3d .acc-order .acc-item img {
    border-radius: 10px;
    padding: 0;
}

body.account-3d .acc-order .acc-cancelled,
body.account-3d .acc-order .acc-ship,
body.account-3d .acc-order .acc-item {
    border-radius: 14px;
}
.acc-orders-head {
  color:#09b970;
}


/* ---------- ACCOUNT BUTTON ---------- */

body.account-3d .btn-primary {

    background:
        linear-gradient(
            135deg,
            #166534,
            #15803d,
            #16a34a
        ) !important;

    color: #f6fcfa !important;

    border-radius: 14px;

    box-shadow:
        0 10px 25px rgba(22,101,52,0.32);

    transition:
        all 0.3s ease;
}

body.account-3d .btn-primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 16px 32px rgba(22,101,52,0.42);
}


/* ==========================================================
   PREMIUM ANIMATIONS
   ========================================================== */

@keyframes premiumOrbFloat {

    0%, 100% {
        transform:
            translate3d(0,0,0)
            rotate(0deg)
            scale(1);
    }

    25% {
        transform:
            translate3d(15px,-20px,30px)
            rotate(8deg)
            scale(1.03);
    }

    50% {
        transform:
            translate3d(-10px,-40px,60px)
            rotate(15deg)
            scale(1.06);
    }

    75% {
        transform:
            translate3d(20px,-15px,30px)
            rotate(6deg)
            scale(1.03);
    }
}


@keyframes premiumGlassEnter {

    0% {
        opacity: 0;

        transform:
            translateY(45px)
            scale(0.88)
            rotateX(12deg);
    }

    70% {
        opacity: 1;

        transform:
            translateY(-5px)
            scale(1.02)
            rotateX(-2deg);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1)
            rotateX(0);
    }
}


@keyframes glassShine {

    0% {
        left: -100%;
    }

    45%,
    100% {
        left: 160%;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .account-modal-box {
        max-width: 94vw !important;

        border-radius: 23px !important;
    }

    .account-modal-overlay::before {
        width: 140px;
        height: 140px;

        left: -40px;
    }

    .account-modal-overlay::after {
        width: 90px;
        height: 90px;

        right: -20px;
    }

    body.account-3d::before {
        width: 170px;
        height: 170px;

        right: -70px;
    }

    body.account-3d::after {
        width: 110px;
        height: 110px;

        left: -45px;
    }
}


/* ---------- REDUCE ANIMATION FOR ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {

    .account-modal-overlay::before,
    .account-modal-overlay::after,
    body.account-3d::before,
    body.account-3d::after,
    .account-modal-box {
        animation: none !important;
    }
}


/* Navbar Logout Button */
.nav-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Logout icon ছোট করা */
.nav-logout-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: red;

}
.nav-logout-btn:hover {
  background: var(--border-light);
  border-radius: 8px;
  transition: background 0.2s;
}

/* ==========================================================================
   CHECKOUT & PAYMENT UI  (style.css-er ekdom niche paste korun)
   ========================================================================== */

/* ---------- Page hero (checkout-er jonno ektu halka) ---------- */
.checkout-page .page-hero {
  padding: 44px 0 52px;
  background:
    radial-gradient(900px 260px at 85% -20%, rgba(194, 120, 43, 0.22), transparent 70%),
    var(--primary-dark);
}
.checkout-page .page-hero-title { font-size: 2.1rem; }

/* ---------- Progress steps ---------- */
.co-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.co-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.co-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.co-step.done { color: #cbe3d3; }
.co-step.done .co-step-dot { background: #cbe3d3; border-color: #cbe3d3; color: var(--primary-dark); }
.co-step.active { color: #ffffff; }
.co-step.active .co-step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.co-step-line { width: 36px; height: 1.5px; background: rgba(255, 255, 255, 0.28); }

/* ---------- Layout ---------- */
.co-section { padding: 36px 0 72px; background: var(--bg-body); }
.co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.co-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* ---------- Cards ---------- */
.co-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
}
.co-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-card);
}
.co-card-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
}
.co-card-title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); line-height: 1.3; }
.co-card-sub { font-size: 0.8rem; color: var(--text-light); font-weight: 500; margin-top: 2px; }

.co-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.co-hint { display: block; margin-top: 5px; font-size: 0.78rem; color: var(--text-light); }
.co-card .form-group:last-child { margin-bottom: 0; }

/* ---------- Delivery option cards ---------- */
.co-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-opt { position: relative; display: block; cursor: pointer; }
.co-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.co-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid var(--border-light, #dfe7e0);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  position: relative;
}
.co-opt-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #b9c7bd;
  background: #fff;
  transition: all .18s ease;
}
.co-opt-title { font-weight: 700; font-size: 0.95rem; color: var(--text-main); }
.co-opt-meta { font-size: 0.82rem; color: var(--text-muted); }
.co-opt input:checked + .co-opt-body {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}
.co-opt input:checked + .co-opt-body::before {
  border-color: var(--primary);
  background: radial-gradient(circle, var(--primary) 0 4px, #fff 5px);
}
.co-opt input:focus-visible + .co-opt-body { outline: 2px solid var(--primary); outline-offset: 2px; }

.co-free-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  color: #8a5215;
  font-size: 0.84rem;
  font-weight: 600;
}

/* ---------- Payment method tiles ---------- */
.co-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.co-pay-tile { position: relative; display: block; cursor: pointer; }
.co-pay-tile input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.co-pay-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 8px 14px;
  border: 1.5px solid var(--border-light, #dfe7e0);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  height: 100%;
  position: relative;
}
.co-pay-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: -0.2px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.co-pay-badge svg { width: 26px; height: 26px; }
.co-pay-badge.cod   { background: var(--primary); }
.co-pay-badge.bkash { background: #e2136e; }
.co-pay-badge.nagad { background: #ee4023; }
.co-pay-badge.bank  { background: #1d4ed8; }
.co-pay-name { font-weight: 700; font-size: 0.9rem; color: var(--text-main); line-height: 1.25; }
.co-pay-sub { font-size: 0.74rem; color: var(--text-light); line-height: 1.3; }
.co-pay-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.6);
  transition: all .18s ease;
}
.co-pay-check svg { width: 12px; height: 12px; }
.co-pay-tile input:checked + .co-pay-body {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}
.co-pay-tile input:checked + .co-pay-body .co-pay-check { opacity: 1; transform: scale(1); }
.co-pay-tile input:focus-visible + .co-pay-body { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Payment panels ---------- */
.co-pay-panel { display: none; margin-top: 18px; }
.co-pay-panel.active { display: block; animation: coPanelIn .22s ease; }
@keyframes coPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.co-pay-box {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.co-pay-box-top { padding: 16px 18px; border-bottom: 1px solid var(--border-card); }
.co-pay-box-top.bkash { background: #fdf0f6; }
.co-pay-box-top.nagad { background: #fff2ef; }
.co-pay-box-top.bank  { background: #eff4ff; }
.co-pay-box-top.cod   { background: var(--primary-subtle); }

.co-amount-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-amount-label { font-size: 0.86rem; color: var(--text-muted); font-weight: 600; }
.co-amount-value { font-size: 1.5rem; font-weight: 800; color: var(--text-main); font-family: "Plus Jakarta Sans", "Hind Siliguri", sans-serif; }

.co-account-list { margin: 0; padding: 4px 18px; list-style: none; }
.co-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-card);
}
.co-account-row:last-child { border-bottom: 0; }
.co-account-key { font-size: 0.82rem; color: var(--text-muted); }
.co-account-val { font-weight: 700; color: var(--text-main); font-size: 1rem; word-break: break-all; }
.co-account-right { display: flex; align-items: center; gap: 10px; }
.copy-btn {
  border: 1px solid var(--border-light, #dfe7e0);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.co-howto { padding: 16px 18px 6px; background: #fcfdfc; border-top: 1px solid var(--border-card); }
.co-howto-title { font-size: 0.86rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.co-howto ol { margin: 0 0 8px; padding-left: 20px; color: var(--text-muted); font-size: 0.86rem; line-height: 1.75; }
.co-howto strong { color: var(--text-main); }

.co-pay-fields { padding: 18px 18px 6px; border-top: 1px solid var(--border-card); }
.co-pay-fields .form-group { margin-bottom: 16px; }

.co-cod-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.co-cod-text strong { color: var(--primary); }

.co-error {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Submit area ---------- */
.co-actions { display: flex; flex-direction: column; gap: 12px; }
.co-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #1a7a3f, var(--primary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.28);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.co-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(22, 101, 52, 0.34); }
.co-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.co-divider { display: flex; align-items: center; gap: 12px; color: var(--text-light); font-size: 0.8rem; }
.co-divider::before, .co-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-card); }
.co-wa-btn { width: 100%; }

/* ---------- Order summary ---------- */
.co-summary {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.co-summary-head {
  padding: 20px 24px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}
.co-summary-body { padding: 22px 24px 24px; }
.co-summary .summary-row { padding: 8px 0; }
.co-summary .summary-row.total-row { margin-top: 8px; padding-top: 16px; border-top: 2px dashed var(--border-card); }
.co-trust { display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-card); }
.co-trust-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.co-trust-item svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.co-trust-item strong { color: var(--text-main); display: block; font-size: 0.86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 640px) {
  .co-card { padding: 20px 16px; }
  .co-grid-2, .co-opt-grid { grid-template-columns: 1fr; }
  .co-pay-grid { grid-template-columns: 1fr 1fr; }
  .co-step-line { width: 18px; }
  .co-step span.co-step-text { font-size: 0.78rem; }
  .co-account-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .co-account-right { width: 100%; justify-content: space-between; }
  .checkout-page .page-hero-title { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .co-pay-panel.active { animation: none; }
  .co-submit, .co-opt-body, .co-pay-body { transition: none; }
}

/* ---------- পাসওয়ার্ড দেখা/লুকানোর আইকন ---------- */
.pw-wrap {
  position: relative;
  display: block;
}

.pw-wrap input {
  width: 100%;
  padding-right: 46px !important;
}

.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.pw-eye:hover {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
}

.pw-eye::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--pw-icon) center / contain no-repeat;
  mask: var(--pw-icon) center / contain no-repeat;
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* পাসওয়ার্ড দেখানো অবস্থায় "কাটা চোখ" আইকন */
.pw-eye.is-on {
  color: #166534;
}

.pw-eye.is-on::before {
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.88 9.88a3 3 0 1 0 4.24 4.24'/%3E%3Cpath d='M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68'/%3E%3Cpath d='M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61'/%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3C/svg%3E");
}
