:root {
    --primary-green: #8CC63F;
    --primary-blue: #00AEEF;
    --dark-bg: #000000;
    --light-bg: #F8F9FA;
    --text-color: #333333;
    --border-color: #E0E0E0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.modal{
  z-index: 9999!important;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Container */
.container-contents {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.cancel-icon-outline:focus{
 outline:none !important;
 box-shadow:none !important;
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Breadcrumbs */
.breadcrumb-section {
    background-color: transparent;
    padding: 10px 0;
}

.breadcrumb {
    margin: 0;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    font-family: var(--font-main);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    /* FontAwesome Chevron */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 8px;
    color: #999;
    font-size: 11px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background-color: #84C44C;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6fa83f;
}

/* Firefox only */
@-moz-document url-prefix() {
  * {
    scrollbar-width: thin;
    scrollbar-color: #84C44C #ffffff;
  }
}

/* todays changes */
/* Layout Perfection: Elegant Side Spacing for Desktop ONLY */
@media (min-width: 1200px) {
    /* Universal Container Consistency */
    .top-bar,
    .main-header,
    .main-navbar,
    .main-footer,
    .container-contents, 
    .nav-container-wrapper,
    .footer-container,
    .banner-section,
    .three-blocks-links,
    .quick-order-overlay-section,
    .popular-categories-section,
    .shop-categories-section,
    .product-detail-section,
    .catalog-side,
    .featured-products-section,
    .contact-us-section,
    .market-section-blocks,
    .auth-section,
    .quick-orders-section,
    .product-search-section,
    .mp-hero-wrapper,
    #megaMenuFloat
     {
        max-width: min(1400px, calc(100% - 180px)) !important; /* Cap at 1400px, but ensure 90px padding on smaller viewports */
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }

    /* Floating Header Look */
    .top-bar,
    .main-header,
    .main-navbar {
        /* border-radius: 8px; */
        /* margin: 10px auto !important; */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
        overflow: visible !important; /* Allow dropdowns to show */
    }

    /* Fixed alignment for internal elements after shrinking parents */
    .top-bar .container-contents,
    .header-grid,
    .mega-menu-header,
    .nav-container-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        margin: 0 auto !important;
    }

    /* Constrain the Mega Menu to the shrunken navbar width */
    .nav-item {
        position: static !important; /* Anchor menu to full navbar container */
    }

    .mega-menu-custom {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        border-top: 3px solid var(--primary-green) !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
        padding: 30px 0 !important;
    }

    .mega-menu-grid {
        display: block !important;
        padding: 0 40px !important;
        width: 100% !important;
        max-width: none !important; /* Ensure it can grow to full width */
        overflow: visible !important;
    }

    .mega-masonry-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        column-count: 6 !important;
        -webkit-column-count: 6 !important;
        -moz-column-count: 6 !important;
        column-width: 160px !important; /* Forces the creation of up to 6 columns */
        column-gap: 30px !important;
        column-fill: balance !important; /* Spreads content across all columns */
        height: auto !important;
        min-height: 200px;
    }

    .mega-group {
        margin-bottom: 25px !important;
        break-inside: avoid !important;
        -webkit-column-break-inside: avoid;
        display: block !important; /* Better than inline-block for masonry splitting in some browsers */
        width: 100% !important;
    }

    /* Reset width for sections that use margins instead of max-width */
    
    
    .quick-order-overlay-section,
    .popular-categories-section,
    .shop-categories-section,
    .featured-products-section {
        width: 100% !important; /* Let max-width above take control */
        margin: 30px auto !important;
    }
.three-blocks-links,.hero-banner{
        width: 100% !important; /* Let max-width above take control */
        margin: 0px auto !important;

  }
    .mega-group-title {
        margin-bottom: 12px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--primary-green) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        width: 100%;
    }

    .mega-links-list li {
        margin-bottom: 5px !important;
    }

    .mega-links-list li a {
        font-size: 13px !important;
        line-height: 1.3 !important;
        color: #444 !important;
        white-space: normal !important; /* Ensure long links don't push column width */
    }

    .mega-links-list li a:hover {
        color: var(--primary-blue) !important;
        padding-left: 5px !important;
    }

    .mega-recommendation {
        display: none !important;
    }

  .three-blocks-links{
    padding: 0px !important;
  }
  .site-header .mega-menu-grid {
        display: block !important; /* Override navbar.css grid */
        column-count: 6;
        column-gap: 35px;
        padding: 0 40px;
        max-width: 100%;
        margin: 0;
    }

    .site-header .mega-group {
        /* break-inside: avoid-column; Removed to allow long categories to expand into multiple columns */
        /* -webkit-column-break-inside: avoid; */
        display: block;
        width: 100%;
        margin-bottom: 40px;
    }

    .site-header .mega-group-title {
        break-after: avoid; /* Try to keep title with its list */
        color: #84C44C !important; /* Brand Green */
        text-transform: uppercase;
        font-size: 14px !important;
        font-weight: 700;
        letter-spacing: 0.8px;
        margin-bottom: 18px;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
    }

    .site-header .mega-links-list {
        margin-bottom: 0;
    }

    .site-header .mega-links-list li {
        break-inside: avoid;
        margin-bottom: 8px;
    }

    .site-header .mega-links-list li a {
        font-size: 14px !important;
        color: #444 !important;
    }

    .site-header .mega-links-list li a:hover {
        color: #84C44C !important;
        padding-left: 3px;
    }
    .mega-menu-header {
        margin-bottom: 10px !important;  
    }

 /* Fixed Sticky State */
    .site-header.sticky-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width:100%;
        z-index: 9999 !important;
        /* background: #fff !important;
        border-bottom: 1px solid #eee !important; 
        box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.12) !important;*/
    }

    /* Keep original theme colors for internal components */
    .site-header.sticky-active .main-header {
        background: #fff !important;
    }

    .site-header.sticky-active .main-navbar {
        background: #232f3e !important;
    }

    /* Ensure mega menu is perfectly positioned in fixed header */
    .site-header.sticky-active .nav-item:hover .mega-menu-custom {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        top: 100% !important;
    }
}

section,
footer,
.product-detail-section {
  position: relative;
  background: #fff;
}

/* Common pseudo elements */
section::before,
section::after,
footer::before,
footer::after,
.product-detail-section::before,
.product-detail-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
}

/* Left shadow (lighter) */
section::before,
footer::before,
.product-detail-section::before {
  left: 0 !important;
  box-shadow: -8px 0 15px rgba(0,0,0,0.04) !important;
}

/* ===== Thank You Page Animation ===== */
.thank-you-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 420px;
}

.thank-you-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-top: 35px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
    font-weight: 800;
    letter-spacing: -1px;
}

.thank-you-subtext {
    font-size: 1.1rem;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1s;
}

/** SVG Checkmark Styles **/
.checkmark-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: var(--primary-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .thank-you-text {
        font-size: 2.5rem;
    }
    .checkmark-container {
        width: 100px;
        height: 100px;
    }
}

/* ===== Not Found Page Animation ===== */
.not-found-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 0px 20px;
    text-align: center;
    min-height: 440px;
}

.not-found-text {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--primary-blue);
    margin: 10px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
}

.not-found-subtext {
    font-size: 1.2rem;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1s;
    max-width: 400px;
}

/** SVG 404 Icon Styles **/
.not-found-icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.not-found-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.not-found-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.not-found-exclamation-top {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    stroke-width: 4;
    stroke: var(--primary-green);
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

.not-found-exclamation-dot {
    fill: var(--primary-green);
    opacity: 0;
    transform: scale(0);
    transform-origin: 26px 38px;
    animation: popIn 0.3s cubic-bezier(0.65, 0, 0.45, 1) 1s forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(3.5);
    }
}

@media (max-width: 768px) {

.product-card{
padding: 10px !important;
}
.product-price{
font-size: 16px !important;
}

/* ===== OR Separator ===== */
.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 50px auto;
    color: #ccc;
    max-width: 50%;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e5e5;
}

.or-separator span {
    padding: 0 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-family: var(--font-heading);
}
  .mycart-scroll-fix {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mycart-scroll-fix table {
        min-width: 700px; /* ensures all columns stay visible */
    }

    /* Optional: prevent weird wrapping */
    .mycart-scroll-fix td,
    .mycart-scroll-fix th {
        white-space: nowrap;
    }
}
/* ── Featured / Starred Product Badge (Search Priority) ─────────────────── */
.product-img-wrapper { position: relative; }

.featured-star-badge {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 15px;
    line-height: 1;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    z-index: 2;
    cursor: default;
}