/* --- GLOBAL UTILS --- */
.section-padding { padding: 100px 20px; }
.hero-container { max-width: 1300px; margin: 0 auto; width: 100%; }

/* --- PAGE HERO BANNER --- */
.page-hero {
    position: relative;
    padding: 180px 20px 140px;
    background: linear-gradient(135deg, #0b2239 0%, #0ca395 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.2;
}
.relative-z { position: relative; z-index: 2; }
.page-hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Angled Divider */
.custom-shape-divider-bottom {
    position: absolute; bottom: -1px; left: 0; width: 100%;
    overflow: hidden; line-height: 0; z-index: 3;
}
.custom-shape-divider-bottom svg { display: block; width: calc(100% + 1.3px); height: 70px; }
.custom-shape-divider-bottom .shape-fill { fill: #f8fafc; }

/* --- CATALOG SECTION LAYOUT --- */
.catalog-section {
    background: #f8fafc; /* Light gray background to make white cards pop */
}
.catalog-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- SIDEBAR --- */
.catalog-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* Sticks to the top when scrolling */
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eaedf3;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: #0b2239;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaedf3;
}

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

.category-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-list li i {
    color: #94a3b8;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: 0.3s;
}

.category-list li:hover {
    background: #f1f5f9;
    color: #0ca395;
}
.category-list li:hover i {
    color: #0ca395;
}

.category-list li.active {
    background: #0ca395;
    color: white;
}
.category-list li.active i {
    color: white;
}

/* Support Widget */
.support-widget {
    background: linear-gradient(135deg, #0b2239 0%, #1a365d 100%);
    color: white;
    text-align: center;
    padding: 40px 25px;
}
.support-widget i {
    font-size: 2.5rem;
    color: #3accdb;
    margin-bottom: 15px;
}
.support-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.support-widget p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.5;
}
.btn-support {
    display: inline-block;
    background: #3accdb;
    color: #0b2239;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.btn-support:hover {
    background: white;
}

/* --- PRODUCT GRID --- */
.catalog-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Product Card */
.catalog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaedf3;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.catalog-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-5px);
    border-color: #0ca395;
}

.card-img-wrap {
    background: #ffffff;
    height: 220px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #eaedf3;
}

.card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.catalog-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

/* Hover Actions overlaying the image */
.card-overlay-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.catalog-card:hover .card-overlay-actions {
    opacity: 1;
    visibility: visible;
}

.card-overlay-actions button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0ca395;
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(12, 163, 149, 0.4);
    transition: 0.2s;
    transform: translateY(15px); /* Start slightly low for slide-up effect */
}

.catalog-card:hover .card-overlay-actions button {
    transform: translateY(0);
}

.card-overlay-actions button:hover {
    background: #0b2239;
}

.card-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-tag {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-info h4 {
    font-size: 1.1rem;
    color: #0b2239;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
    flex-grow: 1;
}

.price {
    font-size: 1.25rem;
    color: #1b84f5;
    font-weight: 800;
}

.price small {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .catalog-layout {
        flex-direction: column;
    }
    
    .catalog-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .sidebar-widget {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .sidebar-widget h3 {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    /* Horizontal Swipeable Menu for Mobile */
    .category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 5px; /* Space for invisible scrollbar */
        -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .category-list::-webkit-scrollbar {
        display: none;
    }
    
    .category-list li {
        flex: 0 0 auto; /* Prevent shrinking, size to content */
        margin-bottom: 0;
        padding: 10px 22px;
        border-radius: 50px; /* Pill shape for mobile */
        border: 1px solid #eaedf3; /* Add border for better definition */
        background: #ffffff;
    }

    .category-list li.active {
        border-color: #0ca395;
    }

    .support-widget {
        display: none; /* Hide on mobile to save space */
    }

    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 2.5rem; }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}