/**
 * styles.css - Main stylesheet
 * Nordic professional theme, responsive, accessible
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Variables & Root Styles
   ============================================ */

:root {
    /* Colors - Nordic Theme (HSL-based like the reference) */
    --color-primary: hsl(158, 64%, 40%);
    --color-primary-dark: hsl(158, 64%, 30%);
    --color-primary-light: hsl(158, 64%, 50%);
    --color-primary-glow: hsl(158, 64%, 45%);
    --color-accent: hsl(158, 64%, 45%);
    --color-success: #16a34a;
    --color-warning: #ffd36a;
    --color-error: #ef4444;

    /* Light theme base */
    --color-bg: hsl(0, 0%, 100%);
    --color-bg-light: hsl(210, 20%, 98%);
    --color-bg-dark: hsl(210, 20%, 96%);
    --color-bg-muted: hsl(210, 20%, 96%);
    --color-text: hsl(210, 20%, 15%);
    --color-text-light: hsl(210, 15%, 45%);
    --color-text-muted: hsl(210, 15%, 45%);
    --color-border: hsl(210, 20%, 90%);
    --color-card-bg: hsl(0, 0%, 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 36px;
    --font-size-3xl: 48px;
    --font-size-4xl: 60px;
    --font-size-5xl: 72px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Accessibility: focus states */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
    color: var(--color-text);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.logo svg {
    color: var(--color-primary);
}

.logo:hover {
    text-decoration: none;
    color: var(--color-text);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--color-primary);
    text-decoration: none;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: var(--spacing-sm);
    border-left: 1px solid var(--color-border);
    padding-left: var(--spacing-lg);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-active {
    color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-text);
    padding: 8px;
    z-index: 101;
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        border-bottom: 1px solid var(--color-border);
        padding: 0 var(--spacing-md);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.nav-open {
        max-height: 400px;
        padding: var(--spacing-md);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        gap: var(--spacing-sm);
    }

    .header-container {
        position: relative;
    }

    .lang-switcher {
        padding-left: var(--spacing-sm);
        border-left: none;
    }
}

/* ============================================
   Hero Section - Nordic Style
   ============================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('../img/hero-battery.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-light);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.70));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-badge svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.hero-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h1 .highlight {
    color: var(--color-primary);
}

.hero-lead {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero-feature svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-feature-text h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.hero-feature-text p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Legacy trust pills (kept for compatibility) */
.trust-pills {
    display: none;
}

.trust-pill {
    display: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    height: 40px;
}

.btn-lg {
    height: 44px;
    padding: 10px 32px;
    font-size: var(--font-size-lg);
    border-radius: 6px;
}

.btn-primary,
.btn-hero {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-hero:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

.btn-outline {
    background-color: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background-color: var(--color-bg-light);
    color: var(--color-text);
    border-color: var(--color-border);
    text-decoration: none;
}

.button-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
    }
}

/* ============================================
   Cards & Components
   ============================================ */

.card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 8px 32px -6px rgba(0, 0, 0, 0.12);
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin-bottom: var(--spacing-sm);
}

.product-years {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.product-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.badge {
    display: inline-block;
    background-color: var(--color-primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.pill {
    display: inline-block;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--font-size-sm);
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--color-text);
}

input,
textarea,
select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

/* ============================================
   Why Choose Section - Nordic Style
   ============================================ */

.why-choose-section {
    padding: 96px 0;
    background-color: var(--color-bg);
}

.why-choose-section .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.why-choose-section .section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.why-choose-section .section-header p {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-choose-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
}

.why-choose-card:hover {
    box-shadow: 0 8px 32px -6px rgba(0, 0, 0, 0.12);
}

.why-choose-card .icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(46, 139, 87, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.why-choose-card .icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.why-choose-card h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.why-choose-card p {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================
   CTA Section - Ready to Save
   ============================================ */

.cta-section {
    margin-top: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card {
    background-color: rgba(46, 139, 87, 0.05);
    border: 1px solid rgba(46, 139, 87, 0.2);
    border-radius: 16px;
    padding: var(--spacing-2xl);
    text-align: center;
}

.cta-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.cta-card>p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-form {
        flex-direction: row;
    }
}

.cta-form input {
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: var(--font-size-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    width: 100%;
    max-width: 320px;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.cta-form input::placeholder {
    color: var(--color-text-muted);
}

.cta-form button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-form button:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), hsl(158, 64%, 25%));
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.3);
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 300px;
    animation: slideIn 0.3s ease;
    opacity: 0;
}

.toast-show {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Product Filtering
   ============================================ */

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.search-container {
    margin-bottom: var(--spacing-lg);
}

.search-container input {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg-light);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--color-bg-dark);
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    transition: var(--transition);
    display: inline-block;
}

.faq-open .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: var(--spacing-lg);
    background-color: var(--color-bg);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-open .faq-answer {
    max-height: 500px;
}

/* ============================================
   Footer - Nordic Style
   ============================================ */

footer {
    background-color: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.footer-brand svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.footer-brand span {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-text);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --font-size-xl: 20px;
        --spacing-2xl: 32px;
    }

    h1 {
        font-size: var(--font-size-2xl);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-lead {
        font-size: var(--font-size-base);
    }

    .button-group {
        flex-direction: column;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm) var(--spacing-md);
    }

    .footer-section ul li {
        margin-bottom: 0;
    }

    /* Why Choose mobile improvements */
    .why-choose-card {
        padding: var(--spacing-md);
    }

    .why-choose-card h3 {
        font-size: var(--font-size-sm);
    }

    .why-choose-card p {
        font-size: 12px;
    }

    .why-choose-card .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .why-choose-card .icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    /* CTA mobile */
    .cta-card {
        padding: var(--spacing-lg);
    }

    .cta-card h3 {
        font-size: var(--font-size-lg);
    }

    .cta-form input {
        max-width: 100%;
    }
}

/* Extra small devices (under 400px) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-badge span {
        font-size: 12px;
    }

    .hero-lead {
        font-size: 14px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: var(--font-size-base);
        width: 100%;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .section-header h2 {
        font-size: var(--font-size-xl);
    }

    .section-header p {
        font-size: var(--font-size-sm);
    }

    .lang-switcher {
        padding-left: var(--spacing-sm);
    }
}

/* ============================================
   Accessibility
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-md);
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Page-specific Styles
   ============================================ */

.empty-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-light);
}

.contact-info {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: 6px;
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

.contact-info strong {
    color: var(--color-primary);
}

/* ============================================
   Hot Sellers Section - Table Design
   ============================================ */

/* Products Table - Clean Light Design */
.bestsellers-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
}

.products-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--spacing-xl);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background-color: #fff;
    font-size: 14px;
}

/* Table Header */
.products-table thead {
    background-color: #fffbeb;
}

.products-table th {
    padding: 8px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #f3f4f6;
    color: #374151;
}

.products-table th:last-child {
    border-right: none;
}

/* Product Column Header */
.products-table th.th-product {
    text-align: right;
    padding: 12px 16px;
    width: 200px;
    min-width: 160px;
    vertical-align: middle;
    background-color: #fffbeb;
}

.th-product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.brand-logo {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.th-product-content .section-title-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.bestseller-label {
    font-size: 11px;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-logos {
    display: flex;
    gap: 8px;
    font-size: 20px;
}

/* Category Headers (First Row) */
.th-category {
    font-size: 10px;
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.th-category.refurb {
    background-color: rgba(254, 243, 199, 0.5);
    color: #92400e;
}

.th-category.as-new {
    background-color: rgba(219, 234, 254, 0.5);
    color: #1e40af;
}

.th-category.new {
    background-color: rgba(220, 252, 231, 0.5);
    color: #166534;
}

.th-category.budget {
    background-color: rgba(243, 244, 246, 0.5);
    color: #6b7280;
}

/* Warranty Headers (Second Row) */
.th-warranty {
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    color: #111827;
    line-height: 1.3;
}

.th-warranty.refurb {
    background-color: rgba(254, 249, 195, 0.3);
}

.th-warranty.as-new {
    background-color: rgba(219, 234, 254, 0.2);
}

.th-warranty.new {
    background-color: rgba(220, 252, 231, 0.2);
}

.th-warranty.budget {
    background-color: rgba(243, 244, 246, 0.3);
    color: #9ca3af;
}

.warranty-text {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: #9ca3af;
    text-transform: lowercase;
}

.th-arrow {
    width: 32px;
    background-color: transparent !important;
}

/* Table Rows */
.products-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.products-table tbody tr:hover {
    background-color: #eff6ff;
}

.products-table tbody tr:last-child {
    border-bottom: none;
}

.products-table td {
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #f3f4f6;
    color: #374151;
}

.products-table td:last-child {
    border-right: none;
}

/* Product Cell */
.td-product {
    text-align: left !important;
    padding: 8px 16px !important;
    border-right: 1px solid #e5e7eb !important;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-image {
    width: 70px;
    height: 48px;
    object-fit: contain;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-shrink: 0;
}

.product-image-fallback {
    width: 70px;
    height: 48px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-name {
    font-weight: 700;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.2;
}

.product-years {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
}

/* Brand Sections */
.brand-section {
    margin-bottom: 30px;
}

.brand-section:last-child {
    margin-bottom: 0;
}

.section-title-label {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

/* Price Cells */
.td-price {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 700;
    font-size: 12px;
}

.td-price.refurb {
    background-color: rgba(254, 249, 195, 0.2);
    color: #1f2937;
    font-weight: 800;
    font-size: 13px;
}

.td-price.as-new {
    background-color: rgba(219, 234, 254, 0.1);
    color: #1e40af;
}

.td-price.new {
    background-color: rgba(220, 252, 231, 0.1);
    color: #166534;
}

.td-price.budget {
    background-color: rgba(243, 244, 246, 0.2);
    color: #9ca3af;
    font-size: 11px;
}

.price-na {
    color: #d1d5db;
    font-size: 10px;
    font-weight: 600;
}

/* Arrow Cell */
.td-arrow {
    color: #9ca3af;
    padding: 8px !important;
}

.td-arrow svg {
    width: 16px;
    height: 16px;
}

.products-table tbody tr:hover .td-arrow {
    color: #3b82f6;
}

/* ============================================
   MODAL STYLES - Sleek Modern Design
   ============================================ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.modal-open {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 1001;
    background: #ffffff;
    border-radius: 24px;
    max-width: 820px;
    width: 100%;
    max-height: 88vh;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.modal-close:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: scale(1.05);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Left Panel - Product Showcase */
.modal-left {
    width: 38%;
    background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.modal-product-image {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.modal-product-image:hover {
    transform: scale(1.02);
}

.modal-product-meta {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.meta-badge svg {
    flex-shrink: 0;
}

.meta-stock {
    background: #dcfce7;
    color: #15803d;
}

.meta-ship {
    background: #fef3c7;
    color: #b45309;
}

/* Right Panel - Configuration */
.modal-right {
    width: 62%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #ffffff;
}

/* Title Section */
.modal-title-section {
    margin-bottom: 28px;
}

.modal-title-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
}

/* Warranty Section - Sleek Tabs */
.warranty-section {
    margin-bottom: 28px;
}

.warranty-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.warranty-tab {
    flex: 1;
    padding: 14px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.warranty-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.6);
}

.warranty-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.warranty-tab-label {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.warranty-tab-price {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 600;
}

.warranty-tab.active .warranty-tab-price {
    opacity: 1;
    color: var(--color-primary);
}

.warranty-details {
    display: flex;
    gap: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.06) 0%, rgba(45, 134, 89, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(45, 134, 89, 0.12);
}

.warranty-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.warranty-detail-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Pricing Section */
.pricing-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.pricing-option {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.pricing-option:hover {
    border-color: #cbd5e1;
}

.pricing-option.recommended {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(45, 134, 89, 0.03) 0%, #ffffff 100%);
}

.option-badge {
    position: absolute;
    top: -11px;
    left: 20px;
    background: var(--color-primary);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.option-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.option-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.option-price {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.option-perks {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.perk svg {
    color: var(--color-primary);
}

.option-breakdown {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.breakdown-row:last-of-type {
    margin-bottom: 0;
}

.breakdown-row span:last-child {
    font-weight: 600;
    color: #334155;
}

.breakdown-note {
    font-size: 11px;
    color: #94a3b8;
    margin: 10px 0 0;
    font-style: italic;
}

/* Action Buttons */
.option-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.option-btn.primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(45, 134, 89, 0.3);
}

.option-btn.primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.35);
}

.option-btn.secondary {
    background: #1e293b;
    color: #ffffff;
}

.option-btn.secondary:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.modal-footer span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.footer-link:hover {
    color: var(--color-primary-dark);
    gap: 10px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .product-modal {
        padding: 16px;
    }

    .modal-content {
        flex-direction: column;
        max-height: 92vh;
        border-radius: 20px;
    }

    .modal-left {
        width: 100%;
        padding: 24px;
        flex-direction: row;
        gap: 20px;
    }

    .modal-image-wrapper {
        width: 100px;
        flex: 0 0 100px;
    }

    .modal-product-image {
        max-width: 80px;
    }

    .modal-product-meta {
        flex-direction: column;
        margin-top: 0;
        gap: 6px;
    }

    .meta-badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    .modal-right {
        width: 100%;
        padding: 24px;
        max-height: 65vh;
    }

    .modal-title-section {
        margin-bottom: 20px;
    }

    .modal-title-section h2 {
        font-size: 1.5rem;
    }

    .warranty-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }

    .warranty-tabs::-webkit-scrollbar {
        display: none;
    }

    .warranty-tab {
        min-width: 90px;
        flex: 0 0 auto;
        padding: 12px 10px;
    }

    .warranty-details {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pricing-section {
        gap: 12px;
    }

    .option-price {
        font-size: 22px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Responsive adjustments - Products Table */
@media (max-width: 920px) {
    .products-table {
        min-width: 600px;
    }

    .product-image {
        width: 56px;
        height: 40px;
        font-size: 24px;
    }

    .th-product {
        width: 160px !important;
        min-width: 140px !important;
    }

    .td-price {
        font-size: 11px !important;
    }
}

@media (max-width: 600px) {
    .products-table {
        min-width: 550px;
    }

    .products-table th,
    .products-table td {
        padding: 4px 6px;
    }

    .td-price {
        font-size: 10px !important;
    }

    .product-cell {
        gap: 8px;
    }

    .product-image {
        width: 48px;
        height: 36px;
        font-size: 20px;
    }

    .product-name {
        font-size: 11px;
    }

    .product-years {
        font-size: 9px;
    }

    .bestseller-label {
        font-size: 9px;
    }

    .brand-logos {
        font-size: 16px;
    }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background-color: white;
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }
}