/* =========================
   XCROSSDELE PREMIUM HOMEPAGE STYLE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a66c2;
    --primary-dark: #004a99;
    --primary-soft: #eef6ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-2: #111827;
    --text: #101828;
    --muted: #475467;
    --light-muted: #667085;
    --line: #e5e7eb;
    --line-soft: #edf2f7;
    --bg: #f6f8fc;
    --white: #ffffff;
    --success: #15803d;
    --shadow-xs: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
    --shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.14);
    --radius-xl: 32px;
    --max-width: 1320px;
}

html { scroll-behavior: smooth; }

body {
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(10,102,194,0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    color: var(--text);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
    width: 92%;
    max-width: var(--max-width);
    margin: auto;
}

/* TOP STRIP */
.top-strip {
    background: linear-gradient(90deg, #0f172a, #1e3a8a);
    color: #ffffff;
    text-align: center;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

/* HEADER */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    border-bottom: 1px solid rgba(229,231,235,0.9);
}

.header-main {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    padding: 0;
    margin: 0;
    min-width: 170px;
}

.logo img {
    height: 70px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
    transition: 0.25s ease;
}

.logo img:hover { transform: scale(1.03); }

.header-search {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px auto;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    padding: 8px;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
    width: 100%;
}

.header-search input,
.header-search select {
    border: none;
    outline: none;
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    min-width: 0;
}

.header-search input::placeholder { color: var(--light-muted); }

.header-search button {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 13px;
    border-radius: 999px;
    transition: 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateY(-1px);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    transition: 0.25s ease;
    text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(10, 102, 194, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(10, 102, 194, 0.28);
}

.btn-accent,
.sell-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.22);
}

.btn-light {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow-xs);
}

.btn-light:hover { background: #f8fbff; }

/* CATEGORY BAR */
.header-bottom {
    background: rgba(248, 250, 255, 0.95);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.header-bottom-wrap {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
}

.header-chip,
.cat {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 999px;
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: #344054;
    border: 1px solid var(--line);
    transition: 0.25s ease;
}

.header-chip:hover,
.cat:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateY(-1px);
}

/* HERO */
.hero { padding: 46px 0 28px; }

.premium-hero {
    background:
        radial-gradient(circle at top right, rgba(245,158,11,0.13), transparent 28%),
        linear-gradient(135deg, #eef6ff 0%, #ffffff 52%, #f8fafc 100%);
}

.hero-premium-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
    align-items: stretch;
}

.hero-copy {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 24%),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 54px 40px;
    box-shadow: 0 22px 44px rgba(10, 102, 194, 0.22);
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -110px;
    background: rgba(255,255,255,0.09);
    border-radius: 50%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    color: #ffffff;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.hero-copy p {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.85;
    max-width: 720px;
    color: rgba(255,255,255,0.94);
    position: relative;
    z-index: 1;
}

.hero-actions,
.hero-bullet-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-bullet-row { margin-top: 22px; }

.hero-bullet-row span {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

/* DASHBOARD */
.hero-dashboard {
    display: flex;
    align-items: stretch;
}

.dashboard-shell {
    width: 100%;
    display: grid;
    gap: 16px;
}

.dashboard-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(229,231,235,0.95);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.dashboard-main-card {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
}

.dashboard-main-card * { color: #ffffff; }

.dashboard-label {
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--light-muted);
}

.dashboard-main-card .dashboard-label,
.dashboard-main-card .dashboard-meta {
    color: rgba(255,255,255,0.82);
}

.dashboard-balance {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.04em;
    color: var(--dark-2);
}

.dashboard-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dashboard-stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 14px;
}

.dashboard-stat strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--primary);
}

.dashboard-main-card .dashboard-stat strong { color: #ffffff; }

.dashboard-stat span {
    color: var(--light-muted);
    font-size: 13px;
}

.dashboard-main-card .dashboard-stat span {
    color: rgba(255,255,255,0.86);
}

.dashboard-mini-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 900;
    color: var(--dark-2);
}

.status-pill {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-warm {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.dashboard-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.dashboard-list li {
    color: var(--muted);
    font-size: 14px;
    padding-left: 18px;
    position: relative;
    line-height: 1.7;
}

.dashboard-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

/* TRUST */
.trust-section { padding: 48px 0 10px; }

.trust-shell {
    background: linear-gradient(135deg, #ffffff, #fafbff);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 34px;
    box-shadow: var(--shadow);
}

.trust-top {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.trust-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.trust-pill,
.product-meta-chip {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid #dbeafe;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.trust-title {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.12;
    color: var(--dark-2);
    letter-spacing: -0.04em;
    font-weight: 900;
}

.trust-text {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
    max-width: 720px;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.trust-point,
.trust-card,
.feature-card,
.category-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.trust-point strong {
    display: block;
    font-size: 15px;
    color: var(--dark-2);
    margin-bottom: 6px;
}

.trust-point span,
.trust-card p,
.feature-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.trust-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--dark-2);
}

/* SECTIONS */
.section { padding: 42px 0 0; }

.section-head,
.products-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: 34px;
    margin: 0 0 8px;
    color: var(--dark-2);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* CATEGORY */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: grid;
    gap: 10px;
    transition: 0.25s ease;
}

.category-card:hover,
.product-card:hover,
.feature-card:hover,
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    font-size: 24px;
}

.category-name {
    font-size: 17px;
    font-weight: 900;
    color: var(--dark-2);
}

.category-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

/* SEARCH PANEL */
.search-panel {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 26px;
    margin-top: 26px;
    border: 1px solid var(--line);
}

.search-panel-head h3 {
    margin-bottom: 6px;
    font-size: 20px;
    color: var(--dark-2);
}

.search-panel-head p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.search-box-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
    gap: 12px;
}

.search-box-panel input,
.search-box-panel select {
    padding: 14px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
}

.search-box-panel input:focus,
.search-box-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.08);
}

/* PRODUCTS */
.products-count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 22px;
}

.card,
.product-card {
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
    position: relative;
    border: 1px solid var(--line);
}

.card-image-wrap {
    position: relative;
    height: 230px;
    background: linear-gradient(135deg, #eef6ff, #f8fafc);
    overflow: hidden;
}

.card img,
.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge,
.video-badge,
.category-badge,
.type-badge {
    position: absolute;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    z-index: 2;
}

.badge {
    top: 12px;
    left: 12px;
    background: #fef3c7;
    color: #92400e;
}

.video-badge {
    top: 12px;
    right: 12px;
    background: #e0f2fe;
    color: #075985;
}

.category-badge {
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
}

.type-badge {
    bottom: 12px;
    right: 12px;
}

.type-digital {
    background: #dcfce7;
    color: #166534;
}

.type-physical {
    background: #fff7ed;
    color: #9a3412;
}

.card-body {
    padding: 18px;
}

.card-body h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.card-body p {
    color: var(--muted);
    line-height: 1.7;
    min-height: 54px;
    font-size: 14px;
}

.product-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.product-meta-chip-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.product-meta-chip-warm {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.price {
    font-size: 24px;
    font-weight: 900;
    color: var(--success);
    margin-top: 8px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 18px 18px;
}

/* SHOWCASE */
.saas-showcase { margin-top: 40px; }

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 28px;
    align-items: stretch;
}

.showcase-copy,
.showcase-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.showcase-copy { padding: 34px; }

.showcase-subtitle { margin-bottom: 16px; }

.showcase-points {
    display: grid;
    gap: 10px;
}

.showcase-point {
    padding: 13px 15px;
    background: #f8fbff;
    border: 1px solid #e8edf5;
    border-radius: 15px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 800;
}

.showcase-panel {
    padding: 26px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
}

.showcase-widget {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px;
    padding: 24px;
}

.widget-title {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
}

.widget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.widget-row:last-child { border-bottom: none; }

.widget-row span {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.widget-row strong {
    color: #ffffff;
    font-size: 15px;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--dark-2);
}

.empty-box {
    background: #ffffff;
    padding: 42px 24px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.empty-box h3 {
    margin-bottom: 8px;
    color: var(--dark-2);
}

/* FINAL CTA */
.final-cta-section { padding: 44px 0 10px; }

.final-cta-card {
    background:
        radial-gradient(circle at top right, rgba(245,158,11,0.18), transparent 30%),
        linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    border-radius: 32px;
    padding: 38px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.final-cta-card .section-kicker,
.final-cta-card h2,
.final-cta-card p {
    color: #ffffff;
}

.final-cta-card h2 {
    font-size: 34px;
    margin: 8px 0;
    line-height: 1.15;
}

.final-cta-card p {
    color: rgba(255,255,255,0.84);
    line-height: 1.75;
}

.final-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: #ffffff;
    padding-top: 44px;
    margin-top: 52px;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 26px;
}

.footer h3,
.footer h4 {
    color: #ffffff;
    margin-bottom: 10px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    font-size: 14px;
}

.footer a {
    display: block;
    margin: 6px 0;
}

.footer a:hover { color: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0;
    margin-top: 24px;
    color: rgba(255,255,255,0.76);
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .header-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .logo {
        justify-content: center;
        min-width: 0;
    }

    .header-search {
        width: 100%;
        grid-template-columns: 1fr 180px auto;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 1100px) {
    .logo img {
        height: 64px;
        max-width: 210px;
    }

    .hero-premium-wrap,
    .trust-top,
    .showcase-grid,
    .final-cta-card {
        grid-template-columns: 1fr;
    }

    .trust-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .features,
    .footer-wrap,
    .search-box-panel,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .header-search {
        grid-template-columns: 1fr;
    }

    .header-search input,
    .header-search select,
    .header-search button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 12px 0;
    }

    .logo img {
        height: 62px;
        max-width: 190px;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .hero-copy {
        padding: 34px 22px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .trust-shell,
    .showcase-copy,
    .showcase-panel,
    .search-panel,
    .final-cta-card {
        padding: 22px;
    }

    .trust-title,
    .final-cta-card h2,
    .section-title {
        font-size: 27px;
    }

    .grid,
    .trust-grid,
    .category-grid,
    .features,
    .footer-wrap {
        grid-template-columns: 1fr;
    }

    .card-actions,
    .final-cta-actions,
    .hero-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .card-actions a,
    .final-cta-actions .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-bullet-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================
   FINAL SEARCH + HOME OVERLAP FIX
========================= */

.header-main {
    grid-template-columns: 230px 620px 1fr !important;
    gap: 18px !important;
}

.header-search {
    width: 620px !important;
    max-width: 620px !important;
    grid-template-columns: 1fr 170px 105px !important;
}

.header-search button {
    width: 105px !important;
    min-width: 105px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
}

.nav-right {
    justify-content: flex-end !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.logo img {
    height: 68px !important;
    max-width: 210px !important;
}

@media (max-width: 1280px) {
    .header-main {
        grid-template-columns: 1fr !important;
    }

    .logo {
        justify-content: center !important;
    }

    .header-search {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr 180px 105px !important;
    }

    .nav-right {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 768px) {
    .header-search {
        grid-template-columns: 1fr !important;
    }

    .header-search button {
        width: 100% !important;
    }
}

/* =========================
   FORCE SINGLE LINE HEADER (DESKTOP FIX)
========================= */

.header-main {
    display: grid !important;
    grid-template-columns: 220px 1fr auto !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Keep everything in one row */
.logo {
    justify-content: flex-start !important;
}

.header-search {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: 1fr 200px 110px !important;
    gap: 10px !important;
}

/* Reduce button size */
.header-search button {
    width: 110px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
}

/* Keep nav inline */
.nav-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

/* Fix logo size */
.logo img {
    height: 65px !important;
    max-width: 200px !important;
}

/* =========================
   ONLY STACK ON SMALL SCREENS
========================= */

@media (max-width: 900px) {
    .header-main {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .logo {
        justify-content: center !important;
    }

    .header-search {
        grid-template-columns: 1fr !important;
    }

    .header-search button {
        width: 100% !important;
    }

    .nav-right {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* =========================
   COMPACT MOBILE HEADER
========================= */

@media (max-width: 768px) {
    .top-strip {
        font-size: 12px;
        padding: 8px 10px;
    }

    .site-header {
        position: static;
    }

    .header-main {
        gap: 8px;
        padding: 8px 0;
    }

    .logo img {
        height: 48px;
        max-width: 150px;
    }

    .header-search {
        padding: 6px;
        border-radius: 12px;
    }

    .header-search input,
    .header-search select {
        display: none;
    }

    .header-search button {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-link {
        font-size: 12px;
        padding: 7px 9px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .header-bottom {
        display: none;
    }

    .premium-hero {
        padding-top: 18px;
    }
}