/* Modern Product Page Redesign - Light Theme */
:root {
    --primary-bg: #f3f6f9;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --accent-color: #02008f; /* Bootstrap Primary Blue */
    --accent-gradient: linear-gradient(135deg, #002153 0%, #0c2b5a 100%);
    --text-main: #212529;
    --text-muted: #6c757d;
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden !important;
}

/* Background Animation */
.bg-gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.04), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(13, 202, 240, 0.04), transparent 40%);
    pointer-events: none;
}

/* Hero Section */
.product-hero-modern {
    padding: 60px 0 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title-large {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Filter Bar */
.filter-container-modern {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid white;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn-modern {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn-modern:hover {
    color: var(--accent-color);
    background: rgba(13, 110, 253, 0.05);
}

.filter-btn-modern.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Product Cards Grid */
.product-grid-modern {
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 40px;
    row-gap: 60px; /* Better vertical breathing room */
    padding-bottom: 80px;
}

.product-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden; /* Re-enabled for inner zoom compatibility and clean corners */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: var(--glass-shadow);
    min-width: 100%; 
    max-width: -webkit-fill-available !important;
    margin: 0 auto; 
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.product-image-wrapper {
    position: relative;
    padding: 30px; /* Refined padding */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px; /* Consistent image area */
}

.product-image-wrapper img.main-img {
    width: 100%;
    min-width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* Floating Specs */
.specs-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.spec-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.spec-pill i {
    color: var(--accent-color);
}

.product-card-modern:hover .spec-pill {
    transform: translateX(0);
    opacity: 1;
}

.product-card-modern:hover .spec-pill:nth-child(2) { transition-delay: 0.1s; }

/* Product Info */
.product-info-modern {
    padding: 24px 30px 30px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 10;
    flex-grow: 1; /* Push footer content if necessary */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title-modern {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-price-modern {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 24px;
    display: block;
}

/* Detailed Specs Grid */
.product-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
}

.spec-item-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-icon-box {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.spec-icon-box i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.spec-label-modern {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.spec-value-modern {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Actions */
.product-actions-modern {
    display: flex;
    gap: 12px;
}

.btn-action-modern {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-whatsapp-glow {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-glow:hover {
    background: #20bd5a;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-details-glass {
    background: #f1f3f5;
    color: var(--text-main);
}

.btn-details-glass:hover {
    background: #e9ecef;
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-video-trending {
    background: linear-gradient(135deg, #f06f48 0%, #ff7070 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.btn-video-trending:hover {
    background: linear-gradient(135deg, #D30000 0%, #B00000 100%);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* Thumbnails */
.modern-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -25px; /* Pull up into image area */
    margin-bottom: 25px;
    z-index: 10;
    position: relative;
    padding: 0 20px;
}

.thumb-dot {
    border-radius: 12px;
    border: 2px solid #fff;
    background: #fff;
    cursor: pointer;
    padding: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.thumb-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumb-dot:hover, .thumb-dot.active {
    border-color: var(--accent-color);
    transform: scale(1.15) translateY(-5px);
}

@media (max-width: 768px) {
    .hero-title-large {
        font-size: 2.8rem;
    }
    
    .product-grid-modern {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .filter-container-modern {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 12px;
    }
}

@media screen and (max-width: 575px) {
    .product-image-wrapper {
        padding: 20px;
    }

    .modern-thumbs.xzoom-thumbs {
        padding-top: 10px;
    }
}
