/* ============================================================================
 * CompareHarga.com — Design System "Vibrant Comparison"
 *
 * Palette:
 *   Primary Orange:  #ff5722
 *   Accent Purple:   #7c3aed
 *   Success Emerald: #10b981
 *   Ink (Navy):      #0a0e27
 *   Fog (bg):        #f7f8fc
 *
 * Typography:
 *   Display+Body:  Plus Jakarta Sans (700/800 heading, 400/500 body)
 *   Data/Prices:   JetBrains Mono
 * ============================================================================ */

/* === Reset & tokens === */
:root {
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --primary-glow: rgba(255, 87, 34, 0.15);
    --gradient-primary: linear-gradient(135deg, #ff5722 0%, #ff9558 100%);

    --accent: #7c3aed;
    --accent-soft: #ede9fe;

    --success: #10b981;
    --success-soft: #d1fae5;
    --success-dark: #065f46;

    --warning: #f59e0b;
    --danger: #dc2626;

    --ink: #0a0e27;
    --ink-2: #2d3454;
    --mute: #6b7089;
    --line: #eef0f6;
    --fog: #f7f8fc;
    --white: #ffffff;

    --shadow-sm: 0 1px 2px rgba(10, 14, 39, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 14, 39, 0.06);
    --shadow-lg: 0 12px 32px rgba(10, 14, 39, 0.08);
    --shadow-glow: 0 8px 32px rgba(255, 87, 34, 0.24);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --container: 1280px;
    --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--fog);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}
h1 { font-weight: 800; }

/* === Layout === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: 800px; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(255, 87, 34, 0.32);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn--outline:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
}
.btn--ghost:hover {
    background: var(--primary-glow);
}

.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { color: var(--white); opacity: 0.9; }

.btn--small { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 8px; }
.btn--large { padding: 1rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.site-logo:hover { color: var(--ink); }
.site-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    color: var(--white);
}
.site-nav {
    display: flex;
    gap: 0.25rem;
}
.site-nav a {
    padding: 0.5rem 0.9rem;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.site-nav a:hover {
    color: var(--ink);
    background: var(--line);
}
.site-nav a.active {
    color: var(--primary);
    background: var(--primary-glow);
}
.site-search {
    flex: 1;
    max-width: 460px;
    position: relative;
}
.site-search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: var(--fog);
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: all 0.15s ease;
}
.site-search input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.site-search__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mute);
    pointer-events: none;
}
.site-search button { display: none; } /* Icon-triggered, tidak butuh button visible */

/* === Hero === */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(255, 87, 34, 0.06), transparent 70%),
        radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.05), transparent 70%),
        var(--fog);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 14, 39, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 14, 39, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.hero h1 .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    font-size: 1.15rem;
    color: var(--mute);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
.hero-search {
    display: flex;
    max-width: 620px;
    margin: 0 auto 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 0.4rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.hero-search input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--mute); }
.hero-search button {
    padding: 0.85rem 1.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.15s ease;
}
.hero-search button:hover { transform: translateY(-1px); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--mute);
}
.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-stat strong {
    color: var(--ink);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.hero-stat__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* === Sections === */
.section { padding: 4rem 0; }
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    letter-spacing: -0.025em;
}
.section-subtitle {
    color: var(--mute);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}
.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.section-link:hover { color: var(--primary-dark); }

/* === Categories === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}
.category-card > * { position: relative; z-index: 1; }
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    border-color: transparent;
    text-decoration: none;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover .category-card__count { color: rgba(255, 255, 255, 0.85); }
.category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.category-card:hover .category-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}
.category-card__name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.category-card__count {
    font-size: 0.85rem;
    color: var(--mute);
    font-family: 'JetBrains Mono', monospace;
}

/* === Product grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* === Product card === */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card__image {
    display: block;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--fog), #eef0f6);
    overflow: hidden;
    position: relative;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--line);
}
.product-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--primary); }
.product-card__price {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 0.5rem;
}
.product-card__price-label {
    font-size: 0.7rem;
    color: var(--mute);
    letter-spacing: 0.02em;
}
.product-card__price strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.product-card__price small {
    font-size: 0.75rem;
    color: var(--mute);
}
.product-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--fog);
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    transition: background 0.15s ease;
}
.product-card__cta:hover {
    background: var(--primary-glow);
    text-decoration: none;
}

/* === Breadcrumb === */
.breadcrumb {
    padding: 1.5rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--mute);
}
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb a {
    color: var(--mute);
    transition: color 0.15s ease;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] {
    color: var(--ink);
    font-weight: 500;
}
.breadcrumb-sep {
    color: var(--line);
}

/* === Page header === */
.page-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-header p { color: var(--mute); margin: 0; font-size: 1rem; }

/* === Product detail === */
.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}
.product-detail__gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--line);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail__image { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-detail__placeholder {
    color: var(--line);
    font-size: 5rem;
}
.product-detail__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.product-detail__brand {
    color: var(--mute);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.product-detail__brand a { color: var(--ink); font-weight: 600; }
.product-detail__brand a:hover { color: var(--primary); }
.product-detail__excerpt {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
}

/* === Cheapest box (redesigned) === */
.price-box {
    background: var(--white);
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
    position: relative;
}
.price-box::before {
    content: 'Termurah';
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.price-box__label {
    display: block;
    font-size: 0.8rem;
    color: var(--mute);
    margin-bottom: 0.25rem;
}
.price-box__value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--success-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.price-box__source {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-2);
    margin-bottom: 1.25rem;
}
.price-box__source strong { color: var(--ink); }

/* === Product sections === */
.product-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.product-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* === Compare table === */
.compare-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.compare-table th {
    background: var(--fog);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--mute);
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
}
.compare-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .is-lowest {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), transparent);
}
.compare-table .is-lowest td:first-child {
    position: relative;
    padding-left: 1.75rem;
}
.compare-table .is-lowest td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--success);
}

/* Supaya semua row rata (yang termurah maupun bukan), kasih padding kiri sama */
.compare-table td:first-child,
.compare-table th:first-child {
    padding-left: 1.75rem;
}
.compare-table .cell-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.compare-table .is-lowest .cell-price { color: var(--success-dark); }

/* === Marketplace badge === */
.marketplace-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

/* === Badge === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge--success { background: var(--success-soft); color: var(--success-dark); }
.badge--muted { background: var(--line); color: var(--mute); }

/* === Specs === */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.specs-table th, .specs-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.95rem;
}
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table th {
    width: 32%;
    background: var(--fog);
    color: var(--mute);
    font-weight: 600;
}
.specs-table td { color: var(--ink); font-weight: 500; }

/* === Disclaimer === */
.disclaimer {
    color: var(--mute);
    font-size: 0.8rem;
    padding: 0.75rem 1.25rem;
    background: var(--fog);
    border-top: 1px solid var(--line);
    margin: 0;
}

/* === Affiliate disclosure === */
.affiliate-disclosure {
    background: #fffbeb;
    border-left: 3px solid var(--warning);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #78350f;
}

/* === Prose === */
.prose { line-height: 1.75; color: var(--ink-2); font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--ink); }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--primary); border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--primary); }
.prose a.auto-link { border-bottom: 1px dashed rgba(255, 87, 34, 0.4); }
.prose a.auto-link:hover { border-bottom-color: var(--primary); }

/* === Reviews === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.review-card__image {
    display: block;
    aspect-ratio: 16/9;
    background: var(--fog);
    overflow: hidden;
}
.review-card__image img { width: 100%; height: 100%; object-fit: cover; }
.review-card__body { padding: 1.5rem; }
.review-card__body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
}
.review-card__body h3 a { color: var(--ink); }
.review-card__body h3 a:hover { color: var(--primary); }
.review-card__body p {
    color: var(--mute);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.55;
}
.review-card__body small {
    color: var(--mute);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

/* === Review article === */
.review-article header { margin-bottom: 2.5rem; padding: 1rem 0 0; }
.review-article h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.review-meta {
    color: var(--mute);
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
}
.review-hero {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}
.review-products {
    margin: 3rem 0 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

/* === Search & listing toolbar === */
.listing-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--mute);
}
.listing-toolbar select {
    padding: 0.5rem 0.9rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}
.listing-toolbar select:focus {
    outline: none;
    border-color: var(--primary);
}

/* === Pagination === */
.pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--mute);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line);
}
.empty-state a { color: var(--primary); font-weight: 600; }

/* === Flash === */
.flash {
    padding: 0.8rem 0;
    color: var(--white);
    font-size: 0.9rem;
}
.flash--success { background: var(--success); }
.flash--error { background: var(--danger); }
.flash--info { background: var(--accent); }

/* === Footer === */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1.75rem;
    margin-top: 5rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-col p, .footer-col li { font-size: 0.9rem; line-height: 1.75; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: rgba(255, 255, 255, 0.7); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 2rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header .container { flex-wrap: wrap; gap: 1rem; }
    .site-nav { order: 3; width: 100%; overflow-x: auto; }
    .site-search { max-width: none; order: 2; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 2rem; letter-spacing: -0.03em; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 1rem; font-size: 0.85rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .compare-table { font-size: 0.85rem; }
    .compare-table td, .compare-table th { padding: 0.75rem; }
    .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 2.5rem 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 768px) {
    /* Fix 1: Harga di product card tidak wrap */
    .product-card__price strong {
        white-space: nowrap;
        font-size: 1rem;
    }
    .product-card__price {
        overflow: hidden;
    }
	
/* Fix 2: Compare table scroll indicator */
    .compare-table-wrapper {
        position: relative;
        background:
            linear-gradient(to right, white 30%, rgba(255,255,255,0)) left center,
            linear-gradient(to left, white 30%, rgba(255,255,255,0)) right center,
            radial-gradient(farthest-side at 0 50%, rgba(10,14,39,0.15), rgba(0,0,0,0)) left center,
            radial-gradient(farthest-side at 100% 50%, rgba(10,14,39,0.15), rgba(0,0,0,0)) right center;
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-attachment: local, local, scroll, scroll;
    }

    /* Fix 3: Product card lebih compact di mobile */
    .product-card__body {
        padding: 0.75rem;
        gap: 0.35rem;
    }
    .product-card__title {
        font-size: 0.9rem;
        min-height: 2.5em;
    }
    .product-card__cta {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Fix 4: Header compact saat scroll (semua device) */
@media (max-width: 768px) {
    .site-header {
        transition: padding 0.2s ease;
    }
    .site-header .container {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        gap: 0.75rem;
    }
    .site-header .site-search input {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
    /* Nav lebih kompak */
    .site-nav {
        padding-bottom: 0.25rem;
        gap: 0;
    }
    .site-nav a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Fix 5: Hide scrollbar tapi tetap bisa scroll (nav) */
.site-nav::-webkit-scrollbar {
    display: none;
}
.site-nav {
    scrollbar-width: none;
}
