/*
 * PRODUCTS PAGE SPECIFIC STYLES
 * Isolated from main CSS to prevent conflicts
 */

/* Products Hero Background */
.products-hero {
    background-image: url('../images/productsherosection.png');
    background-size: cover;
    background-position: center;
}

/* Premium Typography for Products Page */
.products-hero h1,
.brand-header h2,
.product-name,
.section-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.products-hero p,
.product-description,
.brand-description,
.product-info {
    font-family: 'Inter', sans-serif !important;
}

/* ========================================
   CIRCULAR BRAND TABS NAVIGATION
   ======================================== */

.brand-tabs-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0;
    position: sticky;
    top: 92px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e0e0e0;
}

.brand-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 100%;
}

.brand-tab {
    width: 90px;
    height: 90px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.brand-tab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.25);
    border-color: #0066cc;
}

.brand-tab.active {
    background: white;
    border-color: #0066cc;
    border-width: 4px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4), 0 0 0 6px rgba(0, 102, 204, 0.1);
    transform: translateY(-5px) scale(1.15);
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
}

.brand-tab.active::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004080, #0066cc);
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4), 0 0 0 6px rgba(0, 102, 204, 0.1);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 102, 204, 0.6), 0 0 0 8px rgba(0, 102, 204, 0.2);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.brand-tab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-tab:hover img {
    transform: scale(1.1);
}

.brand-tab.active img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 102, 204, 0.3));
}

.brand-tab span {
    display: none;
}

/* Brand Section Base Styles */
.brand-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 102, 204, 0.3) 50%, 
        transparent 100%);
}

.brand-section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Show active brand section */
.brand-section.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUpScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.brand-header img {
    max-height: 60px;
    width: auto;
}

.brand-header h2 {
    font-size: 2rem;
    color: #004080;
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 64, 128, 0.2);
}

.product-item .product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-name {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
}

/* Category Navigation */
.category-nav {
    background: #f8f9fa;
    padding: 30px 0;
    position: sticky;
    top: 110px;
    z-index: 100;
    border-bottom: 2px solid #e0e0e0;
}

.category-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.category-nav a {
    padding: 10px 25px;
    background: white;
    color: #004080;
    border: 2px solid #004080;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-nav a:hover,
.category-nav a.active {
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* CTA Section */
.products-cta {
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.products-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.products-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Tab Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .brand-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .brand-tabs-section {
        top: 92px;
        padding: 25px 0;
    }
    
    .brand-tabs {
        gap: 15px;
    }
    
    .brand-tab {
        width: 75px;
        height: 75px;
        padding: 12px;
    }
    
    .brand-header {
        padding: 20px;
        gap: 15px;
    }
    
    .brand-header img {
        max-height: 50px;
    }
    
    .brand-header h2 {
        font-size: 1.6rem;
    }
    
    .category-nav {
        top: 92px;
    }
    
    .brand-section {
        padding: 60px 0;
    }
    
    .brand-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .brand-header h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-item .product-image {
        height: 220px;
    }
    
    .category-nav ul {
        gap: 10px;
    }
    
    .category-nav a {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .products-cta h2 {
        font-size: 2rem;
    }
    
    .products-cta p {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .brand-tabs-section {
        top: 84px;
        padding: 20px 0;
    }
    
    .brand-tabs {
        gap: 12px;
    }
    
    .brand-tab {
        width: 65px;
        height: 65px;
        padding: 10px;
        border-width: 2px;
    }
    
    .brand-tab.active {
        border-width: 3px;
    }
    
    .brand-header {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }
    
    .brand-header img {
        max-height: 45px;
    }
    
    .brand-header h2 {
        font-size: 1.4rem;
    }
    
    .category-nav {
        top: 84px;
        padding: 20px 0;
    }
    
    .brand-header img {
        max-height: 50px;
    }
    
    .brand-header h2 {
        font-size: 1.3rem;
    }
    
    .product-item .product-image {
        height: 200px;
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
        padding: 15px;
    }
    
    .products-cta h2 {
        font-size: 1.75rem;
    }
}
