:root {
    --primary-blue: #003399;
    /* Reliance Blue-ish */
    --accent-red: #E60000;
    /* ReMobiler Red */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --bg-light: #F3F4F6;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-blue {
    color: var(--primary-blue);
}

.text-red {
    color: var(--accent-red);
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
    /* Slightly reduced padding to accommodate larger logo without taking too much height */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    /* Increased from 40px */
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #EFF6FF;
    /* Subtle background for visibility */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #003399 0%, #0044BB 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

/* SEO Keywords Box */
.seo-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #E0E7FF;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Product Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card Clickable */
.product-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Clickable indicator */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-container {
    position: relative;
    padding-top: 60%;
    /* Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain to show full product */
    padding: 1rem;
}

.badge-offer {
    position: absolute;
    top: 1rem;
    left: 0;
    background: var(--accent-red);
    color: white;
    padding: 0.25rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.specs-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-light);
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.specs-list li::before {
    content: "✓";
    color: #059669;
    /* Green */
    font-weight: bold;
}

.price-block {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Redesigned Price Display in Card */
.mrp {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.offer-price {
    font-size: 2rem;
    color: var(--accent-red);
    font-weight: 800;
    line-height: 1;
}

.competitor-price {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-top: 1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #128C7E;
}

.cta-button i {
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: #F9FAFB;
    padding: 4rem 1rem;
    margin-top: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-blue);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Footer & Logo Fix */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 1rem;
    margin-top: 0;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.footer-logo {
    height: 60px;
    /* Increased from 30px */
    margin-bottom: 1.5rem;
    /* FIX: Remove invert filter and add white background container for visibility */
    background: white;
    padding: 10px;
    border-radius: 8px;
    filter: none;
    /* Reset filter */
    opacity: 1;
}

/* New: Comparison Table */
.comparison-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f3f4f6;
    font-weight: 700;
}

.comparison-table tr.highlight {
    background: #EFF6FF;
    font-weight: 700;
}

.comparison-table .price-high {
    color: var(--text-light);
    text-decoration: line-through;
}

.comparison-table .price-low {
    color: var(--accent-red);
    font-size: 1.25rem;
}

/* New: Reviews */
.review-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #F9FAFB;
    border-radius: 1rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #F59E0B;
    margin-bottom: 0.5rem;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-red);
}

.popup-overlay.active .popup-card {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
}

.popup-timer {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-red);
    margin: 1rem 0;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Mobile Bottom Bar - Only visible on small screens on Product Page */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 40;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: block;
    }

    /* Hide the inline CTA on mobile product pages if we have the sticky bar */
    .product-page .inline-cta {
        display: none;
    }
}