/* Enhanced Products Page Styles */

/* Products Header Section */
.products-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 0 60px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('https://images.unsplash.com/photo-1514483127413-f72f273478c3?w=1200&auto=format&fit=crop&q=80') center/cover no-repeat;
    opacity: 0.04;
    z-index: 0;
}

.products-header .container {
    position: relative;
    z-index: 1;
}

.products-header h1 {
    color: var(--dark-blue, #0d3b66);
    font-weight: 800;
    margin-bottom: 25px;
    font-size: 2.75rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.products-header h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color, #0d6efd);
    margin: 15px auto 0;
    border-radius: 2px;
}

.products-header .lead {
    color: #495057;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Product Categories - Refined */
.product-categories {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: inline-block;
    transition: all 0.3s ease;
}

.product-categories:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-categories .btn {
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
    border: none;
    color: #495057;
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-categories .btn.active {
    background-color: var(--primary-color, #0d6efd);
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

.product-categories .btn:not(.active) {
    position: relative;
    overflow: hidden;
}

.product-categories .btn:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color, #0d6efd);
    opacity: 0.1;
    transition: height 0.3s ease;
}

.product-categories .btn:hover:not(.active) {
    background-color: #f1f3f5;
    transform: translateY(-1px);
}

.product-categories .btn:hover:not(.active)::after {
    height: 100%;
}

/* Product Cards Styling */
.products-section {
    background-color: #f8f9fa;
}

.product-card {
    background-color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.product-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.product-image-container img {
    object-fit: cover;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1;
}

.product-title {
    color: #333;
    font-weight: 600;
    font-size: 1.75rem;
}

.product-category {
    letter-spacing: 1px;
}

.product-description {
    color: #666;
    line-height: 1.6;
}

.product-features {
    font-size: 0.95rem;
}

.product-actions {
    margin-top: 1.5rem;
}

.product-actions .btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Call to Action Section - Refined */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

/* .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231E90FF' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
} */

.cta-content {
    background-color: rgb(255, 255, 255, 0.85);
    padding: 50px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cta-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cta-content h2 {
    color: #333;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-content .lead {
    color: #555;
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn-primary {
    background-color: #1E90FF;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.2);
}

.cta-buttons .btn-outline-light {
    border: 2px solid #1E90FF;
    color: #1E90FF;
    background-color: transparent;
}

/* Improved hover effects */
.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-primary:hover {
    background-color: #0080FF;
}

.cta-buttons .btn-outline-light:hover {
    border: 2px solid #1E90FF;
    background-color: #1E90FF;
    color: white;
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.2);
}

/* Add subtle ripple effect */
.cta-buttons .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
}

.cta-buttons .btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0s;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .product-info {
        padding: 25px 30px 30px;
    }
    
    .products-header h1 {
        font-size: 2.4rem;
    }
    
    .cta-content {
        padding: 40px !important;
    }
}

@media (max-width: 991px) {
    .products-header h1 {
        font-size: 2.2rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin-bottom: 70px;
    }
    
    .cta-content h2 {
        font-size: 1.9rem;
    }

    .product-image-container {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .products-header {
        padding: 60px 0 40px;
    }
    
    .products-header h1 {
        font-size: 1.9rem;
    }
    
    .product-categories {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px;
    }
    
    .product-categories .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .product-info {
        padding: 22px 20px 28px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-image {
        margin-bottom: 0;
    }
    
    .product-card {
        margin-bottom: 50px;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .cta-content {
        padding: 30px 20px !important;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Media Grid Layout */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.media-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vertical images (left column) */
.media-item.vertical {
    aspect-ratio: 3/4;
}

/* Horizontal images (right column) */
.media-item.horizontal {
    aspect-ratio: 16/9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .media-column {
        gap: 15px;
    }
    
    .media-item.vertical {
        aspect-ratio: 4/3;
    }
    
    .media-item.horizontal {
        aspect-ratio: 16/9;
    }
}