/* all.css - Complete styling for categories page with products display */


/* ========== HERO SECTION - PRODUCTS PAGE STYLE ========== */

.categories-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.categories-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../withoutengin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.categories-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.categories-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.categories-hero-content .hero-badge {
    display: inline-block;
    background: #353598;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.categories-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 1) !important;
}

.categories-hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px auto;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 1) !important;
}

.categories-hero-content .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-hero-content .btn-primary-custom {
    background: #353598;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.categories-hero-content .btn-primary-custom:hover {
    transform: translateY(-2px);
}

.categories-hero-content .btn-outline-custom {
    background: transparent;
    border: 2px solid white;
    padding: 10px 28px;
    font-weight: 700;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.categories-hero-content .btn-outline-custom:hover {
    background: white;
    color: #353598;
    transform: translateY(-2px);
}

/* ========== SEARCH BAR UI IMPROVEMENTS ========== */
.search-wrapper { /* Moved from inline style in all.html */
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-box {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    border-color: #353598;
    box-shadow: 0 15px 35px rgba(53, 53, 152, 0.12);
    transform: translateY(-2px);
}

.search-icon {
    padding: 0 20px;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: #353598;
}

#productSearchInput {
    width: 100%;
    border: none;
    padding: 12px 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    background: transparent;
}

#productSearchInput::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.95rem;
}

.clear-btn {
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
    color: #64748b;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

#noResultsMessage {
    background: white;
    padding: 60px 20px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 40px;
}

/* ========== CATEGORIES SECTION ========== */
.all-categories-section {
    padding: 60px 0;
    background: #f8fafc;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.category-wrapper {
    width: 100%;
    position: relative;
}

/* ========== SLIDER CONTAINER STYLES ========== */
/* Categories with multiple products get slider functionality */
.category-wrapper:not(.single-product-category) {
    position: relative;
}

/* Slider container for categories with multiple products */
.slider-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Products Grid - Horizontal slider */
.products-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 30px 5px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.products-grid::-webkit-scrollbar {
    height: 6px;
}

.products-grid::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: #353598;
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: #353598;
}

/* Non-slider categories (4 or fewer products) - grid display without arrows */
.category-wrapper.no-slider-category .products-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 20px;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #353598;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #353598;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: -20px;
}

.slider-btn-next {
    right: -20px;
}

.slider-btn i {
    font-size: 18px;
    color: #353598;
    transition: color 0.3s ease;
}

.slider-btn:hover i {
    color: white;
}

/* Ensure slider buttons are hidden when slider logic is not applied */
.category-wrapper.no-slider-category .slider-btn {
    display: none;
}

/* ========== PRODUCT CARD - FIXED CONTAINER SIZE ========== */
.product-card-category {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 0 0 310px;
    min-height: 430px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

/* Product Image Container - Fixed Size */
.product-image {
    flex: 0 0 320px;
    width: 100%;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    transition: transform 0.4s ease;
}

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

/* Product Info - Text Section */
.product-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3e;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
}

.product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #353598;
    margin-bottom: 10px;
}

/* ========== VIEW DETAILS BUTTON ========== */
.product-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #353598;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
    min-width: 100px;
    max-width: 130px;
    margin: 0;
    text-align: center;
}

.product-card-category:hover .product-view-btn {
    background: #353598;
    gap: 8px;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #1a2a3e;
    position: relative;
    display: inline-block;
}

.category-title::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #353598;
    border-radius: 3px;
}

.category-count-badge {
    background: #353598;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* View All Categories Link */
.view-all-link {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.view-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #353598;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.view-all-link a:hover {
    background: #353598;
    color: white;
    gap: 15px;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(53, 53, 152, 0.2);
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 900px) {
    .products-grid {
        justify-content: flex-start;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-btn-prev {
        left: -15px;
    }
    
    .slider-btn-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .categories-hero {
        min-height: 380px;
    }
    .categories-hero-content {
        padding: 60px 20px;
    }
    .categories-hero-content h1 {
        font-size: 1.8rem;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 1) !important;
}
    .categories-hero-content p {
        font-size: 0.9rem;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 1) !important;
}
    .category-title {
        font-size: 1.3rem;
    }

    .product-image {
        flex: 0 0 280px;
    }

    .product-image img {
        object-fit: contain;
        padding: 10px;
    }

    .product-card-category {
        flex: 0 0 280px;
        min-height: 400px;
    }

    .product-view-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
        min-width: 90px;
        max-width: 110px;
        margin: 0;
    }

    .product-info h3 {
        text-align: center;
    }
    
    .slider-btn {
        display: none !important;
    }
    
    .products-grid {
        scroll-snap-type: x mandatory;
        padding: 10px 10px 30px 10px;
    }
}

@media (max-width: 576px) {
    .categories-hero {
        min-height: 300px;
    }
    .categories-hero-content {
        padding: 50px 20px;
    }
    .categories-hero-content h1 {
        font-size: 1.4rem;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 1) !important;
}
    .categories-hero-content p {
        font-size: 0.85rem;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 1) !important;
}

    .product-image {
        flex: 0 0 260px;
    }

    .product-image img {
        object-fit: contain;
    }

    .product-card-category {
        flex: 0 0 260px;
        min-height: 380px;
    }

    .product-view-btn {
        padding: 5px 8px;
        font-size: 0.6rem;
        min-width: 80px;
        max-width: 100px;
        margin: 0;
    }

    .category-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Scroll Indicator for Mobile (shows that content is scrollable) */
.scroll-indicator {
    display: none;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 10px;
}

.scroll-indicator span {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
}

/* Hide Pricing Across All Product Grid Items */
.price-section,
.price-label,
.price-value,
.product-price,
.product-card-price {
    display: none !important;
}