/* ============================================================
   front.css  —  Eatly Global Frontend
   DEFAULT CSS variables (fallback values).
   These are overridden at runtime by /front-theme.css which
   reads live values from Super Admin → Theme & Branding.
   ============================================================ */

:root {
    /* ---- Colours (overridden by front-theme.css) ---- */
    --green:   #224620;
    --green2:  #1a3518;
    --green3:  #2d5c2a;
    --accent:  #FFA700;
    --accent2: #e69500;
    --light:   #f8f6f1;
    --text:    #1f2937;
    --muted:   #6b7280;
    --border:  #e5e7eb;
    /* ---- Always-fixed values ---- */
    --white:   #ffffff;
    --radius:  12px;
    --shadow:  0 4px 24px rgba(0,0,0,.08);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    padding-top: 72px; /* fixed nav height */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- Navbar ---- */
.front-nav {
    background: var(--green);
    padding: .75rem 0;
    transition: padding .3s, box-shadow .3s;
    z-index: 1030;
}
.front-nav.scrolled {
    padding: .5rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.front-nav .navbar-toggler {
    border-color: rgba(255,255,255,.4);
    padding: .4rem .6rem;
}
.front-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.2); }
.front-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.front-brand {
    color: var(--white) !important;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.5px;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.brand-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.front-nav .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-size: .9rem;
    font-weight: 500;
    padding: .45rem .75rem !important;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.front-nav .nav-link:hover,
.front-nav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,.12);
}
.btn-front-outline {
    border: 1.5px solid rgba(255,255,255,.5);
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all .2s;
}
.btn-front-outline:hover {
    background: var(--white);
    color: var(--green) !important;
    border-color: var(--white);
}

/* ---- CTA Button ---- */
.btn-front-cta {
    background: var(--accent);
    border: none;
    color: var(--green) !important;
    font-weight: 700;
    border-radius: 8px;
    transition: background .2s, transform .15s;
}
.btn-front-cta:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}
.btn-front-cta.btn-lg { padding: .85rem 2.2rem; font-size: 1.05rem; }

/* ---- Section helpers ---- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-light { background: var(--light); }
.section-green { background: var(--green); color: var(--white); }
.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
}
.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 520px;
}
.section-chip {
    display: inline-block;
    background: rgba(34,70,32,.1);
    color: var(--green);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: .3rem .8rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}
.section-green .section-chip {
    background: rgba(255,255,255,.15);
    color: var(--white);
}

/* ---- Hero ---- */
.hero {
    background: var(--green);
    color: var(--white);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}
.hero::after {
    content: '';
    position: absolute;
    right: -120px; bottom: -80px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-block;
    background: var(--accent);
    color: var(--green);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: .3rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}
.hero-title span { color: var(--accent); }
.hero-lead {
    font-size: 1.1rem;
    opacity: .8;
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-img {
    width: 100%;
    max-width: 460px;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
    object-fit: cover;
    aspect-ratio: 4/3;
}
.hero-img-placeholder {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4/3;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 2px dashed rgba(255,255,255,.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    font-size: .9rem;
}
.hero-stat-badge {
    position: absolute;
    background: var(--white);
    color: var(--text);
    border-radius: 12px;
    padding: .7rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    font-size: .82rem;
    font-weight: 600;
}
.hero-stat-badge.badge-tl { top: 20px; left: 0; }
.hero-stat-badge.badge-br { bottom: 20px; right: 0; }
.hero-stat-badge .stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}

/* ---- Stats bar ---- */
.stats-bar { background: var(--accent); padding: 28px 0; }
.stat-item { text-align: center; }
.stat-item .num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}
.stat-item .label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--green);
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ---- Product cards ---- */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .25s, transform .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.product-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--light);
    display: block;
}
.product-card-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2.5rem;
}
.product-card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-cat {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--green);
    margin-bottom: .35rem;
}
.product-card-name {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.35;
    margin-bottom: auto;
    color: var(--text);
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .9rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--green);
}
.btn-card-detail {
    background: var(--green);
    color: var(--white) !important;
    border-radius: 6px;
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    border: none;
    transition: background .2s;
}
.btn-card-detail:hover { background: var(--green2); }

/* ---- Category pills ---- */
.cat-pill {
    display: inline-block;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* ---- Features / value props ---- */
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(34,70,32,.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.feature-title { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.feature-desc  { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---- About page ---- */
.about-hero {
    background: var(--green);
    color: var(--white);
    padding: 100px 0 72px;
}
.about-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.5px;
}
.team-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow .25s, transform .25s;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.team-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(34,70,32,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    color: var(--green);
}
.value-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--light);
    border-left: 4px solid var(--accent);
}

/* ---- Shop page ---- */
.shop-hero {
    background: var(--green);
    color: var(--white);
    padding: 72px 0 56px;
}
.shop-hero--veg {
    background: linear-gradient(135deg, #1a7a3a 0%, #27ae60 100%);
}
.shop-hero--nonveg {
    background: linear-gradient(135deg, #7a2d1a 0%, #c0392b 100%);
}
.shop-hero-icon {
    display: block;
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: .4rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.shop-search-wrap {
    max-width: 480px;
    position: relative;
}
.shop-search-wrap .form-control {
    border-radius: 999px;
    padding: .65rem 1.25rem .65rem 1rem;
    border: none;
    font-size: .95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.shop-search-wrap .btn-search {
    position: absolute;
    right: 4px; top: 4px;
    border-radius: 999px;
    background: var(--accent);
    border: none;
    color: var(--green);
    font-weight: 700;
    padding: .4rem 1.1rem;
    font-size: .85rem;
}
.product-count { color: var(--muted); font-size: .9rem; }
.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}
.no-products-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }

/* ---- Product detail ---- */
.detail-img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--light);
}
.detail-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 4rem;
}
.detail-cat {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--green);
    margin-bottom: .5rem;
}
.detail-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.detail-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 1.25rem;
}
.detail-stock {
    font-size: .88rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1.25rem;
}
.detail-stock.in  { background: #dcfce7; color: #166534; }
.detail-stock.low { background: #fef9c3; color: #854d0e; }
.detail-stock.out { background: #fee2e2; color: #991b1b; }
.detail-desc { color: var(--muted); line-height: 1.75; }
.detail-meta-row { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: var(--muted); margin-top: .75rem; }
.detail-meta-row strong { color: var(--text); }
.btn-contact-cta {
    background: var(--accent);
    border: none;
    color: var(--green);
    font-weight: 700;
    border-radius: 8px;
    padding: .75rem 1.75rem;
    font-size: 1rem;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-contact-cta:hover { background: var(--accent2); transform: translateY(-1px); }

/* ---- Contact page ---- */
.contact-hero {
    background: var(--green);
    color: var(--white);
    padding: 100px 0 72px;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(34,70,32,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--green);
}
.contact-info-text h6 { font-weight: 700; margin-bottom: .1rem; font-size: .92rem; }
.contact-info-text p  { color: var(--muted); font-size: .88rem; margin: 0; }
.form-label-front { font-weight: 600; font-size: .875rem; color: var(--text); margin-bottom: .4rem; }
.form-control-front {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .7rem 1rem;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control-front:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,70,32,.1);
    outline: none;
}

/* ---- Alert flashes (front) ---- */
.front-alerts { margin-bottom: 0; }
.front-alerts .alert {
    border-radius: 10px;
    border: none;
    font-size: .9rem;
    font-weight: 500;
}

/* ---- Footer ---- */
.front-footer {
    background: var(--green);
    color: rgba(255,255,255,.8);
    padding: 56px 0 28px;
}
.footer-brand {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
}
.footer-tagline { font-size: .88rem; opacity: .65; line-height: 1.6; }
.footer-heading { color: var(--white); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--white); border-radius: 6px; }
.footer-input::placeholder { color: rgba(255,255,255,.4); }
.footer-input:focus { background: rgba(255,255,255,.15); box-shadow: none; border-color: rgba(255,255,255,.4); color: var(--white); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.25rem; }
.footer-copy { color: rgba(255,255,255,.5); font-size: .84rem; }

/* ---- Breadcrumb ---- */
.front-breadcrumb { font-size: .83rem; }
.front-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.front-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); }
.front-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.95); }

/* ---- Badge stock ---- */
.badge-in-stock   { background: #dcfce7; color: #166534; font-weight: 600; font-size: .72rem; padding: .2rem .6rem; border-radius: 4px; }
.badge-low-stock  { background: #fef9c3; color: #854d0e; font-weight: 600; font-size: .72rem; padding: .2rem .6rem; border-radius: 4px; }
.badge-out-stock  { background: #fee2e2; color: #991b1b; font-weight: 600; font-size: .72rem; padding: .2rem .6rem; border-radius: 4px; }

/* ---- Certificate badges ---- */
.front-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    letter-spacing: .3px;
}
.front-cert-lg { font-size: .82rem; padding: .35rem .85rem; }
.front-cert-success  { background: #dcfce7; color: #166534; }
.front-cert-danger   { background: #fee2e2; color: #991b1b; }
.front-cert-warning  { background: #fef9c3; color: #854d0e; }
.front-cert-primary  { background: #dbeafe; color: #1e40af; }
.front-cert-info     { background: #cffafe; color: #155e75; }
.front-cert-secondary{ background: #f1f5f9; color: #475569; }
.front-cert-dark     { background: #1f2937; color: #f9fafb; }
.front-cert-light    { background: #f8fafc; color: #374151; border: 1px solid #e5e7eb; }

/* Icon wrapper — normalises emoji + SVG to same optical size */
.cert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    line-height: 1;
    overflow: hidden;
    vertical-align: -0.1em;
}
.cert-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ---- Footer social buttons ---- */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--white) !important;
    transition: background .2s;
    flex-shrink: 0;
}
.footer-social-btn:hover { background: var(--accent); color: var(--green) !important; }

/* ---- Nav dropdown ---- */
.front-nav .dropdown-menu {
    background: var(--green2);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .4rem 0;
    margin-top: .25rem;
}
.front-nav .dropdown-item {
    color: rgba(255,255,255,.8);
    font-size: .88rem;
    padding: .55rem 1.25rem;
}
.front-nav .dropdown-item:hover, .front-nav .dropdown-item:focus {
    background: rgba(255,255,255,.1);
    color: var(--white);
}
.front-nav .dropdown-toggle::after { border-top-color: rgba(255,255,255,.7); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero { min-height: 0; padding: 56px 0 48px; }
    .hero-image-wrap { margin-top: 2.5rem; }
    .hero-stat-badge { display: none; }
    .section { padding: 56px 0; }
}
@media (max-width: 575px) {
    body { padding-top: 64px; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
    .detail-title { font-size: 1.5rem; }
}

/* ================================================================
   SHOP — Sidebar filters + Grid/List toggle
   ================================================================ */

/* Sidebar filter card */
.shop-filter-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}
.shop-filter-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--muted);
    margin-bottom: .7rem;
}
.shop-filter-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.shop-filter-list::-webkit-scrollbar { width: 4px; }
.shop-filter-list::-webkit-scrollbar-track { background: transparent; }
.shop-filter-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.shop-filter-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    font-size: .875rem;
    color: var(--text);
    padding: .15rem 0;
    -webkit-user-select: none;
    user-select: none;
    transition: color .15s;
}
.shop-filter-check:hover { color: var(--green); }
.shop-filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}

/* Active filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(34,70,32,.1);
    color: var(--green);
    border-radius: 999px;
    padding: .18rem .6rem;
    font-size: .73rem;
    font-weight: 600;
    white-space: nowrap;
    gap: .3rem;
}

/* Stock dots (sidebar labels) */
.stock-dot-sm {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
}
.stock-dot-sm.in  { background: #16a34a; }
.stock-dot-sm.low { background: #f59e0b; }
.stock-dot-sm.out { background: #dc2626; }

/* ---- Dual price range slider ---- */
.price-range-widget { padding: .15rem 0; }
.price-range-track {
    position: relative;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    margin: 14px 10px;
}
.price-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
}
.price-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -10px;
    width: calc(100% + 20px);
    height: 5px;
    background: transparent;
    border: none;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}
.price-range-input::-webkit-slider-runnable-track { background: transparent; height: 5px; }
.price-range-input::-moz-range-track              { background: transparent; height: 5px; }
.price-range-input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    border: 2.5px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
    transition: transform .15s;
    margin-top: -7.5px;
}
.price-range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.price-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    border: 2.5px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
}

/* ---- Shop toolbar ---- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .8rem 1.1rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
}
.shop-sort-select {
    min-width: 140px;
    border-radius: 8px;
    border-color: var(--border);
    font-size: .84rem;
    cursor: pointer;
}
.shop-sort-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(34,70,32,.15);
    outline: none;
}

/* ---- View toggle ---- */
.view-toggle {
    display: flex;
    gap: .2rem;
    background: var(--light);
    border-radius: 8px;
    padding: .2rem;
}
.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.view-btn:hover  { background: var(--border); color: var(--text); }
.view-btn.active { background: var(--green); color: var(--white); }

/* ---- Products container (CSS grid) ---- */
.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1199px) { .products-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .products-container { grid-template-columns: 1fr; } }

/* ---- Shop card (grid mode) ---- */
.shop-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
    border-color: rgba(34,70,32,.2);
}

/* Image wrap */
.shop-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--light);
    aspect-ratio: 4/3;
    flex-shrink: 0;
}
.shop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.shop-card:hover .shop-card-img { transform: scale(1.06); }
.shop-card-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--muted);
}

/* Card body */
.shop-card-body {
    padding: .9rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.shop-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 22px;
}
.shop-card-cat {
    font-size: .69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stock-badge-sm {
    font-size: .67rem;
    font-weight: 700;
    padding: .12rem .48rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
}
.stock-badge-sm.in  { background: #dcfce7; color: #15803d; }
.stock-badge-sm.low { background: #fef9c3; color: #a16207; }
.stock-badge-sm.out { background: #fee2e2; color: #dc2626; }

.shop-card-name {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
}
.shop-card-certs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.shop-card-desc {
    font-size: .81rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card-footer {
    margin-top: auto;
    padding-top: .7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.shop-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
}
.shop-card-btns {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.btn-add-cart {
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: .28rem .7rem;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    line-height: 1.4;
}
.btn-add-cart:hover { background: var(--green2); }

/* ---- LIST VIEW overrides ---- */
.products-container.list-view {
    grid-template-columns: 1fr;
}
.products-container.list-view .shop-card {
    flex-direction: row;
    align-items: stretch;
}
.products-container.list-view .shop-card-img-wrap {
    width: 200px;
    aspect-ratio: unset;
    flex-shrink: 0;
}
.products-container.list-view .shop-card-body {
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.25rem;
}
.products-container.list-view .shop-card-name {
    font-size: .98rem;
}
.products-container.list-view .shop-card-desc {
    -webkit-line-clamp: 3;
    flex-shrink: 0;
}
.products-container.list-view .shop-card-footer {
    margin-top: auto;
}
@media (max-width: 575px) {
    .products-container.list-view .shop-card { flex-direction: column; }
    .products-container.list-view .shop-card-img-wrap { width: 100%; aspect-ratio: 4/3; }
}

/* ---- Checkout payment method options ---- */
.checkout-pay-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .18s, background .18s;
    width: 100%;
}
.checkout-pay-option:hover { border-color: rgba(34,70,32,.3); }
.checkout-pay-option.selected {
    border-color: var(--green);
    background: rgba(34,70,32,.04);
}
.checkout-pay-option input[type="radio"] {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ============================================================
   EasyParcel Shipping Rate Options (checkout)
   ============================================================ */
.rate-option { transition: border-color .18s, background .18s; }
.rate-option:hover { border-color: rgba(34,70,32,.35); }
.rate-option input[type="radio"] { accent-color: var(--green); cursor: pointer; }

/* ============================================================
   Shipping method selector — checkout page
   ============================================================ */
.ship-opt {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .18s, background .18s;
    margin: 0;
}
.ship-opt:hover                { border-color: rgba(34,70,32,.35); }
.ship-opt--active              { border-color: var(--green) !important; background: rgba(34,70,32,.04); }
.ship-opt input[type="radio"]  { flex-shrink: 0; accent-color: var(--green); cursor: pointer; }
.ship-opt .flex-grow-1         { min-width: 0; }
.ship-price                    { flex-shrink: 0; font-weight: 700; color: var(--green); font-size: .95rem; white-space: nowrap; }

/* ============================================================
   Admin nav pill — shown when an admin user browses the frontend
   ============================================================ */
.admin-nav-pill {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: .25rem .75rem !important;
    font-size: .82rem;
    font-weight: 600;
    gap: .35rem;
    color: #fff !important;
    transition: background .18s;
}
.admin-nav-pill:hover {
    background: rgba(255,255,255,.28);
    color: #fff !important;
}

/* ============================================================
   Floating Cart Button
   ============================================================ */
.floating-cart-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    padding: .65rem 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,.22);
    transition: transform .2s, box-shadow .2s;
}
.floating-cart-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.floating-cart-count {
    background: #fff;
    color: var(--green);
    border-radius: 50px;
    padding: .1rem .55rem;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.6;
}

/* ============================================================
   Menu Type Tabs (Veg / Non-Veg shop filter strip)
   ============================================================ */
.menu-type-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1.1rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border: 1px solid #dee2e6;
    background: #fff;
    transition: all .18s;
}
.menu-type-tab:hover {
    border-color: var(--green);
    color: var(--green);
}
.menu-type-tab.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* ===== VEG / NON-VEG FOOD TYPE DOT (Indian labeling standard) ===== */
.food-type-wrap {
    position: absolute;
    bottom: 8px; right: 8px;
    display: flex; gap: 3px;
    z-index: 3;
}
.food-type-dot {
    width: 20px; height: 20px;
    border-radius: 3px;
    border: 2.5px solid;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 5px rgba(0,0,0,.22);
    flex-shrink: 0;
}
.food-type-dot::after {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    display: block;
}
.food-type-dot.veg      { border-color: #138808; }
.food-type-dot.veg::after    { background: #138808; }
.food-type-dot.nonveg   { border-color: #800000; }
.food-type-dot.nonveg::after { background: #800000; }
/* Slightly larger on product detail page */
.food-type-dot.lg { width: 26px; height: 26px; }
.food-type-dot.lg::after { width: 13px; height: 13px; }

/* ===== SPLIT-SCREEN HERO ===== */
.split-hero {
    position: relative;
    overflow: hidden;
}
.split-hero-label {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: .7rem 1rem;
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
}
.split-hero-panels {
    display: flex;
    position: relative;
    min-height: calc(100vh - 110px);
}
.split-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: flex .45s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}
.split-panel:hover { flex: 1.2; }
.split-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .55s ease;
}
.split-panel:hover .split-panel-bg { transform: scale(1.05); }
.split-panel-bg--veg {
    background-color: #1a3d18;
    background-image:
        linear-gradient(to top, rgba(20,55,18,.96) 0%, rgba(20,55,18,.55) 45%, rgba(20,55,18,.08) 100%),
        url('/assets/images/banner/banner-veg.jpg');
    background-size: 100% 100%, cover;
    background-position: center, center top;
}
.split-panel-bg--nonveg {
    background-color: #3d1212;
    background-image:
        linear-gradient(to top, rgba(90,10,10,.96) 0%, rgba(90,10,10,.50) 45%, rgba(90,10,10,.08) 100%),
        url('/assets/images/banner/banner-non-veg.jpg');
    background-size: 100% 100%, cover;
    background-position: center, center top;
}
.split-panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 2.5rem 2.8rem;
    color: #fff;
    width: 100%;
}
.split-panel-icon { display: none; }
.split-panel-tag {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.split-panel--veg .split-panel-tag {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(180,240,170,.4);
    color: #c6f0c2;
}
.split-panel--nonveg .split-panel-tag {
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,180,160,.35);
    color: #ffd0c2;
}
.split-panel-title {
    font-size: clamp(1.55rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.18;
    margin-bottom: .9rem;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.split-panel-sub {
    font-size: .88rem;
    opacity: .8;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.split-panel-btn {
    display: inline-block;
    padding: .8rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(0,0,0,.28);
    white-space: nowrap;
}
.split-panel-btn--veg   { background: #fff; color: #1a3d18; }
.split-panel-btn--nonveg { background: #fff; color: #7a1010; }
.split-panel:hover .split-panel-btn { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,0,0,.32); }
.split-hero-or {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .06em;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 18px rgba(0,0,0,.38);
    border: 3px solid rgba(255,255,255,.6);
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .split-hero-panels { min-height: 0; }
    .split-panel { min-height: 52vw; }
    .split-panel:hover { flex: 1; }
    .split-panel-content { padding: 1.5rem 1.25rem 1.75rem; }
    .split-panel-icon { display: none; }
    .split-panel-title { font-size: 1.3rem; }
    .split-panel-sub { display: none; }
    .split-panel-btn { padding: .6rem 1.5rem; font-size: .72rem; }
    .split-hero-or { width: 40px; height: 40px; font-size: .65rem; }
}
@media (max-width: 480px) {
    .split-hero-panels { flex-direction: column; }
    .split-panel { min-height: 60vw; width: 100%; flex: none; }
    .split-hero-or { top: 50%; }
    .split-panel-sub { display: none; }
}

/* ================================================================
   INQUIRY / COMPLAINT MODAL
   ================================================================ */

.inq-modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

/* Header */
.inq-modal-header {
    background: var(--green);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.inq-modal-header-inner {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}
.inq-modal-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.inq-modal-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 .2rem;
}
.inq-modal-subtitle {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    margin: 0;
}
.inq-modal-close {
    background: rgba(255,255,255,.12);
    border: none;
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .2s;
    padding: 0;
}
.inq-modal-close:hover { background: rgba(255,255,255,.22); }

/* Body */
.inq-modal-body {
    padding: 1.5rem;
    background: var(--white);
}

/* Type pill toggle */
.inq-type-group {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.inq-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.inq-type-option input[type="radio"] { display: none; }
.inq-type-option span {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    transition: all .2s;
    background: var(--white);
}
.inq-type-option input[type="radio"]:checked + span {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* Labels */
.inq-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .35rem;
    letter-spacing: .01em;
}
.inq-required { color: var(--accent); }

/* Inputs */
.inq-input {
    display: block;
    width: 100%;
    padding: .55rem .85rem;
    font-size: .9rem;
    color: var(--text);
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    resize: vertical;
}
.inq-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,70,32,.12);
    background: var(--white);
}
.inq-input::placeholder { color: #adb5bd; }

/* Alerts */
.inq-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 8px;
    padding: .75rem 1rem;
}
.inq-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: .75rem 1rem;
}

/* Footer */
.inq-modal-footer {
    padding: 1rem 1.5rem;
    background: var(--light);
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    border-top: 1px solid var(--border);
}
.inq-btn-cancel {
    padding: .55rem 1.4rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.inq-btn-cancel:hover { border-color: var(--green); color: var(--green); }
.inq-btn-submit {
    padding: .55rem 1.8rem;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: var(--green);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.inq-btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }

/* Mobile tweaks */
@media (max-width: 575px) {
    .inq-modal-body { padding: 1.1rem; }
    .inq-modal-footer { padding: .9rem 1.1rem; }
    .inq-modal-header { padding: 1rem 1.1rem; }
}

/* ================================================================
   POLICY PAGES (Privacy, Terms, Shipping, Refund)
   ================================================================ */

/* Section headings inside policy documents */
.policy-doc h4.policy-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
    margin-top: 2rem;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--light);
}

/* Body paragraphs */
.policy-doc p { margin-bottom: .85rem; }

/* Lists */
.policy-doc .policy-list {
    padding-left: 1.4rem;
    margin-bottom: .9rem;
}
.policy-doc .policy-list li { margin-bottom: .35rem; }

/* Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: .875rem;
}
.policy-table th {
    background: var(--green);
    color: #fff;
    padding: .6rem .85rem;
    text-align: left;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.policy-table td {
    padding: .55rem .85rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}
.policy-table tr:last-child td { border-bottom: none; }
.policy-table tr:nth-child(even) td { background: var(--light); }

/* Highlight/notice box */
.policy-highlight-box {
    background: rgba(34,70,32,.05);
    border: 1.5px solid rgba(34,70,32,.15);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

/* Contact card at end of each policy */
.policy-contact-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    font-size: .9rem;
    line-height: 1.9;
    margin-top: .5rem;
}

/* Related policy links strip */
.policy-related-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-top: 2.5rem;
    padding: 1rem 1.2rem;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .85rem;
}
.policy-related-links a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}
.policy-related-links a:hover { text-decoration: underline; }
