:root {
    --primary: #0d6efd;
    --primary-dark: #0046af;
    --danger: #e53935;
    --danger-soft: #fff6f6;
    --danger-border: #ffd8d8;
    --text: #1a1a1a;
    --muted: #7b8494;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 16px 36px rgba(0,0,0,0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at top left, #f7fbff 0%, #fdfdfd 40%),
        #fdfdfd;
    color: var(--text);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eef2f7;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    font-size: 1.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: -6px;
    max-width: 65%;
}

.navbar-brand img {
    object-fit: contain;
    transition: 0.3s ease;
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.navbar-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.navbar-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.navbar-user-actions .btn {
    white-space: nowrap;
}

.navbar-cart-btn {
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    flex: 0 0 46px;
}

.navbar-cart-btn i {
    font-size: 1.45rem !important;
}

/* =========================
   HERO
========================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 72px 0 78px;
    border-radius: 0 0 42px 42px;
    color: white;
    margin-bottom: 34px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.88;
}

/* =========================
   FLASH SALE
========================= */
.fs-container {
    background: linear-gradient(180deg, #fff9f9 0%, #fff4f4 100%);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 34px;
    border: 1px solid #ffd8d8;
    box-shadow: 0 14px 35px rgba(229, 57, 53, 0.08);
    position: relative;
    overflow: hidden;
}

.fs-container::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.05);
}

.fs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.fs-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.fs-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
    font-size: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(229,57,53,0.08);
}

.fs-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #e53935;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: #7b8494;
    font-weight: 500;
}

.fs-timer-box {
    min-width: 210px;
    text-align: right;
}

.fs-timer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #7b8494;
    margin: 0;
    line-height: 1;
}

.fs-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d4f, #d9363e);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

#timer-fs {
    display: inline-block;
    min-width: 92px;
    text-align: center;
}

.fs-slider-wrap {
    position: relative;
    z-index: 2;
}

.fs-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.fs-scroll::-webkit-scrollbar {
    display: none;
}

.fs-item {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    background: white;
    border-radius: 18px;
    padding: 12px;
    border: 1px solid #f1f1f1;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

.fs-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}

.fs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(255,77,79,0.25);
}

.fs-image-wrap {
    width: 100%;
    height: 128px;
    background: #fff8f8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.fs-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.fs-item:hover .fs-image-wrap img {
    transform: scale(1.05);
}

.fs-name {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.6em;
    margin-bottom: 6px;
    color: #20242b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-price {
    font-size: 1.28rem;
    font-weight: 800;
    color: #e53935;
    line-height: 1.2;
    margin-bottom: 2px;
}

.fs-old-price {
    color: #9aa0a6;
    text-decoration: line-through;
    font-size: 0.79rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.fs-save {
    font-size: 0.72rem;
    color: #e53935;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 1.2em;
}

.fs-btn {
    border: none;
    width: 100%;
    background: linear-gradient(135deg, #ff4d4f 0%, #e53935 100%);
    color: #fff;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(255,77,79,0.18);
    transition: 0.2s ease;
}

.fs-btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.fs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    color: #e53935;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.fs-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.fs-nav-left {
    left: -6px;
}

.fs-nav-right {
    right: -6px;
}

/* =========================
   SEARCH & CATEGORY
========================= */
.search-container {
    max-width: 480px;
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    border-radius: 16px;
    padding: 14px 20px 14px 48px;
    border: 1px solid #ebeff5;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    font-weight: 500;
}

.search-input:focus {
    box-shadow: 0 12px 28px rgba(13,110,253,0.10);
    border-color: #cfe0ff;
}

.search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.btn-category {
    white-space: nowrap;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid #e8edf5;
    background: white;
    color: #667085;
    transition: 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}

.btn-category:hover {
    transform: translateY(-1px);
    border-color: #d7e3fb;
    color: var(--primary);
}

.btn-category.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 10px 20px rgba(13,110,253,0.22);
}

/* =========================
   CART MODAL
========================= */
#cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 370px;
    max-width: 100%;
    height: 100vh;
    z-index: 2000;
    transition: 0.4s;
    overflow-y: auto;
    background: white;
    box-shadow: -14px 0 36px rgba(0,0,0,0.12);
    border-left: 1px solid #eef2f7;
}

.cart-header-title {
    letter-spacing: -0.02em;
}

.cart-checkout-btn {
    box-shadow: 0 12px 24px rgba(25,135,84,0.18);
}

/* =========================
   BADGE SECTION
========================= */
.bg-primary-subtle {
    background: rgba(13, 110, 253, 0.12) !important;
}

.bg-secondary-subtle {
    background: rgba(108, 117, 125, 0.14) !important;
}

/* =========================
   CART POPUP
========================= */
.cart-popup {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(130%) scale(0.96);
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    border-radius: 20px;
    padding: 12px 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.24);
    z-index: 3000;
    width: min(94%, 520px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.32s ease;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    display: block;
}

.cart-popup.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.cart-popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-right: 34px;
}

.cart-popup-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.cart-popup-check {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(34,197,94,0.24);
    animation: popupCheckBounce 0.45s ease;
}

@keyframes popupCheckBounce {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    70% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.cart-popup-thumb-wrap {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.cart-popup-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-popup-info {
    min-width: 0;
}

.cart-popup-title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.cart-popup-total {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 3px;
}

.cart-popup-btn {
    border: none;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 16px;
    white-space: nowrap;
    box-shadow: 0 10px 18px rgba(34,197,94,0.22);
    transition: 0.22s ease;
}

.cart-popup-btn:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.cart-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    backdrop-filter: blur(6px);
    transition: 0.2s ease;
    padding: 0;
}

.cart-popup-close:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.08);
}

/* =========================
   PRODUCT CARD
========================= */
.product-card {
    position: relative;
    isolation: isolate;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.14) !important;
}

.product-image-wrap {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.product-image {
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
    will-change: transform;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.22) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-18deg);
    transition: left 0.45s ease;
    pointer-events: none;
}

.product-card:hover .product-image-wrap::after {
    left: 130%;
}

.cart-icon-btn {
    transition: transform 0.15s ease, color 0.2s;
}

.cart-icon-btn:active {
    transform: scale(1.3);
}

.cart-icon-btn:hover {
    color: #198754;
}

/* target tombol di card produk */
.product-card .btn,
.product-card a.btn,
.product-card button.btn,
.beli-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: hidden;
    font-weight: 700;
}

.product-card .btn i {
    flex: 0 0 auto;
}

/* =========================
   FLASH SALE BUTTON DOUBLE
========================= */
.fs-btn-cart {
    width: 42px;
    min-width: 42px;
    padding: 10px 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-btn-buy {
    flex: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* =========================
   PRODUCT ACTION
========================= */
.cart-action-wrap {
    min-width: 78px;
}

.product-action-row {
    position: relative;
    min-height: 44px;
    z-index: 20;
}

.product-action-default,
.product-action-qty,
.product-card .card-body {
    position: relative;
    z-index: 20;
}

.product-action-default {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.25s ease;
}

.product-action-default.hide {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.product-action-qty {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    pointer-events: none;
    transition: all 0.25s ease;
}

.product-action-qty.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.qty-control-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    padding: 4px 6px;
}

.qty-btn-inline {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.qty-btn-inline.minus {
    background: #dc3545;
}

.qty-number-inline {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
    color: #1f2937;
    font-size: 0.95rem;
}

/* =========================
   RIBBON MERAH + KILAU
========================= */
.ribbon-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 92px;
    height: 92px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.ribbon-badge {
    position: absolute;
    top: 14px;
    left: -28px;
    width: 120px;
    text-align: center;
    background: linear-gradient(135deg, #ff0000, #ff3b3b);
    color: #fff;
    padding: 6px 0;
    font-size: 0.65rem;
    font-weight: 900;
    transform: rotate(-45deg);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
    overflow: hidden;
    pointer-events: none;
}

.ribbon-badge.flash {
    background: linear-gradient(135deg, #ff1a1a, #ff6a6a);
}

.ribbon-badge::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -120%;
    width: 45%;
    height: 150%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.35) 40%,
        rgba(255,255,255,0.95) 50%,
        rgba(255,255,255,0.35) 60%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shineMove 2.4s linear infinite;
    pointer-events: none;
}

@keyframes shineMove {
    0% { left: -120%; }
    100% { left: 150%; }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767.98px) {
    .navbar .container {
        gap: 10px;
    }

    .navbar-brand {
        font-size: 1.05rem;
        max-width: 52%;
    }

    .navbar-brand img {
        height: 32px !important;
        width: auto;
    }

    .navbar-right-group {
        gap: 8px;
    }

    .navbar-user-actions {
        gap: 8px;
    }

    .navbar .btn {
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
        border-radius: 999px !important;
    }

    .navbar-cart-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        flex: 0 0 42px;
    }

    .navbar-cart-btn i {
        font-size: 1.3rem !important;
    }

    .hero-section {
        margin-top: 6px;
        padding: 56px 0 62px;
        border-radius: 0 0 28px 28px;
    }

    .fs-container {
        padding: 18px;
        border-radius: 20px;
    }

    .fs-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        margin-bottom: 18px;
        position: relative;
        z-index: 2;
        flex-wrap: wrap;
    }

    .fs-timer-box {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        margin-left: 0;
        text-align: left;
    }

    .fs-item {
        min-width: 170px;
        max-width: 170px;
    }

    .fs-image-wrap {
        height: 118px;
    }

    .fs-nav {
        display: none;
    }

    #cart-modal {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: 48%;
    }

    .navbar-user-actions .btn {
        padding: 8px 12px !important;
        font-size: 0.88rem !important;
    }

    .cart-popup {
        width: calc(100% - 20px);
        bottom: 14px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .cart-popup-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-popup-left {
        width: 100%;
    }

    .cart-popup-title {
        max-width: none;
        white-space: normal;
    }

    .cart-popup-btn {
        width: 100%;
    }

    .qty-control-animated {
        gap: 10px;
        padding: 6px 8px;
    }

    .qty-btn-animated {
        width: 32px;
        height: 32px;
    }

    .qty-value-animated {
        min-width: 22px;
        font-size: 0.95rem;
    }
}

.buy-now-btn,
.add-to-cart-btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 30;
}

/* ===== FIX TOMBOL CART + BELI DI CARD ===== */
.product-action-default {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.product-cart-btn {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    position: relative;
    z-index: 30;
}

.product-buy-btn {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    z-index: 30;
}

.product-buy-btn {
    pointer-events: auto !important;
}

/* =========================
   PRODUCT IMAGE PREMIUM FX
========================= */

.product-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* gambar */
.product-image {
    transition: transform 0.45s ease, filter 0.3s ease;
    will-change: transform;
}

/* hover zoom */
.product-card:hover .product-image {
    transform: scale(1.12);
    filter: brightness(1.05) saturate(1.05);
}

/* glow halus */
.product-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13,110,253,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover .product-image-wrap::before {
    opacity: 1;
}

/* efek kilau jalan */
.product-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 40%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.25) 60%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.product-card:hover .product-image-wrap::after {
    left: 140%;
}

/* =========================
   PRODUCT CARD ULTRA HOVER
========================= */

.product-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    will-change: transform;
}

.product-card:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateY(-8px);
    box-shadow: 0 22px 44px rgba(13, 110, 253, 0.16) !important;
}

/* glow background halus */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(13, 110, 253, 0.10), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.28), transparent 28%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

/* gambar */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    z-index: 2;
}

.product-image {
    transition:
        transform 0.5s ease,
        filter 0.35s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.product-card:hover .product-image {
    transform: scale(1.12) translateZ(10px);
    filter: brightness(1.05) saturate(1.08);
}

/* glow halus di area gambar */
.product-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13,110,253,0.10), transparent 72%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.product-card:hover .product-image-wrap::before {
    opacity: 1;
}

/* efek kilau jalan */
.product-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.20) 40%,
        rgba(255,255,255,0.75) 50%,
        rgba(255,255,255,0.20) 60%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

.product-card:hover .product-image-wrap::after {
    left: 140%;
}

/* isi card sedikit naik saat hover */
.product-card .card-body {
    position: relative;
    z-index: 4;
    transition: transform 0.35s ease;
}

.product-card:hover .card-body {
    transform: translateY(-2px);
}

/* =========================
   FIX BUTTON PRODUK MOBILE
========================= */

.product-action-default {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* icon keranjang */
.product-cart-btn,
.cart-icon-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}

/* tombol beli sekarang */
.product-buy-btn {
    flex: 1;
    height: 38px;
    font-size: 0.8rem;
    border-radius: 999px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 12px;
}

/* biar rapi di mobile */
@media (max-width: 575.98px) {
    .product-buy-btn {
        font-size: 0.75rem;
        padding: 0 10px;
    }
}

.product-buy-btn {
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    box-shadow: 0 6px 16px rgba(13,110,253,0.25);
}

.qty-input-animated {
    width: 44px;
    min-width: 44px;
    height: 34px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.qty-input-animated::-webkit-outer-spin-button,
.qty-input-animated::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================
   QTY CONTROL SIMPLE COMPACT
========================= */
.qty-control-animated {
    width: 100% !important;
    max-width: 160px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: #f8fbff !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.06) !important;
}

.qty-btn-animated {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #1e293b !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease !important;
}

.qty-btn-animated.minus {
    color: #ef4444 !important;
}

.qty-btn-animated.plus {
    color: #16a34a !important;
}

.qty-btn-animated:hover {
    background: rgba(13, 110, 253, 0.06) !important;
    transform: scale(1.04) !important;
}

.qty-btn-animated:active {
    transform: scale(0.94) !important;
}

.qty-input-animated,
.qty-value-animated {
    width: 44px !important;
    min-width: 44px !important;
    height: 30px !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    outline: none !important;
    padding: 0 4px !important;
    box-shadow: none !important;
    flex: 0 0 44px !important;
}

.qty-input-animated:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.10) !important;
    color: #0d6efd !important;
}

.qty-input-animated::-webkit-outer-spin-button,
.qty-input-animated::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-animated {
    -moz-appearance: textfield;
}

@media (max-width: 575.98px) {
    .qty-control-animated {
        max-width: 150px !important;
        gap: 6px !important;
        padding: 4px 7px !important;
    }

    .qty-btn-animated {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 0.95rem !important;
    }

    .qty-input-animated,
    .qty-value-animated {
        width: 40px !important;
        min-width: 40px !important;
        height: 28px !important;
        flex-basis: 40px !important;
        font-size: 0.9rem !important;
    }
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
}

.product-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.15) 35%,
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,0.15) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    animation: shineProduk 2.4s infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes shineProduk {
    0% {
        left: -120%;
    }
    45% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

.product-image {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
    filter: brightness(1.05);
}