/* ==================== Shop ECOMMERCE HERO SECTION (compact, unified) ==================== */
    .ecommerce-hero-section {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    overflow: hidden;
    padding: var(--space-8) var(--space-4);
    }

    .ecommerce-hero-section::before,
    .ecommerce-hero-section::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='0.08' stroke-width='2'%3E%3Cpath d='M3 6h18l-2 13H5L3 6z'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Ccircle cx='8' cy='18' r='2'/%3E%3Ccircle cx='16' cy='18' r='2'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    animation: ecommerce-hero-float 6s ease-in-out infinite;
    opacity: 0.9;
    }

    .ecommerce-hero-section::before {
    top: 10%;
    left: 5%;
    }

    .ecommerce-hero-section::after {
    bottom: 15%;
    right: 8%;
    animation-delay: 2s;
    }

    @keyframes ecommerce-hero-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    }

    .ecommerce-hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    padding: var(--space-4);
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    .ecommerce-hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-7);
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }

    .ecommerce-hero-subheading {
    font-size: var(--font-size-base);
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
    line-height: var(--line-height-relaxed);
    color: var(--color-white);
    }

    /* Optional: Add an icon/image above the title (like Home page) */
    .ecommerce-hero-icon {
    display: block;
    max-width: 100%;
    height: auto;
    width: 80px;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
    opacity: 0.9;
    }

    @media (min-width: 768px) {
    .ecommerce-hero-section {
        min-height: 220px;
    }
    .ecommerce-hero-subheading {
        font-size: var(--font-size-lg);
    }
    .ecommerce-hero-icon {
        width: 100px;
    }
    }

    @media (max-width: 576px) {
    .ecommerce-hero-section {
        min-height: 180px;
        padding: var(--space-6) var(--space-4);
    }
    .ecommerce-hero-title {
        font-size: var(--font-size-2xl);
    }
    .ecommerce-hero-subheading {
        font-size: var(--font-size-sm);
    }
    .ecommerce-hero-icon {
        width: 60px;
        margin-bottom: var(--space-7);
    }
    }

    /* ==================== FEATURED SHOPS SECTION ==================== */
    .shops-section {
        padding: 80px 0;
        background: #f8f9fa;
    }

    .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 3rem;
        color: #1a1a1a;
    }

    .section-subtitle {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 4rem;
        color: #666;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .shops-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .shop-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: 1px solid #e0e0e0;
    }

    .shop-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .shop-banner {
        height: 150px;
        background: #0f4077;
        position: relative;
    }

    .shop-logo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 4px solid white;
        position: absolute;
        bottom: -40px;
        left: 2rem;
        background: white;
        overflow: hidden;
    }

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

    .shop-content {
        padding: 3rem 2rem 2rem;
    }

    .shop-name {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #1a1a1a;
    }

    .shop-type {
        display: inline-block;
        background: #4361ee;
        color: white;
        padding: 0.3rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .shop-location {
        display: flex;
        align-items: center;
        color: #666;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .shop-location i {
        margin-right: 0.5rem;
        color: #4361ee;
    }

    .shop-rating {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .rating-stars {
        color: #ffc107;
        margin-right: 0.5rem;
    }

    .rating-value {
        font-weight: 600;
        color: #1a1a1a;
    }

    .shop-description {
        color: #666;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .shop-actions {
        display: flex;
        gap: 1rem;
    }

    .btn-secondary {
        background: #f8f9fa;
        color: #4361ee;
        border: 2px solid #4361ee;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* ==================== CATEGORIES SECTION ==================== */
    .categories-section {
        padding: 80px 0;
        background: white;
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .category-card {
        background: white;
        padding: 2.5rem 2rem;
        border-radius: 15px;
        text-align: center;
        transition: all 0.3s ease;
        border: 2px solid #f0f0f0;
        position: relative;
        overflow: hidden;
    }

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: #0f4077;
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: #4361ee;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        background: #0f4077;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        color: white;
        font-size: 2rem;
    }

    .category-name {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #1a1a1a;
    }

    .category-description {
        color: #666;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .category-count {
        background: #f8f9fa;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        color: #4361ee;
        font-weight: 600;
    }

    /* ==================== FEATURED PRODUCTS SECTION ==================== */
    .products-section {
        padding: 80px 0;
        background: #f8f9fa;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .product-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .product-badge {
        position: absolute;
        top: 1rem;
        left: 1rem;
        background: #38b000;
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }

    .product-image {
        height: 200px;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

    .product-content {
        padding: 1.5rem;
    }

    .product-category {
        color: #4361ee;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
    }

    .product-name {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #1a1a1a;
        line-height: 1.4;
    }

    .product-shop {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .product-attributes {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .attribute-tag {
        background: #f8f9fa;
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.8rem;
        color: #666;
        border: 1px solid #e0e0e0;
    }

    .product-pricing {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .price-current {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1a1a1a;
    }

    .price-original {
        font-size: 1rem;
        color: #999;
        text-decoration: line-through;
        margin-left: 0.5rem;
    }

    .stock-status {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .in-stock {
        color: #38b000;
    }

    .low-stock {
        color: #ff6b35;
    }

    .product-actions {
        display: flex;
        gap: 0.5rem;
    }

    .btn-sm {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-success {
        background: #38b000;
        color: white;
        flex: 2;
    }

    .favorite-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .favorite-btn:hover {
        background: #fff5f5;
        border-color: #ff6b6b;
    }

    .favorite-btn.active {
        background: #ff6b6b;
        border-color: #ff6b6b;
        color: white;
    }

    /* ==================== HOW IT WORKS SECTION ==================== */
    .how-it-works {
        padding: 80px 0;
        background: white;
    }

    .steps-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        counter-reset: step-counter;
    }

    .step-card {
        text-align: center;
        padding: 2rem;
        position: relative;
    }

    .step-card::before {
        counter-increment: step-counter;
        content: counter(step-counter);
        width: 60px;
        height: 60px;
        background: #0f4077;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        color: white;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .step-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #1a1a1a;
    }

    .step-description {
        color: #666;
        line-height: 1.6;
    }

    /* ==================== CTA SECTION ==================== */
    .ecommerce-cta {
        padding: 80px 0;
        background: linear-gradient(135deg, #ff6b35, #4361ee);
        color: white;
        text-align: center;
    }

    .cta-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .cta-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-btn {
        padding: 1rem 2rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid white;
    }

    .cta-btn.primary {
        background: white;
        color: #4361ee;
    }

    .cta-btn.secondary {
        background: transparent;
        color: white;
    }

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    /* ==================== FILTERS SECTION ==================== */
    .filters-section {
        background: white;
        padding: 2rem 0;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .filters-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        align-items: end;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
    }

    .filter-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #333;
        font-size: 0.9rem;
    }

    .filter-select,
    .filter-input {
        padding: 0.75rem;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .filter-select:focus,
    .filter-input:focus {
        outline: none;
        border-color: #4361ee;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    }

    .filter-actions {
        display: flex;
        gap: 1rem;
    }

    .btn-filter {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        flex: 1;
    }

    .btn-apply {
        background: #4361ee;
        color: white;
    }

    .btn-reset {
        background: #f8f9fa;
        color: #666;
        border: 2px solid #e0e0e0;
    }

    .btn-filter:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* ==================== SCHOOL ASSOCIATIONS SECTION ==================== */
    .school-associations {
        /* background: #f8f9fa;
        padding: 2rem 0; */
        margin-bottom: 2rem;
    }

    .school-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        /* justify-content: center; */
    }

    .school-tag {
        background: white;
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        border: 2px solid #4361ee;
        color: #4361ee;
        font-weight: 600;
        font-size: 0.7rem;
        transition: all 0.3s ease;
    }

    .school-tag:hover {
        background: #4361ee;
        color: white;
        transform: translateY(-2px);
    }

    /* ==================== DYNAMIC CONTENT STYLES ==================== */
    .no-results {
        text-align: center;
        padding: 4rem 2rem;
        background: white;
        border-radius: 15px;
        margin: 2rem 0;
    }

    .no-results-icon {
        font-size: 4rem;
        color: #ccc;
        margin-bottom: 1rem;
    }

    .no-results-title {
        font-size: 1.5rem;
        color: #666;
        margin-bottom: 1rem;
    }

    /* Update existing styles for dynamic content */
    .shop-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

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

    /* Association badge */
    .association-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: #38b000;
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }

    /* ==================== MODAL STYLES ==================== */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 1rem;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-content {
        background: white;
        border-radius: 12px;
        max-width: 600px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .modal-header {
        padding: 0.25rem 0.5rem;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        border-radius: 12px 12px 0 0;
    }

    .modal-title {
        font-size: 1rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .modal-close:hover {
        background: #e9ecef;
        color: #333;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-product {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .modal-product-image {
        width: 150px;
        height: 150px;
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }

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

    .modal-product-info {
        flex: 1;
    }

    .modal-product-name {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #1a1a1a;
        line-height: 1.3;
    }

    .modal-product-category {
        color: #4361ee;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
    }

    .modal-product-shop {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .modal-product-price {
        font-size: 1.4rem;
        font-weight: 700;
        color: #4361ee;
        margin-bottom: 0.75rem;
    }

    .modal-stock-status {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .modal-stock-status.in-stock {
        background: #e8f5e8;
        color: #38b000;
    }

    .modal-stock-status.low-stock {
        background: #fff3e8;
        color: #ff6b35;
    }

    .modal-stock-status.out-of-stock {
        background: #ffe8e8;
        color: #dc3545;
    }

    .modal-attributes {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .modal-attribute-tag {
        background: #f8f9fa;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
        font-size: 0.8rem;
        color: #666;
        border: 1px solid #e0e0e0;
    }

    .modal-description {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        border-left: 3px solid #4361ee;
    }

    .modal-description h5 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .modal-description p {
        color: #666;
        line-height: 1.5;
        font-size: 0.9rem;
        margin: 0;
    }

    .quantity-selector {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        /* padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px; */
    }

    .quantity-label {
        font-weight: 600;
        color: #333;
        min-width: 80px;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        border: 1px solid #e0e0e0;
        background: white;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .quantity-btn:hover {
        background: #4361ee;
        color: white;
        border-color: #4361ee;
    }

    .quantity-input {
        width: 50px;
        height: 36px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        text-align: center;
        font-size: 1rem;
        font-weight: 600;
    }

    .quantity-input:focus {
        outline: none;
        border-color: #4361ee;
    }

    .modal-actions {
        display: flex;
        gap: 1rem;
    }

    .modal-actions .btn {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.78rem;
    }

    /* Responsive Design for Modal */
    @media (max-width: 768px) {
        .modal-content {
            max-width: 95%;
            margin: 1rem;
        }

        .modal-product {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 1rem;
        }

        .modal-product-image {
            width: 100%;
            max-width: 200px;
            margin: 0 auto;
        }

        .modal-product-name {
            font-size: 1.2rem;
        }

        .modal-product-price {
            font-size: 1.3rem;
        }

        .quantity-selector {
            flex-direction: inherit;
            align-items: anchor-center;
            gap: 0.75rem;
        }

        .quantity-controls {
            justify-content: center;
        }

        .modal-actions {
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .modal-body {
            padding: 1.25rem;
        }

        .modal-header {
            padding: 1rem 1.25rem;
        }

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

    /* ==================== RESPONSIVE DESIGN ==================== */
    @media (max-width: 768px) {
        .filters-container {
            grid-template-columns: 1fr;
        }

        .filter-actions {
            flex-direction: column;
        }

        .school-tags {
            justify-content: flex-start;
        }

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

        .hero-subtitle {
            font-size: 1.1rem;
        }

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

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

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

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

        .shop-actions {
            flex-direction: column;
        }

        .product-actions {
            flex-direction: column;
        }

        .cta-buttons {
            flex-direction: column;
            align-items: center;
        }

        .cta-btn {
            width: 100%;
            max-width: 300px;
        }
    }