/* ============================================
   🔷 rawaage PREMIUM DESIGN SYSTEM - MOBILE OPTIMIZED
   ============================================ */

/* === Design Tokens === */
:root {
    /* Brand Colors */
    --primary: #2B5876;
    --secondary: #D48231;
    --accent: #8BB8D1;
    
    /* UI Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Shadows - Premium Feel */
    --shadow-soft: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-md: 0 6px 12px -2px rgba(0,0,0,0.06);
    --shadow-hover: 0 16px 32px -8px rgba(43,88,118,0.12);
    --shadow-glow: 0 0 0 3px rgba(43, 88, 118, 0.08);
    
    /* Border Radii - Mobile */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    
    /* Spacing Scale - Mobile Optimized */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 0.75rem;  /* 12px */
    --space-lg: 1rem;     /* 16px */
    --space-xl: 1.5rem;   /* 24px */
    
    /* Typography - Mobile */
    --text-xs: 0.625rem;  /* 10px */
    --text-sm: 0.75rem;   /* 12px */
    --text-base: 0.875rem;/* 14px */
    --text-lg: 1rem;      /* 16px */
    --text-xl: 1.125rem;  /* 18px */
    --text-2xl: 1.25rem;  /* 20px */
    --text-3xl: 1.5rem;   /* 24px */
}

/* Desktop adjustments - Premium Experience */
@media (min-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 4rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.25rem;
        --text-2xl: 1.5rem;
        --text-3xl: 2rem;
        --radius-lg: 24px;
        --radius-md: 18px;
        --radius-sm: 14px;
    }
}

@media (min-width: 1024px) {
    :root {
        --space-xl: 6rem; /* More breathing room */
        --text-3xl: 2.5rem; /* Larger headings */
        --shadow-hover: 0 20px 40px -12px rgba(43,88,118,0.2); /* Deeper shadows */
    }
}

/* === Base Interaction Styles === */
.interactive-element {
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO BANNER SWIPER - Compact Mobile
   ============================================ */
.main-ads-swiper {
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin: -39px 0 var(--space-lg) 0;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .main-ads-swiper {
        height: 280px;
        border-radius: 0 0 50px 50px;
    }
}

@media (min-width: 1024px) {
    .main-ads-swiper {
        height: 380px;
    }
}

.main-ads-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* Banner Content */
.ad-banner {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    background: var(--gray-100);
}

.ad-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ad-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.ad-blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.9);
    transform: scale(1.2);
    opacity: 0.5;
}

.ad-banner picture {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
    justify-content: center;
    align-items: center;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Premium Glass Badge - Compact Mobile */
.supplier-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 200ms ease;
}

@media (min-width: 768px) {
    .supplier-badge {
        padding: 6px 16px 6px 6px;
        top: var(--space-md);
        left: var(--space-md);
    }
}

.supplier-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}

.supplier-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .supplier-badge img {
        width: 40px;
        height: 40px;
    }
}

.supplier-badge span {
    color: var(--gray-900);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .supplier-badge span {
        font-size: var(--text-base);
        gap: 6px;
    }
}

/* Verified checkmark */
.supplier-badge span::after {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
}

@media (min-width: 768px) {
    .supplier-badge span::after {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Swiper Pagination - Compact */
.main-ads-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    width: 6px;
    height: 6px;
    transition: all 0.2s ease;
}

.main-ads-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============================================
   FLASH SALES - Compact Mobile Cards
   ============================================ */
.platform-ads-section {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-sm);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-2xl);
        gap: 12px;
    }
}

.section-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-title::before {
        width: 4px;
        height: 32px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem; /* Grand titles */
        margin-bottom: var(--space-xl);
    }
    
    .section-title::before {
        height: 48px;
        width: 6px;
    }
    
    /* Premium Card Sizing on Desktop */
    .supplier-card-container {
        width: 280px;
        height: auto;
    }
    
    .supplier-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Enhanced Cover Image */
    .supplier-image-container {
        height: 130px;
        z-index: 10;
    }
    
    /* Adjusted Logo Position */
    .supplier-logo-wrapper {
        width: 80px;
        height: 80px;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 4px solid white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Content Area Adjustments */
    .supplier-content {
        padding: 0 1.5rem 1.25rem;
        padding-top: 3.75rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        position: relative;
        z-index: 1;
    }

    .supplier-name {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .supplier-meta {
        justify-content: center;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .supplier-tags {
        justify-content: center;
        margin-bottom: auto;
    }

    .supplier-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        justify-content: space-between;
    }

    .btn-visit {
        padding: 10px 24px;
        font-size: 0.875rem;
    }

    .rating-box {
        font-size: 0.875rem;
    }
    
    .platform-offers-swiper .swiper-slide {
        width: 240px !important;
    }

    /* Enlarge badges */
    .ad-badge-discount, .ad-badge-hot {
        font-size: 0.875rem;
        padding: 8px 16px;
    }
}

.platform-offers-swiper {
    padding: 6px;
    margin: -6px;
}

.platform-offers-swiper .swiper-slide {
    width: 130px !important;
    height: auto;
}

@media (min-width: 480px) {
    .platform-offers-swiper .swiper-slide {
        width: 150px !important;
    }
}

@media (min-width: 768px) {
    .platform-offers-swiper .swiper-slide {
        width: 200px !important;
    }
}

/* === Compact Flash Sale Cards === */
.ad-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.ad-card:active {
    transform: translateY(-2px) scale(0.98);
}

.ad-image {
    position: relative;
    width: 100%;
    padding-top: 85%;
    overflow: hidden;
    background-color: var(--gray-100);
}

@media (min-width: 768px) {
    .ad-image {
        padding-top: 100%;
    }
}

.ad-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-card:hover .ad-image img {
    transform: scale(1.06);
}

/* === Compact Badges === */
.ad-badge-discount {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--secondary);
    color: white;
    font-weight: 900;
    font-size: 0.625rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(212, 130, 49, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2px;
}

@media (min-width: 768px) {
    .ad-badge-discount {
        font-size: var(--text-sm);
        padding: 6px 12px;
        top: 10px;
        left: 10px;
    }
}

.ad-badge-hot {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.625rem;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .ad-badge-hot {
        font-size: var(--text-xs);
        padding: 6px 10px;
        top: 10px;
        right: 10px;
    }
}

.ad-badge-hot i {
    animation: flame-pulse 1.5s ease-in-out infinite;
}

@keyframes flame-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.ad-info {
    padding: var(--space-sm);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 768px) {
    .ad-info {
        padding: var(--space-md);
        gap: var(--space-xs);
    }
}

.ad-product-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .ad-product-name {
        font-size: var(--text-base);
        line-height: 1.4;
        margin-bottom: var(--space-xs);
    }
}

.ad-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: auto;
}

.final-price {
    font-size: var(--text-base);
    font-weight: 900;
    color: var(--primary);
}

@media (min-width: 768px) {
    .final-price {
        font-size: var(--text-xl);
    }
}

.original-price {
    font-size: 0.625rem;
    text-decoration: line-through;
    color: var(--gray-600);
    opacity: 0.7;
}

@media (min-width: 768px) {
    .original-price {
        font-size: var(--text-sm);
    }
}

/* Swiper Scrollbar */
.platform-offers-swiper .swiper-scrollbar {
    background: var(--gray-200);
    border-radius: var(--radius-full);
    height: 3px;
}

.platform-offers-swiper .swiper-scrollbar-drag {
    background: var(--primary);
    border-radius: var(--radius-full);
}


/* ============================================
   SEARCH & CATEGORIES - Compact Mobile
   ============================================ */
.search-section-wrapper {
    padding: var(--space-md) var(--space-sm);
    background: linear-gradient(to bottom, white, var(--gray-50));
}

@media (min-width: 768px) {
    .search-section-wrapper {
        padding: var(--space-lg) var(--space-sm);
    }
}

.search-input-group {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 768px) {
    .search-icon {
        right: var(--space-md);
        font-size: var(--text-lg);
    }
}

#supplierSearchInput {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: white;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

@media (min-width: 768px) {
    #supplierSearchInput {
        padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-md);
        border-radius: var(--radius-lg);
        font-size: var(--text-base);
    }
}

#supplierSearchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow), 0 4px 12px -2px rgba(43, 88, 118, 0.12);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    #supplierSearchInput:focus {
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow), 0 8px 20px -4px rgba(43, 88, 118, 0.15);
    }
}

@media (min-width: 1024px) {
    .search-input-group {
        max-width: 800px;
    }

    #supplierSearchInput {
        padding: 1.25rem 4rem 1.25rem 2rem;
        font-size: 1.125rem;
    }
    
    .main-ads-swiper {
        height: 480px; /* Grand Hero Height */
        border-radius: 0 0 60px 60px;
    }
}

#supplierSearchInput::placeholder {
    color: var(--gray-600);
    opacity: 0.7;
}

/* === Compact Category Pills === */
.category-nav-wrapper {
    padding: 0 0 var(--space-md) 0;
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .category-nav-wrapper {
        padding: 0 0 var(--space-lg) 0;
    }
}

.category-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: var(--space-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 768px) {
    .category-scroll-container {
        gap: 12px;
    }
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-800);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-xs);
    white-space: nowrap;
    cursor: pointer;
    transition: all 150ms ease-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    min-height: 32px;
}

@media (min-width: 768px) {
    .category-pill {
        gap: 8px;
        padding: 12px 20px;
        font-size: var(--text-sm);
        min-height: 40px;
    }
}

.category-pill i {
    font-size: 11px;
    transition: transform 150ms ease;
}

@media (min-width: 768px) {
    .category-pill i {
        font-size: 14px;
    }
}

.category-pill:hover {
    background: rgba(43, 88, 118, 0.05);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(43, 88, 118, 0.25);
}

@media (min-width: 768px) {
    .category-pill.active {
        box-shadow: 0 4px 12px rgba(43, 88, 118, 0.3);
    }
}

.category-pill.active i {
    transform: rotate(360deg);
}

/* ============================================
   SUPPLIER CARDS - Compact Mobile Grid
   ============================================ */
.supplier-grid {
    padding: var(--space-md) var(--space-sm);
    padding-top: 16px;
}

@media (min-width: 768px) {
    .supplier-grid {
        padding: var(--space-lg) var(--space-sm);
        padding-top: 20px;
    }
}

.supplier-marquee-section {
    overflow: visible !important;
    padding-top: 16px;
}

@media (min-width: 768px) {
    .supplier-marquee-section {
        padding-top: 20px;
    }
}

.supplier-card-container {
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .supplier-card-container {
        margin-bottom: var(--space-lg);
    }
}

.supplier-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .supplier-card {
        border-radius: var(--radius-lg);
        transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.supplier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    z-index: 10;
}

@media (min-width: 768px) {
    .supplier-card:hover {
        transform: translateY(-8px);
    }
}

.supplier-image-container {
    position: relative;
    padding-top: 50%;
    overflow: hidden;
    background: var(--gray-100);
}

@media (min-width: 768px) {
    .supplier-image-container {
        padding-top: 60%;
    }
}

.supplier-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

@media (min-width: 768px) {
    .supplier-image {
        transition: transform 500ms ease;
    }
}

.supplier-card:hover .supplier-image {
    transform: scale(1.05);
}

.supplier-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .supplier-content {
        padding: var(--space-lg);
    }
}

.supplier-name {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
    .supplier-name {
        font-size: var(--text-xl);
        margin-bottom: var(--space-sm);
    }
}

.supplier-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .supplier-tags {
        gap: 8px;
        margin-bottom: var(--space-md);
    }
}

.supplier-tag {
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .supplier-tag {
        padding: 6px 12px;
        font-size: var(--text-xs);
    }
}

.supplier-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .supplier-footer {
        padding-top: var(--space-md);
    }
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--gray-900);
    font-size: var(--text-sm);
}

@media (min-width: 768px) {
    .rating-box {
        gap: 6px;
        font-size: var(--text-base);
    }
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 150ms ease;
    min-height: 32px;
}

@media (min-width: 768px) {
    .btn-visit {
        gap: 8px;
        padding: 10px 20px;
        border-radius: var(--radius-md);
        font-size: var(--text-sm);
        min-height: 40px;
    }
}

.btn-visit:hover {
    background: var(--gray-900);
    transform: translateX(-3px);
}

@media (min-width: 768px) {
    .btn-visit:hover {
        transform: translateX(-4px);
    }
}

.btn-visit i {
    transition: transform 150ms ease;
}

.btn-visit:hover i {
    transform: translateX(-2px);
}

/* ============================================
   PRODUCING FAMILIES - Compact Mobile
   ============================================ */
.producing-families-wrapper {
    background: linear-gradient(135deg, rgba(212, 130, 49, 0.03) 0%, rgba(139, 184, 209, 0.05) 100%);
    padding: var(--space-lg) 0;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
}

@media (min-width: 768px) {
    .producing-families-wrapper {
        padding: var(--space-xl) 0;
        margin: var(--space-lg) 0;
        border-radius: var(--radius-lg);
    }
}

.suppliers-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--gray-200);
}

@media (min-width: 768px) {
    .suppliers-scroll-container {
        gap: 20px;
        padding: var(--space-md);
    }
}

.supplier-card-premium {
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: var(--radius-md);
    min-width: 180px;
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 200ms ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .supplier-card-premium {
        border-radius: var(--radius-lg);
        min-width: 240px;
        padding: var(--space-lg);
    }
}

.supplier-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(43, 88, 118, 0.25);
}

@media (min-width: 768px) {
    .supplier-card-premium:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px -10px rgba(43, 88, 118, 0.3);
    }
}

.home-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

@media (min-width: 768px) {
    .home-badge {
        top: var(--space-md);
        right: var(--space-md);
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.supplier-logo-container {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-sm);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .supplier-logo-container {
        width: 80px;
        height: 80px;
        margin: 0 auto var(--space-md);
        border: 3px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
}

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

.supplier-info-glass {
    text-align: center;
    color: white;
}

.supplier-name-premium {
    font-size: var(--text-base);
    font-weight: 800;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .supplier-name-premium {
        font-size: var(--text-lg);
        margin-bottom: var(--space-xs);
    }
}

.home-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
    .home-label {
        font-size: var(--text-sm);
        margin-bottom: var(--space-sm);
    }
}

.supplier-stats-mini {
    justify-content: center;
}

.stat-mini {
    font-size: 0.625rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .stat-mini {
        font-size: var(--text-xs);
    }
}



/* ============================================
   BUSINESS CTA - Landing Identity (Enhanced)
   ============================================ */
.business-join-cta {
    /* Landing Page Light Gradient Section Style */
    background: linear-gradient(to bottom, #ffffff 0%, rgba(239, 246, 255, 0.5) 100%);
    border-top: 1px solid rgba(139, 184, 209, 0.15);
    border-bottom: 1px solid rgba(139, 184, 209, 0.15);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 !important;
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .business-join-cta {
        padding: 4rem 0 !important;
        margin: var(--space-xl) 0;
    }
}

/* Landing-style decorative background pattern */
.business-join-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#2B5876 0.5px, transparent 0.5px), radial-gradient(#2B5876 0.5px, #ffffff 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.03;
    z-index: 0;
}

.business-join-cta .container {
    position: relative;
    z-index: 1;
}

.business-join-cta h2 {
    font-size: 1.5rem; /* Mobile first */
    font-weight: 900; /* Black weight like landing */
    color: #2B5876; /* Landing Navy */
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .business-join-cta h2 {
        font-size: 2.5rem;
        margin-bottom: var(--space-lg);
    }
}

.business-join-cta p {
    font-size: var(--text-base);
    color: #4b5563; /* Landing Muted Text */
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .business-join-cta p {
        font-size: 1.125rem;
        margin: 0 auto 3rem;
    }
}

/* Landing Primary Button Style */
.business-join-cta a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    /* Landing Orange Gradient */
    background: linear-gradient(135deg, #D48231 0%, #E89A4E 100%);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px; /* Pill shape */
    /* Landing Shadow */
    box-shadow: 0 10px 30px rgba(212, 130, 49, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

@media (min-width: 768px) {
    .business-join-cta a {
        padding: 16px 48px;
        font-size: 1.125rem;
        box-shadow: 0 15px 40px rgba(212, 130, 49, 0.3);
    }
}

.business-join-cta a:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(212, 130, 49, 0.4);
    filter: brightness(1.05);
}

.business-join-cta a i {
    transition: transform 200ms ease;
}

.business-join-cta a:hover i {
    transform: translateX(-4px);
}

/* ============================================
   SPOTLIGHT TOUR - Premium Experience
   ============================================ */
.spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    pointer-events: none;
    clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%, var(--sx) var(--sy), var(--ex) var(--sy), var(--ex) var(--ey), var(--sx) var(--ey), var(--sx) var(--sy));
}

.spotlight-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.tour-tooltip {
    position: absolute;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    width: 320px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.tour-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: inherit;
    border: inherit;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg);
}

.tour-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    gap: var(--space-sm);
}

.tour-dot-container {
    display: flex;
    gap: 6px;
}

.tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 200ms ease;
}

.tour-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE & MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
    .search-section-wrapper {
        padding: var(--space-md) var(--space-sm);
    }
    
    #supplierSearchInput {
        padding: 12px var(--space-lg) 12px 12px;
        font-size: var(--text-sm);
    }
    
    .category-pill {
        padding: 10px 16px;
        font-size: var(--text-xs);
    }
    
    .supplier-card {
        border-radius: var(--radius-md);
    }
    
    .supplier-content {
        padding: var(--space-md);
    }
    
    .business-join-cta h2 {
        font-size: var(--text-2xl);
    }
    
    .business-join-cta a {
        padding: 14px 28px;
        font-size: var(--text-base);
    }
}

/* ============================================
   VIEW MODE TOGGLE - Premium Glassmorphism
   ============================================ */
.view-mode-toggle {
    display: flex;
    justify-content: center;
    background: var(--gray-100);
    padding: 6px;
    border-radius: var(--radius-lg);
    max-width: 320px;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: scale(1.02);
}

.toggle-btn i {
    font-size: 16px;
}

/* ============================================
   PRODUCTS VIEW - Premium Grid
   ============================================ */
.hidden-view {
    display: none !important;
}

.products-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .products-grid-premium {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

.product-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.product-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: var(--text-xs);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(212, 130, 49, 0.4);
}

.product-image-box {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--gray-50);
    cursor: pointer;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.product-overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    transition: bottom 300ms ease;
    z-index: 5;
}

.product-card-premium:hover .product-overlay-actions {
    bottom: 0;
}

.btn-action-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-action-mini:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-info-box {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-supplier-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    cursor: pointer;
}

.product-supplier-mini img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.product-supplier-mini span {
    font-size: var(--text-xs);
    color: var(--gray-600);
    font-weight: 500;
}

.product-name-premium {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-name-premium {
        font-size: var(--text-base);
    }
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: var(--text-base);
    font-weight: 900;
    color: var(--primary);
}

.old-price {
    font-size: var(--text-xs);
    color: var(--gray-600);
    text-decoration: line-through;
    opacity: 0.6;
}

/* ============================================
   EMPTY STATES & UTILITIES
   ============================================ */
.no-results-premium {
    padding: 3rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
    color: var(--gray-600);
    animation: fadeIn 0.5s ease-out;
}

.no-results-premium i {
    color: var(--gray-200);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PRODUCT OPTIONS OVERLAY
   ============================================ */
.product-options-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-options-overlay.active {
    transform: translateY(0);
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 0.5rem;
}

.options-header span {
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--gray-800);
}

.close-options {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
}

.options-body {
    flex-grow: 1;
    overflow-y: auto;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-chip {
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.option-chip:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.option-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.price-tag {
    font-size: 0.65rem;
    opacity: 0.8;
}

.options-footer {
    padding-top: 1rem;
}

.confirm-options-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.confirm-options-btn:active {
    transform: scale(0.98);
}
