/* =========================================================
   TOKO SPAREPART — LANDING PAGE
   Tema: graphite gelap + aksen oranye "racing"
   Breakpoint: 1100 (laptop kecil) · 820 (tablet) · 560 (hp portrait)
========================================================= */
:root {
    --bg: #0c0e11;
    --bg-2: #12151a;
    --panel: #171b21;
    --panel-2: #1e232b;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --text: #eef1f5;
    --muted: #8d97a5;
    --light: #f3f4f6;
    --light-2: #e9ebef;
    --ink: #14171c;
    --ink-muted: #667080;
    --ink-line: rgba(20, 23, 28, .09);
    --accent: #ff6a1a;
    --accent-2: #ffae1f;
    --accent-soft: rgba(255, 106, 26, .12);
    --green: #22c55e;
    --red: #ef4444;
    --radius: 20px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .10);
    --shadow-dark: 0 30px 80px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.lock {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* ---------- BUTTONS ---------- */
.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: .3s var(--ease);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff8a2a);
    color: #fff;
    box-shadow: 0 14px 34px rgba(255, 106, 26, .32);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 106, 26, .42);
}

.btn-ghost {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateY(-3px);
}

.btn-ghost .fa-whatsapp {
    color: var(--green);
}

/* ---------- TOPBAR ---------- */
.topbar {
    background: #07080a;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar i {
    color: var(--accent);
    margin-right: 6px;
}

.topbar a:hover {
    color: var(--text);
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12, 14, 17, .82);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: .3s var(--ease);
}

.navbar.scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.nav-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(255, 106, 26, .3);
    transition: .35s var(--ease);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand:hover .brand-icon {
    transform: rotate(-8deg) scale(1.05);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.05;
}

.brand-copy strong {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.brand-copy small {
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.desktop-nav a.active {
    color: var(--accent-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-login {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: .25s ease;
}

.nav-login:hover {
    border-color: var(--accent);
    color: var(--accent-2);
}

.nav-order {
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
}

.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: .25s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: rgba(12, 14, 17, .98);
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-inner {
    padding: 8px 0 22px;
}

.mobile-menu a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
}

.mobile-menu a:not(.btn) i {
    width: 22px;
    color: var(--accent);
}

.mobile-menu .btn {
    width: 100%;
    margin-top: 12px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 150px;
    background-color: var(--bg);
    background-size: cover;
    background-position: center right;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 14, 17, 1) 0%, rgba(12, 14, 17, .94) 38%, rgba(12, 14, 17, .7) 70%, rgba(12, 14, 17, .55) 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 106, 26, .22), transparent 40%);
}

/* grid garis tipis ala blueprint teknik */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 60px;
}

.eyebrow,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 174, 31, .25);
    border-radius: 999px;
    background: rgba(255, 174, 31, .07);
}

.eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.hero h1 {
    margin-bottom: 20px;
    font-family: var(--font-head);
    font-size: clamp(46px, 6.4vw, 88px);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.hero h1 .hl {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 560px;
    margin-bottom: 30px;
    color: #b3bcc8;
    font-size: 16px;
    line-height: 1.75;
}

/* pencarian cepat di hero */
.hero-search {
    display: flex;
    gap: 8px;
    max-width: 580px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(23, 27, 33, .85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-dark);
}

.hero-search label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.hero-search label i {
    color: var(--accent);
}

.hero-search input {
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.hero-search input::placeholder {
    color: #6f7885;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
}

.hero-tags button {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: #c3cad4;
    font-size: 12px;
    font-weight: 600;
    transition: .2s ease;
}

.hero-tags button:hover {
    border-color: var(--accent);
    color: var(--accent-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* kartu visual kanan */
.hero-visual {
    position: relative;
    display: grid;
    gap: 14px;
}

.spec-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(30, 35, 43, .92), rgba(18, 21, 26, .92));
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(12px);
}

.spec-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 26, .35), transparent 70%);
}

.spec-gear {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 64px;
    color: rgba(255, 255, 255, .06);
    animation: spin 18s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spec-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.spec-card h3 {
    position: relative;
    margin: 18px 0 6px;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.spec-card p {
    position: relative;
    color: var(--muted);
    font-size: 13px;
}

.spec-rows {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
}

.spec-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c3cad4;
}

.spec-row span i {
    width: 18px;
    color: var(--accent);
}

.spec-row strong {
    color: var(--green);
    font-size: 12px;
}

.mini-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(23, 27, 33, .85);
    backdrop-filter: blur(10px);
}

.mini-card i {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.mini-card strong,
.mini-card small {
    display: block;
}

.mini-card strong {
    font-size: 13px;
}

.mini-card small {
    color: var(--muted);
    font-size: 11px;
}

/* statistik menempel di bawah hero */
.stats {
    position: relative;
    z-index: 5;
    margin-top: -70px;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow-dark);
}

.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 26px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat i {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--panel-2);
    color: var(--accent);
    font-size: 18px;
}

.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
}

/* ---------- SECTION GENERIC ---------- */
.section {
    padding: 110px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.section-head h2,
.why-content h2,
.cta-box h2 {
    margin-top: 10px;
    font-family: var(--font-head);
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.section-head h2 em,
.why-content h2 em,
.cta-box h2 em {
    font-style: normal;
    color: var(--accent);
}

.section-head>p {
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- CATEGORIES (gelap) ---------- */
.categories {
    background: var(--bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: .35s var(--ease);
}

.category-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: .4s var(--ease);
}

.category-card:hover {
    border-color: rgba(255, 106, 26, .35);
    background: var(--panel-2);
    transform: translateY(-6px);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 22px;
    transition: .35s var(--ease);
}

.category-card:hover .category-icon {
    background: var(--accent);
    color: #fff;
    transform: rotate(-8deg);
}

.category-card h3 {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
}

.category-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.category-foot i {
    transition: .25s ease;
}

.category-card:hover .category-foot i {
    color: var(--accent);
    transform: translateX(4px);
}

/* ---------- PRODUCTS (terang) ---------- */
.products {
    background: var(--light);
    color: var(--ink);
}

.products .section-head>p,
.products .section-desc {
    color: var(--ink-muted);
}

.section-desc {
    max-width: 520px;
    margin-top: 12px;
    font-size: 14px;
}

.product-total {
    flex-shrink: 0;
    min-width: 140px;
    padding: 16px 20px;
    border: 1px solid var(--ink-line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.product-total strong {
    display: block;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.product-total span {
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
}

.toolbar-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.search-box,
.sort-box {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--ink-line);
    border-radius: 14px;
    background: #fff;
    transition: .25s ease;
}

.search-box {
    flex: 1;
    min-width: 0;
}

.search-box:focus-within,
.sort-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 106, 26, .12);
}

.search-box i,
.sort-box i {
    color: var(--accent);
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.search-box input::placeholder {
    color: #9aa2ae;
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.clear-search {
    display: none;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--light-2);
    color: var(--ink);
}

.clear-search.show {
    display: grid;
}

.sort-box {
    flex-shrink: 0;
}

.sort-box select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--ink-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.chip.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.showing {
    min-height: 20px;
    margin: 18px 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ink-line);
    border-radius: 18px;
    background: #fff;
    transition: .35s var(--ease);
}

.product-card[hidden] {
    display: none;
}

.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: linear-gradient(160deg, #f6f7f9, #e7eaee);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .6s var(--ease);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #b6bcc6;
}

.product-placeholder i {
    font-size: 44px;
}

.product-placeholder span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.badge-best {
    left: 12px;
    background: var(--ink);
    color: var(--accent-2);
}

.badge-stock {
    right: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.badge-stock::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.badge-stock.out::before {
    background: var(--red);
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.product-meta span {
    color: var(--accent);
}

.product-meta small {
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.product-fit {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.5;
}

.product-fit i {
    margin-top: 3px;
    color: var(--green);
    font-size: 11px;
}

.product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.price small {
    display: block;
    color: #9aa2ae;
    font-size: 10px;
}

.price strong {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.detail-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    transition: .25s ease;
}

.detail-btn:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.load-more-wrap[hidden] {
    display: none;
}

.load-more {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 26px;
    border: 1px solid var(--ink);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    transition: .25s ease;
}

.load-more:hover {
    background: var(--ink);
    color: #fff;
}

.empty-box {
    grid-column: 1 / -1;
    display: none;
    padding: 56px 20px;
    border: 1px dashed rgba(20, 23, 28, .18);
    border-radius: 20px;
    text-align: center;
}

.empty-box.show,
.empty-box.static {
    display: block;
}

.empty-box>i {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 34px;
}

.empty-box h3 {
    font-size: 20px;
}

.empty-box p {
    color: var(--ink-muted);
    font-size: 14px;
}

.empty-box button {
    margin-top: 16px;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- BRANDS STRIP ---------- */
.brands {
    padding: 34px 0;
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.brands:hover .brands-track {
    animation-play-state: paused;
}

.brands-track span {
    color: #4d5562;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: .25s ease;
}

.brands-track span:hover {
    color: var(--text);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- WHY US ---------- */
.why {
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.why-visual {
    position: relative;
}

.why-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.6;
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 106, 26, .25), transparent 50%),
        linear-gradient(160deg, var(--panel-2), var(--bg-2));
    box-shadow: var(--shadow-dark);
}

.why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-photo .why-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .07);
    font-size: 180px;
}

.why-badge {
    position: absolute;
    right: -22px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 20px 45px rgba(255, 106, 26, .35);
}

.why-badge strong {
    font-family: var(--font-head);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.why-badge span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.why-content>p {
    max-width: 560px;
    margin: 20px 0 32px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    transition: .3s var(--ease);
}

.feature:hover {
    border-color: rgba(255, 106, 26, .3);
    transform: translateY(-4px);
}

.feature i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.feature small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta {
    padding: 0 0 110px;
    background: var(--bg);
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 56px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 174, 31, .35), transparent 45%),
        linear-gradient(135deg, #ff6a1a, #d9480f);
    box-shadow: 0 30px 80px rgba(255, 106, 26, .25);
}

.cta-box::before {
    content: "\f7d9";
    position: absolute;
    right: 30%;
    bottom: -60px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 260px;
    color: rgba(255, 255, 255, .08);
    transform: rotate(-15deg);
    pointer-events: none;
}

.cta-box>* {
    position: relative;
}

.cta-box .kicker {
    color: rgba(255, 255, 255, .85);
}

.cta-box h2 em {
    color: var(--ink);
}

.cta-box p {
    margin-top: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    transform: translateY(-3px);
    background: #000;
}

.btn-white {
    background: #fff;
    color: var(--ink);
}

.btn-white:hover {
    transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 70px 0 24px;
    border-top: 1px solid var(--line);
    background: #07080a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1fr;
    gap: 50px;
    padding-bottom: 46px;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--muted);
}

.footer-col h4 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--accent-2);
}

.footer-col strong {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #5d6572;
    font-size: 12px;
}

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 8, .8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
    transform: translateY(20px) scale(.97);
    transition: .35s var(--ease);
}

.modal.show .modal-content {
    transform: none;
}

.modal-close {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--ink);
}

.modal-close:hover {
    background: var(--ink);
    color: #fff;
}

.modal-image {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f6f7f9, #e3e6eb);
}

.modal-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}

.modal-image img[hidden],
.modal-image .product-placeholder[hidden] {
    display: none;
}

.modal-image .product-placeholder i {
    font-size: 72px;
}

.modal-info {
    min-width: 0;
    overflow-y: auto;
    padding: 42px 36px 34px;
}

.modal-cat {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-info h2 {
    margin: 14px 0 6px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
}

.modal-sku {
    color: var(--ink-muted);
    font-size: 12px;
}

.modal-price {
    margin: 18px 0;
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.spec-table {
    display: grid;
    margin-bottom: 18px;
    border: 1px solid var(--ink-line);
    border-radius: 14px;
    overflow: hidden;
}

.spec-table div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    font-size: 13px;
}

.spec-table div:nth-child(odd) {
    background: var(--light);
}

.spec-table span {
    color: var(--ink-muted);
}

.spec-table strong {
    text-align: right;
}

.modal-desc {
    margin-bottom: 22px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.75;
}

.modal-order {
    width: 100%;
}

/* ---------- FLOATING ---------- */
.float-wa {
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1fa855;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(31, 168, 85, .35);
    transition: .3s var(--ease);
}

.float-wa i {
    font-size: 22px;
}

.float-wa:hover {
    transform: translateY(-4px);
}

.back-top {
    position: fixed;
    z-index: 899;
    right: 22px;
    bottom: 86px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s var(--ease);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* =========================================================
   LAPTOP KECIL / TABLET LANDSCAPE  ≤ 1100px
========================================================= */
@media (max-width: 1100px) {
    .desktop-nav a {
        padding: 9px 10px;
    }

    .nav-login span {
        display: none;
    }

    .hero-inner {
        gap: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        gap: 50px;
    }

    .why-badge {
        right: 16px;
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   TABLET PORTRAIT  ≤ 820px
========================================================= */
@media (max-width: 820px) {
    .container {
        width: calc(100% - 40px);
    }

    .topbar-left span:last-child {
        display: none;
    }

    .desktop-nav,
    .nav-login,
    .nav-order {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-inner {
        height: 72px;
    }

    .hero {
        padding: 64px 0 130px;
        background-position: center;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(12, 14, 17, .96) 0%, rgba(12, 14, 17, .88) 55%, rgba(12, 14, 17, .96) 100%),
            radial-gradient(circle at 80% 10%, rgba(255, 106, 26, .25), transparent 45%);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-visual {
        max-width: 560px;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .section {
        padding: 84px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .products .section-head {
        flex-direction: row;
        align-items: flex-end;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-photo {
        aspect-ratio: 16 / 11;
    }

    .cta {
        padding-bottom: 84px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 42px 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .modal-image {
        min-height: 300px;
    }

    .modal-info {
        overflow: visible;
        padding: 28px 26px 26px;
    }
}

/* =========================================================
   HP PORTRAIT  ≤ 560px
========================================================= */
@media (max-width: 560px) {
    .container {
        width: calc(100% - 28px);
    }

    .topbar {
        display: none;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .brand-copy strong {
        font-size: 21px;
    }

    .brand-copy small {
        max-width: 170px;
        font-size: 10px;
    }

    .hero {
        padding: 44px 0 120px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 48px;
    }

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

    .hero-search {
        flex-direction: column;
        padding: 10px;
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .spec-card {
        padding: 22px;
    }

    .spec-card h3 {
        font-size: 28px;
    }

    .mini-cards {
        grid-template-columns: 1fr;
    }

    .stats {
        margin-top: -80px;
    }

    .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px;
    }

    .stat i {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .stat strong {
        font-size: 26px;
    }

    .section {
        padding: 70px 0;
    }

    .section-head h2,
    .why-content h2,
    .cta-box h2 {
        font-size: 40px;
    }

    .category-grid {
        gap: 10px;
    }

    .category-card {
        min-height: 150px;
        padding: 16px;
    }

    .category-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .category-card h3 {
        font-size: 15px;
    }

    .products .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .product-total {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
    }

    .toolbar-row {
        flex-direction: column;
    }

    .sort-box select {
        flex: 1;
    }

    /* 2 kolom tetap dipertahankan di hp — kartu dibuat lebih ringkas */
    .product-grid {
        gap: 10px;
    }

    .product-image img {
        padding: 10px;
    }

    .product-placeholder i {
        font-size: 32px;
    }

    .badge {
        top: 8px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .badge-best {
        left: 8px;
    }

    .badge-stock {
        right: 8px;
    }

    .product-body {
        padding: 12px;
    }

    .product-meta small,
    .product-fit {
        display: none;
    }

    .product-body h3 {
        font-size: 13px;
    }

    .price strong {
        font-size: 19px;
    }

    .detail-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .brands-track span {
        font-size: 22px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .why-badge {
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
    }

    .why-badge strong {
        font-size: 32px;
    }

    .cta-box {
        padding: 34px 22px;
        border-radius: 22px;
    }

    .cta-box::before {
        font-size: 180px;
        right: -20px;
    }

    .cta-actions,
    .cta-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .modal {
        padding: 0;
        place-items: end center;
    }

    .modal-content {
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
    }

    .modal-image {
        min-height: 240px;
    }

    .modal-price {
        font-size: 34px;
    }

    .float-wa {
        right: 14px;
        bottom: 14px;
        width: 52px;
        padding: 0;
        justify-content: center;
    }

    .float-wa span {
        display: none;
    }

    .back-top {
        right: 18px;
        bottom: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
