/* ============================================================
   KUOTA AKRAB — Halaman Katalog Kuota
   katalog.css — Production Grade
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
    /* Brand */
    --c-navy: #14213D;
    --c-navy-deep: #0d1928;
    --c-accent: #FCA311;
    --c-accent-dim: rgba(252, 163, 17, 0.12);
    --c-accent-hover: #e59510;
    --c-white: #FFFFFF;

    /* Surface */
    --c-bg: #F4F4F6;
    --c-surface: #FFFFFF;
    --c-border: #E4E4E7;
    --c-border-hover: #C8C8D0;
    --c-border-soft: #EFEFEF;

    /* Text */
    --c-text-primary: #0D1520;
    --c-text-secondary: #6B7280;
    --c-text-muted: #9CA3AF;
    --c-text-onaccent: #14213D;

    /* Layout */
    --sidebar-w: 256px;
    --topbar-h: 58px;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 12px;
    --r-xl: 16px;

    /* Shadows */
    --shadow-subtle: 0 1px 2px rgba(13, 21, 32, 0.04), 0 2px 6px rgba(13, 21, 32, 0.03);
    --shadow-hover: 0 4px 12px rgba(13, 21, 32, 0.08), 0 1px 3px rgba(13, 21, 32, 0.04);

    /* Type */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --fd: 'Syne', sans-serif;
    --fb: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-text-primary);
    background: var(--c-bg);
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

svg {
    display: block;
    flex-shrink: 0;
}

/* ── SHELL ── */
.shell {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR (tidak diubah — identik dengan dashboard)
   ============================================================ */
/*
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--c-navy);
    display: flex;
    flex-direction: column;
    z-index: 300;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--topbar-h);
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-brand__mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--c-accent);
    color: var(--c-navy);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand__name {
    font-size: 14.5px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -0.1px;
}

.sidebar-brand__name b {
    font-weight: 600;
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 18px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav__list {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8.5px 12px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    transition: background 0.14s, color 0.14s;
}

.sidebar-nav__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-nav__link--active {
    background: rgba(252, 163, 17, 0.1);
    color: var(--c-accent);
    font-weight: 500;
}

.sidebar-nav__icon {
    width: 15.5px;
    height: 15.5px;
    opacity: 0.85;
}

.sidebar-nav__link--active .sidebar-nav__icon {
    opacity: 1;
}

.sidebar-nav__sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 10px 20px 18px;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2px;
}
*/
/* ============================================================
   MAIN COLUMN
   ============================================================ */
.main-col {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ============================================================
   TOPBAR
   ============================================================ */
/*
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--topbar-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 12px;
}

.topbar__hamburger {
    display: none;
    padding: 6px;
    margin-left: -6px;
    border-radius: var(--r-sm);
    color: var(--c-text-secondary);
    transition: background 0.14s;
}

.topbar__hamburger:hover {
    background: var(--c-border-soft);
}

.topbar__hamburger svg {
    width: 18px;
    height: 18px;
}


.topbar__crumb {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.topbar__crumb-parent {
    color: var(--c-text-muted);
    font-weight: 400;
}

.topbar__crumb-sep {
    color: var(--c-border);
    font-size: 14px;
}

.topbar__crumb-current {
    color: var(--c-text-secondary);
    font-weight: 500;
}


.topbar-user {
    position: relative;
}

.topbar-user__wrap {
    position: relative;
}

.topbar-user__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    transition: border-color 0.14s, background 0.14s;
}

.topbar-user__btn:hover {
    border-color: var(--c-border-hover);
    background: var(--c-bg);
}

.topbar-user__avatar {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: var(--c-navy);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-user__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-primary);
    white-space: nowrap;
}

.topbar-user__chev {
    width: 12px;
    height: 12px;
    color: var(--c-text-muted);
    flex-shrink: 0;
}


.user-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 196px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-hover);
    z-index: 400;
    overflow: hidden;
}

.user-drop--open {
    display: block;
}

.user-drop__head {
    padding: 12px 14px 10px;
}

.user-drop__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-primary);
    letter-spacing: -0.2px;
}

.user-drop__email {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 1px;
}

.user-drop__sep {
    height: 1px;
    background: var(--c-border-soft);
}

.user-drop__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--c-text-primary);
    transition: background 0.12s;
}

.user-drop__item svg {
    width: 13.5px;
    height: 13.5px;
    color: var(--c-text-muted);
}

.user-drop__item:hover {
    background: var(--c-bg);
}

.user-drop__item--exit {
    color: #BE123C;
}

.user-drop__item--exit svg {
    color: #BE123C;
}

.user-drop__item--exit:hover {
    background: #FFF1F2;
}
*/


/* ============================================================
   PAGE HEADER
   ============================================================ */
/*
.page-header {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--c-border-soft);
    margin-bottom: 40px;
}

.page-header__eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--c-accent);
    margin-bottom: 10px;
}

.page-header__title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--c-text-primary);
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.page-header__sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--c-text-secondary);
    line-height: 1.6;
    max-width: 440px;
}
*/

/* ============================================================
   CONTENT
   ============================================================ */
.content {
    flex: 1;
    padding: 36px 32px 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    width: 100%;
}

/* ============================================================
   CATEGORY GROUP
   ============================================================ */
.cat-group {
    /* First category */
    margin-bottom: 48px;
}

.cat-group:last-child {
    margin-bottom: 0;
}

/* ── Category header ── */
.cat-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* Gold accent bar — the ONLY place #FCA311 appears in the category header */
.cat-header__accent {
    width: 3px;
    border-radius: 99px;
    background: var(--c-navy);
    align-self: stretch;
    min-height: 48px;
    flex-shrink: 0;
}

.cat-header__accent--max {
    background: var(--c-accent);
}

.cat-header__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.1px;
    color: var(--c-text-muted);
    margin-bottom: 3px;
}

.cat-header__name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--c-text-primary);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.cat-header__desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-secondary);
}

/* ============================================================
   PRODUCT LIST — GROUP CONTAINER
   ============================================================ */
.product-list {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

/* ── Product Item ── */
.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--c-border-soft);
    background: var(--c-surface);
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
    position: relative;
}

.product-item:last-child {
    border-bottom: none;
}

/* Hover lift — very subtle, not bouncy */
.product-item:hover {
    background: #FAFAFA;
    box-shadow: inset 0 0 0 1px var(--c-border-hover);
    z-index: 1;
}

/* ── Recommended variant ── */
.product-item--recommended {
    border-left: 3px solid var(--c-accent);
    padding-left: 19px;
    /* compensate for border */
}

/* ── LEFT ── */
.product-item__left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

/* The headline number — DM Serif for character */
.product-item__quota {
    font-family: var(--fb);
    font-size: 26px;
    color: var(--c-text-primary);
    letter-spacing: -1px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 78px;
}

.product-item__quota em {
    font-style: normal;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--c-text-muted);
    letter-spacing: 0.3px;
    margin-left: 2px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Meta group */
.product-item__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.product-item__name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    letter-spacing: -0.1px;
}

/* Validity */
.product-item__validity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-muted);
}

.product-item__validity svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* ── RIGHT ── */
.product-item__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.product-item__price {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text-primary);
    white-space: nowrap;
    letter-spacing: -0.3px;
    text-align: right;
    min-width: 80px;
}

/* ── BUY BUTTON ── */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    background: var(--c-accent);
    color: var(--c-navy);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.1px;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}

.btn-buy:hover {
    background: var(--c-accent-hover);
    transform: translateY(-1px);
}

.btn-buy:active {
    transform: translateY(0);
}

/* ── Recommended Pill ── */
.pill-recommended {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(252, 163, 17, 0.1);
    color: #926100;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.5);
    z-index: 250;
    opacity: 0;
    transition: opacity 0.22s;
}

.sidebar-overlay--show {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
    .content {
        padding: 28px 24px 48px;
    }

    .product-item__quota {
        font-size: 22px;
        min-width: 64px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤ 768px
   ============================================================ */
@media (max-width: 768px) {

    /* Sidebar off-canvas */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar--open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    }

    .sidebar-overlay {
        display: block;
    }

    .main-col {
        margin-left: 0;
    }

    /* Topbar */
    .topbar {
        padding: 0 16px;
    }

    .topbar__hamburger {
        display: flex;
    }

    .topbar-user__name {
        display: none;
    }

    .topbar-user__chev {
        display: none;
    }

    .topbar-user__btn {
        padding: 4px;
        border: none;
    }

    /* Content */
    .content {
        padding: 22px 16px 48px;
        max-width: 100%;
    }

    /* Page header */
    .page-header {
        padding-bottom: 24px;
        margin-bottom: 28px;
    }

    .page-header__title {
        font-size: 24px;
    }

    /* Category group */
    .cat-group {
        margin-bottom: 36px;
    }

    /* Product items — stack on very narrow */
    .product-item {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
        outline: solid 2px var(--c-navy);
    }

    .product-item--recommended {
        padding-left: 13px;
    }

    .product-item__left {
        gap: 12px;
    }

    .product-item__quota {
        font-size: 20px;
        min-width: 56px;
    }

    .product-item__right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--c-border-soft);
        padding-top: 10px;
    }

    .btn-buy {
        min-width: 80px;
        padding: 9px 20px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
    .page-header__title {
        font-size: 21px;
    }

    .cat-header__name {
        font-size: 19px;
    }
}