/* =====================================================================
   ESTETIKA INDONESIA - KATALOG QP
   Palet: indigo (pewarna batik) + rattan, di atas latar batu netral.
   Font: Jost (disimpan lokal di /fonts/jost, lisensi OFL).
   ===================================================================== */

@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/jost/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jost/jost-latin-700-normal.woff2") format("woff2"); }

:root {
    --ink: #1e2a4a;          /* indigo batik: teks judul, tombol utama */
    --ink-2: #2f3d63;
    --ink-soft: #e8ebf3;
    --rattan: #a87832;       /* aksen: label baru, status aktif */
    --rattan-soft: #f5ecdc;
    --paper: #f5f5f3;        /* latar halaman */
    --tile: #ffffff;
    --line: #e3e2de;
    --line-2: #d3d1cb;
    --text: #1d2027;
    --muted: #686c75;
    --success: #2f7d4f;
    --success-soft: #e7f3ec;
    --danger: #b42318;
    --danger-soft: #fdecea;
    --warn: #9a6a12;
    --warn-soft: #fbf1dc;
    --radius-lg: 18px;
    --radius: 12px;
    --radius-sm: 9px;
    --ct-font: "Jost", "Century Gothic", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Dasar ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body.ct {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--ct-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
:where(body.ct) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--ct-font); color: var(--ink); letter-spacing: -.005em; }
/* nolkan margin bawaan bootstrap (spesifisitas rendah, class tetap bisa mengatur margin sendiri) */
body :where(h1, h2, h3, h4, h5, h6, p) { margin-top: 0; margin-bottom: 0; }
:where(body.ct) a { color: var(--ink); }
:where(body.ct) a:hover { color: var(--ink-2); text-decoration: none; }
body.ct img { max-width: 100%; }
body.ct :focus-visible { outline: 2px solid var(--rattan); outline-offset: 2px; }

.ct-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 575px) { .ct-container { padding: 0 16px; } }
.ct-main { padding: 28px 0 64px; min-height: 60vh; }

/* ---------- Tombol ---------- */
.ct-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 500 14px/1.2 var(--ct-font);
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.ct-btn-primary { background: var(--ink); color: #fff !important; }
.ct-btn-primary:hover { background: var(--ink-2); }
.ct-btn-outline { background: #fff; color: var(--ink) !important; border-color: var(--line-2); }
.ct-btn-outline:hover { border-color: var(--ink); }
.ct-btn-ghost { background: transparent; color: var(--muted) !important; }
.ct-btn-ghost:hover { color: var(--ink) !important; background: #eceae6; }
.ct-btn-danger { background: transparent; color: var(--danger) !important; border-color: #efc6c2; }
.ct-btn-danger:hover { background: var(--danger-soft); }
.ct-btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.ct-btn-block { width: 100%; }
.ct-btn[disabled], .ct-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- Header ---------- */
.ct-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.ct-header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.ct-logo img { height: 30px; width: auto; display: block; }
.ct-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.ct-nav a {
    position: relative;
    padding: 8px 14px;
    color: var(--muted) !important;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
}
.ct-nav a:hover { color: var(--ink) !important; }
.ct-nav a.active { color: var(--ink) !important; }
.ct-nav a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--rattan);
}
.ct-nav .ct-nav-account { display: none; }
.ct-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ct-account { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ct-account b { color: var(--ink); font-weight: 600; }
.ct-account a { color: var(--muted) !important; }
.ct-account a:hover { color: var(--ink) !important; }
.ct-cart {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 14px 9px 13px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff !important;
    font-weight: 500; font-size: 14px;
}
.ct-cart:hover { background: var(--ink-2); }
.ct-badge {
    min-width: 22px; height: 22px; padding: 0 7px;
    border-radius: 999px;
    background: #fff; color: var(--ink);
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.ct-cart.bump .ct-badge { animation: ctBump .45s ease; }
@keyframes ctBump { 40% { transform: scale(1.35); background: var(--rattan-soft); } }
.ct-menu-btn {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: #fff; color: var(--ink);
    align-items: center; justify-content: center;
    font-size: 17px;
}
@media (max-width: 991px) {
    .ct-header-row { gap: 12px; height: 64px; }
    .ct-menu-btn { display: inline-flex; }
    .ct-logo img { height: 24px; }
    .ct-account { display: none; }
    .ct-cart .ct-cart-text { display: none; }
    .ct-nav {
        position: fixed; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(30, 42, 74, .12);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .15s, transform .15s, visibility .15s;
    }
    .ct-nav.open { transform: none; opacity: 1; visibility: visible; }
    .ct-nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid #f0efec; border-radius: 0; }
    .ct-nav a.active::after { left: 4px; right: auto; width: 24px; bottom: 6px; }
    .ct-nav .ct-nav-account { display: block; }
}

/* ---------- Judul halaman ---------- */
.ct-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ct-crumbs a { color: var(--muted) !important; }
.ct-crumbs a:hover { color: var(--ink) !important; }
.ct-crumbs .fa { font-size: 10px; opacity: .55; }
.ct-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ct-page-title { font-size: 32px; font-weight: 600; line-height: 1.15; }
.ct-page-sub { color: var(--muted); margin-top: 6px; max-width: 62ch; }
@media (max-width: 575px) { .ct-page-title { font-size: 26px; } }

/* ---------- Panel umum ---------- */
.ct-panel { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ct-panel-pad { padding: 22px; }
.ct-panel-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }

/* ---------- Chip & badge ---------- */
.ct-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #efeeea;
    color: var(--text);
    font-size: 13px; font-weight: 500;
    white-space: nowrap;
}
.ct-chip-ink { background: var(--ink-soft); color: var(--ink); }
.ct-tag-new {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 999px;
    background: var(--rattan); color: #fff;
    font-size: 12px; font-weight: 600;
}
.ct-tag-hot { background: var(--ink); }
.ct-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ct-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ct-status-accepted { background: var(--success-soft); color: var(--success); }
.ct-status-pending { background: var(--warn-soft); color: var(--warn); }
.ct-status-decline { background: var(--danger-soft); color: var(--danger); }
.ct-status-open { background: #efeeea; color: var(--muted); }
.ct-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, .14); flex: 0 0 auto; }

/* ---------- Kartu produk ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .ct-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .ct-grid, .ct-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px) { .ct-grid, .ct-grid-4 { gap: 10px; } }

.ct-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .15s, box-shadow .2s;
}
.ct-card:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -18px rgba(30, 42, 74, .45); }
.ct-card-media {
    position: relative; display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-bottom: 1px solid #f0efec;
}
.ct-card-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .35s ease, opacity .2s;
}
.ct-card:hover .ct-card-media img { transform: scale(1.04); }
.ct-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1 1 auto; }
.ct-card-sku { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.ct-card-title { font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--text); }
.ct-card-title a { color: inherit !important; }
.ct-card-title a:hover { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.ct-variants { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-variant {
    width: 36px; height: 36px; padding: 2px;
    border: 1px solid var(--line); border-radius: 8px;
    background: #fff; cursor: pointer;
}
.ct-variant img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ct-variant.active, .ct-variant:hover { border-color: var(--ink); }
.ct-variant-more { font-size: 12px; color: var(--muted); align-self: center; }
.ct-card-foot { margin-top: auto; padding-top: 6px; }

/* tombol tambah ke list */
.ct-add {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink) !important;
    font: 500 14px/1.2 var(--ct-font);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.ct-add:hover { background: var(--ink); color: #fff !important; }
.ct-add.is-added { background: var(--success-soft); border-color: transparent; color: var(--success) !important; }
.ct-add.is-exists { background: #efeeea; border-color: transparent; color: var(--muted) !important; }
.ct-add.is-loading { opacity: .6; pointer-events: none; }
.ct-add.is-unavailable { border-style: dashed; border-color: var(--line-2); color: var(--muted) !important; cursor: not-allowed; background: #fafaf9; }
.ct-add.is-unavailable:hover { background: #fafaf9; color: var(--muted) !important; }
@media (max-width: 420px) {
    .ct-card-body { padding: 12px; }
    .ct-card-title { font-size: 14px; }
    .ct-add { font-size: 13px; padding: 9px 8px; }
    .ct-variant { width: 30px; height: 30px; }
}

/* ---------- Toast ---------- */
.ct-toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ct-toast {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ink); color: #fff;
    font-size: 14px;
    box-shadow: 0 16px 34px -12px rgba(30, 42, 74, .6);
    pointer-events: auto;
    animation: ctToast .22s ease-out;
}
.ct-toast a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ct-toast .fa-check-circle { color: #8fd6a9; }
.ct-toast .fa-info-circle { color: #f1d49c; }
@keyframes ctToast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Form ---------- */
.ct-input, body.ct select.ct-input, body.ct textarea.ct-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: 400 15px var(--ct-font);
    transition: border-color .15s, box-shadow .15s;
}
body.ct textarea.ct-input { height: auto; min-height: 90px; padding: 10px 14px; }
.ct-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 42, 74, .12); }
.ct-label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 7px; }
.ct-search { position: relative; }
.ct-search .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ct-search .ct-input { padding-left: 40px; }

/* ---------- Pagination ---------- */
.ct-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.ct-pagination .page-nation, .ct-pagination .dots {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-weight: 500; font-size: 14px;
}
.ct-pagination .page-nation { background: #fff; border: 1px solid var(--line); color: var(--text) !important; cursor: pointer; }
.ct-pagination .page-nation:hover { border-color: var(--ink); }
.ct-pagination .page-nation.active { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ct-pagination .dots { color: var(--muted); }

/* ---------- Kosong ---------- */
.ct-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.ct-empty .fa { font-size: 34px; color: var(--line-2); margin-bottom: 14px; display: block; }
.ct-empty h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.ct-empty .ct-btn { margin-top: 18px; }

/* ---------- Skeleton ---------- */
.ct-skel { border-radius: var(--radius-lg); background: linear-gradient(90deg, #ecebe7 25%, #f6f5f2 37%, #ecebe7 63%); background-size: 400% 100%; animation: ctShimmer 1.3s ease infinite; }
@keyframes ctShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Tabel ---------- */
.ct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ct-table th {
    text-align: left;
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: #fbfbfa;
}
.ct-table td { padding: 14px 16px; border-bottom: 1px solid #f0efec; vertical-align: middle; font-size: 14.5px; }
.ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table tbody tr:hover td { background: #fbfbfa; }
.ct-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-thumb { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: contain; padding: 4px; flex: 0 0 auto; }
.ct-thumbs { display: flex; align-items: center; }
.ct-thumbs img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: #fff; object-fit: contain; margin-left: -10px; box-shadow: 0 0 0 1px var(--line); }
.ct-thumbs img:first-child { margin-left: 0; }
.ct-thumbs .ct-more { margin-left: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.ct-footer { background: var(--ink); color: #c9cfdf; padding: 44px 0 26px; font-size: 14px; }
.ct-footer a { color: #fff !important; }
.ct-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.ct-footer img { height: 28px; margin-bottom: 14px; }
.ct-footer h6 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ct-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ct-footer-copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: 12.5px; color: #9aa3bb; }
.ct-footer-copy a { color: #c9cfdf !important; }
@media (max-width: 767px) { .ct-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Modal (bootstrap) ---------- */
body.ct .modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(30, 42, 74, .45); font-family: var(--ct-font); }
body.ct .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--line); align-items: center; }
body.ct .modal-title { font-size: 19px; font-weight: 600; color: var(--ink); }
body.ct .modal-body { padding: 22px 24px; }
body.ct .modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); gap: 8px; }
body.ct .modal-footer > * { margin: 0; }
body.ct .close { font-size: 26px; font-weight: 400; color: var(--muted); opacity: 1; }

/* =====================================================================
   HALAMAN KATALOG (shop.php)
   ===================================================================== */
.ct-shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.ct-filters { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 20px; scrollbar-width: thin; }
.ct-filters-head { display: none; }
.ct-fgroup { border-top: 1px solid #f0efec; padding: 14px 0; }
.ct-fgroup:first-of-type { border-top: 0; padding-top: 4px; }
.ct-fgroup > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600; font-size: 15px; color: var(--ink);
}
.ct-fgroup > summary::-webkit-details-marker { display: none; }
.ct-fgroup > summary::after { content: "\f107"; font-family: FontAwesome; color: var(--muted); transition: transform .15s; }
.ct-fgroup[open] > summary::after { transform: rotate(180deg); }
.ct-fgroup-body { padding-top: 12px; }
.ct-fgroup-scroll { max-height: 230px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }

/* checkbox baris */
.ct-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; color: var(--text); margin: 0; }
.ct-check input { width: 17px; height: 17px; accent-color: var(--ink); flex: 0 0 auto; margin: 0; cursor: pointer; }
.ct-check .ct-count { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* checkbox chip (size, type) */
.ct-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-pill { position: relative; margin: 0; }
.ct-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ct-pill span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line-2); border-radius: 999px;
    font-size: 13px; cursor: pointer; background: #fff;
    transition: background .12s, border-color .12s, color .12s;
}
.ct-pill span:hover { border-color: var(--ink); }
.ct-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-pill input:focus-visible + span { outline: 2px solid var(--rattan); outline-offset: 2px; }

/* slider harga (jQuery UI) */
.ct-price-text { font-size: 14px; color: var(--text); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.ct-filters .ui-slider { height: 4px; border: 0; background: #e6e4df; border-radius: 4px; margin: 0 8px 6px; }
.ct-filters .ui-slider .ui-slider-range { background: var(--ink); border-radius: 4px; }
.ct-filters .ui-slider .ui-slider-handle {
    width: 18px; height: 18px; top: -7px; margin-left: -9px;
    border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: grab;
}
.ct-filters .ui-slider .ui-slider-handle:focus { outline: none; box-shadow: 0 0 0 4px rgba(30, 42, 74, .15); }

.ct-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.ct-result { color: var(--muted); font-size: 14px; }
.ct-result b { color: var(--text); font-weight: 600; }
.ct-filter-btn { display: none; }
.ct-backdrop { display: none; }
.ct-filter-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--rattan); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center; padding: 0 6px; }
.ct-filter-count.show { display: inline-flex; }

@media (max-width: 991px) {
    .ct-shop { grid-template-columns: minmax(0, 1fr); }
    .ct-filter-btn { display: inline-flex; }
    .ct-filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 2000;
        width: min(340px, 88vw); max-height: none;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        transform: translateX(-105%); transition: transform .2s ease;
        box-shadow: 0 0 40px rgba(30, 42, 74, .3);
    }
    .ct-filters.open { transform: none; }
    .ct-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .ct-filters-head h2 { font-size: 20px; font-weight: 600; }
    .ct-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 36, .45); z-index: 1999; display: none; }
    .ct-backdrop.show { display: block; }
}

/* =====================================================================
   DETAIL PRODUK (prod-detail.php)
   ===================================================================== */
.ct-pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
@media (max-width: 991px) { .ct-pd { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.ct-gallery-main {
    position: relative; display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
}
.ct-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.ct-gallery-main .ct-zoom-hint {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    font-size: 12.5px; color: var(--muted);
}
.ct-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ct-gallery-thumbs button {
    width: 76px; height: 76px; padding: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.ct-gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.ct-gallery-thumbs button.active, .ct-gallery-thumbs button:hover { border-color: var(--ink); }

.ct-pd-info { position: sticky; top: 96px; }
@media (max-width: 991px) { .ct-pd-info { position: static; } }
.ct-pd-sku { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.ct-pd-title { font-size: 34px; font-weight: 600; line-height: 1.15; margin: 6px 0 14px; }
@media (max-width: 575px) { .ct-pd-title { font-size: 27px; } }
.ct-pd-section { padding: 18px 0; border-top: 1px solid var(--line); }
.ct-pd-section h2 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.ct-pd-section .ct-pills span { cursor: pointer; }
.ct-size-btn {
    min-width: 46px; padding: 8px 14px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: #fff; font: 500 14px var(--ct-font); color: var(--text); cursor: pointer;
}
.ct-size-btn:hover, .ct-size-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.ct-color-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px;
    border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff; font: 400 14px var(--ct-font); color: var(--text); cursor: pointer;
}
.ct-color-btn:hover, .ct-color-btn.active { border-color: var(--ink); }
.ct-pd-cta { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.ct-pd-cta .ct-add { padding: 14px; font-size: 15.5px; background: var(--ink); color: #fff !important; }
.ct-pd-cta .ct-add:hover { background: var(--ink-2); }
.ct-pd-cta .ct-add.is-added { background: var(--success-soft); color: var(--success) !important; }
.ct-pd-cta .ct-add.is-exists { background: #efeeea; color: var(--muted) !important; }
.ct-pd-cta .ct-add.is-unavailable { background: #fafaf9; color: var(--muted) !important; }
.ct-note { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.ct-specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 14.5px; }
.ct-specs dt { color: var(--muted); font-weight: 400; }
.ct-specs dd { margin: 0; color: var(--text); font-weight: 500; }
.ct-section-title { font-size: 24px; font-weight: 600; margin: 48px 0 18px; }

/* =====================================================================
   HOME (index.php)
   ===================================================================== */
.ct-hero { padding: 40px 0 28px; }
.ct-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
@media (max-width: 991px) { .ct-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.ct-hero-title { font-size: 52px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.ct-hero-title span { display: block; color: var(--rattan); }
@media (max-width: 1199px) { .ct-hero-title { font-size: 44px; } }
@media (max-width: 575px) { .ct-hero-title { font-size: 34px; } }
.ct-hero-text { font-size: 17px; color: var(--muted); margin: 20px 0 28px !important; max-width: 46ch; }
.ct-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ct-hero-actions .ct-btn { padding: 14px 22px; font-size: 15px; }

.ct-mosaic { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 230px 190px; gap: 12px; }
.ct-mosaic figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #e6e4df; }
.ct-mosaic figure:nth-child(1) { grid-row: 1 / 3; }
.ct-mosaic figure:nth-child(4) { grid-column: 2 / 4; }
.ct-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-mosaic figcaption {
    position: absolute; left: 12px; bottom: 12px; right: 12px;
    width: fit-content; max-width: calc(100% - 24px);
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: 13px; font-weight: 500; color: var(--ink);
}
@media (max-width: 575px) { .ct-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; } .ct-mosaic figure:nth-child(1) { grid-row: 1 / 2; grid-column: 1 / 3; } .ct-mosaic figure:nth-child(4) { grid-column: 1 / 3; } }

.ct-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0 8px; }
.ct-step { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-left: 1px solid var(--line); }
.ct-step:first-child { border-left: 0; padding-left: 0; }
.ct-step-no {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
    border: 1.5px solid var(--ink); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px;
}
.ct-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px !important; }
.ct-step p { font-size: 14px; color: var(--muted); }
@media (max-width: 767px) { .ct-steps { grid-template-columns: 1fr; } .ct-step { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; } .ct-step:first-child { border-top: 0; } }

.ct-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-tab {
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line-2); background: #fff;
    font: 500 14px var(--ct-font); color: var(--text); cursor: pointer;
}
.ct-tab:hover { border-color: var(--ink); }
.ct-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 48px 0 18px; }
.ct-section-head .ct-section-title { margin: 0; }

/* =====================================================================
   QP LIST (shopping-cart.php) & QP TERSIMPAN
   ===================================================================== */
.ct-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 991px) { .ct-cart-layout { grid-template-columns: minmax(0, 1fr); } }
.ct-cart-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; }
.ct-cart-head { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; }
.ct-cart-head .ct-thumb { width: 92px; height: 92px; border-radius: 12px; }
.ct-cart-name { font-size: 17px; font-weight: 500; line-height: 1.3; }
.ct-cart-name a { color: var(--text) !important; }
.ct-cart-name a:hover { color: var(--ink) !important; }
.ct-cart-meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.ct-cart-controls { display: flex; align-items: center; gap: 10px; }
.ct-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.ct-qty button { width: 36px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.ct-qty button:hover { background: #f3f2ef; }
.ct-qty input { width: 56px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 500 15px var(--ct-font); -moz-appearance: textfield; }
.ct-qty input::-webkit-outer-spin-button, .ct-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ct-qty input:focus { outline: none; background: var(--ink-soft); }
.ct-icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted) !important; background: #fff; }
.ct-icon-btn:hover { color: var(--danger) !important; border-color: #efc6c2; background: var(--danger-soft); }
.ct-sizes { border-top: 1px solid #f0efec; background: #fbfbfa; }
.ct-size-row { display: grid; grid-template-columns: 52px 70px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 18px; border-top: 1px solid #f0efec; font-size: 14px; }
.ct-size-row:first-child { border-top: 0; }
.ct-size-row img { width: 52px; height: 52px; border-radius: 9px; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 2px; }
.ct-size-row .ct-cell-label { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 767px) {
    .ct-cart-head { grid-template-columns: 72px minmax(0, 1fr); }
    .ct-cart-head .ct-thumb { width: 72px; height: 72px; }
    .ct-cart-controls { grid-column: 1 / -1; justify-content: space-between; }
    .ct-size-row { grid-template-columns: 44px 1fr; }
    .ct-size-row img { width: 44px; height: 44px; }
    .ct-size-row > :nth-child(3), .ct-size-row > :nth-child(4) { grid-column: 2; }
}
.ct-summary { position: sticky; top: 96px; padding: 22px; }
.ct-summary h2 { font-size: 19px; font-weight: 600; margin-bottom: 14px !important; }
.ct-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0efec; font-size: 15px; }
.ct-summary-row span:first-child { color: var(--muted); }
.ct-summary-row b { font-weight: 600; }
.ct-summary .ct-btn-block { margin-top: 18px; padding: 14px; font-size: 15.5px; }
.ct-summary .ct-note { margin-top: 12px; }
.ct-alert { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-top: 16px; }
.ct-alert a { color: var(--warn) !important; font-weight: 600; text-decoration: underline; }

/* ---------- Tabel bertumpuk di layar kecil (Saved QP & detail QP) ---------- */
@media (max-width: 767px) {
    .ct-table-stack thead { display: none; }
    .ct-table-stack, .ct-table-stack tbody, .ct-table-stack tfoot { display: block; width: 100%; }
    .ct-table-stack tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px;
        padding: 14px 16px; border-bottom: 1px solid #f0efec;
    }
    .ct-table-stack tbody tr:last-child { border-bottom: 0; }
    .ct-table-stack td, .ct-table-stack tfoot td { display: block; grid-column: 1 / -1; padding: 0; border: 0; background: none !important; }
    .ct-table-stack td[data-label] {
        display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
        text-align: right; font-size: 14px;
    }
    .ct-table-stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; text-align: left; }
    .ct-table-stack .ct-m-head { grid-column: 1; grid-row: 1; align-self: center; }
    .ct-table-stack .ct-m-end { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
    .ct-table-stack tfoot tr { background: #faf9f7; border-top: 1px solid var(--line); }
    .ct-table-stack .ct-prod { min-width: 0; }
}
