/* ============================================================================================================================= */
/* ============================================= PRODUCTS PAGE STYLES ======================================================== */
/* ============================================================================================================================= */

/* Hero Section - About Us Style */
.products-hero {
    background-image: url('../images/backgroundheader.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 8rem 0 5rem 0;
    color: white;
    margin-top: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Gradient Overlay */
.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 0, 53, 0.85) 0%, rgba(0, 174, 239, 0.4) 100%);
    z-index: -1;
}

.products-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.products-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
}

.products-hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00aeef, transparent);
    border-radius: 2px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.products-hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Products Section */
.products-section {
    padding: 3rem 2rem;
    background: #f5f7fa;
    min-height: 60vh;
}

.products-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Navigation */
.category-nav-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f5f7fa;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: #e8ecf1;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #00aeef 0%, #1c16d2 100%);
    color: white;
    border-color: #00aeef;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.category-btn.categories-main-btn {
    background: linear-gradient(135deg, #1c16d2 0%, #00aeef 100%);
    color: white;
    font-weight: 600;
    border-color: #1c16d2;
}

.category-btn.categories-main-btn:hover {
    background: linear-gradient(135deg, #00aeef 0%, #1c16d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

.category-btn i {
    font-size: 1.1rem;
}

/* Categories Mega Menu */
.categories-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.categories-menu-overlay.active {
    display: block;
}

.categories-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1002;
    display: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.categories-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-menu-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 500px;
    max-height: 80vh;
    overflow: hidden;
}

/* Left Side - Main Categories */
.categories-menu-left {
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    max-height: 80vh;
}

.categories-menu-item {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.categories-menu-item:last-child {
    border-bottom: none;
}

.categories-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.categories-menu-item-header:hover {
    background: #f0f0f0;
}

.categories-menu-item-header.active {
    background: white;
    border-right: 3px solid #00aeef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.categories-menu-item-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
}

.categories-menu-item-title i {
    color: #00aeef;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.categories-menu-item-arrow {
    color: #999;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.categories-menu-item.active .categories-menu-item-arrow {
    color: #00aeef;
    transform: rotate(-90deg);
}

/* Right Side - Subcategories */
.categories-menu-right {
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    max-height: 80vh;
}

.categories-menu-right-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.subcategory-group {
    margin-bottom: 2rem;
}

.subcategory-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subcategory-link {
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subcategory-link:hover {
    color: #00aeef;
    padding-left: 0.5rem;
}

.subcategory-link i {
    font-size: 0.75rem;
    color: #999;
}

.subcategory-link:hover i {
    color: #00aeef;
}

.categories-menu-left::-webkit-scrollbar,
.categories-menu-right::-webkit-scrollbar {
    width: 8px;
}

.categories-menu-left::-webkit-scrollbar-track,
.categories-menu-right::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.categories-menu-left::-webkit-scrollbar-thumb,
.categories-menu-right::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

.categories-menu-left::-webkit-scrollbar-thumb:hover,
.categories-menu-right::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Firefox scrollbar */
.categories-menu-left,
.categories-menu-right {
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
}

/* Products Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

/* Subcategory Container */
.subcategory-container {
    width: 100%;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none;
}

.subcategory-container.active {
    display: block;
}

.subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.subcategory-btn {
    padding: 0.6rem 1.2rem;
    background: #f5f7fa;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subcategory-btn:hover {
    background: #e8ecf1;
    transform: translateY(-2px);
}

.subcategory-btn.active {
    background: linear-gradient(135deg, #00aeef 0%, #1c16d2 100%);
    color: white;
    border-color: #00aeef;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.toolbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* When sidebar is hidden (all products), use full width */
.products-layout.full-width {
    grid-template-columns: 1fr;
}

/* Products Sidebar */
.products-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.products-sidebar::-webkit-scrollbar {
    width: 6px;
}

.products-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.products-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.products-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-sidebar:hover {
    color: #00aeef;
}

.sidebar-content {
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.filter-title i {
    margin-right: 0.5rem;
    color: #00aeef;
}

.manat-icon {
    display: inline-block;
    margin-right: 0.5rem;
    color: #00aeef;
    font-size: 1rem;
    font-weight: 600;
}

.filter-toggle-icon {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
}

.filter-group.collapsed .filter-toggle-icon {
    transform: rotate(-90deg);
}

.filter-group.collapsed .filter-options {
    display: none;
}

.filter-options {
    display: block;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #00aeef;
}

.filter-checkbox span:not(.checkmark) {
    font-size: 0.9rem;
    color: #666;
}

.filter-checkbox:hover span {
    color: #00aeef;
}

/* Price Range Filter */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
    max-width: 80px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
}

.price-inputs span {
    color: #666;
}

.price-slider {
    width: 100%;
    margin-top: 0.5rem;
}

/* Brand Search */
.brand-search {
    margin-bottom: 1rem;
}

.brand-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.brand-search input:focus {
    outline: none;
    border-color: #00aeef;
}

.popular-brands {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.popular-brands-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.75rem;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.clear-filters-btn {
    width: 100%;
    padding: 0.75rem;
    background: #f5f7fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: #e8ecf1;
    border-color: #00aeef;
    color: #00aeef;
}

/* Products Main Area */
.products-main {
    min-width: 0;
}

/* Featured Products Sections */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.featured-section-title i {
    color: #00aeef;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-count {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.products-count span {
    font-weight: 600;
    color: #00aeef;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* When showing featured products, use full width */
.products-grid .featured-section {
    grid-column: 1 / -1;
}

.filter-toggle-btn {
    display: none;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle-btn:hover {
    border-color: #00aeef;
    color: #00aeef;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.out-of-stock {
    background: #ff4444;
    color: white;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.85rem;
    color: #00aeef;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00aeef;
}

.product-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00aeef 0%, #1c16d2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.product-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

.product-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Empty State */
.products-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.products-empty i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.products-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr !important;
    }
    
    .products-layout.full-width {
        grid-template-columns: 1fr !important;
    }

    .products-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        border-radius: 0;
    }

    .products-sidebar.active {
        left: 0;
    }

    .products-sidebar[style*="display: none"] {
        left: -100% !important;
    }

    .close-sidebar {
        display: block;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .featured-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 6rem 0 4rem 0;
        background-attachment: scroll;
    }

    .products-hero-title {
        font-size: 2.5rem;
    }

    .products-hero-description {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .products-section {
        padding: 2rem 1rem;
    }

    .category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav::-webkit-scrollbar {
        height: 4px;
    }

    .category-nav::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    .category-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .categories-menu {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        border-radius: 0 !important;
    }

    .categories-menu-content {
        grid-template-columns: 1fr;
        max-height: 70vh;
        overflow: hidden;
    }

    .categories-menu-left {
        display: none;
    }

    .categories-menu-right {
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .categories-menu-right-content {
        grid-template-columns: 1fr;
    }

    .subcategory-container {
        padding: 1rem;
    }

    .subcategory-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .subcategory-nav::-webkit-scrollbar {
        height: 4px;
    }

    .subcategory-nav::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    .subcategory-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-hero-title {
        font-size: 2rem;
    }

    .products-hero-description {
        font-size: 1rem;
    }

    .category-btn span {
        display: none;
    }

    .category-btn {
        padding: 0.75rem;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
}

/* ============================================================================================================================= */
/* ============================================= HOME PAGE PRODUCTS SECTION =================================================== */
/* ============================================================================================================================= */

/* Products Section Header (Home Page) */
#a-product {
    background-color: #E3E7ED;
}

.a-product-header {
    background-image: url('../images/backgroundheader.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 8rem 0 5rem 0;
    color: white;
    margin-top: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Gradient Overlay */
.a-product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 0, 53, 0.85) 0%, rgba(0, 174, 239, 0.4) 100%);
    z-index: -1;
}

.a-product-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
}

.a-product-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00aeef, transparent);
    border-radius: 2px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.a-product-subheading {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Products Container */
#a-product .a-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* Products Preview Grid */
.products-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Preview Card */
.product-preview-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 174, 239, 0.2);
}

.product-preview-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-preview-card:hover .product-preview-image img {
    transform: scale(1.1);
}

.product-preview-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-preview-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #020035;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-preview-content h3 i {
    color: #00aeef;
    font-size: 1.3rem;
}

.product-preview-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.product-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00aeef 0%, #1c16d2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.product-preview-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

.product-preview-link i {
    transition: transform 0.3s ease;
}

.product-preview-link:hover i {
    transform: translateX(3px);
}

/* Products CTA Section */
.products-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.products-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #020035 0%, #1c16d2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 0, 53, 0.3);
}

.products-view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 0, 53, 0.4);
    background: linear-gradient(135deg, #1c16d2 0%, #00aeef 100%);
}

.products-view-all-btn i {
    transition: transform 0.3s ease;
}

.products-view-all-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .a-product-header {
        padding: 6rem 0 4rem 0;
        background-attachment: scroll;
    }

    .a-product-heading {
        font-size: 2.5rem;
    }

    .a-product-subheading {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    #a-product .a-container {
        padding: 3rem 1rem;
    }

    .products-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-preview-content {
        padding: 1.5rem;
    }

    .product-preview-content h3 {
        font-size: 1.3rem;
    }

    .products-cta {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .products-view-all-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .a-product-heading {
        font-size: 2rem;
    }

    .a-product-subheading {
        font-size: 1rem;
    }

    .products-preview-grid {
        gap: 1rem;
    }

    .product-preview-image {
        height: 180px;
    }

    .product-preview-content {
        padding: 1.25rem;
    }

    .product-preview-content h3 {
        font-size: 1.2rem;
    }

    .product-preview-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}
