/* ============================================================
   Leqa Glow Wholesalers — public stylesheet
   Navy + solar amber theme
   ============================================================ */
:root {
    --navy: #0d2b45;
    --navy-2: #123a5e;
    --navy-3: #1b4a76;
    --amber: #f5a623;
    --amber-2: #ffc233;
    --ink: #24313f;
    --muted: #5d6b7a;
    --line: #e3e8ee;
    --bg: #f6f8fa;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 2px 14px rgba(13, 43, 69, .08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--navy);
    color: #cfe0ef;
    font-size: 13.5px;
    padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--amber-2); }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 6px rgba(13,43,69,.05);
}
.site-header .container { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.brand-name span { color: var(--amber); }
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a {
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { text-decoration: none; color: var(--navy-3); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--amber); }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy);
    color: #fff !important;
    padding: 9px 16px !important;
    border-radius: 999px;
    font-size: 14px !important;
}
.cart-link:hover { background: var(--navy-2); text-decoration: none; }
.cart-count {
    background: var(--amber);
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(100deg, rgba(9, 30, 50, .88) 0%, rgba(13, 43, 69, .68) 45%, rgba(13, 43, 69, .30) 100%),
        url('../img/hero-bg.png') center / cover no-repeat,
        linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 60%, #174c7c 100%);
    color: #fff;
    padding: 110px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.16) 0%, rgba(245,166,35,0) 70%);
}
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15; max-width: 720px; }
.hero h1 em { color: var(--amber-2); font-style: normal; }
.hero p { margin: 18px 0 30px; max-width: 640px; font-size: 17px; color: #d7e4f0; }

.btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 4px 14px rgba(245,166,35,.35); }
.btn-amber:hover { background: var(--amber-2); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: #eef2f6; color: var(--navy); }
.btn-ghost:hover { background: #e2e9f0; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 34px; max-width: 640px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.link-more { font-weight: 700; color: var(--navy-3); white-space: nowrap; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,43,69,.12); text-decoration: none; }
.cat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--navy-3));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.cat-icon svg { width: 30px; height: 30px; stroke: var(--amber-2); fill: none; stroke-width: 1.7; }
.cat-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: 14px; }
.cat-count { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--amber); background: #fdf3e0; border-radius: 999px; padding: 3px 12px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(13,43,69,.13); }
.product-img { aspect-ratio: 4/3; background: #eef2f6; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-code {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    color: var(--amber);
    text-transform: uppercase;
}
.product-body h3 { font-size: 17.5px; color: var(--navy); margin: 5px 0 6px; }
.product-body h3 a { color: inherit; }
.product-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.product-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.product-actions .btn { flex: 1; text-align: center; padding: 11px 14px; font-size: 14px; }

.badge {
    display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.badge-cat { background: #e8f0f8; color: var(--navy-3); }

/* ---------- Filters ---------- */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.filter-pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    background: var(--white);
}
.filter-pill:hover { text-decoration: none; border-color: var(--navy-3); color: var(--navy); }
.filter-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-search { margin-left: auto; display: flex; gap: 8px; }
.filter-search input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    min-width: 220px;
    outline: none;
}
.filter-search input:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,74,118,.12); }

/* ---------- Product detail ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.detail-img {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.detail-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-info h1 { font-size: 28px; color: var(--navy); line-height: 1.25; margin: 6px 0 14px; }
.detail-info .long p { margin-bottom: 12px; color: #3b4a59; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.spec-table td { border: 1px solid var(--line); padding: 9px 14px; }
.spec-table td:first-child { background: #eef3f8; font-weight: 700; color: var(--navy); width: 42%; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 22px 0 14px; }
.qty-row input {
    width: 90px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}
.qty-row .btn { flex: 1; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.field label .req { color: #c0392b; }
.field input, .field textarea, .field select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    background: #fbfcfd;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--navy-3);
    box-shadow: 0 0 0 3px rgba(27,74,118,.12);
    background: #fff;
}
.field .hint { font-size: 12px; color: var(--muted); }

.alert { border-radius: 8px; padding: 13px 18px; margin-bottom: 18px; font-size: 14.5px; }
.alert-error { background: #fdeaea; border: 1px solid #f1b0b0; color: #8e2626; }
.alert-success { background: #e8f6e8; border: 1px solid #a9d6a9; color: #236b23; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th {
    background: var(--navy); color: #fff; text-align: left;
    padding: 13px 16px; font-size: 13.5px; letter-spacing: .4px; text-transform: uppercase;
}
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cart-code { font-size: 12px; font-weight: 800; color: var(--amber); letter-spacing: .5px; }
.qty-input { width: 68px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-size: 14px; }
.btn-remove { background: none; border: 0; color: #c0392b; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.btn-remove:hover { text-decoration: underline; }
.cart-summary { position: sticky; top: 100px; }
.cart-summary .form-card h3 { color: var(--navy); margin-bottom: 12px; }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.summary-line.total { font-weight: 800; color: var(--navy); font-size: 16px; border-bottom: 0; padding-top: 12px; }

/* ---------- Why us / CTA ---------- */
.why-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { text-align: center; padding: 10px; }
.why-item .cat-icon { margin: 0 auto 12px; }
.why-item h4 { color: var(--navy); font-size: 15.5px; margin-bottom: 4px; }
.why-item p { font-size: 13px; color: var(--muted); }

.cta-banner {
    background: linear-gradient(115deg, var(--navy) 0%, var(--navy-3) 100%);
    border-radius: 14px;
    color: #fff;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.cta-banner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-banner p { color: #cfdeeb; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cadb; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #b9cadb; }
.site-footer a:hover { color: var(--amber-2); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; color: #8fa6ba; }

/* ---------- Empty states / misc ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--navy); margin-bottom: 8px; font-size: 21px; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--navy-3); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-wrap, .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .product-grid, .cat-grid, .form-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 4%;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(13,43,69,.12);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .main-nav a:last-child { border-bottom: 0; }
    .cart-link { justify-content: center; margin-top: 8px; }
    .filter-search { margin-left: 0; width: 100%; }
    .filter-search input { flex: 1; min-width: 0; }
    .topbar .container { justify-content: center; text-align: center; }
    .hero { padding: 56px 0 64px; }
    .cta-banner { padding: 30px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
