﻿/* ============================================================
   PRODUCTS.CSS - Products Page Stylesheet
   Mobile First Responsive Design
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #f4a261;
    --white: #ffffff;
    --light: #f8f9fa;
    --light-blue: #e8f4f8;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --gradient-warm: linear-gradient(135deg, #fff5f5 0%, #fef3e2 100%);
    --gradient-cool: linear-gradient(135deg, #e8f4f8 0%, #f0f4ff 100%);
    --gradient-primary: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}
html, body { max-width: 100vw; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo { flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow-sm);
}

.hamburger {
    width: 22px;
    height: 3px;
    background: var(--white);
    position: relative;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active { background: var(--secondary); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 80px var(--space-md) var(--space-lg);
    transition: right 0.4s ease;
    overflow-y: auto;
}
.nav-menu.active { right: 0; }

.nav-list { display: flex; flex-direction: column; gap: var(--space-xs); }

.nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active { background: var(--light-blue); color: var(--primary); }
.nav-link.nav-cta {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    margin-top: var(--space-sm);
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: var(--gradient-cool);
    text-align: center;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 5px; }

.page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.13rem;
}

/* ==================== SECTION HEADER ==================== */
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}
.section-desc { color: var(--text-muted); }

/* ==================== FEATURED PRODUCTS ==================== */
.featured-products {
    padding: var(--space-xxl) 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    gap: var(--space-lg);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card.featured { border: 2px solid var(--primary); }

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}
.product-badge.hot { background: var(--primary); }

.product-image { aspect-ratio: 16/10; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-content { padding: var(--space-md); }
.product-content h3 { font-size: 1.5rem; color: var(--secondary); margin-bottom: 4px; }
.product-tagline { color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: var(--space-sm); }

.product-specs { margin-bottom: var(--space-md); }
.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}
.product-specs li span { color: var(--text-muted); }
.product-specs li strong { color: var(--secondary); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn-card { background: var(--secondary); color: var(--white); width: 100%; }
.btn-card:hover { background: var(--primary); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-3px); }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); }

/* ==================== SPECS TABLE SECTION ==================== */
.specs-table-section {
    padding: var(--space-xxl) 0;
    background: var(--gradient-warm);
}

/* Mobile Cards - Default visible */
.specs-cards-mobile { display: grid; gap: var(--space-md); }

.spec-card-mobile {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.spec-card-mobile.popular { border: 2px solid var(--primary); }

.spec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--secondary);
    color: var(--white);
}
.spec-card-header h4 { font-size: 1.25rem; margin: 0; }
.spec-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.spec-badge.hot { background: var(--primary); }

.spec-card-body { padding: var(--space-md); }
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}
.spec-row span { color: var(--text-muted); }
.spec-row strong { color: var(--secondary); }
.spec-carrier {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--light-blue);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-muted);
}

/* PC Table - Hidden on mobile */
.specs-table-wrapper { display: none; overflow-x: auto; }

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.specs-table thead { background: var(--secondary); color: var(--white); }
.specs-table th {
    padding: var(--space-md) var(--space-sm);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}
.specs-table th small { display: block; font-weight: 400; opacity: 0.8; font-size: 0.7rem; }
.specs-table td {
    padding: var(--space-sm);
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}
.specs-table tbody tr:hover { background: var(--light-blue); }
.specs-table tbody tr.highlight { background: #fff5f5; }
.specs-table tbody tr.highlight td { font-weight: 500; }

.specs-note {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-muted);
}
.specs-note i { color: var(--primary); margin-right: var(--space-xs); }

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: var(--space-xxl) 0;
    background: var(--gradient-primary);
    text-align: center;
}
.cta-content { padding: 0 var(--space-sm); }
.cta-content h2 { font-size: 1.5rem; color: var(--white); margin-bottom: var(--space-sm); }
.cta-content > p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-lg); }
.cta-buttons { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.cta-email { color: var(--white); font-weight: 500; }

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    color: var(--text-dark);
    padding: var(--space-xxl) 0 var(--space-lg);
}
.footer-vision {
    text-align: center;
    padding: 0 10px var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.footer-vision h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); color: var(--primary); font-weight: 700; }
.footer-vision p { color: var(--text-dark); font-weight: 700; max-width: 600px; margin: 0 auto; }

.footer-grid { display: grid; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.footer-col h4 { font-size: 1rem; margin-bottom: var(--space-md); color: var(--primary); font-weight: 700; }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col a { color: var(--text-dark); font-weight: 700; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.contact-list li { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-dark); font-weight: 700; }
.contact-list i { color: var(--primary); width: 20px; }

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0,0,0,0.08);
}
.footer-bottom p { color: var(--text-dark); font-weight: 700; font-size: 0.875rem; }

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-5px); }

/* ==================== TABLET (768px+) ==================== */
@media (min-width: 768px) {
    .container { padding: 0 var(--space-lg); }
    
    /* Header */
    .header-container { padding: 8px 20px; }
    .logo img { height: 32px; }
    .nav-toggle { display: none; }
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }
    .nav-list { flex-direction: row; gap: 0; }
    .nav-link {
        padding: 4px 3px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    .nav-link:hover, .nav-link.active { background: transparent; color: var(--primary); }
    .nav-link.nav-cta { margin-top: 0; margin-left: 2px; padding: 4px 6px; font-size: 0.65rem; background: var(--primary); color: var(--white); }
    .nav-link.nav-cta:hover, .nav-link.nav-cta.active { background: var(--primary-dark); color: var(--white); }
    
    /* Page Hero */
    .page-hero h1 { font-size: 2.25rem; }
    
    /* Products Grid */
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Specs - Show table, hide cards */
    .specs-cards-mobile { display: none; }
    .specs-table-wrapper { display: block; }
    
    /* CTA */
    .cta-content h2 { font-size: 2rem; }
    .cta-buttons { flex-direction: row; justify-content: center; }
    .cta-content { padding: 0; }
    
    /* Footer */
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-vision { padding: 0 0 var(--space-xl); }
}

/* ==================== DESKTOP (1024px+) ==================== */
@media (min-width: 1024px) {
    .header-container { padding: 10px 30px; gap: 40px; justify-content: flex-start; }
    .nav-menu { margin-left: 0; }
    .nav-list { gap: 5px; }
    .logo img { height: 46px; }
    .nav-link { padding: 8px 12px; font-size: 0.92rem; }
    .nav-link.nav-cta { padding: 8px 18px; font-size: 0.92rem; }
    
    .page-hero { padding: calc(90px + var(--space-xxl)) 0 var(--space-xxl); }
    .page-hero h1 { font-size: 2.75rem; }
    
    .section-header h2 { font-size: 2rem; }
    
    .specs-table th { padding: var(--space-md); font-size: 0.9rem; }
    .specs-table td { padding: var(--space-md) var(--space-sm); font-size: 0.9rem; }
}

/* ==================== LARGE DESKTOP (1280px+) ==================== */
@media (min-width: 1280px) {
    .page-hero h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.25rem; }
}

/* ==================== CONTENT SECTIONS (Selection / Application / FAQ) ==================== */
.quick-jump-nav {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.quick-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #174a6b;
    background: linear-gradient(135deg, #fdf7e8 0%, #eef7ff 100%);
    border: 1px solid rgba(23, 74, 107, 0.08);
    box-shadow: 0 8px 18px rgba(37, 91, 133, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-jump-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 91, 133, 0.12);
}

.seo-content-section { padding: 4.5rem 0; }

.gradient-panel {
    background: linear-gradient(135deg, #fffaf0 0%, #f4fbff 48%, #f8f7ff 100%);
    border: 1px solid rgba(37, 91, 133, 0.09);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(37, 91, 133, 0.08);
    padding: 2rem;
}
.gradient-panel + .gradient-panel { margin-top: 1.5rem; }
.gradient-panel p,
.gradient-panel li { color: #355164; font-size: 1.5rem;  line-height: 1.8;  font-weight: 400;}

.selection-grid,
.application-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.selection-card,
.application-card,
.faq-card {
    background: linear-gradient(160deg, #fffdf7 0%, #eef8ff 100%);
    border: 1px solid rgba(41, 128, 185, 0.12);
    border-radius: 20px;
    padding: 1.4rem;
}
.selection-card h3,
.application-card h3,
.faq-card h3 {
    margin: 0 0 0.75rem;
    color: #1f3f58;
    font-size: 1.15rem;
}
.selection-points,
.application-points {
    margin: 0;
    padding-left: 1.1rem;
}
.section-intro {font-size: 1.15rem;
    max-width: 860px;
    margin: 0 auto 1.2rem;
    color: #4c6476;
}
.section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.section-links a {
    color: #0f5b86;
    text-decoration: none;
    font-weight: 600;
}
.section-links a:hover { text-decoration: underline; }

/* ==================== RIC vs DC Comparison Table ==================== */
.ric-compare-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ric-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(37, 91, 133, 0.07);
}
.ric-compare-table th {
    background: linear-gradient(135deg, #174a6b, #1a6b94);
    color: #fff;
    padding: 1rem 1.1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}
.ric-compare-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #eef3f7;
    color: #355164;
    font-size: 0.93rem;
    line-height: 1.55;
}
.ric-compare-table tr:last-child td { border-bottom: none; }
.ric-compare-table tr:nth-child(even) td { background: #f9fcfe; }
.ric-compare-note {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: #6a8a9e;
    font-style: italic;
}

/* ==================== MOBILE OVERRIDES FOR NEW SECTIONS ==================== */
@media (max-width: 768px) {
    .selection-grid,
    .application-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .gradient-panel {
        padding: 1.4rem;
        border-radius: 18px;
    }
    .quick-jump-nav { gap: 0.6rem; }
    .quick-jump-link {
        width: 100%;
        justify-content: center;
    }
    .ric-compare-wrap {
        margin-left: -4px;
        margin-right: -4px;
    }
    .ric-compare-table { min-width: 620px; }
    .ric-compare-table th,
    .ric-compare-table td {
        padding: 0.8rem 0.85rem;
        font-size: 0.88rem;
    }
}
