/* ==========================================================================
   eSIM Data Travel - New Layout (Local, SEO-friendly, Responsive)
   ========================================================================== */

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #e6f0ff;
    --accent: #ff6b35;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border: #e5e7eb;
    --bg-soft: #f8f9fb;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --header-h: 72px;
    --nav-h: 52px;
    --topbar-h: 38px;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-dark); margin-top: 0; }

.container-xxl { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1400px) { .container-xxl { padding: 0 20px; } }

/* ==========================================================================
   Topbar (desktop only) — contact info + language
   ========================================================================== */
.topbar {
    background: var(--text-dark);
    color: #fff;
    font-size: 13px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar .container-xxl { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar i { font-size: 14px; }
.topbar .divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.2); }
@media (max-width: 991.98px) {
    .topbar { display: none; }
}

/* ==========================================================================
   Main header — logo + search + cart + account
   ========================================================================== */
.main-header {
    background: #fff;
    height: var(--header-h);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}
.main-header .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}
.site-logo img { height: 44px; width: auto; }

.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}
.header-search input {
    width: 100%;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0 52px 0 18px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-soft);
}
.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}
.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 44px;
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.header-search button:hover { background: var(--primary-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.header-action-btn:hover { background: var(--bg-soft); color: var(--primary); }
.header-action-btn i { font-size: 22px; }
.header-action-btn .label { display: none; }
@media (min-width: 1200px) { .header-action-btn .label { display: inline; } }
.header-action-btn .badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 991.98px) {
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-search { display: none; }
    .site-logo img { height: 38px; }
    .header-action-btn { padding: 8px 10px; }
}

/* ==========================================================================
   Main navigation — dropdown (desktop) + horizontal scroll (mobile)
   ========================================================================== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-sm);
}
.main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    height: var(--nav-h);
    overflow: visible;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex-wrap: nowrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--nav-h);
    padding: 0 16px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.nav-menu > li > a .caret { font-size: 11px; opacity: 0.6; }

/* Dropdown panel — generic, used by nav-menu, lang-switcher, account dropdown */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 120;
    list-style: none;
    margin: 0;
}
.nav-menu > li:hover > .dropdown-panel,
.nav-menu > li.open > .dropdown-panel,
.lang-switcher:hover > .dropdown-panel,
.lang-switcher.open > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-panel li { list-style: none; }
.dropdown-panel li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-dark);
    font-size: 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.dropdown-panel li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.dropdown-panel .flag,
.dropdown-panel .fi {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}
/* Fallback globe icon for language codes without a country flag */
.dropdown-panel .fi:not([class*=" fi-"]):not([class^="fi-"]),
.dropdown-panel .fi[class$=" fi-"] {
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'><path d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14A6 6 0 1 1 8 2a6 6 0 0 1 0 12z'/><path d='M8 2a6 6 0 0 0 0 12M2 8h12' stroke='%23999' fill='none'/></svg>");
}

/* Mega panel (wide dropdown) */
.nav-menu .dropdown-panel.mega {
    min-width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 14px;
}

/* Mobile: nav becomes off-canvas drawer, triggered by hamburger button */
.mobile-menu-overlay { display: none; }
@media (max-width: 991.98px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    body.mobile-menu-open .main-nav {
        transform: translateX(0);
    }
    .main-nav .container-xxl { padding: 0; max-width: none; }
    .main-nav-inner { padding: 16px 0; display: block; height: auto; }
    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a {
        padding: 14px 20px;
        height: auto;
        font-size: 15px;
        width: 100%;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .nav-menu > li.active > a,
    .nav-menu > li > a:hover {
        background: var(--primary-light);
        color: var(--primary);
    }
    /* Dropdown inside drawer: inline expand */
    .nav-menu .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: var(--bg-soft);
        display: none;
        padding: 0;
    }
    .nav-menu > li.open > .dropdown-panel { display: block; }
    .nav-menu .dropdown-panel.mega { grid-template-columns: 1fr; }
    .nav-menu .dropdown-panel li a { padding: 12px 32px; }

    /* Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1040;
    }
    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    body.mobile-menu-open { overflow: hidden; }
}

/* ==========================================================================
   Mini cart dropdown
   ========================================================================== */
.mini-cart-wrap { position: relative; }
.mini-cart-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 120;
}
.mini-cart-wrap:hover .mini-cart-panel,
.mini-cart-wrap.open .mini-cart-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mini-cart-panel ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.mini-cart-panel li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mini-cart-panel li:last-child { border-bottom: 0; }
.mini-cart-panel li img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.mini-cart-panel li .info { flex: 1; min-width: 0; }
.mini-cart-panel li .info strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); }
.mini-cart-panel li .info small { color: var(--text-muted); font-size: 12px; }
.mini-cart-panel .empty { text-align: center; padding: 24px 0; color: var(--text-muted); }
.mini-cart-panel .total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 700;
    border-top: 2px solid var(--border);
    margin-top: 8px;
}
.mini-cart-panel .cart-actions { display: flex; gap: 8px; margin-top: 8px; }
.mini-cart-panel .cart-actions a { flex: 1; text-align: center; }

@media (max-width: 991.98px) {
    .mini-cart-panel {
        position: fixed;
        top: var(--header-h);
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-x,
.btn-outline-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary-x { background: var(--primary); color: #fff; }
.btn-primary-x:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-x { background: transparent; color: var(--primary); }
.btn-outline-x:hover { background: var(--primary); color: #fff; }
.btn-lg-x { padding: 14px 28px; font-size: 16px; }

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0b3b8c 0%, #0066ff 100%);
    color: #fff;
    overflow: hidden;
}
.hero-slide {
    min-height: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 107, 53, 0.25), transparent 60%);
    pointer-events: none;
}
.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}
.hero-content .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}
.hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
    font-weight: 800;
}
.hero-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-primary-x { background: #fff; color: var(--primary); border-color: #fff; }
.hero-cta .btn-primary-x:hover { background: var(--bg-soft); color: var(--primary-dark); border-color: var(--bg-soft); }
.hero-cta .btn-outline-x { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero-cta .btn-outline-x:hover { background: #fff; color: var(--primary); }

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 520px;
    z-index: 1;
    pointer-events: none;
}
.hero-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 440px;
    border-radius: var(--radius);
    drop-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .hero-slide { min-height: auto; height: auto; padding: 48px 0; }
    .hero-visual { display: none; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-cta { justify-content: center; }
}

.hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-trust .item { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.hero-trust .item i { font-size: 22px; color: var(--accent); }

/* ==========================================================================
   Section common
   ========================================================================== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 767.98px) { .section { padding: 48px 0; } }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ==========================================================================
   How it works (3-step cards)
   ========================================================================== */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}
@media (max-width: 767.98px) { .how-steps { grid-template-columns: 1fr; gap: 24px; } }

.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
.step-img {
    width: 180px;
    height: 180px;
    margin: 12px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.step-card h3 {
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--text-dark);
}
.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}
.step-card p a { color: var(--primary); font-weight: 600; }

.how-note {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--primary-light);
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: var(--radius);
    padding: 22px 28px;
}
.how-note-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.how-note strong { font-size: 15px; color: var(--text-dark); display: block; margin-bottom: 4px; }
.how-note p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.how-note p a { color: var(--primary); font-weight: 600; }

/* ==========================================================================
   Destinations grid (kept for reuse)
   ========================================================================== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.destination-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: block;
}
.destination-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.destination-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.destination-card:hover img { transform: scale(1.08); }
.destination-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 100%);
}
.destination-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    color: #fff;
}
.destination-card .content h3 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.destination-card .content span { font-size: 13px; opacity: 0.9; }
.destination-card .content .price { color: var(--accent); font-weight: 700; }

@media (max-width: 991.98px) {
    .destinations-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .destinations-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ==========================================================================
   Product grid — ensure mobile 2 cols
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1199.98px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge-off {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}
.product-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 {
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.product-card .rating-stars { color: var(--warning); font-size: 12px; margin-bottom: 8px; }
.product-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.product-card .price-new { color: var(--primary); font-size: 18px; font-weight: 700; }
.product-card .price-old { color: var(--text-muted); font-size: 13px; text-decoration: line-through; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}
.faq-question:hover { color: var(--primary); }
.faq-question .icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}
.faq-item.open .faq-question .icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer .inner { padding: 0 20px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ==========================================================================
   Blog list
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991.98px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.blog-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; color: var(--text-dark); }
.blog-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; flex: 1; }
.blog-card .read-more { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
    font-size: 14px;
}
.site-footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-about p { line-height: 1.7; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.newsletter-form { display: flex; gap: 0; margin-top: 12px; }
.newsletter-form input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input:focus { outline: none; background: rgba(255, 255, 255, 0.12); }
.newsletter-form button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}
.footer-bottom .payments img { height: 24px; margin-right: 8px; opacity: 0.8; }

@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 575.98px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer { padding-top: 48px; }
}

/* ==========================================================================
   Language selector (header inline)
   ========================================================================== */
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}
.lang-switcher > button:hover { background: rgba(0, 0, 0, 0.04); }
.lang-switcher > button img,
.lang-switcher > button .fi {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.lang-switcher > button .bi-chevron-down {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 2px;
}
.lang-switcher > .dropdown-panel {
    right: 0;
    left: auto;
    top: calc(100% + 6px);
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
}
.lang-switcher .dropdown-panel li a img.flag,
.lang-switcher .dropdown-panel li a .fi {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.lang-switcher .dropdown-panel li a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Topbar (dark) variant */
.topbar .lang-switcher > button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.topbar .lang-switcher > button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile-only header language switcher (desktop uses topbar instance) */
.lang-switcher-mobile-wrap { display: none; }
@media (max-width: 991.98px) {
    .lang-switcher-mobile-wrap { display: inline-flex; align-items: center; }
    .lang-switcher-mobile-wrap .lang-switcher > button {
        padding: 6px 10px;
        font-size: 13px;
    }
    .lang-switcher-mobile-wrap .lang-switcher > button > span:not(.fi) {
        display: none; /* hide language name on small screens, keep flag only */
    }
    .lang-switcher-mobile-wrap .lang-switcher > .dropdown-panel {
        right: 0;
        left: auto;
        max-height: 60vh;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 28px; }
.d-none-mobile { }
@media (max-width: 991.98px) { .d-none-mobile { display: none !important; } }
.d-none-desktop { display: none; }
@media (max-width: 991.98px) { .d-none-desktop { display: block; } }

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 6px 0;
}
.skip-to-content:focus {
    left: 0;
    outline: 2px solid #fff;
    outline-offset: -4px;
}

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

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-bar {
    background: var(--bg-soft);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb-list li a { color: var(--text-muted); }
.breadcrumb-list li a:hover { color: var(--primary); }
.breadcrumb-list li.current { color: var(--text-dark); font-weight: 600; }
.breadcrumb-list li:not(:first-child)::before { content: '/'; opacity: 0.5; }

/* ==========================================================================
   Product listing layout (Index / Category)
   ========================================================================== */
.product-listing { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
@media (max-width: 991.98px) { .product-listing { grid-template-columns: 1fr; } }

.filter-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}
@media (max-width: 991.98px) {
    .filter-sidebar { position: static; }
}
.filter-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-block h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dark);
}
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.filter-option:hover { background: var(--bg-soft); }
.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.filter-option .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 2px 8px;
    border-radius: 10px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.toolbar .results-count { font-size: 14px; color: var(--text-muted); }
.toolbar .results-count strong { color: var(--text-dark); }
.toolbar .sort-control { display: flex; align-items: center; gap: 10px; }
.toolbar .sort-control label { font-size: 14px; color: var(--text-muted); margin: 0; }
.toolbar select {
    height: 38px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M3 6l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}
.toolbar select:focus { outline: none; border-color: var(--primary); }

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; margin-top: 32px; }
.pagination {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}
.pagination a:hover { background: var(--bg-soft); border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.empty-state i { font-size: 48px; color: var(--text-muted); }
.empty-state h3 { margin: 16px 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 20px; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 991.98px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }

.product-gallery { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
@media (max-width: 991.98px) { .product-gallery { position: static; } }
.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    position: relative;
}
.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery .thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.product-gallery .thumb {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.product-gallery .thumb.active,
.product-gallery .thumb:hover { border-color: var(--primary); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info .crumb-cat { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.product-info h1 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    margin: 0 0 14px;
}
.product-info .rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text-muted);
}
.product-info .rating-row .stars { color: var(--warning); font-size: 16px; }

.price-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.price-block .new {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}
.price-block .old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.price-block .save {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.short-desc { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }

.attr-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}
.attr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.attr-option {
    padding: 14px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}
.attr-option:hover { border-color: var(--primary); }
.attr-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.attr-option .data { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.attr-option .duration { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.attr-option .price { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 6px; }

.purchase-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.purchase-actions .btn-primary-x { flex: 1; padding: 16px; font-size: 16px; }

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
@media (max-width: 575.98px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list .item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.feature-list .item i { color: var(--success); font-size: 18px; flex-shrink: 0; }

/* Tabs (description / reviews / specs) */
.product-tabs { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 40px; }
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.tab-nav button {
    background: transparent;
    border: 0;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.tab-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h2, .tab-content h3 { margin-top: 24px; }
.tab-content p { line-height: 1.7; color: var(--text-muted); }
.tab-content img { border-radius: var(--radius); margin: 16px 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero {
    background: linear-gradient(135deg, #0b3b8c 0%, #0066ff 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 107, 53, 0.18), transparent 60%);
    pointer-events: none;
}
.contact-hero h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 12px;
    position: relative;
}
.contact-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    margin: 0 auto;
    max-width: 620px;
    position: relative;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 5;
}
@media (max-width: 991.98px) { .contact-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .contact-info-grid { grid-template-columns: 1fr; } }

.contact-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.contact-info-card .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}
.contact-info-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--text-dark); }
.contact-info-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.contact-info-card a { color: var(--primary); font-weight: 600; }
.contact-info-card a:hover { text-decoration: underline; }

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 64px;
}
@media (max-width: 991.98px) { .contact-main { grid-template-columns: 1fr; gap: 40px; } }

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 575.98px) { .contact-form-wrap { padding: 24px; } }
.contact-form-wrap h2 { font-size: 24px; margin: 0 0 8px; }
.contact-form-wrap .lead { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 575.98px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}
.form-field .help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-field .error-msg { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--danger); }
.form-field.has-error .error-msg { display: block; }

.contact-side h3 { font-size: 20px; margin: 0 0 12px; }
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.office-hours {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}
.office-hours h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.office-hours ul { list-style: none; margin: 0; padding: 0; }
.office-hours li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.office-hours li:last-child { border-bottom: 0; }
.office-hours .day { color: var(--text-dark); font-weight: 600; }
.office-hours .hours { color: var(--text-muted); }

.form-success,
.form-error {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: none;
}
.form-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.form-success.show, .form-error.show { display: block; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, #0b3b8c 0%, #0066ff 100%);
    color: #fff;
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left, rgba(255, 107, 53, 0.2), transparent 55%);
    pointer-events: none;
}
.about-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 50px); margin: 0 0 16px; position: relative; }
.about-hero p { color: rgba(255, 255, 255, 0.9); font-size: 18px; max-width: 660px; margin: 0 auto; position: relative; line-height: 1.7; }

.stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -48px;
    position: relative;
    z-index: 5;
    gap: 20px;
}
@media (max-width: 991.98px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .stat-bar { grid-template-columns: 1fr; } }
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.stat-card .num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card .label { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 991.98px) { .about-story { grid-template-columns: 1fr; gap: 32px; } }
.about-story-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.about-story-img img { width: 100%; height: 100%; object-fit: cover; }
.about-story-text h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; }
.about-story-text p { color: var(--text-muted); line-height: 1.8; margin: 0 0 16px; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991.98px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.value-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}
.value-card h3 { font-size: 18px; margin: 0 0 10px; }
.value-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.7; }

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 48px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .dot {
    position: absolute;
    left: -38px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}
.timeline-item .year {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.timeline-item h4 { font-size: 16px; margin: 4px 0 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.6; }

.cta-banner {
    background: linear-gradient(135deg, #0b3b8c, #0066ff);
    color: #fff;
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin: 0 0 12px; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: 16px; margin: 0 auto 24px; max-width: 560px; }
.cta-banner .btn-primary-x { background: #fff; color: var(--primary); border-color: #fff; }
.cta-banner .btn-primary-x:hover { background: var(--bg-soft); border-color: var(--bg-soft); }

/* ==========================================================================
   Blog listing & detail
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
@media (max-width: 991.98px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (max-width: 991.98px) { .blog-sidebar { position: static; } }
.sidebar-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.sidebar-block h4 {
    font-size: 15px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.sidebar-block ul { list-style: none; margin: 0; padding: 0; }
.sidebar-block li { margin-bottom: 14px; }
.sidebar-block li:last-child { margin-bottom: 0; }
.sidebar-block li a {
    display: flex;
    gap: 12px;
    color: var(--text-dark);
    align-items: flex-start;
}
.sidebar-block li a:hover { color: var(--primary); }
.sidebar-block li a img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.sidebar-block li a .info { flex: 1; min-width: 0; }
.sidebar-block li a .info strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-block li a .info small { color: var(--text-muted); font-size: 12px; }

.cat-list li a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.cat-list li a:hover { background: var(--primary-light); }
.cat-list li a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.cat-list li a .count {
    background: var(--bg-soft);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Article detail */
.article-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    margin-bottom: 32px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted);
}
.article-meta a { color: var(--primary); font-weight: 600; }
.article-meta .dot { width: 4px; height: 4px; background: var(--text-muted); border-radius: 50%; }

.article-body { font-size: 16px; line-height: 1.85; color: #333; }
.article-body h2 { font-size: 26px; margin: 36px 0 16px; }
.article-body h3 { font-size: 21px; margin: 28px 0 12px; }
.article-body p { margin: 0 0 18px; }
.article-body img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--bg-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.share-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 20px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}
.share-row span { font-size: 14px; font-weight: 600; margin-right: 4px; }
.share-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
}
.share-row a:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   Legal pages (Terms, Privacy, Refund)
   ========================================================================== */
.legal-hero {
    background: var(--bg-soft);
    padding: 48px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.legal-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}
.legal-hero h1 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; }
.legal-hero p { color: var(--text-muted); font-size: 16px; margin: 0 0 16px; max-width: 560px; display: inline-block; }
.legal-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}
.legal-meta i { color: var(--primary); margin-right: 4px; }

.legal-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}
@media (max-width: 991.98px) { .legal-layout { grid-template-columns: 1fr; } }

.legal-body { min-width: 0; }
.legal-body h2 { font-size: 22px; margin: 36px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 18px; margin: 24px 0 10px; }
.legal-body p { line-height: 1.8; color: #444; margin: 0 0 16px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 8px; line-height: 1.7; color: #444; }
.legal-body a { color: var(--primary); font-weight: 500; }

.legal-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (max-width: 991.98px) { .legal-sidebar { position: static; } }

/* ==========================================================================
   Account pages
   ========================================================================== */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
@media (max-width: 991.98px) { .account-layout { grid-template-columns: 1fr; } }

.account-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}
@media (max-width: 991.98px) { .account-nav { position: static; } }
.account-nav h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 16px; }
.account-nav ul { list-style: none; margin: 0; padding: 0; }
.account-nav li { margin-bottom: 4px; }
.account-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--text-dark);
    transition: var(--transition);
}
.account-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.account-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.account-nav a i { font-size: 18px; width: 22px; text-align: center; }

.account-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.account-card h3 { font-size: 18px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.form-field-account { margin-bottom: 18px; }
.form-field-account label {
    display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px;
}
.form-field-account input,
.form-field-account textarea {
    width: 100%; padding: 12px 14px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-dark); background: #fff;
    transition: var(--transition); font-family: inherit;
}
.form-field-account textarea { resize: vertical; min-height: 80px; }
.form-field-account input:focus,
.form-field-account textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}
.form-field-account .text-danger { font-size: 12px; color: var(--danger); margin-top: 4px; display: block; }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
    padding: 12px 16px; text-align: left; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); background: var(--bg-soft);
    border-bottom: 2px solid var(--border);
}
.orders-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-size: 14px; vertical-align: middle;
}
.orders-table tr:hover td { background: rgba(0, 102, 255, 0.02); }
.orders-table .order-id { font-weight: 700; color: var(--primary); }

.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.status-badge.paid { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.shipped { background: #dbeafe; color: #1e40af; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }

.order-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}
.order-tabs a {
    padding: 12px 20px; font-size: 14px; font-weight: 600;
    color: var(--text-muted); border-bottom: 3px solid transparent;
    margin-bottom: -2px; transition: var(--transition);
}
.order-tabs a:hover { color: var(--text-dark); }
.order-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Back to top button */
#to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: 0;
    box-shadow: var(--shadow-md);
    z-index: 200;
}
#to-top.visible { display: flex; }
#to-top:hover { background: var(--primary-dark); }
