/* ==========================================================================
   /produk — DESKTOP upgrade layer (>= 992px)
   Loaded from products/index.php's `styles` section, after products.min.css.
   Everything here lives inside min-width: 992px so mobile/tablet stay
   exactly as they were. (2026-09-21)
   ========================================================================== */

/* Utility shared by JS toast (also used by quick-add) */
.wm-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    pointer-events: none;
}
.wm-toast {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 260px;
    max-width: 360px;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: auto;
}
.wm-toast.is-in { opacity: 1; transform: none; }
.wm-toast i { font-size: 1.1rem; color: var(--color-action, #ffef33); }
.wm-toast.is-error i { color: #fb7185; }
.wm-toast a { color: var(--color-action, #ffef33); margin-left: auto; white-space: nowrap; text-decoration: none; }

/* Selected-category check (filter panel, desktop sidebar + tablet off-canvas) */
.filter-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border-radius: 50%;
    background: #111827;
    color: var(--color-action, #ffef33);
    box-shadow: 0 0 0 3px rgba(255, 235, 0, .4);
    animation: filterCheckPop .3s cubic-bezier(.2, .9, .3, 1.4) both;
}
.filter-check i {
    display: block;
    font-size: .82rem;
    line-height: 1;
    -webkit-text-stroke: .35px currentColor; /* bi-check-lg is thin; a hair of stroke makes it read as a solid tick */
}
@keyframes filterCheckPop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .filter-check { animation: none; }
}

@media (max-width: 991.98px) {
    .toolbar-view-toggle,
    .product-card-hover-overlay { display: none !important; }
}
@media (max-width: 767.98px) {
    .produk-bestseller { display: none !important; } /* phones get .produk-bestseller-m instead */
}

@media (min-width: 992px) {
    body.no-horizontal-scroll:has(.marketplace-page),
    .marketplace-page {
        overflow-x: clip;
    }

    .filters-sidebar {
        max-height: calc(100vh - 110px);
        overflow: visible;
    }

    .filters-sidebar-header {
        position: static;
    }

    .filters-sidebar > .filter-form {
        max-height: calc(100vh - 250px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 .25rem .75rem 0;
        scrollbar-width: thin;
        scrollbar-color: #a3a3a3 transparent;
    }

    .filters-sidebar > .filter-form::-webkit-scrollbar {
        width: 6px;
    }

    .filters-sidebar > .filter-form::-webkit-scrollbar-track {
        background: transparent;
    }

    .filters-sidebar > .filter-form::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #a3a3a3;
    }

    .filters-sidebar > .filter-form::-webkit-scrollbar-button {
        display: none;
    }

    /* ------------------------------------------------------------------
       1. HERO — featured product showcase (replaces stat dashboard card)
       ------------------------------------------------------------------ */
    .produk-hero-v2 {
        background:
            radial-gradient(ellipse 780px 420px at 12% -8%, rgba(255, 235, 0, .16), transparent 70%),
            radial-gradient(ellipse 620px 420px at 92% 110%, rgba(99, 102, 241, .22), transparent 70%),
            #0b0b0b;
    }

    .hero-feature {
        position: relative;
        display: block;
        max-width: 440px;
        margin-left: auto;
        padding: 14px;
        border-radius: 26px;
        background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
        border: 1px solid rgba(255, 255, 255, .16);
        backdrop-filter: blur(22px);
        box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
        color: #fff;
        text-decoration: none;
        transform: perspective(1200px) rotateY(var(--tilt-x, -5deg)) rotateX(var(--tilt-y, 2deg));
        transition: transform .25s ease-out, box-shadow .25s ease;
        will-change: transform;
    }
    .hero-feature:hover { color: #fff; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 235, 0, .25); }
    /* Rotating slides: all stacked in one grid cell (container height = tallest
       slide, so the card never jumps), cross-faded with a short stagger so the
       two titles never overlap at half opacity. */
    .hero-feature-stage { display: grid; }
    .hero-feature-slide {
        grid-area: 1 / 1;
        display: block;
        color: #fff;
        text-decoration: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
    }
    .hero-feature-slide:hover { color: #fff; }
    .hero-feature-slide.is-active {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .6s ease .25s, transform .6s cubic-bezier(.2, .8, .2, 1) .25s, visibility 0s;
    }
    /* slow settle-in zoom on the screenshot; hover nudges it further */
    .hero-feature-slide .hero-feature-media img { transform: scale(1.08); transition: transform 6s ease-out; }
    .hero-feature-slide.is-active .hero-feature-media img { transform: scale(1); }
    .hero-feature-slide.is-active:hover .hero-feature-media img { transform: scale(1.04); transition-duration: .6s; }

    .hero-feature-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .9rem; }
    .hero-feature-dot {
        position: relative;
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 99px;
        background: rgba(255, 255, 255, .28);
        cursor: pointer;
        transition: width .35s ease, background .2s ease;
    }
    .hero-feature-dot::before { content: ''; position: absolute; inset: -8px -3px; } /* bigger hit area */
    .hero-feature-dot:hover { background: rgba(255, 255, 255, .5); }
    .hero-feature-dot:focus-visible { outline: 2px solid var(--color-action, #ffef33); outline-offset: 3px; }
    .hero-feature-dot.is-active { width: 34px; background: rgba(255, 255, 255, .22); }
    .hero-feature-dot.is-active::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: var(--color-action, #ffef33);
        transform-origin: left center;
        animation: heroDotFill var(--hero-interval, 5500ms) linear forwards;
    }
    @keyframes heroDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .hero-feature.is-paused .hero-feature-dot.is-active::after { animation-play-state: paused; }
    @media (prefers-reduced-motion: reduce) {
        .hero-feature-slide,
        .hero-feature-slide.is-active { transition: none; transform: none; }
        .hero-feature-slide .hero-feature-media img { transition: none; transform: none; }
        .hero-feature-dot.is-active::after { animation: none; transform: none; }
    }

    .hero-feature-label {
        position: absolute;
        top: -14px;
        left: 22px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .35rem .8rem;
        border-radius: 999px;
        background: var(--color-action, #ffef33);
        color: #111;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        box-shadow: 0 8px 20px -6px rgba(255, 235, 0, .55);
    }
    .hero-feature-media {
        position: relative;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
        overflow: hidden;
        background: #1a1a1a;
    }
    /* browser-window chrome, so the product reads as a live preview */
    .hero-feature-media::before {
        content: '';
        position: absolute;
        inset: 0 0 auto 0;
        height: 26px;
        z-index: 2;
        background:
            radial-gradient(circle at 14px 13px, #ff5f57 4px, transparent 5px),
            radial-gradient(circle at 30px 13px, #febc2e 4px, transparent 5px),
            radial-gradient(circle at 46px 13px, #28c840 4px, transparent 5px),
            rgba(17, 17, 17, .78);
        backdrop-filter: blur(6px);
    }
    .hero-feature-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
        transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    }
    .hero-feature-media-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 2.5rem;
        color: rgba(255, 255, 255, .3);
    }
    .hero-feature-discount {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 3;
        padding: .3rem .65rem;
        border-radius: 10px;
        background: #ef4444;
        color: #fff;
        font-size: .8rem;
        font-weight: 800;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, .22), 0 0 24px rgba(239, 68, 68, .55);
        animation: heroDiscountGlow 2.4s ease-in-out infinite;
    }
    @keyframes heroDiscountGlow {
        0%, 100% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .22), 0 0 20px rgba(239, 68, 68, .45); }
        50%      { box-shadow: 0 0 0 7px rgba(239, 68, 68, .12), 0 0 32px rgba(239, 68, 68, .7); }
    }
    .hero-feature-body { padding: 1rem .35rem .35rem; }
    .hero-feature-cat {
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .5);
    }
    .hero-feature-title {
        margin: .25rem 0 .6rem;
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.35;
        color: #fff;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-feature-row {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
    }
    .hero-feature-price { display: flex; flex-direction: column; line-height: 1.1; }
    .hero-feature-price strong { font-size: 1.4rem; font-weight: 800; color: var(--color-action, #ffef33); letter-spacing: -.02em; }
    .hero-feature-price s { font-size: .78rem; color: rgba(255, 255, 255, .45); margin-bottom: .2rem; }
    .hero-feature-cta {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .55rem 1rem;
        border-radius: 999px;
        background: #fff;
        color: #0b0b0b;
        font-size: .8rem;
        font-weight: 700;
        transition: transform .15s ease, background .15s ease;
    }
    .hero-feature-slide:hover .hero-feature-cta { background: var(--color-action, #ffef33); transform: translateX(2px); }
    .hero-feature-social {
        display: flex;
        gap: .9rem;
        margin-top: .8rem;
        padding-top: .8rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
        font-size: .74rem;
        color: rgba(255, 255, 255, .6);
    }
    .hero-feature-social i { color: var(--color-action, #ffef33); margin-right: .25rem; }

    .hero-feature-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .4rem;
        padding: 2.5rem 1.5rem;
        text-align: center;
        transform: none;
    }
    .hero-feature-empty i { font-size: 2.2rem; color: var(--color-action, #ffef33); }
    .hero-feature-empty strong { font-size: 1.05rem; }
    .hero-feature-empty span { font-size: .85rem; color: rgba(255, 255, 255, .6); }

    /* compact stats below the showcase — quiet, not a dashboard */
    .hero-mini-stats {
        display: flex;
        justify-content: flex-end;
        gap: 1.75rem;
        max-width: 440px;
        margin: 1.4rem 0 0 auto;
        padding: 0 .5rem;
    }
    .hero-mini-stats div { display: flex; flex-direction: column; line-height: 1.15; }
    .hero-mini-stats strong { color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
    .hero-mini-stats span { color: rgba(255, 255, 255, .5); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-top: .15rem; }


    /* ------------------------------------------------------------------
       4. FILTER SIDEBAR
       ------------------------------------------------------------------ */
    .filters-sidebar { max-height: calc(100vh - 110px); overflow: visible; }

    .filter-price-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
    .filter-price-preset-btn {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        padding: .32rem .7rem;
        border-radius: 999px;
        font-size: .74rem;
        font-weight: 600;
        border: 1px solid var(--color-border, #e5e7eb);
        background: #fff;
        color: var(--color-text-secondary, #4b5563);
        cursor: pointer;
        transition: all .15s ease;
    }
    .filter-price-preset-btn:hover { border-color: #111827; color: #111827; }
    .filter-price-preset-btn.active { background: #111827; border-color: #111827; color: var(--color-action, #ffef33); font-weight: 700; }

    /* Category / rating / price-type rows: custom radio-style indicator
       instead of plain grey blocks. Whole row is still a real <a>. */
    .filters-sidebar .filter-option a {
        position: relative;
        padding: .5rem .65rem;
        background: transparent;
        border: 1px solid transparent;
        font-size: .86rem;
    }
    .filters-sidebar .filter-option a:hover { background: #f8fafc; border-color: transparent; color: #111827; }
    .filters-sidebar .filter-option.active a { background: #fffbe6; border-color: rgba(202, 138, 4, .35); color: #111827; font-weight: 700; }
    .filters-sidebar .filter-option a > i:first-child {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        margin-right: .1rem !important;
        border-radius: 8px;
        font-size: .8rem;
        color: var(--cat-fg, #4f46e5);
        background: var(--cat-bg, #eef2ff);
    }
    .filters-sidebar .filter-options > .filter-option:nth-child(6n+1) { --cat-fg: #4f46e5; --cat-bg: #eef2ff; }
    .filters-sidebar .filter-options > .filter-option:nth-child(6n+2) { --cat-fg: #059669; --cat-bg: #ecfdf5; }
    .filters-sidebar .filter-options > .filter-option:nth-child(6n+3) { --cat-fg: #d97706; --cat-bg: #fffbeb; }
    .filters-sidebar .filter-options > .filter-option:nth-child(6n+4) { --cat-fg: #db2777; --cat-bg: #fdf2f8; }
    .filters-sidebar .filter-options > .filter-option:nth-child(6n+5) { --cat-fg: #0284c7; --cat-bg: #f0f9ff; }
    .filters-sidebar .filter-options > .filter-option:nth-child(6n+6) { --cat-fg: #7c3aed; --cat-bg: #f5f3ff; }
    .filters-sidebar .collapse .filter-option:nth-child(6n+1) { --cat-fg: #4f46e5; --cat-bg: #eef2ff; }
    .filters-sidebar .collapse .filter-option:nth-child(6n+2) { --cat-fg: #059669; --cat-bg: #ecfdf5; }
    .filters-sidebar .collapse .filter-option:nth-child(6n+3) { --cat-fg: #d97706; --cat-bg: #fffbeb; }
    .filters-sidebar .collapse .filter-option:nth-child(6n+4) { --cat-fg: #db2777; --cat-bg: #fdf2f8; }
    .filters-sidebar .collapse .filter-option:nth-child(6n+5) { --cat-fg: #0284c7; --cat-bg: #f0f9ff; }
    .filters-sidebar .collapse .filter-option:nth-child(6n+6) { --cat-fg: #7c3aed; --cat-bg: #f5f3ff; }
    .filters-sidebar .filter-options-row .filter-option a > i:first-child { width: 22px; height: 22px; font-size: .72rem; }
    .filters-sidebar .filter-stars { color: #f59e0b; font-size: .78rem; letter-spacing: 1px; }

    .filters-sidebar .price-inputs .form-input,
    .filters-sidebar .form-select { min-height: 40px; padding: .5rem .7rem; font-size: .85rem; border: 1px solid #d1d5db; border-radius: 12px; background-color: #fff; color: #111827; }
    .filters-sidebar .price-inputs .form-input:focus,
    .filters-sidebar .form-select:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(255, 235, 0, .45); outline: 0; }

    /* Auto-apply: the submit button becomes a screen-reader/Enter fallback */
    .filter-actions.is-auto-apply .btn-primary {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; margin: -1px;
    }
    .filter-actions.is-auto-apply .btn-outline { margin-top: 0 !important; }
    .filter-auto-note { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; font-size: .72rem; color: var(--color-text-muted, #6b7280); }
    .filter-auto-note i { color: #059669; }

    /* ------------------------------------------------------------------
       5. PRODUCT CARD — hover quick actions, equal heights
       ------------------------------------------------------------------ */

    .product-card .product-share { display: none !important; }

    .product-card .product-card-image { position: relative; }
    .product-card-hover-overlay {
        position: absolute;
        inset: 0;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        /* Keep the action column clear of the wishlist button in the lower-left. */
        padding: 1rem 1rem 1rem 4rem;
        background: linear-gradient(180deg, rgba(10, 10, 10, .25), rgba(10, 10, 10, .72));
        backdrop-filter: blur(3px);
        opacity: 0;
        transition: opacity .22s ease;
        /* Clicks on the bare overlay fall through to the image link below;
           only the buttons themselves are interactive. Kept in the tab order
           (opacity, not visibility) and revealed on :focus-within. */
        pointer-events: none;
    }
    .product-card-hover-overlay .product-card-hover-btn,
    .product-card-hover-overlay form { pointer-events: auto; }
    .product-card:hover .product-card-hover-overlay,
    .product-card:focus-within .product-card-hover-overlay { opacity: 1; }
    .product-card-hover-overlay .product-card-hover-btn,
    .product-card-hover-overlay form { transform: translateY(8px); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
    .product-card:hover .product-card-hover-overlay .product-card-hover-btn,
    .product-card:hover .product-card-hover-overlay form,
    .product-card:focus-within .product-card-hover-overlay .product-card-hover-btn,
    .product-card:focus-within .product-card-hover-overlay form { transform: none; }
    .product-card:hover .product-card-hover-overlay form { transition-delay: .04s; }

    .product-card-hover-cart-form {
        width: 100%;
        max-width: 210px;
        margin: 0;
        padding: 0;
    }
    .product-card-hover-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        width: 100%;
        max-width: 210px;
        min-width: 0;
        box-sizing: border-box;
        padding: .6rem 1.1rem;
        border: 0;
        border-radius: 999px;
        font-size: .8rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        white-space: normal;
        cursor: pointer;
        transition: background .15s ease, box-shadow .15s ease, color .15s ease;
    }
    .product-card-hover-view { background: rgba(255, 255, 255, .95); color: #0b0b0b; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
    .product-card-hover-view:hover { background: #fff; color: #0b0b0b; }
    .product-card-hover-cart { background: var(--color-action, #ffef33); color: #111; box-shadow: 0 6px 18px rgba(255, 235, 0, .35); }
    .product-card-hover-cart:hover { background: #fff36b; color: #111; box-shadow: 0 8px 22px rgba(255, 235, 0, .55); }
    .product-card-hover-cart.is-free { background: #22c55e; color: #fff; box-shadow: 0 6px 18px rgba(34, 197, 94, .4); }
    .product-card-hover-cart.is-free:hover { background: #16a34a; color: #fff; }
    .product-card-hover-cart[disabled] { opacity: .7; cursor: progress; }
    .product-card-hover-cart.is-done { background: #22c55e; color: #fff; }

    .toolbar-view-toggle {
        display: inline-flex;
        padding: 3px;
        border-radius: 12px;
        background: #f3f4f6;
    }
    .toolbar-view-btn {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        padding: .4rem .65rem;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: #6b7280;
        font-size: .76rem;
        font-weight: 700;
        cursor: pointer;
        transition: all .15s ease;
    }
    .toolbar-view-btn:hover { color: #111827; }
    .toolbar-view-btn.is-active { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }

    /* Grid density (toggle sets data-grid-cols on #productsLayoutRoot) */
    #productsLayoutRoot .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
    #productsLayoutRoot[data-grid-cols="4"] .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    #productsLayoutRoot[data-grid-cols="4"] .product-card-body { padding: .9rem; }
    #productsLayoutRoot[data-grid-cols="4"] .product-title { font-size: .88rem; }
    #productsLayoutRoot[data-grid-cols="4"] .product-tagline { display: none; }
    #productsLayoutRoot[data-grid-cols="4"] .price-current { font-size: 1.05rem; }
    #productsLayoutRoot[data-grid-cols="4"] .product-card-hover-btn { min-width: 0; padding: .55rem .9rem; font-size: .74rem; }
    @media (min-width: 1500px) {
        #productsLayoutRoot .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        #productsLayoutRoot[data-grid-cols="4"] .products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    }

}

/* ==========================================================================
   SHARED >= 768px (tablet + desktop): trust strip, card polish, toolbar,
   sort dropdown, active filters, pagination
   ========================================================================== */
@media (min-width: 768px) {
    /* ------------------------------------------------------------------
       3. TRUST STRIP above the catalog
       ------------------------------------------------------------------ */
    .produk-trust-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 1.75rem;
    }
    .produk-trust-item {
        display: flex;
        align-items: flex-start;
        gap: .85rem;
        padding: 1rem 1.1rem;
        border-radius: 16px;
        background: #fff;
        border: 1px solid var(--color-border, #e5e7eb);
        box-shadow: 0 2px 10px -4px rgba(15, 23, 42, .06);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .produk-trust-item:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(15, 23, 42, .25); border-color: rgba(17, 24, 39, .18); }
    .produk-trust-icon {
        flex: 0 0 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1.1rem;
        background: #111827;
        color: var(--color-action, #ffef33);
    }
    .produk-trust-item:nth-child(2) .produk-trust-icon { background: #ecfdf5; color: #059669; }
    .produk-trust-item:nth-child(3) .produk-trust-icon { background: #eef2ff; color: #4f46e5; }
    .produk-trust-text strong { display: block; font-size: .88rem; font-weight: 700; color: var(--color-text-primary, #111827); }
    .produk-trust-text span { display: block; margin-top: .15rem; font-size: .78rem; line-height: 1.4; color: var(--color-text-secondary, #6b7280); }

    .product-card { background: #fff; border: 1px solid rgba(15, 23, 42, .06); }
    .product-card:hover { transform: translateY(-4px); }

    /* Equal-height rows: title/tagline reserve their space, price pins to the bottom */
    .products-grid .product-card-body,
    .product-carousel .product-card-body { padding: 1.1rem 1.15rem 1.15rem; }
    .product-card .product-title { min-height: calc(1.45em * 2); line-height: 1.45; font-size: .96rem; }
    .product-card .product-tagline { min-height: 1.25em; }
    .product-card .product-price { margin-top: auto; margin-bottom: 0; }
    .product-card .product-meta { min-height: 46px; }
    .product-card .product-category-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

    /* ------------------------------------------------------------------
       6. TOOLBAR — sort dropdown, view toggle, active filters
       ------------------------------------------------------------------ */
    .products-toolbar {
        background: #fff;
        border: 1px solid var(--color-border, #e5e7eb);
        box-shadow: 0 2px 10px -4px rgba(15, 23, 42, .06);
        border-radius: 16px;
        padding: .75rem 1rem;
    }
    .products-count { font-size: .9rem; color: var(--color-text-primary, #111827); }
    .products-count .text-muted { font-weight: 500; }
    .toolbar-right { gap: .75rem; flex-wrap: nowrap; }

    .sort-dropdown {
        position: relative;
        display: inline-flex;
        align-items: center;
    }
    .sort-dropdown .sort-icon {
        position: absolute;
        left: .85rem;
        z-index: 1;
        pointer-events: none;
        color: #111827;
        font-size: 1rem;
    }
    .sort-dropdown .form-select {
        min-width: 210px;
        min-height: 40px;
        padding: .45rem 2.4rem .45rem 2.45rem;
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 12px;
        background-color: #fff;
        color: #111827;
        font-size: .84rem;
        font-weight: 600;
        cursor: pointer;
        transition: border-color .15s ease, box-shadow .15s ease;
    }
    .sort-dropdown .form-select:hover { border-color: #111827; }
    .sort-dropdown .form-select:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(255, 235, 0, .45); outline: 0; }

    .active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
    .active-filters .filter-chip {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .35rem .5rem .35rem .8rem;
        border-radius: 999px;
        background: #111827;
        color: #fff;
        font-size: .78rem;
        font-weight: 600;
    }
    .active-filters .filter-chip-remove { display: inline-flex; color: rgba(255, 255, 255, .65); }
    .active-filters .filter-chip-remove:hover { color: var(--color-action, #ffef33); }
    .active-filters .clear-all-filters { margin-left: .25rem; font-size: .78rem; font-weight: 700; color: #ef4444; text-decoration: none; }
    .active-filters .clear-all-filters:hover { text-decoration: underline; }

    /* ------------------------------------------------------------------
       7. PAGINATION
       ------------------------------------------------------------------ */
    .wm-pagination .page-link { min-width: 42px; text-align: center; }
}


/* ==========================================================================
   PALING LARIS — leaderboard, tablet + desktop (#1 lead card + ranked list)
   ========================================================================== */
@media (min-width: 768px) {
    .produk-bestseller {
        padding: 3.25rem 0 .5rem;
        background:
            radial-gradient(ellipse 620px 260px at 0% 0%, rgba(255, 235, 0, .14), transparent 70%),
            #fafaf7;
    }
    .bs-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem;
        margin-bottom: 1.75rem;
    }
    .bs-badge {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .35rem .8rem;
        border-radius: 999px;
        background: #111827;
        color: var(--color-action, #ffef33);
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
    .bs-badge i { color: #fb923c; }
    .bs-title {
        margin: .7rem 0 .25rem;
        font-size: clamp(1.5rem, 2.4vw, 2rem);
        font-weight: 800;
        letter-spacing: -.02em;
        color: #111827;
    }
    .bs-title span {
        background: linear-gradient(90deg, #f59e0b, #ea580c);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .bs-sub { margin: 0; font-size: .9rem; color: #6b7280; }
    .bs-all {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .6rem 1.1rem;
        border-radius: 999px;
        border: 1px solid #d1d5db;
        background: #fff;
        color: #111827;
        font-size: .82rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        transition: all .15s ease;
    }
    .bs-all:hover { background: #111827; border-color: #111827; color: var(--color-action, #ffef33); }
    .bs-all i { transition: transform .15s ease; }
    .bs-all:hover i { transform: translateX(3px); }

    .bs-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 1.5rem;
        align-items: stretch;
    }
    .bs-grid-solo { grid-template-columns: minmax(0, 560px); }

    /* ---- #1 lead card ---- */
    .bs-lead {
        display: flex;
        flex-direction: column;
        border-radius: 24px;
        overflow: hidden;
        background: #0b0b0b;
        color: #fff;
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 235, 0, .18);
    }
    .bs-lead-media {
        position: relative;
        display: block;
        aspect-ratio: 16 / 9;
        background: #1a1a1a;
        overflow: hidden;
    }
    .bs-lead-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    }
    .bs-lead:hover .bs-lead-media img { transform: scale(1.04); }
    .bs-lead-media::after {
        content: '';
        position: absolute;
        inset: auto 0 0 0;
        height: 45%;
        background: linear-gradient(180deg, transparent, rgba(11, 11, 11, .85));
        pointer-events: none;
    }
    .bs-crown {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .4rem .85rem;
        border-radius: 999px;
        background: linear-gradient(135deg, #fde047, #f59e0b);
        color: #451a03;
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .03em;
        box-shadow: 0 8px 22px -6px rgba(245, 158, 11, .7);
    }
    .bs-lead-disc {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        padding: .3rem .65rem;
        border-radius: 10px;
        background: #ef4444;
        color: #fff;
        font-size: .8rem;
        font-weight: 800;
    }
    .bs-lead-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 1.4rem 1.4rem; flex: 1; }
    .bs-lead-cat { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
    .bs-lead-name { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
    .bs-lead-name a { color: #fff; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .bs-lead-name a:hover { color: var(--color-action, #ffef33); }
    .bs-lead-stats { display: flex; gap: 1.1rem; font-size: .82rem; color: rgba(255, 255, 255, .65); }
    .bs-lead-stats i { color: var(--color-action, #ffef33); margin-right: .25rem; }
    .bs-lead-stats strong { color: #fff; }
    .bs-lead-foot {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .bs-price { display: flex; flex-direction: column; line-height: 1.1; }
    .bs-price strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--color-action, #ffef33); }
    .bs-price s { font-size: .8rem; color: rgba(255, 255, 255, .45); margin-top: .2rem; }
    .bs-lead-foot form { margin: 0; }
    .bs-lead-btn {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .7rem 1.25rem;
        border: 0;
        border-radius: 999px;
        background: var(--color-action, #ffef33);
        color: #111;
        font-size: .85rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 10px 24px -8px rgba(255, 235, 0, .55);
        transition: transform .15s ease, box-shadow .15s ease;
    }
    .bs-lead-btn:hover { color: #111; transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(255, 235, 0, .7); }
    .bs-lead-btn[disabled] { opacity: .75; cursor: progress; }
    .bs-lead-btn.is-done { background: #22c55e; color: #fff; }

    /* ---- #2..#5 ranked list ---- */
    .bs-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-auto-rows: 1fr;
        gap: .8rem;
    }
    .bs-row {
        display: grid;
        grid-template-columns: 38px 88px minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
        padding: .8rem 1rem .8rem .85rem;
        border-radius: 18px;
        background: #fff;
        border: 1px solid #ececec;
        box-shadow: 0 2px 10px -6px rgba(15, 23, 42, .1);
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .bs-row:hover { transform: translateX(3px); border-color: #111827; box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35); }
    .bs-rank {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #f3f4f6;
        color: #6b7280;
        font-size: 1.05rem;
        font-weight: 800;
    }
    .bs-rank-2 .bs-rank { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); color: #334155; }
    .bs-rank-3 .bs-rank { background: linear-gradient(135deg, #fed7aa, #fb923c); color: #7c2d12; }
    .bs-thumb {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 88px;
        height: 66px;
        border-radius: 12px;
        overflow: hidden;
        background: #f3f4f6;
        color: #9ca3af;
    }
    .bs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .bs-info { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
    .bs-cat { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bs-name {
        font-size: .92rem;
        font-weight: 700;
        line-height: 1.35;
        color: #111827;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .bs-name:hover { color: #b45309; }
    .bs-bar {
        position: relative;
        display: flex;
        align-items: center;
        gap: .55rem;
        margin-top: .15rem;
    }
    .bs-bar::before {
        content: '';
        flex: 1;
        height: 6px;
        border-radius: 99px;
        background: #f1f5f9;
    }
    .bs-bar-fill {
        position: absolute;
        left: 0;
        height: 6px;
        max-width: calc(100% - 78px);
        border-radius: 99px;
        background: linear-gradient(90deg, #fbbf24, #f97316);
    }
    .bs-bar em { flex: 0 0 auto; min-width: 70px; font-style: normal; font-size: .7rem; font-weight: 600; color: #6b7280; }
    .bs-buy { display: flex; align-items: center; gap: .8rem; }
    .bs-buy form { margin: 0; }
    .bs-price-sm { align-items: flex-end; text-align: right; }
    .bs-price-sm strong { font-size: 1rem; color: #111827; }
    .bs-price-sm s { color: #9ca3af; font-size: .72rem; margin-top: .15rem; }
    .bs-add {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: #111827;
        color: var(--color-action, #ffef33);
        font-size: 1rem;
        text-decoration: none;
        cursor: pointer;
        transition: transform .15s ease, background .15s ease, color .15s ease;
    }
    .bs-add:hover { transform: scale(1.08); background: var(--color-action, #ffef33); color: #111; }
    .bs-add[disabled] { opacity: .75; cursor: progress; }
    .bs-add.is-done { background: #22c55e; color: #fff; }

    /* below 1200px: single column, and the #1 card lies down (image | text) so it
       doesn't turn into a huge 16:9 poster at full width */
    @media (max-width: 1199.98px) {
        .bs-grid { grid-template-columns: 1fr; }
        .bs-list { grid-auto-rows: auto; }
        .bs-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
        .bs-lead-media { aspect-ratio: auto; height: 100%; min-height: 250px; }
        .bs-lead-body { justify-content: center; }
    }
}

/* ==========================================================================
   TABLET (768px – 991.98px)
   The page used to fall through to the stretched phone layout here (no hero,
   no toolbar/sort/filter, an unstyled phone header row). Tablet now gets a
   compact hero, trust strip, leaderboard, category chips, a toolbar with a
   Filter button (opens the off-canvas filter panel), 3-up grid + pagination.
   ========================================================================== */
.produk-tablet-cats,
.toolbar-filter-btn { display: none; }

@media (min-width: 768px) and (max-width: 991.98px) {

    /* -- hero: text column only, tighter vertical rhythm -- */
    .produk-hero-v2 { padding: calc(2.25rem + 72px) 0 2.5rem; }
    .produk-hero-grid { padding-top: 0; gap: 0; }
    .produk-hero-col-side { display: none; }
    .produk-hero-desc { max-width: 620px; margin-bottom: 1.4rem; }

    /* -- trust strip: 3 compact columns -- */
    .produk-trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
    .produk-trust-item { flex-direction: column; gap: .6rem; padding: .9rem .95rem; }
    .produk-trust-item:hover { transform: none; }
    .produk-trust-icon { flex: 0 0 36px; width: 36px; height: 36px; font-size: 1rem; }
    .produk-trust-text strong { font-size: .84rem; }
    .produk-trust-text span { font-size: .74rem; }

    /* -- leaderboard -- */
    .produk-bestseller { padding: 2rem 0 .25rem; }
    .bs-head { margin-bottom: 1.25rem; }
    .bs-title { font-size: 1.55rem; }
    .bs-lead-name { font-size: 1.1rem; }
    .bs-lead-body { padding: 1.1rem; }
    .bs-price strong { font-size: 1.25rem; }
    .bs-lead-btn { padding: .6rem 1rem; font-size: .8rem; }

    /* -- category chips (replaces the phone-only bottom bar) -- */
    .produk-tablet-cats {
        display: flex;
        gap: .5rem;
        margin: 0 -16px 1rem;
        padding: .15rem 16px .35rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .produk-tablet-cats::-webkit-scrollbar { display: none; }
    .produk-tablet-chip {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .5rem .95rem;
        border-radius: 999px;
        border: 1px solid var(--color-border, #e5e7eb);
        background: #fff;
        color: #374151;
        font-size: .82rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        transition: all .15s ease;
    }
    .produk-tablet-chip i { font-size: .9rem; color: #6b7280; }
    .produk-tablet-chip:hover { border-color: #111827; color: #111827; }
    .produk-tablet-chip.active { background: #111827; border-color: #111827; color: var(--color-action, #ffef33); }
    .produk-tablet-chip.active i { color: var(--color-action, #ffef33); }

    /* -- toolbar: one row (count · Filter · sort) instead of the phone stack -- */
    .products-toolbar { flex-direction: row; flex-wrap: nowrap; align-items: center; padding: .6rem .8rem; margin-bottom: 1rem; }
    .products-toolbar .toolbar-left { display: flex; min-width: 0; }
    .products-count { font-size: .84rem; }
    .products-count .text-muted { display: none; }
    /* app.css stacks the right cluster full-width below 992px (phone layout) — undo that here */
    .toolbar-right { width: auto; flex: 0 0 auto; flex-direction: row; align-items: center; margin-left: auto; gap: .5rem; }
    .sort-dropdown { width: auto; flex: 0 0 auto; }
    .sort-dropdown .sort-icon { display: block; }
    .sort-dropdown .form-select { width: auto; min-width: 170px; max-width: none; font-size: .84rem; padding: .45rem 2.2rem .45rem 2.45rem; }
    .products-toolbar .toolbar-left { flex: 1 1 auto; }
    .products-count { white-space: nowrap; }
    .toolbar-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        min-height: 40px;
        padding: .45rem .9rem;
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 12px;
        background: #fff;
        color: #111827;
        font-size: .84rem;
        font-weight: 700;
        cursor: pointer;
        transition: all .15s ease;
    }
    .toolbar-filter-btn:hover { border-color: #111827; }
    .toolbar-filter-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 .35rem;
        border-radius: 999px;
        background: #111827;
        color: var(--color-action, #ffef33);
        font-size: .7rem;
        font-weight: 800;
    }

    /* -- grid: 3 across with even card heights -- */
    #productsLayoutRoot .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .products-grid .product-card-body { padding: .9rem .95rem 1rem; }
    .product-card .product-title { font-size: .9rem; }
    .product-card .product-tagline { display: none; }
    .product-card .price-current { font-size: 1.1rem; }
    .product-card .product-meta { min-height: 0; }

    /* -- pagination -- */
    .wm-pagination { gap: 6px !important; flex-wrap: wrap; }
    .wm-pagination .page-link { padding: 8px 14px; min-width: 40px; }
}

/* ==========================================================================
   LIGHT HERO (>= 768px, where the hero is shown)
   Overrides the dark hero from products.min.css and the dark showcase card
   above. Kept as one block at the end so the previous dark values stay easy
   to compare/revert. The navbar rule follows the /jasa + homepage precedent:
   over a light hero the navbar is forced into its dark translucent look from
   the very top (body.produk-page is set in layouts/main.php).
   ========================================================================== */
@media (min-width: 768px) {
    /* identical to body.home-page .navbar in home.min.css */
    body.produk-page .navbar {
        background: rgba(10, 16, 32, 0.55);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .produk-hero-v2 {
        background:
            radial-gradient(ellipse 780px 430px at 8% -8%, rgba(255, 235, 0, .36), transparent 66%),
            radial-gradient(ellipse 640px 450px at 96% 96%, rgba(99, 102, 241, .13), transparent 70%),
            linear-gradient(180deg, #fffdf0 0%, #ffffff 72%);
        border-bottom: 1px solid #ecece5;
    }

    .produk-hero-badge {
        background: #fff;
        border-color: #e5e7eb;
        color: #374151;
        box-shadow: 0 2px 8px -4px rgba(15, 23, 42, .14);
    }
    .produk-hero-badge .bi-lightning-charge-fill { color: #f59e0b; }
    .produk-hero-badge .bi-bag-heart-fill { color: #ef4444; }

    .produk-hero-title { color: #111827; }
    /* brand yellow can't be text on white, so it becomes a highlighter stroke */
    .produk-hero-title-gradient {
        background: linear-gradient(180deg, transparent 58%, var(--color-action, #ffef33) 58%, var(--color-action, #ffef33) 93%, transparent 93%);
        -webkit-background-clip: border-box;
        background-clip: border-box;
        -webkit-text-fill-color: #111827;
        color: #111827;
        padding: 0 .12em;
        margin: 0 -.12em;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    .produk-hero-desc { color: #4b5563; }
    .produk-hero-desc strong { color: #111827; }

    .produk-hero-search-inner {
        background: #fff;
        border-color: #e5e7eb;
        box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .3);
        backdrop-filter: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }
    .produk-hero-search-inner:focus-within {
        border-color: #111827;
        box-shadow: 0 0 0 4px rgba(255, 235, 0, .5), 0 14px 34px -18px rgba(15, 23, 42, .3);
    }
    .produk-hero-search-inner i.bi-search { color: #9ca3af; }
    .produk-hero-search-inner input { color: #111827; }
    .produk-hero-search-inner input::placeholder { color: #9ca3af; }

    .produk-hero-search-tags span { color: #9ca3af; }
    .produk-hero-search-tags a { color: #374151; background: #fff; border-color: #e5e7eb; }
    .produk-hero-search-tags a:hover { background: #111827; border-color: #111827; color: var(--color-action, #ffef33); }

    .produk-hero-btn-primary { background: #111827; color: #fff; box-shadow: 0 12px 26px -12px rgba(17, 24, 39, .6); }
    .produk-hero-btn-primary:hover { background: #000; color: var(--color-action, #ffef33); }
    .produk-hero-btn-secondary { background: #fff; border-color: #d1d5db; color: #111827; }
    .produk-hero-btn-secondary:hover { background: #fff; border-color: #111827; color: #111827; }
    .produk-hero-btn-secondary .bi-fire { color: #f97316; }

    /* -- showcase card -- */
    .hero-feature {
        background: linear-gradient(160deg, #ffffff, #fbfbf7);
        border: 1px solid #e8e8e0;
        backdrop-filter: none;
        box-shadow: 0 44px 70px -36px rgba(15, 23, 42, .38), inset 0 1px 0 #fff;
        color: #111827;
    }
    .hero-feature:hover { color: #111827; box-shadow: 0 54px 80px -36px rgba(15, 23, 42, .45), 0 0 0 1px rgba(245, 158, 11, .5); }
    .hero-feature-media { background: #f1f1ec; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06); }
    .hero-feature-media::before { background:
        radial-gradient(circle at 14px 13px, #ff5f57 4px, transparent 5px),
        radial-gradient(circle at 30px 13px, #febc2e 4px, transparent 5px),
        radial-gradient(circle at 46px 13px, #28c840 4px, transparent 5px),
        rgba(243, 244, 246, .94); }
    .hero-feature-slide,
    .hero-feature-slide:hover { color: #111827; }
    .hero-feature-cat { color: #9ca3af; }
    .hero-feature-title { color: #111827; }
    .hero-feature-price strong { color: #111827; }
    .hero-feature-price s { color: #9ca3af; }
    .hero-feature-cta { background: #111827; color: var(--color-action, #ffef33); }
    .hero-feature-slide:hover .hero-feature-cta { background: var(--color-action, #ffef33); color: #111; }
    .hero-feature-social { border-top-color: #eeeee8; color: #6b7280; }
    .hero-feature-social i { color: #f59e0b; }

    .hero-feature-dot { background: rgba(17, 24, 39, .16); }
    .hero-feature-dot:hover { background: rgba(17, 24, 39, .32); }
    .hero-feature-dot.is-active { background: rgba(17, 24, 39, .12); }
    .hero-feature-dot.is-active::after { background: #111827; }

    .hero-feature-empty i { color: #f59e0b; }
    .hero-feature-empty span { color: #6b7280; }

    .hero-mini-stats strong { color: #111827; }
    .hero-mini-stats span { color: #6b7280; }
}

/* ------------------------------------------------------------------
   PRODUCT CARD — /produk desktop grid (2026-10-20 redesign)
   Clean image with a hover action bar that slides up from the bottom
   (Lihat Detail + Keranjang side by side, no dark blur), a round
   wishlist button top-right, type pill + discount top-left, and a
   quiet body (category, title, one meta line, price). The body also
   links to the detail page. Scoped to #productGrid >= 992px so mobile
   and other pages reusing product_card.php are unaffected.
   ------------------------------------------------------------------ */
#productGrid .product-card .product-card-hover-overlay,
#productGrid .product-card-wishlist-form,
#productGrid .product-card-image > .product-card-wishlist-btn,
#productGrid .product-mobile-cart-form,
#productGrid .product-price-row > .product-mobile-cart-btn {
    display: none !important;
}

@media (min-width: 992px) {
    #productGrid .product-card {
        position: relative;
        border-radius: 18px;
        border: 1px solid rgba(15, 23, 42, .07);
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
        overflow: hidden;
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    #productGrid .product-card:hover {
        transform: translateY(-4px);
        border-color: rgba(15, 23, 42, .12);
        box-shadow: 0 18px 36px rgba(15, 23, 42, .11);
    }

    /* Image */
    #productGrid .product-card-image { background: #f4f4f5; }
    #productGrid .product-card .product-thumb {
        object-fit: contain;
        transition: transform .5s cubic-bezier(.2, .8, .2, 1);
    }
    #productGrid .product-card:hover .product-thumb { transform: scale(1.05); }

    /* Top-left: type pill, discount right under it */
    #productGrid .product-card-image .product-type-badge {
        position: absolute;
        top: .75rem;
        left: .75rem;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        padding: .3rem .65rem;
        border-radius: 999px;
        font-size: .7rem;
        font-weight: 700;
        line-height: 1.2;
        backdrop-filter: blur(6px);
    }
    #productGrid .product-card[data-type="digital"] .product-type-badge { background: rgba(250, 204, 21, .95); color: #1a1b22; }
    #productGrid .product-card[data-type="physical"] .product-type-badge { background: rgba(17, 24, 39, .82); color: #fff; }
    #productGrid .product-card[data-type="service"] .product-type-badge { background: rgba(16, 185, 129, .95); color: #fff; }
    #productGrid .product-card-image .product-badges-right {
        left: .75rem;
        right: auto;
        top: 2.65rem;
        align-items: flex-start;
    }
    #productGrid .product-card-image .product-badges .badge {
        padding: .22rem .55rem;
        border-radius: 999px;
        font-size: .7rem;
    }

    /* Top-right: round wishlist button */
    #productGrid .product-card-wishlist-form,
    #productGrid .product-card-image > .product-card-wishlist-btn {
        top: .75rem !important;
        right: .75rem !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 4 !important;
    }
    #productGrid .product-card-wishlist-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, .92) !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .14) !important;
        backdrop-filter: blur(8px);
        font-size: 1rem;
        line-height: 1;
        transition: transform .2s ease, background .2s ease, color .2s ease;
    }
    #productGrid .product-card-wishlist-btn:hover {
        transform: scale(1.1);
        background: #fff !important;
        color: #e11d48 !important;
    }
    #productGrid .product-card-wishlist-btn[aria-pressed="true"] { color: #e11d48 !important; }

    /* Hover action bar: slides up from the bottom of the image */
    #productGrid .product-card-hover-overlay {
        display: flex !important;
        top: auto;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        gap: .5rem;
        height: 45%;
        padding: .75rem;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .38) 100%);
        backdrop-filter: none;
        z-index: 3;
    }
    #productGrid .product-card-hover-overlay .product-card-hover-btn,
    #productGrid .product-card-hover-overlay form { transform: translateY(14px); }
    #productGrid .product-card:hover .product-card-hover-overlay .product-card-hover-btn,
    #productGrid .product-card:hover .product-card-hover-overlay form,
    #productGrid .product-card:focus-within .product-card-hover-overlay .product-card-hover-btn,
    #productGrid .product-card:focus-within .product-card-hover-overlay form { transform: none; }
    #productGrid .product-card-hover-cart-form { flex: 1 1 0; max-width: none; }
    #productGrid .product-card-hover-btn {
        flex: 1 1 0;
        max-width: none;
        height: 40px;
        padding: 0 .7rem;
        border-radius: 12px;
        font-size: .78rem;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    }
    #productGrid .product-card-hover-cart-form .product-card-hover-btn { width: 100%; }
    #productGrid .product-card-hover-view { background: #fff; color: #111827; }
    #productGrid .product-card-hover-view:hover { background: #f3f4f6; color: #111827; }
    #productGrid .product-card-hover-cart { background: #111827; color: #facc15; }
    #productGrid .product-card-hover-cart:hover { background: #000; color: #fde047; box-shadow: 0 8px 20px rgba(0, 0, 0, .28); }

    /* Body */
    #productGrid .product-card-body {
        position: relative;
        padding: 1rem 1.1rem 1.1rem;
        gap: .35rem;
    }
    #productGrid .product-category-link {
        position: relative;
        z-index: 2;
        font-size: .7rem;
        letter-spacing: .05em;
        color: #6b7280;
    }
    /* keeps its line so titles stay aligned with neighbouring cards */
    #productGrid .product-card[data-type="service"] .product-category-link { visibility: hidden; }
    #productGrid .product-card .product-title {
        min-height: calc(1.4em * 2);
        line-height: 1.4;
        font-size: .97rem;
        font-weight: 700;
        margin: 0;
    }
    #productGrid .product-title-text {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    #productGrid .product-card .product-title a { color: #111827; }
    /* The body area links to the detail page (image already does) */
    #productGrid .product-card-body .product-title a::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    #productGrid .product-card .product-meta {
        min-height: 1.2rem;
        margin: 0;
        padding: 0;
        border: 0;
        font-size: .78rem;
        color: #6b7280;
    }
    #productGrid .product-meta .pdp-rating-new {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        padding: 0;
        background: none;
        font-size: .78rem;
        font-weight: 600;
        color: #059669;
    }

    /* Footer: price only (cart lives in the hover bar) */
    #productGrid .product-price-row {
        margin-top: auto;
        padding-top: .55rem;
        border-top: 0;
    }
    #productGrid .product-price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: .1rem .5rem;
        margin: 0;
    }
    #productGrid .product-card .price-current { font-size: 1.15rem; font-weight: 800; }
    #productGrid .product-card .price-original { font-size: .8rem; }
    #productGrid .product-mobile-cart-btn { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #productGrid .product-card-image .product-thumb { object-fit: contain; }
    #productGrid .product-title-text {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}
