:root {
    --primary: #d946ef;
    --primary-dark: #c026d3;
    --dark: #111827;
    --light: #f9fafb;
    --accent: #10b981;
    --gray-muted: #6b7280;
    --border-color: #e5e7eb;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--light); 
    color: var(--dark); 
    padding-bottom: 60px; 
    overflow-x: hidden;
}

/* NAVBAR DESIGN */
header { 
    background: white; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.header-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px;
    position: relative;
}

h1 { 
    font-size: 22px; 
    color: var(--dark); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 800;
    letter-spacing: -0.5px;
}

h1 span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.search-wrapper {
    position: relative;
}

.search-bar { 
    padding: 10px 16px; 
    width: 280px; 
    border: 1px solid var(--border-color); 
    border-radius: 30px; 
    font-size: 14px; 
    outline: none; 
    transition: all 0.2s;
    background: #f3f4f6;
}

.search-bar:focus { 
    border-color: var(--primary); 
    background: white;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.15);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* HERO BANNER SLIDER */
.hero-slider {
    max-width: 1400px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* CAROUSEL CONTROLS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 35px; }
.slider-btn.next { right: 35px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* CONTAINER & FILTER MANAGEMENT */
.container { 
    max-width: 1400px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.controls { 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px; 
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

select { 
    padding: 10px 16px; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    background: white; 
    font-size: 14px; 
    font-weight: 500;
    cursor: pointer; 
    outline: none; 
    transition: border 0.2s;
}

select:focus { 
    border-color: var(--primary); 
}

/* PRODUCT RETAIL GRID */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
}

.product-card { 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); 
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid var(--border-color); 
}

.product-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); 
}

.img-container { 
    height: 340px; 
    background: #f9fafb; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    position: relative; 
}

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

.badge { 
    position: absolute; 
    top: 14px; 
    right: 14px; 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(8px); 
    color: var(--dark); 
    padding: 5px 12px; 
    font-size: 11px; 
    border-radius: 20px; 
    font-weight: 700; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    text-transform: uppercase;
}

.product-info { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    gap: 12px; 
}

.product-title { 
    font-size: 15px; 
    font-weight: 600; 
    line-height: 1.4; 
    color: var(--dark); 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    height: 42px; 
}

.product-meta { 
    font-size: 11px; 
    color: var(--gray-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    margin-bottom: 2px;
}

.price-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 10px;
}

.price { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--dark); 
}

.buy-btn { 
    background: var(--dark); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 14px;
    cursor: pointer; 
    transition: all 0.2s; 
}

.buy-btn:hover { 
    background: var(--primary);
    transform: scale(1.02);
}

.status-msg { 
    text-align: center; 
    padding: 80px 40px; 
    font-size: 16px; 
    color: var(--gray-muted); 
    background: white; 
    border-radius: 20px; 
    grid-column: 1 / -1; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.01); 
    border: 1px solid var(--border-color);
}

/* RESPONSIVE DISPLAY LAYOUT RE-RULES */
@media (max-width: 968px) {
    .slider-container { height: 300px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid var(--border-color);
        gap: 20px;
        z-index: 999;
    }
    
    .nav-menu.active { display: flex; }
    .nav-links { flex-direction: column; gap: 16px; width: 100%; }
    .search-bar { width: 100%; }
    .slider-container { height: 200px; }
    .slider-btn { width: 36px; height: 36px; font-size: 14px; }
    .slider-btn.prev { left: 15px; }
    .slider-btn.next { right: 15px; }
    .controls { flex-direction: column; align-items: stretch; }
    .filter-group { flex-direction: column; }
}
/* TWO-COLUMN DESIGN FRAMEWORK STYLES */
.main-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.sidebar-filters {
    width: 280px;
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}

.sidebar-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--light);
    padding-bottom: 8px;
}

.category-list-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list-links li {
    margin-bottom: 6px;
}

.category-list-links a {
    text-decoration: none;
    color: var(--gray-muted);
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.category-list-links a:hover,
.category-list-links a.active {
    color: var(--primary);
    background: rgba(217, 70, 239, 0.06);
    font-weight: 600;
}

.catalog-content {
    flex-grow: 1;
}

/* PAGINATION HOUSING WRAPPER INTERFACES */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.page-btn {
    background: var(--dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    transform: translateY(-1px);
}

.page-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* RESPONSIVE LAYOUT CONSTRAINTS AND MOBILE ACCORDION DRAWER */
@media (max-width: 968px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar-filters {
        width: 100%;
        position: static;
        padding: 15px;
        background: #fdf4ff; /* Adds a premium soft pink tint frame background for mobile */
        border: 1px solid #fae8ff;
    }

    .sidebar-section h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
        font-size: 14px;
    }

    /* Injects a dynamic expanding pointer chevron arrow on mobile screens */
    .sidebar-section h3::after {
        content: '▼';
        font-size: 11px;
        color: var(--primary);
        transition: transform 0.3s ease;
    }

    .sidebar-section.open h3::after {
        transform: rotate(180deg);
    }

    /* Collapses the massive vertical stack behind a hidden tray loop by default */
    .category-list-links {
        display: none;
        max-height: 300px;
        overflow-y: auto;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #f3e8ff;
        list-style: none;
        padding-left: 0;
    }

    /* Drops open smoothly when tapped active */
    .sidebar-section.open .category-list-links {
        display: block;
    }

    .category-list-links li {
        margin-bottom: 4px;
    }

    .category-list-links a {
        padding: 10px 14px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
}

/* RESPONSIVE CIRCULAR MENU ICON STYLES */
.category-icon-nav-container {
    width: 100%;
    background-color: #ffffff;
    padding: 20px 10px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.icon-grid-wrapper {
    max-width: 1400px;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
}

.icon-grid-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-decoration: none;
    width: 90px;
    transition: transform 0.2s ease;
}

.icon-grid-item:hover {
    transform: translateY(-2px);
}

.icon-circle-frame {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.icon-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-label-text {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.icon-grid-item:hover .icon-label-text {
    color: #d946ef;
}

/* SMARTPHONE RESPONSIVE 4x3 RE-GRIDDING INTERFACE */
@media (max-width: 768px) {
    .category-icon-nav-container {
        padding: 15px 8px;
    }
    
    .icon-grid-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px 8px;
        justify-items: center;
    }

    .icon-grid-item {
        width: 100%;
        max-width: 75px;
    }

    .icon-circle-frame {
        width: 55px;
        height: 55px;
        margin-bottom: 4px;
    }

    .icon-label-text {
        font-size: 9.5px;
        letter-spacing: 0.2px;
    }
}
/* FEATURE MARKETING GRID STYLES */
.promo-banner-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.promo-card {
    flex: 1;
    background-color: #0b5394; /* Deep, corporate marketing blue */
    color: #ffffff;
    padding: 30px 24px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.promo-card h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 0;
}

/* Sourcing Left Card Typography */
.promo-subtext {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.promo-actiontext {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

/* Coupon Right Card Typography */
.coupon-tiers-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 450px;
}

.coupon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.coupon-discount {
    color: #ffff00; /* Neon wholesale highlight yellow text formatting */
    font-size: 16px;
    min-width: 65px;
    text-align: right;
}

.coupon-criteria {
    text-align: left;
    color: #ffffff;
}

/* Responsive Collapse Rules for Tablets & Mobile Devices */
@media (max-width: 768px) {
    .promo-banner-grid {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .promo-card {
        padding: 24px 16px;
    }
    
    .promo-card h2 {
        font-size: 20px;
    }
    
    .promo-subtext, .promo-actiontext {
        font-size: 14px;
    }
    
    .coupon-row {
        font-size: 12px;
    }
    
    .coupon-discount {
        font-size: 13px;
        min-width: 55px;
    }
}
