/* ==========================================================================
   RAM JYOTI AGRO - Modern High-End Master Stylesheet
   Architecture: Pure Modern CSS (CSS Nesting, Container Queries, :has(), clamp(), color-mix())
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Color System */
  --brand-teal-deep: #0e2027;
  --brand-teal-dark: #14232a;
  --brand-teal: #2d5a6b;
  --brand-teal-medium: #306177;
  --brand-teal-light: #3a6b7e;
  --brand-teal-subtle: #bde0eb;
  --brand-teal-ice: #eef6f9;

  /* Luxury Accents */
  --brand-gold: #d4af37;
  --brand-gold-dark: #a87e14;
  --brand-gold-light: #f5e6d3;
  --brand-cream: #fff8e2;
  --brand-cream-soft: #faf7f0;

  /* Surface & Neutral */
  --surface-white: #ffffff;
  --surface-alt: #f7f9fa;
  --surface-muted: #edeff2;
  --text-main: #141b1f;
  --text-muted: #536269;
  --text-light: #839199;
  --border-light: rgba(45, 90, 107, 0.12);
  --border-glass: rgba(255, 255, 255, 0.22);

  /* Color-mix Derived Tones (Modern CSS) */
  --brand-teal-glow: color-mix(in srgb, var(--brand-teal) 25%, transparent);
  --brand-teal-glass: color-mix(in srgb, var(--brand-teal-dark) 78%, transparent);
  --brand-gold-glow: color-mix(in srgb, var(--brand-gold) 35%, transparent);
  --surface-hover: color-mix(in srgb, var(--brand-teal) 8%, var(--surface-white));

  /* Fluid Typography (clamp-driven) */
  --font-brand: 'Cinzel', Georgia, serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2rem, 5vw + 0.5rem, 4.25rem);
  --fs-h1: clamp(1.75rem, 3.5vw + 0.25rem, 2.85rem);
  --fs-h2: clamp(1.4rem, 2.5vw + 0.25rem, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.8vw + 0.1rem, 1.55rem);
  --fs-body: clamp(0.925rem, 0.9vw + 0.1rem, 1.0625rem);
  --fs-small: clamp(0.775rem, 0.8vw, 0.875rem);

  /* Fluid Spacing */
  --section-pad-y: clamp(3rem, 6vw, 6.5rem);
  --section-pad-x: clamp(1rem, 3vw, 2.5rem);
  --container-max: 1320px;
  --header-height: 84px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 32, 39, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(14, 32, 39, 0.1);
  --shadow-lg: 0 18px 40px -10px rgba(14, 32, 39, 0.15);
  --shadow-float: 0 24px 60px -12px rgba(14, 32, 39, 0.28);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-spring);
  --transition-smooth: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--surface-white);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Modern :has state management */
  &:has(.cart-drawer.active),
  &:has(.mobile-menu-active) {
    overflow: hidden;
  }
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Wrapper / Container */
.wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

/* ==========================================================================
   HEADER & NAVIGATION (CSS Nesting & Glassmorphism)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-block: 1rem;
  transition: background-color var(--transition-smooth), padding-block var(--transition-smooth), box-shadow var(--transition-smooth);

  &.scrolled {
    background: var(--brand-teal-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding-block: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  & .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  & .brand-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;

    & .logo-img {
      height: 52px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
      transition: transform var(--transition-fast);

      &:hover {
        transform: scale(1.02);
      }
    }
  }

  /* Frosted Glass Pill Navbar */
  & .pill-nav {
    display: none;

    @media (min-width: 1024px) {
      display: flex;
      align-items: center;
      gap: 1.75rem;
      padding: 0.55rem 1.75rem;
      border-radius: var(--radius-pill);
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--border-glass);
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
    }

    & .nav-link {
      font-size: 0.9375rem;
      font-weight: 500;
      color: #ffffff;
      padding-block: 0.25rem;
      position: relative;
      transition: color var(--transition-fast);

      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 100%;
        height: 2px;
        background: var(--brand-gold);
        transition: transform var(--transition-smooth);
        border-radius: 2px;
      }

      &:hover,
      &.active {
        color: var(--brand-gold-light);

        &::after {
          transform: translateX(-50%) scaleX(1);
        }
      }
    }

    /* Dropdown inside Pill */
    & .nav-dropdown {
      position: relative;

      & .dropdown-trigger {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: #ffffff;
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;

        & svg {
          transition: transform var(--transition-fast);
        }
      }

      & .dropdown-menu {
        position: absolute;
        top: calc(100% + 14px);
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        min-width: 200px;
        background: var(--surface-white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-float);
        border: 1px solid var(--border-light);
        padding: 0.6rem 0;
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-smooth);

        & .dropdown-item {
          display: block;
          padding: 0.6rem 1.25rem;
          font-size: 0.875rem;
          color: var(--brand-teal-medium);
          font-weight: 500;
          white-space: nowrap;
          transition: background var(--transition-fast), color var(--transition-fast);

          &:hover {
            background: var(--surface-hover);
            color: var(--brand-teal-deep);
            padding-left: 1.5rem;
          }
        }
      }

      &:hover .dropdown-menu,
      &:focus-within .dropdown-menu {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
      }

      &:hover .dropdown-trigger svg {
        transform: rotate(180deg);
      }
    }
  }

  /* Header Right Utility Icons */
  & .header-actions {
    display: flex;
    align-items: center;
    gap: 1.15rem;

    & .action-btn {
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      transition: background var(--transition-fast), transform var(--transition-fast);
      position: relative;

      &:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: scale(1.08);
        color: var(--brand-gold-light);
      }

      & .badge-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--brand-gold);
        color: var(--brand-teal-deep);
        font-size: 0.7rem;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        border-radius: var(--radius-pill);
        display: flex;
        align-items: center;
        justify-content: center;
        padding-inline: 4px;
      }
    }

    & .mobile-menu-toggle {
      display: flex;
      color: #ffffff;
      padding: 0.4rem;

      @media (min-width: 1024px) {
        display: none;
      }
    }
  }
}

/* ==========================================================================
   LIGHT NAVBAR THEME (Exact Ripuraj replication for Login, Cart, Orders)
   ========================================================================== */

/* Main Header background in Light Mode */
.site-header.light-nav,
body.light-nav-page .site-header,
body:has(.breadcrumb-bar) .site-header,
body:has(.auth-page-section) .site-header,
body:has(.cart-page-wrap) .site-header,
body:has(.orders-page-wrap) .site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04) !important;
}

.site-header.light-nav.scrolled,
body.light-nav-page .site-header.scrolled,
body:has(.breadcrumb-bar) .site-header.scrolled,
body:has(.auth-page-section) .site-header.scrolled,
body:has(.cart-page-wrap) .site-header.scrolled,
body:has(.orders-page-wrap) .site-header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Pill Navigation Capsule */
.site-header.light-nav .pill-nav,
body.light-nav-page .site-header .pill-nav,
body:has(.breadcrumb-bar) .site-header .pill-nav,
body:has(.auth-page-section) .site-header .pill-nav,
body:has(.cart-page-wrap) .site-header .pill-nav,
body:has(.orders-page-wrap) .site-header .pill-nav {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Nav links in light navbar */
.site-header.light-nav .pill-nav .nav-link,
body.light-nav-page .site-header .pill-nav .nav-link,
body:has(.breadcrumb-bar) .site-header .pill-nav .nav-link,
body:has(.auth-page-section) .site-header .pill-nav .nav-link,
body:has(.cart-page-wrap) .site-header .pill-nav .nav-link,
body:has(.orders-page-wrap) .site-header .pill-nav .nav-link {
  color: #335B6E !important;
  font-weight: 600 !important;
}

.site-header.light-nav .pill-nav .nav-link::after,
body.light-nav-page .site-header .pill-nav .nav-link::after,
body:has(.breadcrumb-bar) .site-header .pill-nav .nav-link::after,
body:has(.auth-page-section) .site-header .pill-nav .nav-link::after,
body:has(.cart-page-wrap) .site-header .pill-nav .nav-link::after,
body:has(.orders-page-wrap) .site-header .pill-nav .nav-link::after {
  background: #2e6378 !important;
}

.site-header.light-nav .pill-nav .nav-link:hover,
.site-header.light-nav .pill-nav .nav-link.active,
body.light-nav-page .site-header .pill-nav .nav-link:hover,
body.light-nav-page .site-header .pill-nav .nav-link.active,
body:has(.breadcrumb-bar) .site-header .pill-nav .nav-link:hover,
body:has(.breadcrumb-bar) .site-header .pill-nav .nav-link.active,
body:has(.auth-page-section) .site-header .pill-nav .nav-link:hover,
body:has(.auth-page-section) .site-header .pill-nav .nav-link.active,
body:has(.cart-page-wrap) .site-header .pill-nav .nav-link:hover,
body:has(.cart-page-wrap) .site-header .pill-nav .nav-link.active,
body:has(.orders-page-wrap) .site-header .pill-nav .nav-link:hover,
body:has(.orders-page-wrap) .site-header .pill-nav .nav-link.active {
  color: #1e293b !important;
}

/* Event Dropdown Trigger */
.site-header.light-nav .pill-nav .dropdown-trigger,
body.light-nav-page .site-header .pill-nav .dropdown-trigger,
body:has(.breadcrumb-bar) .site-header .pill-nav .dropdown-trigger,
body:has(.auth-page-section) .site-header .pill-nav .dropdown-trigger,
body:has(.cart-page-wrap) .site-header .pill-nav .dropdown-trigger,
body:has(.orders-page-wrap) .site-header .pill-nav .dropdown-trigger {
  color: #335B6E !important;
  font-weight: 600 !important;
}

.site-header.light-nav .pill-nav .dropdown-trigger:hover,
body.light-nav-page .site-header .pill-nav .dropdown-trigger:hover,
body:has(.breadcrumb-bar) .site-header .pill-nav .dropdown-trigger:hover,
body:has(.auth-page-section) .site-header .pill-nav .dropdown-trigger:hover,
body:has(.cart-page-wrap) .site-header .pill-nav .dropdown-trigger:hover,
body:has(.orders-page-wrap) .site-header .pill-nav .dropdown-trigger:hover {
  color: #1e293b !important;
}

.site-header.light-nav .pill-nav .dropdown-trigger svg,
body.light-nav-page .site-header .pill-nav .dropdown-trigger svg,
body:has(.breadcrumb-bar) .site-header .pill-nav .dropdown-trigger svg,
body:has(.auth-page-section) .site-header .pill-nav .dropdown-trigger svg,
body:has(.cart-page-wrap) .site-header .pill-nav .dropdown-trigger svg,
body:has(.orders-page-wrap) .site-header .pill-nav .dropdown-trigger svg {
  stroke: #335B6E !important;
}

/* Dropdown Menu */
.site-header.light-nav .pill-nav .dropdown-menu,
body.light-nav-page .site-header .pill-nav .dropdown-menu,
body:has(.breadcrumb-bar) .site-header .pill-nav .dropdown-menu,
body:has(.auth-page-section) .site-header .pill-nav .dropdown-menu,
body:has(.cart-page-wrap) .site-header .pill-nav .dropdown-menu,
body:has(.orders-page-wrap) .site-header .pill-nav .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.site-header.light-nav .pill-nav .dropdown-item,
body.light-nav-page .site-header .pill-nav .dropdown-item,
body:has(.breadcrumb-bar) .site-header .pill-nav .dropdown-item,
body:has(.auth-page-section) .site-header .pill-nav .dropdown-item,
body:has(.cart-page-wrap) .site-header .pill-nav .dropdown-item,
body:has(.orders-page-wrap) .site-header .pill-nav .dropdown-item {
  color: #335B6E !important;
}

.site-header.light-nav .pill-nav .dropdown-item:hover,
body.light-nav-page .site-header .pill-nav .dropdown-item:hover,
body:has(.breadcrumb-bar) .site-header .pill-nav .dropdown-item:hover,
body:has(.auth-page-section) .site-header .pill-nav .dropdown-item:hover,
body:has(.cart-page-wrap) .site-header .pill-nav .dropdown-item:hover,
body:has(.orders-page-wrap) .site-header .pill-nav .dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Header Action Buttons (User, Cart, Search, Logistics) */
.site-header.light-nav .header-actions .action-btn,
body.light-nav-page .site-header .header-actions .action-btn,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn,
body:has(.auth-page-section) .site-header .header-actions .action-btn,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn {
  color: #335B6E !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

.site-header.light-nav .header-actions .action-btn svg,
body.light-nav-page .site-header .header-actions .action-btn svg,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn svg,
body:has(.auth-page-section) .site-header .header-actions .action-btn svg,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn svg,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn svg {
  stroke: #335B6E !important;
}

.site-header.light-nav .header-actions .action-btn:hover,
body.light-nav-page .site-header .header-actions .action-btn:hover,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn:hover,
body:has(.auth-page-section) .site-header .header-actions .action-btn:hover,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn:hover,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn:hover {
  background: #2e6378 !important;
  border-color: #2e6378 !important;
  color: #ffffff !important;
  transform: scale(1.08);
}

.site-header.light-nav .header-actions .action-btn:hover svg,
body.light-nav-page .site-header .header-actions .action-btn:hover svg,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn:hover svg,
body:has(.auth-page-section) .site-header .header-actions .action-btn:hover svg,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn:hover svg,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn:hover svg {
  stroke: #ffffff !important;
}

.site-header.light-nav .header-actions .action-btn.active,
body.light-nav-page .site-header .header-actions .action-btn.active,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn.active,
body:has(.auth-page-section) .site-header .header-actions .action-btn.active,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn.active,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn.active {
  background: #2e6378 !important;
  border-color: #2e6378 !important;
  color: #ffffff !important;
}

.site-header.light-nav .header-actions .action-btn.active svg,
body.light-nav-page .site-header .header-actions .action-btn.active svg,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn.active svg,
body:has(.auth-page-section) .site-header .header-actions .action-btn.active svg,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn.active svg,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn.active svg {
  stroke: #ffffff !important;
}

.site-header.light-nav .header-actions .action-btn .badge-count,
body.light-nav-page .site-header .header-actions .action-btn .badge-count,
body:has(.breadcrumb-bar) .site-header .header-actions .action-btn .badge-count,
body:has(.auth-page-section) .site-header .header-actions .action-btn .badge-count,
body:has(.cart-page-wrap) .site-header .header-actions .action-btn .badge-count,
body:has(.orders-page-wrap) .site-header .header-actions .action-btn .badge-count {
  background: #2e6378 !important;
  color: #ffffff !important;
}

.site-header.light-nav .header-actions .mobile-menu-toggle,
body.light-nav-page .site-header .header-actions .mobile-menu-toggle,
body:has(.breadcrumb-bar) .site-header .header-actions .mobile-menu-toggle,
body:has(.auth-page-section) .site-header .header-actions .mobile-menu-toggle,
body:has(.cart-page-wrap) .site-header .header-actions .mobile-menu-toggle,
body:has(.orders-page-wrap) .site-header .header-actions .mobile-menu-toggle {
  color: #335B6E !important;
}

.site-header.light-nav .header-actions .mobile-menu-toggle svg,
body.light-nav-page .site-header .header-actions .mobile-menu-toggle svg,
body:has(.breadcrumb-bar) .site-header .header-actions .mobile-menu-toggle svg,
body:has(.auth-page-section) .site-header .header-actions .mobile-menu-toggle svg,
body:has(.cart-page-wrap) .site-header .header-actions .mobile-menu-toggle svg,
body:has(.orders-page-wrap) .site-header .header-actions .mobile-menu-toggle svg {
  stroke: #335B6E !important;
}


/* Mobile Slide-Out Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(14, 32, 39, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);

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

  & .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100dvh;
    background: var(--brand-teal-deep);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-float);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);

    .open & {
      transform: translateX(0);
    }
  }

  & .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    & .close-btn {
      color: #ffffff;
      font-size: 1.5rem;
      padding: 0.5rem;
    }
  }

  & .drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;

    & a {
      color: #ffffff;
      font-size: 1.1rem;
      font-weight: 500;
      padding-block: 0.4rem;

      &:hover {
        color: var(--brand-gold);
      }
    }
  }

  & .drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-gold-light);
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   HERO SLIDER SECTION (Luxury Dark Teal + 3D Product Float)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: min(840px, 88dvh);
  background: #0d1e25 url('../images/banner.png') center right / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 6rem;
  overflow: hidden;

  /* Subtle dark gradient overlay on left for sharp text contrast */
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg, 
      rgba(10, 25, 32, 0.92) 0%, 
      rgba(13, 30, 37, 0.78) 42%, 
      rgba(13, 30, 37, 0.25) 68%,
      rgba(13, 30, 37, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  & .hero-glow-sphere {
    display: none;
  }

  & .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;

    @media (min-width: 1024px) {
      grid-template-columns: 1.15fr 1fr;
    }
  }

  /* Left Hero Content */
  & .hero-content {
    color: #ffffff;

    & .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 1rem;
      border-radius: var(--radius-pill);
      background: rgba(241, 180, 52, 0.15);
      border: 1px solid rgba(241, 180, 52, 0.4);
      color: var(--brand-gold-light);
      font-size: var(--fs-small);
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }

    & .hero-ornament-title {
      font-family: var(--font-brand);
      font-size: var(--fs-hero);
      line-height: 1.12;
      font-weight: 800;
      color: #ffffff;
      text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

      & .script-lead {
        display: block;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: clamp(1.25rem, 2.2vw, 1.85rem);
        color: #f1ebd9;
        letter-spacing: 0.5px;
        margin-bottom: 0.35rem;
      }

      & .gold-flourish {
        font-family: 'Cinzel', serif;
        font-style: italic;
        color: var(--brand-gold);
        background: linear-gradient(135deg, #FFF1C5 0%, #E3BA59 50%, #B8891F 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
        letter-spacing: 1.5px;
      }
    }

    & .hero-desc {
      font-size: var(--fs-body);
      color: #c4d7e0;
      max-width: 520px;
      margin-top: 1.25rem;
      margin-bottom: 2rem;
      line-height: 1.7;
    }

    & .hero-cta-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;
    }
  }

  /* Right Hero Visual: clean minimal container since bags are photorealistically part of banner.png */
  & .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;

    @media (max-width: 991px) {
      display: none;
    }
  }

  /* Bottom Integrated Hero Action Bar & Slider Controls */
  & .hero-bottom-bar {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    width: auto;

    & .hero-action-pills {
      display: flex;
      align-items: center;
      background: rgba(22, 45, 54, 0.88);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: var(--radius-pill);
      padding: 0.35rem 0.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

      & .pill-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #f4efe6;
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.75px;
        padding: 0.55rem 1.25rem;
        border-radius: var(--radius-pill);
        transition: all var(--transition-fast);
        white-space: nowrap;

        &:hover {
          background: rgba(255, 255, 255, 0.15);
          color: #ffffff;
        }

        & + .pill-btn {
          border-left: 1px solid rgba(255, 255, 255, 0.2);
        }
      }
    }

    & .hero-controls {
      display: flex;
      align-items: center;
      gap: 0.75rem;

      & .slider-dot {
        width: 24px;
        height: 3px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.35);
        cursor: pointer;
        transition: all var(--transition-fast);

        &.active {
          width: 38px;
          background: var(--brand-gold);
        }
      }

      & .counter {
        color: #ffffff;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: rgba(255, 255, 255, 0.85);
      }
    }
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--rot, 0deg));
  }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  white-space: nowrap;

  &:active {
    transform: scale(0.97);
  }

  &.btn-gold {
    background: linear-gradient(135deg, #F8E6B7 0%, #D4AF37 60%, #AA7C11 100%);
    color: var(--brand-teal-deep);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);

    &:hover {
      box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
      transform: translateY(-2px);
    }
  }

  &.btn-white {
    background: #ffffff;
    color: var(--brand-teal-medium);
    box-shadow: var(--shadow-md);

    &:hover {
      background: var(--brand-cream);
      color: var(--brand-teal-deep);
      transform: translateY(-2px);
    }
  }

  &.btn-teal {
    background: var(--brand-teal);
    color: #ffffff;

    &:hover {
      background: var(--brand-teal-deep);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
  }

  &.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;

    &:hover {
      background: rgba(255, 255, 255, 0.25);
      color: var(--brand-gold-light);
    }
  }

  &.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.8125rem;
  }
}

.section-label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;

  &.light {
    color: var(--brand-gold-light);
  }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  &.teal-badge {
    background: var(--brand-teal-deep);
    color: #ffffff;
  }
}

/* ==========================================================================
   WELCOME SECTION (A Trusted Name Behind Every Perfect Meal)
   ========================================================================== */

.welcome-section {
  padding-block: var(--section-pad-y);
  background: #FBF7EE;

  & .welcome-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;

    @media (min-width: 1024px) {
      grid-template-columns: 1.1fr 1fr;
      align-items: center;
    }

    & .heading-title {
      font-size: var(--fs-h1);
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.2;
    }

    & .heading-desc {
      font-size: var(--fs-body);
      color: var(--text-muted);
      line-height: 1.7;
    }
  }

  & .panoramic-banner-wrap {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 540px;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform var(--transition-slow);

      &:hover {
        transform: scale(1.02);
      }
    }
  }
}

/* ==========================================================================
   SHOP SECTION (High Quality Products with Dark Textured Backdrop)
   ========================================================================== */

.shop-showcase-section {
  position: relative;
  padding-block: var(--section-pad-y);
  background: 
    linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.52)),
    url('../images/shopsection.jpg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;

  & .section-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;

    @media (min-width: 768px) {
      flex-direction: row;
      align-items: flex-end;
      justify-content: space-between;
    }

    & .title {
      font-size: var(--fs-h1);
      font-weight: 700;
      color: #ffffff;
    }

    & .top-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
  }

  /* Slider Navigation Arrows */
  & .carousel-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & .nav-arrow {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition-fast);

      &:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: #ffffff;
        transform: scale(1.05);
      }
    }
  }

  /* Products Grid / Horizontal Scroll */
  & .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.75rem;

    @container (min-width: 900px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

/* Modern Product Card (Component with Nesting) */
.product-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: var(--text-main);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;

  &:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(46, 99, 120, 0.12);
    border-color: rgba(46, 99, 120, 0.22);
  }

  & .card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brand-gold);
    color: var(--brand-teal-deep);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  & .product-img-wrap {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    background: #F4EFEA;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform var(--transition-smooth);
    }
  }

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

  & .product-info {
    padding-top: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    & .product-category-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--brand-teal);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0.35rem;
    }

    & .product-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
      line-height: 1.35;
      margin-bottom: 0.5rem;
      min-height: 2.85rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    & .product-tags,
    & .product-features,
    & > div[style*="flex-wrap"] {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      min-height: 2.25rem;
      margin-bottom: 0.85rem;
      align-items: flex-start;

      & span {
        white-space: nowrap;
      }
    }

    /* CARD BREAK & FOOTER SECTION */
    & .product-card-footer,
    & .product-meta {
      margin-top: auto !important;
      padding-top: 0.85rem !important;
      border-top: 1px solid #edf2f7 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 0.65rem !important;
      width: 100% !important;
    }

    & .product-pricing-row,
    & .pricing-weight-row,
    & .product-meta > div:first-child {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 0.5rem !important;
      width: 100% !important;

      & .weight-tag {
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
        background: #f1f5f9;
        padding: 0.2rem 0.55rem;
        border-radius: 6px;
        white-space: nowrap !important;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
      }

      & .price-val,
      & > div:last-child {
        font-weight: 800 !important;
        color: var(--brand-teal) !important;
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        text-align: right !important;
        margin-top: 0 !important;
      }
    }

    & .product-actions-row,
    & .action-buttons-row,
    & .product-meta > div:last-child {
      display: grid !important;
      grid-template-columns: 1fr 1.35fr !important;
      gap: 0.5rem !important;
      width: 100% !important;
      margin-top: 0 !important;

      & .btn-details,
      & a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem 0.65rem !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: var(--radius-pill) !important;
        background: #f8fafc !important;
        color: var(--brand-teal) !important;
        border: 1.5px solid #cbd5e1 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
        text-align: center !important;
        width: 100% !important;
        height: 38px !important;
        box-sizing: border-box !important;

        &:hover {
          background: var(--brand-teal) !important;
          color: #ffffff !important;
          border-color: var(--brand-teal) !important;
          transform: translateY(-1px);
        }
      }

      & .btn-add-cart,
      & button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: var(--radius-pill) !important;
        background: var(--brand-teal) !important;
        color: #ffffff !important;
        border: 1.5px solid var(--brand-teal) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
        text-align: center !important;
        width: 100% !important;
        height: 38px !important;
        box-sizing: border-box !important;

        &:hover {
          background: var(--brand-teal-deep) !important;
          border-color: var(--brand-teal-deep) !important;
          transform: translateY(-1px);
          box-shadow: 0 4px 12px rgba(46, 99, 120, 0.25) !important;
        }

        & svg {
          flex-shrink: 0;
        }
      }
    }
  }
}

/* ==========================================================================
   FLOATING PILL ACTION BAR (Annual Report & Product Catalogue)
   ========================================================================== */
.catalog-floating-pills {
  display: inline-flex;
  align-items: center;
  background: #335B6E;
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(46, 99, 120, 0.2);
  gap: 2px;
}

.catalog-floating-pills .catalog-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.catalog-floating-pills .catalog-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--brand-gold-light);
}

.catalog-floating-pills .catalog-pill-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   B2B CATALOG CARD SYSTEM (Pure corporate catalog for /products)
   ========================================================================== */
.catalog-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(46, 99, 120, 0.12);
  border-color: rgba(46, 99, 120, 0.22);
}

.catalog-card .card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand-gold);
  color: var(--brand-teal-deep);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  z-index: 2;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.catalog-card .catalog-img-wrap {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  background: #F4EFEA;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.catalog-card .catalog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.catalog-card .catalog-body {
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-card .catalog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  min-height: 2.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card .catalog-pack-sizes {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.catalog-card .catalog-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-card .catalog-spec-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2e6378;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.catalog-card:hover .catalog-spec-btn {
  color: #1e293b;
  gap: 0.55rem;
}

/* ==========================================================================
   CATEGORY FILTER PILLS & RESPONSIVE MOBILE VIEW (320px, 375px, 412px tiers)
   ========================================================================== */
.filter-pill {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
  box-shadow: 0 4px 12px rgba(46, 99, 120, 0.25);
}

/* TIER 3 & 2: Large & Standard Mobile Devices (375px - 430px) */
@media (max-width: 480px) {
  .catalog-floating-pills {
    width: 100%;
    max-width: 380px;
    justify-content: center;
    padding: 3px;
    margin-inline: auto;
  }

  .catalog-floating-pills .catalog-pill-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .filter-pill {
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
  }

  .catalog-card {
    padding: 1rem;
  }

  .catalog-card .catalog-title {
    font-size: 1rem;
    min-height: auto;
  }

  .catalog-card .catalog-pack-sizes {
    font-size: 0.8rem;
    letter-spacing: 0.2px;
  }
}

/* TIER 1: Small Mobile Devices (320px - 360px: Budget & Older Phones) */
@media (max-width: 360px) {
  .catalog-floating-pills {
    max-width: 100%;
    padding: 2px;
  }

  .catalog-floating-pills .catalog-pill-btn {
    padding: 0.45rem 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.2px;
    gap: 0.25rem;
  }

  .filter-pill {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  .catalog-card {
    padding: 0.85rem;
  }

  .catalog-card .catalog-title {
    font-size: 0.92rem;
  }

  .catalog-card .catalog-pack-sizes {
    font-size: 0.75rem;
  }

  .product-card .product-info .product-card-footer .pricing-weight-row .weight-tag {
    font-size: 0.72rem !important;
    padding: 0.15rem 0.35rem !important;
  }

  .product-card .product-info .product-card-footer .pricing-weight-row .price-val {
    font-size: 0.95rem !important;
  }

  .product-card .product-info .product-card-footer .action-buttons-row {
    grid-template-columns: 1fr 1.25fr !important;
    gap: 0.35rem !important;
  }

  .product-card .product-info .product-card-footer .action-buttons-row .btn-sm {
    padding: 0.45rem 0.45rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0 !important;
  }
}

/* ==========================================================================
   STANDARD PACKAGING SIZES CHART COMPONENT (Responsive across mobile tiers)
   ========================================================================== */
.size-chart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.size-chart-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.size-chart-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.size-chart-modal-backdrop.active .size-chart-modal-box {
  transform: translateY(0);
}

.size-chart-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.size-chart-table-wrap {
  overflow-x: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.standard-sizes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.standard-sizes-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.standard-sizes-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.standard-sizes-table tr:hover td {
  background: #f8fafc;
}

@media (max-width: 480px) {
  .standard-sizes-table {
    font-size: 0.78rem;
  }
  .standard-sizes-table th,
  .standard-sizes-table td {
    padding: 0.55rem 0.65rem;
  }
}

/* ==========================================================================
   STANDARDS & PROCESSING FACILITY SECTION
   ========================================================================== */

.facility-section {
  padding-block: var(--section-pad-y);
  background: var(--surface-white);
  position: relative;

  & .facility-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);

    @media (min-width: 1024px) {
      grid-template-columns: 1fr 1fr;
    }

    & .facility-visual {
      position: relative;
      min-height: 360px;

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

    & .facility-details {
      background: var(--brand-cream);
      padding: clamp(1.75rem, 4vw, 3.5rem);
      display: flex;
      flex-direction: column;
      justify-content: center;

      & .facility-title {
        font-size: var(--fs-h2);
        font-weight: 800;
        line-height: 1.2;
        color: var(--text-main);
        margin-bottom: 1rem;

        & span {
          color: var(--brand-teal-medium);
        }
      }

      & .facility-desc {
        font-size: var(--fs-body);
        color: #444444;
        line-height: 1.7;
        margin-bottom: 1.75rem;
      }

      & .features-checklist {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;

        & .check-item {
          display: flex;
          align-items: center;
          gap: 0.65rem;
          font-weight: 600;
          font-size: 0.9375rem;
          color: #070707;

          & svg {
            color: var(--brand-teal-medium);
            flex-shrink: 0;
          }
        }
      }
    }
  }
}

/* ==========================================================================
   PRODUCT SHOWCASE SECTION (Finest Range with Patterned Teal Backdrop)
   ========================================================================== */

.finest-products-section {
  padding-block: var(--section-pad-y);
  background: 
    linear-gradient(rgba(29, 68, 83, 0.95), rgba(20, 52, 64, 0.98)),
    url('../images/ProductSectionBG.png') center/cover no-repeat;
  color: #ffffff;

  & .section-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.75rem;

    @media (min-width: 768px) {
      flex-direction: row;
      align-items: flex-end;
      justify-content: space-between;
    }

    & .title {
      font-size: var(--fs-h1);
      font-weight: 800;
      color: #ffffff;
    }
  }

  & .showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.75rem;

    & .showcase-card {
      cursor: pointer;
      display: flex;
      flex-direction: column;
      transition: transform var(--transition-smooth);

      &:hover {
        transform: translateY(-8px);
      }

      & .img-podium {
        aspect-ratio: 1 / 1.05;
        background: #edf0f2;
        border-radius: var(--radius-lg);
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;

        & img {
          max-height: 90%;
          width: auto;
          object-fit: contain;
          mix-blend-mode: multiply;
          transition: transform var(--transition-smooth);
        }
      }

      &:hover .img-podium img {
        transform: scale(1.1);
      }

      & .card-caption {
        margin-top: 1rem;

        & .name {
          font-size: 1.0625rem;
          font-weight: 700;
          color: #ffffff;
          line-height: 1.35;
        }

        & .sizes {
          color: rgba(255, 255, 255, 0.75);
          font-size: 0.875rem;
          font-weight: 500;
          margin-top: 0.35rem;
        }
      }
    }
  }
}

/* ==========================================================================
   VIDEO EMBED SECTION
   ========================================================================== */

.video-banner-section {
  padding-block: clamp(2rem, 5vw, 4.5rem);
  background: var(--surface-white);

  & .video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7.5;
    min-height: 260px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000000;

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

    & .overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background var(--transition-fast);

      &:hover {
        background: rgba(0, 0, 0, 0.45);
      }
    }

    & .play-pulse-btn {
      width: clamp(60px, 8vw, 84px);
      height: clamp(60px, 8vw, 84px);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.95);
      color: var(--brand-teal);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: transform var(--transition-fast);

      &:hover {
        transform: scale(1.12);
      }

      & svg {
        margin-left: 4px;
      }
    }
  }
}

/* ==========================================================================
   FAQ SECTION (Modern Accordion with :has())
   ========================================================================== */

.faq-section {
  position: relative;
  padding-block: var(--section-pad-y);
  background: 
    linear-gradient(rgba(20, 42, 51, 0.88), rgba(20, 42, 51, 0.92)),
    url('../images/faqbg.png') center/cover no-repeat;
  color: #ffffff;

  & .faq-header {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 3rem;

    & .title {
      font-size: var(--fs-h1);
      font-weight: 800;
      color: var(--brand-gold-light);
      margin-bottom: 0.75rem;
    }

    & .subtitle {
      font-size: var(--fs-body);
      color: #e3edf2;
      line-height: 1.7;
    }
  }

  & .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;

    @media (min-width: 900px) {
      grid-template-columns: 1fr 1fr;
    }
  }

  & .faq-item {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid transparent;

    & .faq-toggle {
      width: 100%;
      padding: 1.25rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      font-weight: 600;
      font-size: 1rem;
      color: var(--text-main);
      gap: 1rem;

      & svg {
        flex-shrink: 0;
        transition: transform var(--transition-smooth);
      }

      &[aria-expanded="true"] svg {
        transform: rotate(180deg);
      }
    }

    & .faq-content {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows var(--transition-smooth);

      & .content-inner {
        overflow: hidden;
        padding-inline: 1.5rem;
        color: var(--text-muted);
        font-size: 0.9375rem;
        line-height: 1.7;
      }
    }

    & .faq-toggle[aria-expanded="true"] + .faq-content {
      grid-template-rows: 1fr;

      & .content-inner {
        padding-bottom: 1.25rem;
      }
    }
  }
}

/* ==========================================================================
   LEGACY STATS SECTION (4 Pillar Cards)
   ========================================================================== */

.legacy-stats-section {
  padding-block: var(--section-pad-y);
  background: var(--surface-white);

  & .stats-header {
    text-align: center;
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 3rem;

    & .title {
      font-size: var(--fs-h1);
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 0.75rem;

      & span {
        color: var(--brand-teal);
      }
    }

    & .desc {
      font-size: var(--fs-body);
      color: var(--text-muted);
      line-height: 1.7;
    }
  }

  & .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;

    @media (min-width: 1024px) {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }

    & .stat-card {
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);

      &:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
      }

      & .stat-icon-wrap {
        height: 160px;
        background: #faf7f7;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;

        & img {
          width: 75px;
          height: 75px;
          object-fit: contain;
        }
      }

      & .stat-title-wrap {
        background: linear-gradient(180deg, #0f4c5c 0%, #0a3c4a 100%);
        min-height: 75px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1rem;
        text-align: center;

        & h3 {
          color: #fff2d9;
          font-size: 0.9375rem;
          font-weight: 700;
          line-height: 1.35;
        }
      }
    }
  }
}

/* ==========================================================================
   RETAIL NETWORK PARTNERS SECTION
   ========================================================================== */

.retail-partners-section {
  position: relative;
  padding-top: var(--section-pad-y);
  padding-bottom: calc(var(--section-pad-y) * 1.5);
  background: 
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)),
    url('../images/footer-bg.webp') bottom center/cover no-repeat;
  text-align: center;

  & .title {
    font-size: var(--fs-h1);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;

    & span {
      color: var(--brand-teal);
    }
  }

  & .desc {
    max-width: 720px;
    margin: 1rem auto 2rem;
    font-size: var(--fs-body);
    color: var(--text-muted);
  }

  & .available-badge {
    background: var(--brand-teal);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 2rem;
  }

  & .partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);

    & .partner-logo {
      height: 38px;
      display: flex;
      align-items: center;

      & img {
        max-height: 100%;
        width: auto;
        object-fit: contain;
        filter: grayscale(10%) contrast(105%);
        transition: transform var(--transition-fast), filter var(--transition-fast);

        &:hover {
          filter: grayscale(0%) contrast(115%);
          transform: scale(1.08);
        }
      }
    }
  }
}

/* ==========================================================================
   FOOTER (White Island Card on Top of Landscape Background)
   ========================================================================== */

.site-footer {
  position: relative;
  background: transparent;
  margin-top: -6rem;
  padding-bottom: 2.5rem;
  z-index: 10;

  & .footer-island {
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    padding: clamp(2rem, 5vw, 3.75rem);
    border: 1px solid var(--border-light);
  }

  & .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;

    @media (min-width: 640px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1024px) {
      grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
      gap: 3rem;
    }
  }

  & .footer-col {
    & .col-title {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--brand-teal);
      margin-bottom: 1.25rem;
    }

    & .company-desc {
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.7;
      margin-top: 1.25rem;
      margin-bottom: 1.5rem;
    }

    & .footer-links {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;

      & a {
        font-size: 0.9rem;
        color: var(--text-muted);
        transition: color var(--transition-fast), padding-left var(--transition-fast);

        &:hover {
          color: var(--brand-teal);
          padding-left: 0.35rem;
        }
      }
    }

    & .contact-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
      font-size: 0.9rem;
      color: var(--text-muted);

      & svg {
        color: var(--brand-teal);
        flex-shrink: 0;
        margin-top: 0.25rem;
      }

      & .label {
        font-weight: 700;
        color: var(--brand-teal);
        margin-bottom: 0.15rem;
      }
    }
  }

  & .social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    & .social-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--brand-teal);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background var(--transition-fast), transform var(--transition-fast);

      &:hover {
        background: var(--brand-teal-deep);
        transform: scale(1.1);
      }
    }
  }

  & .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);

    @media (min-width: 768px) {
      flex-direction: row;
    }
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (Bottom Floating Bar & WhatsApp Pulse)
   ========================================================================== */

.floating-catalog-bar {
  display: none; /* Integrated directly into hero-bottom-bar to prevent blocking page text */
}

.floating-whatsapp {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;

  & .pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.65;
    animation: ringPulse 2.5s infinite;
  }

  & .whatsapp-btn {
    position: relative;
    width: clamp(52px, 6vw, 64px);
    height: clamp(52px, 6vw, 64px);
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition-fast);

    &:hover {
      transform: scale(1.1);
    }
  }

  & .tooltip-label {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--brand-teal-deep);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all var(--transition-fast);

    &::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 100%;
      transform: translateY(-50%);
      border: 5px solid transparent;
      border-left-color: var(--brand-teal-deep);
    }
  }

  &:hover .tooltip-label {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   CART SLIDE-OUT DRAWER (CSS Grid + Nesting)
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 32, 39, 0.6);
  backdrop-filter: blur(6px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);

  &.active {
    opacity: 1;
    pointer-events: auto;
  }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 95vw);
  height: 100dvh;
  background: var(--surface-white);
  z-index: 111;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);

  &.active {
    transform: translateX(0);
  }

  & .cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;

    & .title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--brand-teal);
    }
  }

  & .cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    & .empty-cart-msg {
      text-align: center;
      color: var(--text-muted);
      margin-top: 4rem;
    }
  }

  & .cart-item-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);

    & .thumb {
      width: 60px;
      height: 60px;
      background: var(--surface-muted);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px;

      & img {
        max-height: 100%;
        object-fit: contain;
      }
    }

    & .details {
      & .name {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-main);
      }

      & .meta {
        font-size: 0.8rem;
        color: var(--text-muted);
      }
    }

    & .remove-btn {
      color: #dc3545;
      font-size: 1.25rem;
      padding: 0.25rem;
    }
  }

  & .cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--surface-alt);

    & .total-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 1rem;
    }
  }
}

/* ==========================================================================
   AUTHENTICATION MODULE (Login / Register Card)
   Matches Ripuraj Agro: Floating Petroleum Teal Card (#2e6378)
   ========================================================================== */

.auth-page-section {
  min-height: calc(100vh - 140px);
  padding: calc(var(--header-height) + 2rem) 1rem 4rem;
  background: radial-gradient(circle at 50% 20%, #f4f8fa 0%, #edf3f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #2b596b;
  background: linear-gradient(145deg, #2e6378 0%, #224b5c 100%);
  border-radius: 28px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 25px 60px rgba(27, 65, 80, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.auth-tab-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.25s ease;
}

.auth-tab-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.auth-tab-btn.active {
  color: #ffffff;
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--brand-gold-light, #f3e7c9);
  border-radius: 2px;
}

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

.auth-form.hidden {
  display: none !important;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.auth-label .req {
  color: #ff9b9b;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 1rem;
  font-size: 0.95rem;
  color: #1e293b;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: #f3e7c9;
  box-shadow: 0 0 0 3px rgba(243, 231, 201, 0.4);
}

.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #ffffff;
  margin-top: 0.25rem;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2e6378;
  cursor: pointer;
}

.auth-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  height: 48px;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.auth-submit-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   CART PAGE MODULE
   ========================================================================== */

.cart-page-wrap {
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  min-height: 75vh;
  background: #fbfcfd;
}

.cart-unauth-card {
  max-width: 640px;
  margin: 3rem auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.cart-bag-icon-wrap {
  width: 76px;
  height: 76px;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}

.cart-unauth-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.cart-unauth-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.cart-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 44px;
  background: #1e60d5;
  background: linear-gradient(135deg, #1e60d5 0%, #164bb0 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 96, 213, 0.25);
  transition: all 0.2s ease;
}

.cart-login-btn:hover {
  background: #164bb0;
  transform: translateY(-1px);
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .cart-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.cart-table-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #edf2f7;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf2f7;
}

.cart-table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.cart-prod-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-prod-thumb {
  width: 72px;
  height: 72px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.cart-prod-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-prod-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cart-prod-meta {
  font-size: 0.82rem;
  color: #64748b;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cart-qty-btn:hover {
  background: #e2e8f0;
}

.cart-qty-val {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-remove-icon-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px;
  transition: transform 0.2s;
}

.cart-remove-icon-btn:hover {
  transform: scale(1.15);
}

.cart-summary-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #edf2f7;
  height: fit-content;
}

.cart-summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 0.75rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: #64748b;
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1.5px dashed #cbd5e1;
}

.checkout-btn {
  width: 100%;
  height: 48px;
  background: #2e6378;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.checkout-btn:hover {
  background: #244f60;
  transform: translateY(-1px);
}

/* ==========================================================================
   ORDERS PAGE MODULE
   ========================================================================== */

.orders-page-wrap {
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  min-height: 75vh;
  background: #fbfcfd;
}

.orders-user-header {
  background: linear-gradient(135deg, #2e6378 0%, #204757 100%);
  border-radius: 20px;
  padding: 2rem;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px rgba(46, 99, 120, 0.2);
}

.orders-user-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.orders-user-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

.logout-pill-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.logout-pill-btn:hover {
  background: #ffffff;
  color: #dc2626;
  border-color: #ffffff;
}

.order-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf2f7;
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

.order-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.25rem;
}

.order-id-meta {
  font-weight: 800;
  color: #1e293b;
  font-size: 1.05rem;
}

.order-date-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

.status-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-delivered {
  background: #dcfce7;
  color: #15803d;
}

.status-processing {
  background: #fef3c7;
  color: #b45309;
}

.status-dispatched {
  background: #e0f2fe;
  color: #0369a1;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-item-thumb {
  width: 56px;
  height: 56px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.order-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
}

.order-item-meta {
  font-size: 0.82rem;
  color: #64748b;
}

.order-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.order-total-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2e6378;
}

.order-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.order-action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ==========================================================================
   PRODUCT DETAIL PURCHASING WIDGET (Ripuraj Agro Replication)
   ========================================================================== */

.product-detail-widget {
  margin-top: 1.5rem;
}

.detail-weight-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.65rem;
}

.detail-weight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.weight-pill-btn {
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weight-pill-btn:hover {
  background: #e2e8f0;
}

.weight-pill-btn.active {
  background: #2e6378;
  color: #ffffff;
  border-color: #2e6378;
  box-shadow: 0 4px 10px rgba(46, 99, 120, 0.2);
}

.detail-stepper-stock-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.detail-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.detail-stepper-btn {
  width: 36px;
  height: 38px;
  background: #f8fafc;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.detail-stepper-btn:hover {
  background: #e2e8f0;
}

.detail-stepper-val {
  width: 44px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  border: none;
  background: transparent;
}

.in-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #16a34a;
}

.in-stock-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.detail-action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-add-to-cart-teal {
  height: 48px;
  background: #2e6378;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(46, 99, 120, 0.25);
  transition: all 0.2s ease;
}

.btn-add-to-cart-teal:hover {
  background: #224b5c;
  transform: translateY(-1px);
}

.btn-buy-now-gold {
  height: 48px;
  background: #f3e7c9;
  color: #8d7a42;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-buy-now-gold:hover {
  background: #e9dbc0;
  transform: translateY(-1px);
}

.payment-gateways-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.payment-gateway-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.payment-gateway-item img,
.payment-gateway-item svg {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}
