﻿/* ==================== SHOP PAGE â€” MATCHES INDEX PAGE BRAND ==================== */
:root {
    --brand-green: #03533B;
    --brand-gold: #F8BB01;
    --brand-green-light: #0a6e4f;
    --brand-green-dark: #023a29;
    --brand-green-pale: #e8f2ee;
    --brand-green-mist: #f4f9f7;
    --brand-gold-light: #ffc933;
    --brand-gold-dark: #d9a300;
    --brand-gold-pale: #fef6df;

    --gl-cream: #fbfbfa;
    --gl-warm: #f7f6f2;
    --gl-white: #ffffff;
    --gl-text1: #1a221e;
    --gl-text2: #2d3b34;
    --gl-text3: #63776c;
    --gl-border: #e5ede8;

    --gl-radius: 12px;
    --gl-radius-lg: 20px;
    --gl-shadow: 0 2px 14px rgba(3, 83, 59, 0.08);
    --gl-shadow-hover: 0 20px 40px rgba(3, 83, 59, 0.16);
}
  .toast-icon i {
        font-family: "Font Awesome 6 Free", "FontAwesome" !important;
        font-weight: 900 !important;
        font-style: normal !important;
        display: inline-block !important;
        color: var(--brand-green-dark) !important;
        font-size: 1.2rem !important;
    }
    .toast-success .toast-icon i::before { content: "\f058" !important; }
    .toast-error .toast-icon i::before { content: "\f06a" !important; }
    .toast-warning .toast-icon i::before { content: "\f071" !important; }
    .toast-info .toast-icon i::before { content: "\f05a" !important; }
    .toast-close i::before { content: "\f00d" !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }

.ayur-shop-page {
    background: var(--gl-cream);
    min-height: 90vh;
    padding-bottom: 5rem;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    color: var(--gl-text1);
}

/* ==================== HERO BANNER ==================== */
.shop-hero-banner {
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 50%, var(--brand-green-light) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shop-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shop-banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.shop-banner-content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--brand-gold);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* ==================== MAIN LAYOUT ==================== */
.shop-main-layout {
    max-width: 1360px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ==================== SIDEBAR ==================== */
.shop-sidebar {
    position: sticky;
    top: 90px;
}

.shop-sidebar .sidebar-box {
    background: var(--gl-white);
    border-radius: var(--gl-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gl-border);
    box-shadow: 0 4px 18px rgba(3, 83, 59, 0.04);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.shop-sidebar .sidebar-box:hover {
    box-shadow: 0 10px 30px rgba(3, 83, 59, 0.08);
    border-color: var(--brand-green-pale);
}

.shop-sidebar h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-green-pale);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-filter-list,
.price-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-filter-list li,
.price-filter-list li {
    margin-bottom: 6px;
}

.cat-filter-list a,
.price-filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--gl-text2);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.cat-filter-list a:hover,
.price-filter-list a:hover {
    background: var(--brand-green-mist);
    color: var(--brand-green);
    border-color: var(--brand-green-pale);
    padding-left: 16px;
}

.cat-filter-list li.active a,
.price-filter-list li.active a {
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 600;
    border-color: var(--brand-green);
    box-shadow: 0 4px 12px rgba(3, 83, 59, 0.22);
}

.cat-filter-list li.active a .badge {
    background: rgba(248, 187, 1, 0.25);
    color: var(--brand-gold-light);
}

.cat-filter-list .badge {
    background: var(--brand-green-pale);
    color: var(--brand-green);
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    transition: all 0.22s ease;
}

/* ==================== SIDEBAR PROMO CARD ==================== */
.sidebar-promo-card {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #fff;
    border-radius: var(--gl-radius-lg);
    padding: 1.75rem 1.35rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(3, 83, 59, 0.28);
    position: relative;
    overflow: hidden;
}

.sidebar-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(248, 187, 1, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.promo-icon {
    font-size: 32px;
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.sidebar-promo-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.sidebar-promo-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.btn-call-sidebar {
    background: var(--brand-gold);
    color: var(--brand-green);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(248, 187, 1, 0.35);
    position: relative;
    z-index: 1;
}

.btn-call-sidebar:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

/* ==================== PRODUCTS COLUMN ==================== */
.shop-products-column {
    min-width: 0;
}

/* ==================== TOOLBAR ==================== */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gl-white);
    border-radius: var(--gl-radius-lg);
    padding: 1rem 1.5rem;
    border: 1px solid var(--gl-border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(3, 83, 59, 0.04);
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-count {
    font-size: 0.88rem;
    color: var(--gl-text3);
}

.toolbar-count strong {
    color: var(--brand-green);
    font-weight: 700;
}

.toolbar-count em {
    color: var(--brand-green);
    font-style: normal;
    font-weight: 600;
}

.toolbar-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gl-text2);
}

.toolbar-sort label {
    font-weight: 600;
    color: var(--gl-text3);
    white-space: nowrap;
}

.toolbar-sort select {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--gl-border);
    font-family: inherit;
    font-size: 0.84rem;
    background: var(--gl-white);
    outline: none;
    color: var(--gl-text1);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.toolbar-sort select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(248, 187, 1, 0.15);
}

/* ==================== PRODUCT GRID ==================== */
.ayur-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.75rem;
}

.ayur-prod-card {
    background: var(--gl-white);
    border-radius: var(--gl-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gl-border);
    box-shadow: 0 4px 18px rgba(3, 83, 59, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    position: relative;
    min-width: 0;
}

.ayur-prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gl-shadow-hover);
    border-color: var(--brand-green);
}

.prod-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafaf8;
}

.prod-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.prod-img-wrap .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ayur-prod-card:hover .hover-img {
    opacity: 1;
}

.ayur-prod-card:hover .main-img {
    transform: scale(1.06);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-gold);
    color: var(--brand-green);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(248, 187, 1, 0.4);
    z-index: 2;
    letter-spacing: 0.3px;
}

.prod-info-wrap {
    padding: 1.25rem 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.prod-cat-tag a {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-green);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.prod-cat-tag a:hover {
    color: var(--brand-gold-dark);
}

/* ===== Product Weight Pill ===== */
.prod-weight-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--brand-green-mist);
    color: var(--brand-green);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid var(--brand-green-pale);
    margin: 6px 0 8px;
    align-self: flex-start;
}

.prod-weight-row i {
    font-size: 0.75rem;
    color: var(--brand-gold-dark);
}

.prod-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 6px 0 8px;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-title a {
    color: var(--gl-text1);
    text-decoration: none;
    transition: color 0.2s;
}

.prod-title a:hover {
    color: var(--brand-green);
}

.prod-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.78rem;
}

.prod-rating .stars {
    color: var(--brand-gold);
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.prod-rating small {
    color: var(--gl-text3);
    font-weight: 500;
}

.prod-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-green);
}

.mrp-val {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.prod-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add-cart {
    width: 100%;
    background: var(--brand-green-pale);
    color: var(--brand-green);
    border: 1px solid var(--gl-border);
    padding: 10px 12px;
    border-radius: var(--gl-radius);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-add-cart:hover {
    background: var(--brand-green);
    color: #ffffff;
    border-color: var(--brand-green);
    box-shadow: 0 6px 18px rgba(3, 83, 59, 0.25);
}

.btn-buy-direct {
    background: var(--brand-gold);
    color: var(--brand-green);
    padding: 10px 16px;
    border-radius: var(--gl-radius);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-buy-direct:hover {
    background: var(--brand-gold-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(248, 187, 1, 0.35);
}

/* ==================== NO PRODUCTS ==================== */
.no-products-box {
    background: var(--gl-white);
    border-radius: var(--gl-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid var(--gl-border);
    box-shadow: 0 4px 18px rgba(3, 83, 59, 0.04);
}

.no-products-box i {
    font-size: 56px;
    color: var(--brand-green-pale);
    margin-bottom: 1.25rem;
    display: block;
}

.no-products-box h3 {
    font-size: 1.4rem;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.no-products-box p {
    color: var(--gl-text3);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

.btn-reset-filters {
    background: var(--brand-gold);
    color: var(--brand-green);
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px rgba(248, 187, 1, 0.3);
}

.btn-reset-filters:hover {
    background: var(--brand-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(3, 83, 59, 0.3);
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

@media (max-width: 480px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

.toast {
    background: #ffffff;
    border-radius: var(--gl-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid var(--brand-green);
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

.toast.toast-hiding {
    animation: toastSlideOut 0.35s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}

.toast.toast-error   { border-left-color: #DC2626; }
.toast.toast-success { border-left-color: var(--brand-green); }
.toast.toast-warning { border-left-color: var(--brand-gold); }

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: var(--brand-green-pale); color: var(--brand-green); }
.toast-error   .toast-icon { background: #fee2e2; color: #DC2626; }
.toast-warning .toast-icon { background: var(--brand-gold-pale); color: var(--brand-gold-dark); }

.toast-content { flex: 1; min-width: 0; }

.toast-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gl-text1);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--gl-text2);
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gl-text3);
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--gl-warm);
    color: var(--gl-text1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--brand-green);
    border-radius: 0 0 0 var(--gl-radius);
    animation: toastProgress 4s linear forwards;
}

.toast-error   .toast-progress { background: #DC2626; }
.toast-warning .toast-progress { background: var(--brand-gold); }

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ==================== RESPONSIVE ==================== */

/* Tablet â€” collapse sidebar */
@media (max-width: 991px) {
    .shop-main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
    }

    .shop-sidebar {
        position: static;
    }

    .shop-sidebar .sidebar-box {
        margin-bottom: 1rem;
    }

    .sidebar-promo-card {
        display: none;
    }
}

/* Small tablet â€” compact cards */
@media (max-width: 768px) {
    .shop-hero-banner {
        padding: 2.5rem 1rem 2rem;
    }

    .shop-main-layout {
        margin-top: 1.75rem;
        padding: 0 1rem;
    }

    .shop-toolbar {
        padding: 0.9rem 1.15rem;
    }

    .ayur-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.15rem;
    }

    .prod-info-wrap {
        padding: 1rem 0.9rem 1.1rem;
    }

    .prod-title {
        font-size: 0.88rem;
    }

    .price-val {
        font-size: 1.05rem;
    }
}

/* Mobile â€” 2 columns */
@media (max-width: 640px) {
    .shop-hero-banner {
        padding: 2rem 0.9rem 1.75rem;
    }

    .shop-main-layout {
        margin-top: 1.25rem;
        padding: 0 0.75rem;
        gap: 1.5rem;
    }

    .shop-sidebar .sidebar-box {
        padding: 1.15rem;
        border-radius: var(--gl-radius);
    }

    .shop-sidebar h3 {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .cat-filter-list a,
    .price-filter-list a {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .shop-toolbar {
        padding: 0.85rem 1rem;
        border-radius: var(--gl-radius);
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .toolbar-count {
        font-size: 0.82rem;
        text-align: center;
    }

    .toolbar-sort {
        justify-content: space-between;
        width: 100%;
    }

    .toolbar-sort select {
        flex: 1;
    }

    .ayur-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .ayur-prod-card {
        border-radius: var(--gl-radius);
    }

    .prod-info-wrap {
        padding: 0.85rem 0.75rem 0.95rem;
    }

    .prod-cat-tag a {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .prod-weight-row {
        font-size: 0.62rem;
        padding: 2px 7px;
        gap: 3px;
        margin: 5px 0 6px;
    }

    .prod-weight-row i {
        font-size: 0.65rem;
    }

    .prod-title {
        font-size: 0.78rem;
        min-height: 2.4em;
        margin: 5px 0 6px;
    }

    .prod-rating {
        font-size: 0.68rem;
        margin-bottom: 8px;
    }

    .prod-rating .stars {
        font-size: 0.72rem;
    }

    .price-val {
        font-size: 0.95rem;
    }

    .mrp-val {
        font-size: 0.7rem;
    }

    .prod-price-row {
        margin-bottom: 0.75rem;
    }

    .prod-actions-row {
        gap: 5px;
    }

    .btn-add-cart,
    .btn-buy-direct {
        padding: 8px 6px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .btn-add-cart i {
        font-size: 0.75rem;
    }

    .discount-badge {
        font-size: 0.6rem;
        padding: 3px 7px;
        top: 8px;
        right: 8px;
    }

    .no-products-box {
        padding: 2.5rem 1.25rem;
    }

    .no-products-box i {
        font-size: 42px;
    }

    .no-products-box h3 {
        font-size: 1.1rem;
    }

    .no-products-box p {
        font-size: 0.82rem;
    }

    .btn-reset-filters {
        padding: 10px 20px;
        font-size: 0.82rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .shop-main-layout {
        padding: 0 0.55rem;
    }

    .ayur-product-grid {
        gap: 0.65rem;
    }

    .prod-info-wrap {
        padding: 0.7rem 0.6rem 0.85rem;
    }

    .prod-title {
        font-size: 0.72rem;
    }

    .price-val {
        font-size: 0.85rem;
    }

    .btn-add-cart,
    .btn-buy-direct {
        padding: 7px 5px;
        font-size: 0.64rem;
    }
}
