/* Combined Store CSS */

:root {
            --primary: hsl(245, 75%, 60%);
            --primary-hover: hsl(245, 75%, 52%);
            --primary-light: hsl(245, 100%, 96%);
            --primary-light-hover: hsl(245, 100%, 92%);
            --bg: hsl(210, 40%, 98%);
            --surface: hsl(0, 0%, 100%);
            --surface-glass: rgba(255, 255, 255, 0.75);
            --text-main: hsl(222, 47%, 11%);
            --text-muted: hsl(215, 16%, 47%);
            --border: hsl(214, 32%, 91%);
            --border-hover: hsl(214, 32%, 80%);
            --success: hsl(142, 72%, 29%);
            --success-light: hsl(138, 76%, 95%);
            --danger: hsl(0, 84%, 60%);
            --danger-light: hsl(0, 86%, 97%);
            --accent: hsl(335, 75%, 55%);

            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-full: 9999px;

            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 20px 25px -5px rgba(99, 102, 241, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-sticky: 0 -4px 20px -2px rgba(0, 0, 0, 0.05);

            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        body {
            background-color: var(--bg);
            background-image:
                radial-gradient(at 0% 0%, hsla(245, 75%, 60%, 0.03) 0, transparent 50%),
                radial-gradient(at 100% 0%, hsla(335, 75%, 55%, 0.03) 0, transparent 50%),
                radial-gradient(at 50% 100%, hsla(215, 30%, 20%, 0.02) 0, transparent 50%);
            color: var(--text-main);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeSpeed;
            overflow-x: clip;
            /* clip allows sticky elements to work unlike hidden */
        }

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 100;
            background: var(--surface-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 1rem 1.5rem;
            transition: var(--transition);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-search-wrapper {
            position: relative;
            flex: 1;
            max-width: 480px;
            margin: 0 1.5rem;
            display: flex;
            align-items: center;
        }

        .search-input-relative {
            position: relative;
            flex: 1;
        }

        .nav-search-wrapper .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
            transition: var(--transition);
        }

        .nav-search-wrapper input {
            width: 100%;
            padding: 0.65rem 2.5rem;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            font-size: 0.9rem;
            background: var(--surface);
            color: var(--text-main);
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }

        .nav-search-wrapper input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }

        .nav-search-wrapper input:focus+.search-icon {
            color: var(--primary);
        }

        .search-back-btn {
            display: none;
        }

        .search-clear-btn {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.25rem;
            border-radius: var(--radius-full);
            transition: var(--transition);
        }

        .search-clear-btn:hover {
            color: var(--text-main);
            background: rgba(0, 0, 0, 0.05);
        }

        .nav-search-toggle-btn {
            display: none;
        }

        .bottom-nav {
            display: none;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.02em;
        }

        .logo-icon {
            font-size: 1.5rem;
            -webkit-text-fill-color: initial;
        }

        .nav-cart-btn {
            background: var(--surface);
            border: 1.5px solid var(--border);
            padding: 0.6rem 1.2rem;
            border-radius: var(--radius-full);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
            font-size: 0.95rem;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
            position: relative;
        }

        .nav-cart-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }

        .nav-notif-btn {
            background: var(--surface);
            border: 1.5px solid var(--border);
            padding: 0.6rem;
            border-radius: var(--radius-full);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
            position: relative;
        }

        .nav-notif-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }

        .nav-notif-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: var(--accent);
            color: white;
            border-radius: var(--radius-full);
            font-size: 0.65rem;
            font-weight: 800;
            min-width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-cart-badge {
            background: var(--accent);
            color: white;
            border-radius: var(--radius-full);
            padding: 0.15rem 0.5rem;
            font-size: 0.75rem;
            font-weight: 800;
            min-width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: calc(2rem + 75px) 1.5rem 2rem;
            min-height: calc(100vh - 75px);
            display: flex;
            flex-direction: column;
        }

        .hero {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2.5rem 1.5rem;
            background: linear-gradient(135deg, hsla(245, 75%, 60%, 0.04) 0%, hsla(335, 75%, 55%, 0.04) 100%);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(99, 102, 241, 0.08);
            animation: fadeIn 0.6s ease;
        }

        .hero h1 {
            font-size: 2.5rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            margin-bottom: 0.5rem;
            color: var(--text-main);
        }

        .hero h1 span {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p {
            color: var(--text-muted);
            font-size: 1.1rem;
            font-weight: 500;
            max-width: 600px;
            margin: 0 auto;
        }

        .view-section {
            display: none;
            animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            flex: 1;
        }

        .view-section.active {
            display: block;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .product-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.25rem;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            cursor: default;
        }

        .product-badge-prefix {
            background: linear-gradient(135deg, #ee4d2d, #ff7337);
            color: white;
            font-size: 0.65rem;
            font-weight: 800;
            padding: 2px 5px;
            border-radius: 3px;
            margin-right: 6px;
            display: inline-block;
            vertical-align: middle;
            line-height: 1;
        }

        .product-badge-prefix.badge-mall {
            background: linear-gradient(135deg, #d0011b, #ff1744);
        }

        .product-badge-prefix.badge-star {
            background: linear-gradient(135deg, #f05d40, #ff8a00);
        }

        .product-badge-prefix.badge-star-plus {
            background: linear-gradient(135deg, #ff4e50, #f9d423);
        }

        .product-discount-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(254, 240, 138, 0.95);
            color: #ca8a04;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            z-index: 2;
            box-shadow: var(--shadow-sm);
            border: 0.5px solid rgba(234, 179, 8, 0.3);
        }

        .product-rating-sold {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 600;
        }

        .product-rating-sold .star-rating {
            color: #eab308;
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .product-rating-sold .divider {
            color: var(--border);
        }

        .product-price-slashed {
            font-size: 0.78rem;
            color: var(--text-muted);
            text-decoration: line-through;
            margin-right: 6px;
            font-weight: 500;
        }

        .product-price-actual {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--primary);
        }

        .product-location-footer {
            margin-top: auto;
            padding-top: 8px;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .product-card:hover {
            transform: translateY(-6px);
            border-color: rgba(99, 102, 241, 0.2);
            box-shadow: var(--shadow-lg);
        }

        .product-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: var(--accent);
            color: white;
            padding: 0.3rem 0.75rem;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 700;
            z-index: 2;
            box-shadow: var(--shadow-sm);
        }

        .product-image-wrapper {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            border-radius: var(--radius-md);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4.5rem;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
        }

        .product-card:hover .product-image-wrapper {
            background: linear-gradient(135deg, var(--primary-light), hsla(335, 75%, 95%, 1));
            transform: scale(1.02);
        }

        .product-image-wrapper .emoji-art {
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .product-card:hover .emoji-art {
            transform: scale(1.15) rotate(5deg);
        }

        .product-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .product-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.4rem;
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .product-rating {
            display: flex;
            align-items: center;
            gap: 0.2rem;
            color: #eab308;
        }

        .product-title {
            font-weight: 700;
            font-size: 1.15rem;
            margin-bottom: 0.5rem;
            color: var(--text-main);
            line-height: 1.3;
        }

        .product-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 1.25rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }

        .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .product-price-box {
            display: flex;
            flex-direction: column;
        }

        .price-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .product-price {
            color: var(--text-main);
            font-weight: 800;
            font-size: 1.25rem;
        }

        .product-actions {
            display: flex;
            gap: 0.4rem;
            align-items: center;
        }

        @media (max-width: 639px) {
            .product-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 0.6rem;
                padding-top: 0.75rem;
            }

            .product-actions {
                width: 100%;
                justify-content: stretch;
            }

            .product-actions .btn-icon-only {
                flex-shrink: 0;
                width: 40px;
                min-width: 40px;
                min-height: 40px;
                height: 40px;
            }

            .product-actions .btn.btn-primary {
                flex: 1;
                justify-content: center;
                padding: 0.5rem 0.5rem !important;
                font-size: 0.8rem !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }

        .btn-icon-only {
            width: 42px;
            height: 42px;
            border-radius: var(--radius-md);
            border: 1.5px solid var(--border);
            background: var(--surface);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--text-main);
        }

        .btn-icon-only:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }

        .cart-drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .cart-drawer-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .cart-drawer {
            position: fixed;
            top: 0;
            right: -420px;
            width: 420px;
            max-width: 100%;
            height: 100vh;
            background: var(--surface);
            z-index: 1001;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
            transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }

        .cart-drawer-overlay.active .cart-drawer {
            right: 0;
        }

        .cart-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header h2 {
            font-size: 1.25rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-close {
            background: none;
            border: none;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--text-muted);
        }

        .btn-close:hover {
            background: #f1f5f9;
            color: var(--text-main);
        }

        /* ── Shopee-Style Cart Select All Bar ──────────────── */
        .cart-select-all-bar {
            display: flex;
            align-items: center;
            padding: 0.75rem 1.5rem;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(135deg, hsl(245, 100%, 98%), hsl(335, 80%, 98%));
        }

        .cart-select-all-label {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--text-main);
            user-select: none;
            -webkit-user-select: none;
        }

        /* ── Shopee-Style Custom Checkbox ──────────────────── */
        .cart-select-all-label input[type="checkbox"],
        .cart-item-cb {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            min-width: 20px;
            border: 2px solid #cbd5e1;
            border-radius: 5px;
            background: var(--surface);
            cursor: pointer;
            position: relative;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            margin: 0;
        }

        .cart-select-all-label input[type="checkbox"]:checked,
        .cart-item-cb:checked {
            background: var(--primary);
            border-color: var(--primary);
        }

        .cart-select-all-label input[type="checkbox"]:checked::after,
        .cart-item-cb:checked::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2.5px 2.5px 0;
            transform: rotate(45deg);
        }

        .cart-select-all-label input[type="checkbox"]:indeterminate,
        .cart-item-cb:indeterminate {
            background: var(--primary);
            border-color: var(--primary);
        }

        .cart-select-all-label input[type="checkbox"]:indeterminate::after,
        .cart-item-cb:indeterminate::after {
            content: '';
            position: absolute;
            left: 3px;
            top: 7px;
            width: 10px;
            height: 2.5px;
            background: white;
            border-radius: 1px;
        }

        .cart-select-all-label input[type="checkbox"]:hover,
        .cart-item-cb:hover {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .cart-item-checkbox-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
        }

        /* ── Unselected Cart Item Dimming ──────────────────── */
        .cart-item-unselected {
            opacity: 0.5;
            filter: grayscale(0.3);
            transition: opacity 0.25s ease, filter 0.25s ease;
        }

        .cart-item-unselected:hover {
            opacity: 0.7;
        }

        .cart-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .cart-empty {
            text-align: center;
            margin: auto;
            color: var(--text-muted);
            padding: 2rem;
        }

        .cart-empty-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .cart-item {
            display: flex;
            gap: 1rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--border);
            align-items: center;
        }

        .cart-item-image {
            width: 65px;
            height: 65px;
            background: #f8fafc;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            border: 1px solid var(--border);
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-title {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 0.2rem;
            color: var(--text-main);
        }

        .cart-item-weight {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.4rem;
        }

        .cart-item-price {
            font-weight: 800;
            font-size: 1rem;
            color: var(--primary);
        }

        .cart-item-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.5rem;
        }

        .quantity-controller {
            display: flex;
            align-items: center;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-full);
            background: var(--bg);
            padding: 0.15rem;
        }

        .quantity-btn {
            background: none;
            border: none;
            cursor: pointer;
            width: 26px;
            height: 26px;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            transition: var(--transition);
            color: var(--text-main);
        }

        .quantity-btn:hover {
            background: var(--surface);
            color: var(--primary);
        }

        .quantity-value {
            padding: 0 0.6rem;
            font-size: 0.85rem;
            font-weight: 700;
            min-width: 24px;
            text-align: center;
        }

        .btn-remove-item {
            background: none;
            border: none;
            color: var(--danger);
            cursor: pointer;
            padding: 0.2rem;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.2rem;
            transition: var(--transition);
        }

        .btn-remove-item:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }

        .cart-footer {
            padding: 1.5rem;
            border-top: 1px solid var(--border);
            background: #fafbfc;
        }

        .cart-summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .cart-total-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.25rem;
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-main);
        }

        .checkout-container {
            display: grid;
            grid-template-columns: 1.4fr 1fr;
            gap: 2rem;
            align-items: start;
            margin-bottom: 6rem;
        }

        @media (max-width: 900px) {
            .checkout-container {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
            }

            .checkout-card {
                width: 100%;
            }
        }

        .checkout-card {
            background: var(--surface);
            border-radius: var(--radius-lg);
            padding: 2rem;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
        }

        .checkout-box {
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }

        .selected-items-summary {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .checkout-item-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        .checkout-item-details {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .checkout-item-emoji {
            font-size: 1.75rem;
        }

        .checkout-item-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-main);
        }

        .checkout-item-qty {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* ── Asal Pengiriman Badge (Multi-Warehouse) ─────────── */
        .origin-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            background: hsl(245, 100%, 97%);
            color: hsl(245, 75%, 52%);
            border: 1px solid hsl(245, 100%, 90%);
            border-radius: 99px;
            padding: 0.15rem 0.5rem;
            font-size: 0.7rem;
            font-weight: 600;
            margin-top: 0.25rem;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        .origin-group-header {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: hsl(245, 100%, 97%);
            border: 1px solid hsl(245, 100%, 90%);
            border-radius: var(--radius-sm);
            padding: 0.4rem 0.65rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: hsl(245, 75%, 52%);
            margin-bottom: 0.5rem;
        }

        .checkout-item-price {
            font-weight: 800;
            font-size: 0.95rem;
            color: var(--text-main);
        }

        .checkout-bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--surface);
            padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)) 1rem;
            border-top: 1px solid var(--border);
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 100;
        }

        @media (max-width: 900px) {
            .checkout-bottom-bar {
                bottom: 1.5rem;
                left: 1rem;
                right: 1rem;
                border-radius: var(--radius-lg);
                padding: 1rem 1.25rem;
                box-shadow: var(--shadow-lg);
                border: 1px solid var(--border);
            }

            .checkout-container {
                margin-bottom: 8rem;
            }
        }

        .checkout-bottom-bar .total-section {
            display: flex;
            flex-direction: column;
        }

        .checkout-bottom-bar .total-label {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .checkout-bottom-bar .total-value {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--primary);
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.25rem;
        }

        @media (max-width: 600px) {
            .form-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            position: relative;
        }

        .form-group label {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .form-group label span {
            color: var(--danger);
        }

        .form-control {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1.5px solid var(--border);
            background-color: var(--bg);
            border-radius: var(--radius-md);
            font-size: 0.95rem;
            color: var(--text-main);
            font-weight: 500;
            transition: var(--transition);
        }

        .form-control::placeholder {
            color: var(--text-muted);
            opacity: 0.8;
        }

        .form-control:hover {
            border-color: var(--border-hover);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--surface);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        textarea.form-control {
            min-height: 90px;
            resize: vertical;
        }

        .select2-container--bootstrap4 .select2-selection--single {
            height: auto !important;
            padding: 0.8rem 1rem !important;
            border: 1.5px solid var(--border) !important;
            background-color: var(--bg) !important;
            border-radius: var(--radius-md) !important;
            font-size: 0.95rem !important;
            color: var(--text-main) !important;
            font-weight: 500 !important;
            transition: var(--transition) !important;
        }

        .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
            padding-left: 0 !important;
            padding-right: 0 !important;
            color: var(--text-main) !important;
            line-height: 1.2 !important;
        }

        .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
            color: var(--text-muted) !important;
            opacity: 0.8;
        }

        .select2-container--bootstrap4.select2-container--focus .select2-selection--single {
            border-color: var(--primary) !important;
            background-color: var(--surface) !important;
            box-shadow: 0 0 0 4px var(--primary-light) !important;
            outline: none !important;
        }

        .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
            top: 50% !important;
            transform: translateY(-50%) !important;
            right: 1rem !important;
            height: auto !important;
        }

        .select2-dropdown {
            border: 1.5px solid var(--border) !important;
            border-radius: var(--radius-md) !important;
            box-shadow: var(--shadow-lg) !important;
            background-color: var(--surface) !important;
            z-index: 9999 !important;
            overflow: hidden;
        }

        .select2-results__option {
            padding: 0.6rem 1rem !important;
            font-size: 0.95rem !important;
            font-weight: 500 !important;
            color: var(--text-main) !important;
        }

        .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
            background-color: var(--primary) !important;
            color: white !important;
        }

        .select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
            border: 1.5px solid var(--border) !important;
            border-radius: var(--radius-sm) !important;
            padding: 0.5rem 0.8rem !important;
            background-color: var(--bg) !important;
            font-size: 0.9rem !important;
        }

        .select2-container--bootstrap4 .select2-search--dropdown .select2-search__field:focus {
            border-color: var(--primary) !important;
            background-color: var(--surface) !important;
            box-shadow: 0 0 0 3px var(--primary-light) !important;
            outline: none !important;
        }

        .select2-container {
            width: 100% !important;
        }

        .form-group .select2-dropdown {
            position: absolute !important;
            top: 100% !important;
            bottom: auto !important;
            left: 0 !important;
            width: 100% !important;
            margin-top: 2px !important;
        }

        .section-title {
            font-size: 0.85rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: var(--primary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1.5px;
            background: linear-gradient(90deg, var(--border), transparent);
        }

        .ongkir-loading {
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 700;
            padding: 1rem;
            background: var(--primary-light);
            border-radius: var(--radius-md);
            text-align: center;
            animation: pulse 2s infinite;
            display: none;
            border: 1px solid rgba(99, 102, 241, 0.15);
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: .6;
            }
        }

        .ongkir-result {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .courier-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .courier-option {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            cursor: pointer;
            background: var(--surface);
            transition: var(--transition);
        }

        .courier-option:hover {
            border-color: var(--border-hover);
            background: #f8fafc;
        }

        .courier-option input[type="radio"] {
            appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--text-muted);
            border-radius: 50%;
            display: grid;
            place-content: center;
            margin: 0;
            transition: var(--transition);
        }

        .courier-option input[type="radio"]::before {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 50%;
            transform: scale(0);
            transition: 120ms transform ease-in-out;
            box-shadow: inset 1em 1em var(--primary);
        }

        .courier-option input[type="radio"]:checked {
            border-color: var(--primary);
        }

        .courier-option input[type="radio"]:checked::before {
            transform: scale(1);
        }

        .courier-option:has(input[type="radio"]:checked) {
            border-color: var(--primary);
            background: var(--primary-light);
            box-shadow: 0 0 0 1px var(--primary);
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.9rem 1.75rem;
            border: none;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            gap: 0.5rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-hover));
            color: white;
            box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text-main);
            border: 1.5px solid var(--border);
            box-shadow: var(--shadow-sm);
        }

        .btn-secondary:hover {
            background: #f8fafc;
            border-color: var(--border-hover);
        }

        .btn-success {
            background: #25d366;
            color: white;
            box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.3);
        }

        .btn-success:hover {
            background: #20ba5a;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }

        .spinner {
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 2px solid white;
            width: 1.25rem;
            height: 1.25rem;
            animation: spin 0.8s linear infinite;
            display: none;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .btn.loading .spinner {
            display: inline-block;
        }

        .btn.loading .btn-icon {
            display: none;
        }

        .summary-card {
            position: sticky;
            top: 90px;
        }

        .summary-divider {
            border: none;
            border-top: 1px dashed var(--border);
            margin: 1.25rem 0;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.6rem;
            font-weight: 500;
        }

        .summary-row.total {
            font-size: 1.25rem;
            color: var(--text-main);
            font-weight: 800;
            margin-bottom: 0;
        }

        .payment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }

        .payment-option {
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            background: var(--surface);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .payment-option:hover {
            border-color: var(--border-hover);
            background: #f8fafc;
        }

        .payment-option input[type="radio"] {
            display: none;
        }

        .payment-icon {
            font-size: 1.8rem;
        }

        .payment-name {
            font-weight: 700;
            font-size: 0.8rem;
            color: var(--text-main);
        }

        .payment-option:has(input[type="radio"]:checked) {
            border-color: var(--primary);
            background: var(--primary-light);
            box-shadow: 0 0 0 1px var(--primary);
        }

        .success-card {
            max-width: 600px;
            margin: 2rem auto;
            text-align: center;
            padding: 3rem 2rem;
            border-radius: var(--radius-lg);
            background: var(--surface);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
        }

        .success-checkmark {
            width: 80px;
            height: 80px;
            background: var(--success-light);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            color: var(--success);
            font-size: 2.5rem;
            animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2);
        }

        @keyframes bounceIn {
            0% {
                transform: scale(0.3);
                opacity: 0;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.9;
            }

            80% {
                transform: scale(0.89);
                opacity: 1;
            }

            100% {
                transform: scale(1);
            }
        }

        .success-card h2 {
            font-size: 1.75rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .order-tag {
            background: var(--primary-light);
            color: var(--primary);
            font-weight: 700;
            padding: 0.5rem 1.25rem;
            border-radius: var(--radius-full);
            display: inline-flex;
            gap: 0.5rem;
            font-size: 1rem;
            margin: 1.25rem 0;
            border: 1px solid rgba(99, 102, 241, 0.15);
        }

        .payment-instructions-box {
            background: #fafbfc;
            border: 1.5px dashed var(--border);
            padding: 1.25rem;
            border-radius: var(--radius-md);
            text-align: left;
            margin-bottom: 2rem;
            font-size: 0.9rem;
        }

        .payment-instructions-box h4 {
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .bank-details {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 1rem;
            border-radius: var(--radius-sm);
            margin-top: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .qris-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 1rem;
            padding: 1rem;
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
        }

        .qris-code {
            width: 160px;
            height: 160px;
            background: #fafafa;
            border: 3px solid #000;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.75rem;
            letter-spacing: 2px;
            text-align: center;
            padding: 1rem;
            margin-bottom: 0.5rem;
        }

        .qris-code::before {
            content: "QRIS";
            position: absolute;
            top: 5px;
            left: 5px;
            background: red;
            color: white;
            font-size: 8px;
            font-weight: 800;
            padding: 1px 3px;
        }

        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--text-main);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: var(--radius-full);
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: var(--shadow-lg);
            z-index: 2000;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
            opacity: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            pointer-events: none;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes popIn {
            0% {
                transform: scale(0.6);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes shake {

            0%,
            100% {
                transform: rotate(0);
            }

            25% {
                transform: rotate(-8deg);
            }

            75% {
                transform: rotate(8deg);
            }
        }

        .shake-animation {
            animation: shake 0.35s ease-in-out;
        }

        .flying-item {
            position: fixed;
            font-size: 2.5rem;
            z-index: 9999;
            pointer-events: none;
            transition: transform 0.8s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.8s;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1500;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content-box {
            background: var(--surface);
            border-radius: var(--radius-lg);
            width: 720px;
            max-width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 2rem;
            padding: 2.2rem;
            animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes modalScaleUp {
            from {
                transform: scale(0.95);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 639px) {
            .modal-overlay {
                align-items: flex-end;
                padding: 0;
            }

            #product-detail-modal-overlay .modal-content-box {
                grid-template-columns: 1fr;
                gap: 0;
                padding: 0;
                border-radius: 20px 20px 0 0;
                width: 100%;
                max-width: 100%;
                max-height: 88vh;
                animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            }

            .auth-modal-content {
                border-radius: var(--radius-md) !important;
                padding: 1.5rem !important;
                max-height: 92vh;
                width: calc(100% - 2rem) !important;
            }

            #login-modal-overlay {
                align-items: center;
                padding: 1rem;
            }
        }

        @keyframes slideUpModal {
            from {
                transform: translateY(100%);
                opacity: 0.5;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--bg);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--text-muted);
            z-index: 10;
        }

        .modal-close-btn:hover {
            background: #e2e8f0;
            color: var(--text-main);
        }


        .mprod-social-proof {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }

        .mprod-stars {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .mprod-sold-badge {
            background: #fff7ed;
            color: #c2410c;
            border: 1px solid #fed7aa;
            border-radius: 99px;
            padding: 0.2rem 0.6rem;
            font-size: 0.78rem;
            font-weight: 700;
        }

        .mprod-price-block {
            margin-bottom: 0.75rem;
        }

        .mprod-price-block .modal-price {
            margin-bottom: 0.2rem;
        }

        .mprod-trust-row {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.9rem;
            flex-wrap: wrap;
        }

        .mprod-trust-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 99px;
            padding: 0.25rem 0.65rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: #15803d;
            white-space: nowrap;
        }

        .mprod-desc-block {
            margin-bottom: 0.9rem;
        }

        .mprod-desc-clamped {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            max-height: none;
            transition: max-height 0.3s ease;
        }

        .mprod-desc-clamped.expanded {
            display: block;
            -webkit-line-clamp: unset;
            overflow: visible;
        }

        .mprod-desc-toggle {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            padding: 0.25rem 0;
            min-height: unset;
            margin-top: 0.25rem;
        }

        .mprod-cta-block {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .mprod-btn-buy {
            width: 100%;
            justify-content: center;
            padding: 0.9rem 1rem !important;
            font-size: 1rem !important;
            font-weight: 800 !important;
            letter-spacing: 0.01em;
            background: linear-gradient(135deg, var(--primary), hsl(265, 75%, 55%)) !important;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
            transition: transform 0.15s ease, box-shadow 0.15s ease !important;
        }

        .mprod-btn-buy:hover {
            transform: translateY(-1px) !important;
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
        }

        .mprod-btn-cart {
            width: 100%;
            justify-content: center;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.65rem 1rem;
            font-size: 0.9rem;
            font-weight: 600;
            background: transparent;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            color: var(--text-main);
            cursor: pointer;
            transition: var(--transition);
            min-height: 44px;
        }

        .mprod-btn-cart:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }

        @media (max-width: 639px) {
            .mprod-trust-row {
                gap: 0.4rem;
            }

            .mprod-trust-item {
                font-size: 0.7rem;
                padding: 0.2rem 0.5rem;
            }

            .mprod-btn-buy {
                padding: 0.85rem 1rem !important;
                font-size: 0.95rem !important;
            }

            .mprod-cta-block {
                padding-bottom: env(safe-area-inset-bottom, 0);
            }
        }

        .modal-image-panel {
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6.5rem;
            aspect-ratio: 1;
            border: 1px solid var(--border);
            overflow: hidden;
        }

        @media (max-width: 639px) {
            .modal-image-panel {
                border-radius: 20px 20px 0 0;
                aspect-ratio: unset;
                height: 180px;
                font-size: 4.5rem;
                border: none;
                border-bottom: 1px solid var(--border);
            }

            .modal-image-panel img {
                max-height: 160px;
                object-fit: contain;
            }
        }

        .modal-info-panel {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        @media (max-width: 639px) {
            .modal-info-panel {
                padding: 1rem 1.25rem 1.5rem;
            }

            .modal-title {
                font-size: 1.2rem;
                margin-bottom: 0.3rem;
            }

            .modal-price {
                font-size: 1.4rem;
                margin-bottom: 0.6rem;
            }

            .modal-desc {
                font-size: 0.85rem;
                margin-bottom: 1rem;
                max-height: 80px;
            }

            .modal-specs {
                margin-bottom: 1rem;
                padding: 0.5rem 0;
                font-size: 0.82rem;
            }

            .modal-actions {
                display: flex;
                gap: 0.75rem;
            }

            .modal-actions button {
                flex: 1;
                justify-content: center;
                min-height: 48px;
                font-size: 0.9rem;
            }
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .modal-price {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .modal-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            line-height: 1.6;
            max-height: 200px;
            overflow-y: auto;
        }

        .modal-specs {
            margin-bottom: 1.5rem;
            font-size: 0.85rem;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            padding: 0.75rem 0;
        }

        .modal-spec-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }

        .product-title:hover {
            color: var(--primary);
        }

        .mt-2 {
            margin-top: 0.5rem;
        }

        .mb-2 {
            margin-bottom: 0.5rem;
        }

        .text-center {
            text-align: center;
        }

        .d-flex {
            display: flex;
        }

        .justify-between {
            justify-content: space-between;
        }

        .align-center {
            align-items: center;
        }

        .auth-modal-content {
            grid-template-columns: 1fr !important;
            width: 420px !important;
            padding: 2rem !important;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .nav-user-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-main);
            font-weight: 600;
        }

        .btn-logout {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 0.4rem 0.8rem;
            border-radius: var(--radius-sm);
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-logout:hover {
            border-color: var(--danger);
            color: var(--danger);
            background: rgba(239, 68, 68, 0.05);
        }

        .btn-login-nav {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary);
            border: 1px solid rgba(99, 102, 241, 0.2);
            padding: 0.45rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-login-nav:hover {
            background: var(--primary);
            color: white;
        }

        .orders-header {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .btn-back-orders {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            padding: 0;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: var(--transition);
        }

        .btn-back-orders::before {
            content: '←';
            font-size: 1.1rem;
            display: inline-block;
            transition: transform 0.25s ease;
        }

        .btn-back-orders:hover {
            color: var(--primary);
        }

        .btn-back-orders:hover::before {
            transform: translateX(-4px);
        }

        .orders-title {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }

        .orders-filter-tabs {
            display: flex;
            gap: 1.5rem;
            overflow-x: auto;
            border-bottom: 2px solid var(--border);
            padding-bottom: 0px;
            margin-bottom: 2rem;
            scrollbar-width: none;
        }

        .orders-filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .otab {
            background: none;
            border: none;
            color: var(--text-muted);
            padding: 0.75rem 0.25rem;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            position: relative;
            transition: var(--transition);
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
        }

        .otab:hover {
            color: var(--text-main);
        }

        .otab.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
            font-weight: 700;
        }

        #orders-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-bottom: 3rem;
        }

        .order-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .order-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--border);
            transition: var(--transition);
        }

        .order-card.status-verification::before {
            background: #f97316;
        }

        .order-card.status-warehouse::before {
            background: #3b82f6;
        }

        .order-card.status-delivery::before {
            background: #6366f1;
        }

        .order-card.status-delivered::before {
            background: #22c55e;
        }

        .order-card.status-return::before {
            background: #ef4444;
        }

        .order-card.status-cancel::before {
            background: #9ca3af;
        }

        .order-card:hover {
            box-shadow: var(--shadow);
            border-color: rgba(99, 102, 241, 0.15);
        }

        .order-card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px dashed var(--border);
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .order-number {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.01em;
        }

        .order-date {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .order-status-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.35rem 0.75rem;
            border-radius: var(--radius-sm);
            font-size: 0.725rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .order-card-body {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .order-item-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .order-item-name {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .order-kurir {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .order-total {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--primary);
        }

        .order-detail-toggle-container {
            margin-top: 1rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .btn-detail-toggle {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            transition: var(--transition);
        }

        .btn-detail-toggle:hover {
            color: var(--primary);
        }

        .btn-detail-toggle::after {
            content: '↓';
            font-size: 0.75rem;
            display: inline-block;
            transition: transform 0.25s ease;
        }

        .btn-detail-toggle.active {
            color: var(--primary);
        }

        .btn-detail-toggle.active::after {
            transform: rotate(180deg);
        }

        .order-detail-drawer {
            margin-top: 1rem;
            padding: 1.25rem;
            background: var(--bg);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .detail-section {
            margin-bottom: 1.25rem;
        }

        .detail-section-title {
            font-size: 0.75rem;
            font-weight: 800;
            color: var(--text-muted);
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid var(--border);
            padding-bottom: 0.25rem;
        }

        .detail-products-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .detail-product-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        }

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

        .detail-product-name {
            font-weight: 600;
            color: var(--text-main);
        }

        .detail-product-meta {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }

        .detail-col {
            font-size: 0.85rem;
            line-height: 1.6;
        }

        .detail-text-row {
            margin-bottom: 0.35rem;
            color: var(--text-main);
            display: flex;
            justify-content: space-between;
        }

        .detail-text-row span:first-child {
            color: var(--text-muted);
        }

        .detail-text-row span:last-child {
            font-weight: 600;
            color: var(--text-main);
            text-align: right;
        }

        .detail-paycode-box {
            margin-top: 1rem;
            background: var(--surface);
            border: 1px solid rgba(99, 102, 241, 0.15);
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow-sm);
        }

        .btn-copy-code {
            background: var(--primary-light);
            border: 1px solid rgba(99, 102, 241, 0.2);
            color: var(--primary);
            padding: 0.35rem 0.75rem;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-copy-code:hover {
            background: var(--primary);
            color: white;
        }

        .order-card-action {
            margin-top: 1.25rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
        }

        .btn-pay-now {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white !important;
            padding: 0.65rem 1.25rem;
            border-radius: var(--radius-md);
            font-size: 0.9rem;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
            transition: var(--transition);
        }

        .btn-pay-now:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
        }

        .orders-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            text-align: center;
            background: var(--surface);
            border: 1px dashed var(--border);
            border-radius: var(--radius-lg);
            gap: 0.75rem;
        }

        .orders-empty p {
            color: var(--text-muted);
            font-weight: 500;
        }

        .btn-my-orders {
            display: inline-flex;
            align-items: center;
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary);
            border: 1px solid rgba(99, 102, 241, 0.2);
            padding: 0.4rem 0.8rem;
            border-radius: var(--radius-sm);
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-my-orders:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .order-skeleton-card {
            height: 120px;
            background: linear-gradient(90deg, var(--surface) 25%, var(--bg) 50%, var(--surface) 75%);
            background-size: 200% 100%;
            animation: loading-shimmer 1.5s infinite;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            margin-bottom: 1.25rem;
        }

        @keyframes loading-shimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        @media (max-width: 600px) {
            .orders-header {
                gap: 0.75rem;
                margin-bottom: 1.25rem;
            }

            .orders-title {
                font-size: 1.4rem;
                width: 100%;
            }

            .btn-back-orders {
                font-size: 0.85rem;
            }

            .orders-filter-tabs {
                gap: 1rem;
                margin-bottom: 1.25rem;
            }

            .otab {
                font-size: 0.85rem;
                padding: 0.6rem 0.1rem;
            }

            .order-card {
                padding: 1rem;
            }

            .order-card-top {
                padding-bottom: 0.75rem;
                margin-bottom: 0.75rem;
            }

            .order-number {
                font-size: 0.9rem;
            }

            .order-date {
                font-size: 0.75rem;
            }

            .order-status-badge {
                padding: 0.25rem 0.5rem;
                font-size: 0.65rem;
            }

            .order-card-body {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .order-item-name {
                font-size: 0.95rem;
            }

            .order-kurir {
                font-size: 0.8rem;
            }

            .order-total {
                font-size: 1.05rem;
                align-self: flex-end;
                margin-top: -0.25rem;
            }

            .order-detail-drawer {
                padding: 0.75rem;
            }

            .detail-grid {
                grid-template-columns: 1fr;
                gap: 1.25rem;
                padding-top: 1rem;
            }

            .detail-text-row {
                font-size: 0.8rem;
                gap: 0.5rem;
            }

            .detail-text-row span:first-child {
                min-width: 80px;
                max-width: 100px;
            }

            .detail-text-row span:last-child {
                text-align: right;
                flex: 1;
                word-break: break-word;
            }

            .detail-paycode-box {
                flex-direction: column;
                gap: 0.75rem;
                align-items: stretch;
                text-align: center;
            }

            .detail-paycode-box div {
                align-items: center !important;
            }

            .btn-copy-code {
                width: 100%;
                padding: 0.5rem;
            }

            .order-card-action {
                margin-top: 1rem;
                padding-top: 0.75rem;
            }

            .btn-pay-now {
                width: 100%;
                justify-content: center;
                padding: 0.6rem;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 640px) {
            .navbar {
                padding: 0.85rem 1rem !important;
            }

            .nav-container {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                gap: 0.6rem;
            }

            .logo {
                font-size: 1.1rem;
            }

            .logo-text {
                display: none !important;
            }

            .logo img {
                margin: 0 !important;
                width: 40px !important;
                height: 40px !important;
            }

            .promo-slider-container {
                aspect-ratio: 1200 / 400 !important;
                margin-left: -0.9rem !important;
                margin-right: -0.9rem !important;
                width: calc(100% + 1.8rem) !important;
                border-radius: 0 !important;
            }

            .promo-slide img {
                border-radius: 0 !important;
            }

            .nav-search-wrapper {
                display: flex !important; /* Always visible on mobile index page */
                flex: 1 !important;
                margin: 0 0.5rem !important;
                max-width: none !important;
            }

            .nav-search-wrapper input {
                width: 100% !important;
                padding: 0.55rem 0.75rem 0.55rem 2rem !important;
                border-radius: var(--radius-full) !important;
                border: 1px solid var(--border) !important;
                font-size: 0.85rem !important;
                background: var(--surface) !important;
                color: var(--text-main) !important;
                box-shadow: var(--shadow-sm) !important;
            }

            .nav-search-wrapper .search-icon {
                left: 0.6rem !important;
                width: 14px !important;
                height: 14px !important;
            }

            .nav-search-toggle-btn {
                display: none !important; /* Hide search glass toggle on mobile */
            }

            .search-back-btn {
                display: none !important; /* Hide back arrow since search is always visible */
            }

            #nav-auth-section {
                display: none !important;
            }

            .nav-notif-btn {
                display: flex !important; /* Always show notification bell on mobile */
                align-items: center !important;
                justify-content: center !important;
                width: 32px !important;
                height: 32px !important;
                background: var(--surface) !important;
                border: 1px solid var(--border) !important;
                border-radius: 50% !important;
                color: var(--text-main) !important;
                padding: 0 !important;
                box-shadow: var(--shadow-sm) !important;
            }

            .nav-notif-btn svg {
                width: 16px !important;
                height: 16px !important;
            }

            .nav-cart-btn {
                display: flex !important; /* Always show cart button as a circle on mobile */
                align-items: center !important;
                justify-content: center !important;
                width: 32px !important;
                height: 32px !important;
                background: var(--surface) !important;
                border: 1px solid var(--border) !important;
                border-radius: 50% !important;
                color: var(--text-main) !important;
                padding: 0 !important;
                box-shadow: var(--shadow-sm) !important;
                position: relative !important;
            }

            .nav-cart-btn svg {
                width: 16px !important;
                height: 16px !important;
            }

            .cart-label-text {
                display: none !important; /* Hide "Keranjang" text */
            }

            .nav-cart-badge {
                position: absolute !important;
                top: -5px !important;
                right: -5px !important;
                transform: none !important;
                margin: 0 !important;
                font-size: 0.65rem !important;
                min-width: 16px !important;
                height: 16px !important;
                padding: 0 4px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 50% !important;
                background: var(--accent) !important;
                color: white !important;
                box-shadow: none !important;
            }

            .bottom-nav {
                display: flex;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                height: 60px;
                background: var(--surface);
                border-top: 1px solid var(--border);
                justify-content: space-around;
                align-items: center;
                z-index: 999;
                box-shadow: var(--shadow-lg);
                padding-bottom: env(safe-area-inset-bottom);
            }

            .bottom-nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                background: none;
                border: none;
                color: var(--text-muted);
                font-size: 0.7rem;
                font-weight: 600;
                cursor: pointer;
                gap: 0.25rem;
                flex: 1;
                height: 100%;
                transition: var(--transition);
            }

            .bottom-nav-item svg {
                color: var(--text-muted);
                transition: var(--transition);
            }

            .bottom-nav-item.active {
                color: var(--primary);
            }

            .bottom-nav-item.active svg {
                color: var(--primary);
            }

            body {
                padding-bottom: calc(60px + env(safe-area-inset-bottom));
            }
        }

        @media (max-width: 640px) {
            .container {
                padding: calc(68px + 1rem) 0.9rem 1.25rem;
            }

            .hero {
                padding: 1.5rem 1rem;
                margin-bottom: 1.75rem;
                border-radius: var(--radius-md);
            }

            .hero h1 {
                font-size: 1.55rem;
                letter-spacing: -0.025em;
                line-height: 1.2;
            }

            .hero p {
                font-size: 0.875rem;
                margin-top: 0.5rem;
            }

            .products-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }

            .product-card {
                padding: 8px !important;
                border-radius: 12px !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
            }

            .product-image-wrapper {
                height: auto !important;
                aspect-ratio: 1 / 1 !important;
                margin-bottom: 6px !important;
                border-radius: 8px !important;
                font-size: 2.5rem;
            }

            .product-title {
                font-size: 0.825rem !important;
                line-height: 1.35 !important;
                height: 2.7em !important;
                margin-bottom: 4px !important;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }

            .product-rating-sold {
                font-size: 0.68rem !important;
                margin-bottom: 4px !important;
                gap: 3px !important;
            }

            .product-features {
                margin-bottom: 6px !important;
                margin-top: 2px !important;
                gap: 2px !important;
            }

            .product-features span {
                font-size: 0.6rem !important;
                padding: 1px 3px !important;
                border-radius: 2px !important;
            }

            .product-price-slashed {
                font-size: 0.7rem !important;
                margin-right: 4px !important;
            }

            .product-price-actual {
                font-size: 0.95rem !important;
            }

            .product-footer {
                padding-top: 4px !important;
                margin-top: 4px !important;
                border-top: none !important;
            }

            .product-actions {
                display: none !important;
            }

            .product-location-footer {
                font-size: 0.65rem !important;
                padding-top: 4px !important;
                margin-top: 6px !important;
            }
        }

        @media (min-width: 641px) and (max-width: 900px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }

            .hero h1 {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .cart-drawer {
                width: 100%;
                right: -100%;
            }

            .cart-drawer-overlay.active .cart-drawer {
                right: 0;
            }
        }



        @media (max-width: 900px) {
            .summary-card {
                position: static;
                top: auto;
            }
        }

        html,
        body {
            max-width: 100%;
            overflow-x: hidden;
        }

        @media (max-width: 480px) {
            .cart-label-text {
                display: none;
            }
        }

        button,
        .btn,
        a.btn,
        [role="button"],
        .btn-icon-only,
        .quantity-btn,
        .btn-my-orders,
        .btn-logout,
        .nav-cart-btn {
            min-height: 44px;
        }

        .btn-icon-only,
        .quantity-btn {
            min-width: 44px;
        }

        .hero h1 {
            font-size: clamp(1.4rem, 5vw, 2.5rem);
            line-height: 1.2;
        }

        .hero p {
            font-size: clamp(0.875rem, 2.5vw, 1.1rem);
        }

        .product-title {
            font-size: clamp(0.9rem, 2.5vw, 1.15rem);
        }

        .product-price {
            font-size: clamp(1rem, 3vw, 1.25rem);
        }

        .navbar {
            padding-left: max(1.5rem, env(safe-area-inset-left));
            padding-right: max(1.5rem, env(safe-area-inset-right));
        }

        #fab-wa {
            bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
            right: max(1.5rem, env(safe-area-inset-right, 1.5rem));
        }

        @media (max-width: 400px) {
            .navbar {
                padding: 0.6rem 0.75rem;
            }

            .logo {
                font-size: 1rem;
            }

            .logo-icon {
                font-size: 1.1rem;
            }

            .container {
                padding: calc(64px + 0.85rem) 0.65rem 1rem;
            }

            .hero {
                padding: 1.25rem 0.75rem;
            }

            .checkout-card {
                padding: 1.25rem;
            }

            .form-control {
                padding: 0.7rem 0.85rem;
                font-size: 0.9rem;
            }

            .btn-checkout-fixed {
                padding: 0.85rem 1rem;
                font-size: 0.9rem;
            }

            .promo-slider-container {
                margin-left: -0.65rem !important;
                margin-right: -0.65rem !important;
                width: calc(100% + 1.3rem) !important;
                aspect-ratio: 16 / 7 !important;
            }
        }


        @media (min-width: 640px) and (max-width: 899px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.25rem;
            }

            .checkout-container {
                display: flex;
                flex-direction: column;
                gap: 2rem;
            }
        }

        @media (min-width: 900px) and (max-width: 1199px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .product-image-wrapper {
                height: 220px;
                aspect-ratio: unset;
            }

            .checkout-container {
                grid-template-columns: 1.3fr 1fr;
            }
        }

        @media (max-width: 639px) {
            .checkout-container {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                margin-bottom: 11rem;
                padding: 0;
            }

            .checkout-card {
                padding: 1.15rem 0.9rem;
                border-radius: var(--radius-md);
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            }

            .checkout-card .section-title {
                font-size: 0.8rem;
                margin-bottom: 0.4rem;
            }

            .checkout-box {
                gap: 1.25rem;
            }

            .form-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }

            .form-group {
                gap: 0.3rem;
            }

            .form-group label {
                font-size: 0.8rem;
            }

            .form-control {
                padding: 0.7rem 0.85rem;
                font-size: 0.9rem;
            }

            textarea.form-control {
                min-height: 70px;
            }

            /* Checkout item rows - mobile compact */
            .checkout-item-row {
                gap: 0.5rem;
                padding-bottom: 0.6rem;
            }

            .checkout-item-emoji {
                font-size: 1.4rem;
            }

            .checkout-item-name {
                font-size: 0.82rem;
                line-height: 1.3;
            }

            .checkout-item-qty {
                font-size: 0.7rem;
            }

            .checkout-item-price {
                font-size: 0.85rem;
                white-space: nowrap;
            }

            .checkout-item-details {
                gap: 0.5rem;
                min-width: 0;
                flex: 1;
            }

            /* Origin badge - mobile */
            .origin-badge {
                font-size: 0.65rem;
                padding: 0.1rem 0.4rem;
                max-width: 150px;
            }

            .origin-group-header {
                font-size: 0.7rem;
                padding: 0.3rem 0.5rem;
            }

            /* Payment grid - mobile: 3 kolom compact */
            .payment-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 0.5rem;
            }

            .payment-option {
                padding: 0.6rem 0.4rem;
                border-radius: var(--radius-sm);
            }

            .payment-option .payment-name {
                font-size: 0.68rem;
                line-height: 1.3;
            }

            .payment-option .payment-name img {
                height: 22px !important;
                margin-bottom: 0.3rem !important;
            }

            /* Courier options - mobile compact */
            .courier-option {
                padding: 0.75rem;
                gap: 0.75rem;
            }

            .courier-list {
                gap: 0.5rem;
            }

            /* Summary rows - mobile */
            .summary-row {
                font-size: 0.82rem;
                margin-bottom: 0.4rem;
            }

            .summary-card h3 {
                font-size: 1.05rem !important;
                margin-bottom: 1rem !important;
            }

            .summary-divider {
                margin: 0.75rem 0;
            }

            /* Promo section - mobile */
            .promo-section {
                margin-top: 0.75rem !important;
                margin-bottom: 0.75rem !important;
            }

            .promo-section label {
                font-size: 0.8rem !important;
            }

            .promo-section .form-control {
                padding: 0.45rem 0.6rem;
                font-size: 0.85rem;
            }

            .promo-section .btn {
                padding: 0.45rem 0.8rem;
                font-size: 0.82rem;
            }

            /* Bottom bar - sticky on mobile, di atas bottom-nav (60px) */
            .checkout-bottom-bar {
                bottom: calc(60px + env(safe-area-inset-bottom, 0));
                left: 0;
                right: 0;
                border-radius: 0;
                padding: 0.75rem 1.25rem;
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
                border: none;
                border-top: 1px solid var(--border);
                gap: 0.75rem;
                z-index: 1000;
            }

            .checkout-bottom-bar .total-label {
                font-size: 0.72rem;
            }

            .checkout-bottom-bar .total-value {
                font-size: 1.05rem;
            }

            .checkout-bottom-bar .btn {
                padding: 0.65rem 1.1rem !important;
                font-size: 0.85rem !important;
                border-radius: 50px !important;
                min-height: 40px;
            }

            .checkout-bottom-bar .btn .btn-text {
                font-size: 0.85rem;
            }

            .checkout-bottom-bar .btn .btn-icon {
                width: 15px;
                height: 15px;
            }

            /* PIN input - mobile */
            #pin-input-container .form-control {
                font-size: 1rem !important;
                letter-spacing: 0.25em !important;
                padding: 0.65rem 0.85rem !important;
            }

            /* Ongkir warning - mobile */
            #ongkir-warning {
                font-size: 0.75rem;
                padding: 0.4rem 0.6rem;
            }

            /* Select2 - mobile */
            .select2-container--bootstrap4 .select2-selection--single {
                padding: 0.65rem 0.85rem !important;
                font-size: 0.9rem !important;
            }
        }

        @media (max-width: 639px) {
            .modal-content-box {
                grid-template-columns: 1fr;
                max-height: 95vh;
                padding: 1.25rem;
                border-radius: var(--radius-md) var(--radius-md) 0 0;
            }

            .modal-overlay {
                align-items: flex-end;
                padding: 0;
            }

            .auth-modal-content {
                border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
                max-height: 92vh;
            }
        }

        @media (max-width: 639px) {
            #fab-wa {
                bottom: 5.5rem;
                width: 50px;
                height: 50px;
            }
            
            body:has(#view-checkout.active) #fab-wa {
                bottom: calc(145px + env(safe-area-inset-bottom, 0));
            }

            #fab-wa svg {
                width: 26px;
                height: 26px;
            }
        }

        .view-section:not(.active) {
            content-visibility: auto;
            contain-intrinsic-size: 0 500px;
        }

        .product-image-wrapper {
            aspect-ratio: 4/3;
            height: auto;
        }

        @media (min-width: 640px) {
            .product-image-wrapper {
                height: 200px;
                aspect-ratio: unset;
            }
        }

        :focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: 4px;
        }

        button:focus:not(:focus-visible),
        a:focus:not(:focus-visible) {
            outline: none;
        }

        /* ==================== SHOPEE STYLE BANNER SLIDER ==================== */
        .promo-slider-container {
            position: relative;
            width: 100%;
            margin-bottom: 1.5rem;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            background: linear-gradient(135deg, var(--primary), var(--accent));
            aspect-ratio: 1200 / 400;
        }

        .promo-slider {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            height: 100%;
        }

        @media (max-width: 768px) {
            .promo-slider {
                height: 100%;
            }
        }

        @media (max-width: 480px) {
            .promo-slider {
                height: 100%;
            }
        }

        .promo-slide {
            min-width: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 2.5rem 4rem;
            color: white;
            text-decoration: none;
            background-size: cover;
            background-position: center;
            overflow: hidden;
        }

        @media (max-width: 768px) {
            .promo-slide {
                padding: 1.5rem 2rem;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                gap: 0.25rem;
            }
        }

        .promo-slide::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
            z-index: 1;
        }

        .promo-slide-content {
            max-width: 60%;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        @media (max-width: 768px) {
            .promo-slide-content {
                max-width: 100%;
                align-items: center;
            }
        }

        .promo-slide-tag {
            display: inline-block;
            padding: 0.3rem 0.8rem;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.75rem;
        }

        @media (max-width: 768px) {
            .promo-slide-tag {
                font-size: 0.65rem;
                padding: 0.15rem 0.5rem;
                margin-bottom: 0.25rem;
            }
        }

        .promo-slide-title {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 0.75rem;
            letter-spacing: -0.02em;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        @media (max-width: 768px) {
            .promo-slide-title {
                font-size: 1.25rem;
                margin-bottom: 0.25rem;
                line-height: 1.2;
            }
        }

        .promo-slide-desc {
            font-size: 1.05rem;
            opacity: 0.95;
            font-weight: 500;
            margin-bottom: 1.5rem;
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .promo-slide-desc {
                font-size: 0.75rem;
                margin-bottom: 0.5rem;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
        }

        .promo-slide-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.7rem 1.4rem;
            background: white;
            color: var(--primary);
            font-weight: 800;
            font-size: 0.9rem;
            border: none;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .promo-slide-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            background: var(--primary-light);
            color: var(--primary-hover);
        }

        @media (max-width: 768px) {
            .promo-slide-btn {
                display: none;
                /* Hide on mobile to save space */
            }
        }

        .promo-slide-gfx {
            position: relative;
            width: 32%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        @media (max-width: 768px) {
            .promo-slide-gfx {
                display: none;
            }
        }

        .promo-slide-gfx svg {
            max-width: 90%;
            max-height: 90%;
            filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
            animation: floatGfx 4s ease-in-out infinite;
        }

        @keyframes floatGfx {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-12px) rotate(2deg);
            }
        }

        .promo-slider-prev,
        .promo-slider-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1.5px solid rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            z-index: 10;
            transition: var(--transition);
        }

        .promo-slider-prev:hover,
        .promo-slider-next:hover {
            background: white;
            color: var(--primary);
            border-color: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .promo-slider-prev {
            left: 1.25rem;
        }

        .promo-slider-next {
            right: 1.25rem;
        }

        @media (max-width: 768px) {

            .promo-slider-prev,
            .promo-slider-next {
                width: 28px;
                height: 28px;
                background: rgba(255, 255, 255, 0.25);
            }

            .promo-slider-prev {
                left: 0.35rem;
            }

            .promo-slider-next {
                right: 0.35rem;
            }
        }

        @media (max-width: 400px) {

            .promo-slider-prev,
            .promo-slider-next {
                width: 24px;
                height: 24px;
            }
        }

        .promo-slider-dots {
            position: absolute;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }

        .promo-slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: var(--transition);
        }

        .promo-slider-dot.active {
            background: white;
            width: 20px;
            border-radius: var(--radius-full);
        }

        .strip-banners-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        @media (max-width: 768px) {
            .strip-banners-container {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
        }

        .strip-banner-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            background: var(--surface);
            border: 1.5px dashed var(--border);
            border-radius: var(--radius-md);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }

        .strip-banner-card::before,
        .strip-banner-card::after {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            background: var(--bg);
            border-radius: 50%;
            border: 1.5px solid var(--border);
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
        }

        .strip-banner-card::before {
            left: -8px;
        }

        .strip-banner-card::after {
            right: -8px;
        }

        .strip-banner-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow);
            transform: translateY(-1px);
        }

        .strip-banner-icon {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            flex-shrink: 0;
        }

        .strip-banner-info {
            flex-grow: 1;
        }

        .strip-banner-title {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-main);
            line-height: 1.2;
        }

        .strip-banner-desc {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-top: 0.15rem;
        }

        .flash-sale-container {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            margin-bottom: 2.5rem;
            box-shadow: var(--shadow);
            border-top: 4px solid var(--accent);
        }

        @media (max-width: 768px) {
            .flash-sale-container {
                padding: 1rem;
            }
        }

        .flash-sale-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.25rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .flash-sale-title-box {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .flash-sale-title-box svg {
            color: var(--accent);
            animation: flashPulse 1.5s infinite;
        }

        @keyframes flashPulse {

            0%,
            100% {
                transform: scale(1) rotate(0deg);
            }

            50% {
                transform: scale(1.15) rotate(-5deg);
            }
        }

        .flash-sale-title {
            font-weight: 800;
            font-size: 1.35rem;
            letter-spacing: -0.02em;
            color: var(--text-main);
            background: linear-gradient(135deg, var(--text-main), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .flash-sale-timer-box {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .flash-sale-timer-label {
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .flash-sale-timer-digits {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .flash-sale-digit {
            background: var(--accent);
            color: white;
            font-family: 'Courier New', Courier, monospace;
            font-weight: 800;
            font-size: 0.9rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            min-width: 28px;
            text-align: center;
            box-shadow: var(--shadow-sm);
        }

        .flash-sale-divider {
            color: var(--accent);
            font-weight: 800;
            font-size: 0.9rem;
        }

        .flash-sale-products-scroll {
            display: flex;
            gap: 1.25rem;
            overflow-x: auto;
            padding: 0.5rem 0.25rem 1rem 0.25rem;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .flash-sale-products-scroll::-webkit-scrollbar {
            display: none;
        }

        .flash-sale-products-scroll {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .flash-sale-item-card {
            min-width: 210px;
            width: 210px;
            flex-shrink: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 0.85rem;
            transition: var(--transition);
            position: relative;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .flash-sale-item-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
            border-color: rgba(239, 68, 68, 0.25);
        }

        .flash-sale-item-badge {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            background: var(--accent);
            color: white;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 0.2rem 0.45rem;
            border-radius: 4px;
            z-index: 10;
            box-shadow: var(--shadow-sm);
        }

        .flash-sale-item-image {
            width: 100%;
            height: 140px;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 0.75rem;
            transition: var(--transition);
        }

        .flash-sale-item-card:hover .flash-sale-item-image {
            background: var(--primary-light);
        }

        .flash-sale-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .flash-sale-item-card:hover .flash-sale-item-image img {
            transform: scale(1.05);
        }

        .flash-sale-item-image svg.fallback {
            width: 44px;
            height: 44px;
            color: var(--text-muted);
            transition: var(--transition);
        }

        .flash-sale-item-card:hover svg.fallback {
            transform: scale(1.1) rotate(3deg);
            color: var(--primary);
        }

        .flash-sale-item-title {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--text-main);
            margin-bottom: 0.4rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 2.4em;
            line-height: 1.2;
            transition: color 0.2s;
        }

        .flash-sale-item-card:hover .flash-sale-item-title {
            color: var(--primary);
        }

        .flash-sale-item-price-box {
            display: flex;
            flex-direction: column;
            margin-bottom: 0.75rem;
        }

        .flash-sale-original-price {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-decoration: line-through;
            font-weight: 500;
        }

        .flash-sale-promo-price {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--accent);
        }

        .flash-sale-progress-box {
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .flash-sale-progress-bar {
            width: 100%;
            height: 12px;
            background: hsl(0, 0%, 93%);
            border-radius: var(--radius-full);
            position: relative;
            overflow: hidden;
        }

        .flash-sale-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), #f97316);
            border-radius: var(--radius-full);
        }

        .flash-sale-progress-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.65rem;
            font-weight: 800;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .category-filter-tabs-wrapper {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .category-filter-title {
            font-weight: 800;
            font-size: 1.1rem;
            color: var(--text-main);
        }

        .category-filter-tabs {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding-bottom: 0.25rem;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .category-filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .filter-tab {
            padding: 0.6rem 1.25rem;
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-full);
            color: var(--text-muted);
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            white-space: nowrap;
            transition: var(--transition);
        }

        .filter-tab:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }

        .filter-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
            box-shadow: var(--shadow-sm);
        }

        .store-footer {
            background: var(--surface);
            border-top: 1px solid var(--border);
            padding: 4rem 1.5rem 2.5rem 1.5rem;
            margin-top: auto;
            width: 100%;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1.2fr;
            gap: 3rem;
            margin-bottom: 3.5rem;
        }

        @media (max-width: 991px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 2.5rem;
            }
        }

        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        .footer-column {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .footer-column h3 {
            font-weight: 800;
            font-size: 1.05rem;
            color: var(--text-main);
            letter-spacing: -0.01em;
            text-transform: uppercase;
            font-size: 0.85rem;
            color: var(--text-muted);
            border-bottom: 2px solid var(--primary-light);
            padding-bottom: 0.5rem;
            display: inline-block;
            width: fit-content;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.02em;
        }

        .footer-logo-icon {
            color: var(--primary);
            display: inline-flex;
            align-items: center;
        }

        .footer-text {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.6;
            font-weight: 500;
        }

        .footer-socials {
            display: flex;
            gap: 0.6rem;
        }

        .footer-social-btn {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            border: 1.5px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: var(--transition);
            background: var(--surface);
        }

        .footer-social-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-2px);
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-links a {
            text-decoration: none;
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

        .footer-badge-list {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
        }

        .footer-badge-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .footer-badge-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: var(--shadow-sm);
        }

        .footer-badge-info {
            display: flex;
            flex-direction: column;
        }

        .footer-badge-title {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--text-main);
        }

        .footer-badge-desc {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }


        .footer-payments-bar {
            max-width: 1200px;
            margin: 0 auto;
            border-top: 1px solid var(--border);
            padding-top: 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        @media (max-width: 768px) {
            .footer-payments-bar {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
        }

        .footer-payments-list {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-payment-logo-wrapper {
            height: 34px;
            padding: 4px 8px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .footer-payment-logo-wrapper:hover {
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        .footer-payment-logo-wrapper svg,
        .footer-payment-logo-wrapper img {
            height: 100%;
            max-width: 65px;
        }

        .footer-copyright {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* Add scale/weight SVG utility classes */
        svg.metric-icon {
            vertical-align: -2px;
            margin-right: 4px;
            display: inline-block;
        }

        svg.rating-star-icon {
            vertical-align: -1px;
            margin-right: 2px;
            display: inline-block;
            color: #eab308;
            fill: #eab308;
        }

        svg.logo-shopping-bag {
            vertical-align: -3px;
            margin-right: 4px;
        }

        .premium-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10010;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .premium-modal.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-lg);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .premium-modal.active .modal-content {
            transform: scale(1);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h3 {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-main);
            margin: 0;
        }

        .modal-close-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            transition: var(--transition);
        }

        .modal-close-btn:hover {
            color: var(--text-main);
            background: var(--bg);
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--text-muted);
        }

        .modal-body h4 {
            color: var(--text-main);
            font-size: 0.95rem;
            font-weight: 700;
            margin-top: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .modal-body h4:first-child {
            margin-top: 0;
        }

        .modal-body p {
            margin-bottom: 0.75rem;
        }

        .modal-body ol,
        .modal-body ul {
            margin-bottom: 1rem;
            padding-left: 1.25rem;
        }

        .modal-body li {
            margin-bottom: 0.5rem;
        }

        :focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: 4px;
        }

        button:focus:not(:focus-visible),
        a:focus:not(:focus-visible) {
            outline: none;
        }

        @media print {

            .navbar,
            #fab-wa,
            .cart-drawer-overlay,
            .modal-overlay,
            .toast {
                display: none !important;
            }

            body {
                background: white;
                color: black;
            }
        }


        @keyframes fabPulse {

            0%,
            100% {
                box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
            }

            50% {
                box-shadow: 0 4px 28px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.12);
            }
        }

        /* Trust Badges Classes */
        .trust-badges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
            background: var(--surface);
            padding: 1.25rem;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }

        .trust-badge-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem;
        }

        .trust-badge-icon-success {
            background: var(--success-light);
            color: var(--success);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .trust-badge-icon-primary {
            background: var(--primary-light);
            color: var(--primary);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .trust-badge-icon-warning {
            background: hsl(35, 100%, 96%);
            color: hsl(35, 100%, 45%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .trust-badge-icon-pink {
            background: hsl(320, 100%, 96%);
            color: hsl(320, 100%, 45%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .trust-badge-title {
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 2px;
        }

        .trust-badge-desc {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        :root {
            --primary: hsl(245, 75%, 60%);
            --primary-hover: hsl(245, 75%, 52%);
            --primary-light: hsl(245, 100%, 96%);
            --primary-light-hover: hsl(245, 100%, 92%);
            --bg: hsl(210, 40%, 98%);
            --surface: hsl(0, 0%, 100%);
            --surface-glass: rgba(255, 255, 255, 0.75);
            --text-main: hsl(222, 47%, 11%);
            --text-muted: hsl(215, 16%, 47%);
            --border: hsl(214, 32%, 91%);
            --border-hover: hsl(214, 32%, 80%);
            --success: hsl(142, 72%, 29%);
            --success-light: hsl(138, 76%, 95%);
            --danger: hsl(0, 84%, 60%);
            --danger-light: hsl(0, 86%, 97%);
            --accent: hsl(335, 75%, 55%);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-full: 9999px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 20px 25px -5px rgba(99, 102, 241, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-sticky: 0 -4px 20px -2px rgba(0, 0, 0, 0.05);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        body {
            background-color: var(--bg);
            color: var(--text-main);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeSpeed;
            overflow-x: clip;
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 100;
            background: var(--surface-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 1rem 1.5rem;
            transition: var(--transition);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-search-wrapper {
            position: relative;
            flex: 1;
            max-width: 480px;
            margin: 0 1.5rem;
            display: flex;
            align-items: center;
        }

        .search-input-relative {
            position: relative;
            flex: 1;
        }

        .nav-search-wrapper .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }

        .nav-search-wrapper input {
            width: 100%;
            padding: 0.65rem 2.5rem;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            font-size: 0.9rem;
            background: var(--surface);
            color: var(--text-main);
            box-shadow: var(--shadow-sm);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.02em;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: calc(2rem + 75px) 1.5rem 2rem;
            min-height: calc(100vh - 75px);
            display: flex;
            flex-direction: column;
        }

        .hero {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2.5rem 1.5rem;
            background: linear-gradient(135deg, hsla(245, 75%, 60%, 0.04) 0%, hsla(335, 75%, 55%, 0.04) 100%);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(99, 102, 241, 0.08);
        }

        .view-section {
            display: none;
        }

        .view-section.active {
            display: block;
        }

/* Detail Page Specific CSS */

:root {
            --primary: hsl(245, 75%, 60%);
            --primary-hover: hsl(245, 75%, 52%);
            --bg: hsl(210, 40%, 98%);
            --surface: hsl(0, 0%, 100%);
            --text-main: hsl(222, 47%, 11%);
            --text-muted: hsl(215, 16%, 47%);
            --border: hsl(214, 32%, 91%);
            --accent: hsl(335, 75%, 55%);
            --success: hsl(142, 72%, 29%);
            --radius-md: 12px;
            --radius-lg: 20px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 25px -5px rgba(99, 102, 241, 0.12);
            --primary-light: hsl(245, 100%, 96%);
            --radius-sm: 8px;
            --radius-full: 9999px;
            --shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        body {
            background-color: var(--bg);
            color: var(--text-main);
            line-height: 1.6;
        }

        .navbar {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding: 1rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            text-decoration: none;
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .container {
            max-width: 1000px;
            margin: 2rem auto;
            padding: 0 1.5rem;
        }

        .product-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 3rem;
            background: var(--surface);
            padding: 2.5rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
        }

        .product-image {
            width: 100%;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .product-image img,
        .product-image video {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .media-slider {
            display: flex;
            width: 100%;
            height: 100%;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE and Edge */
            position: relative;
        }

        .media-slider::-webkit-scrollbar {
            display: none;
        }

        .media-slide {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            scroll-snap-align: start;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-dots {
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 10;
        }

        .slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.2);
            transition: background 0.3s;
            cursor: pointer;
        }

        .slider-dot.active {
            background: var(--primary);
        }

        .product-info h1 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .product-description ul,
        .product-description ol {
            padding-left: 1.5rem;
            margin-bottom: 1rem;
        }

        .product-description p {
            margin-bottom: 0.75rem;
        }

        .product-price {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
            margin: 1rem 0;
        }

        .social-proof {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .rating {
            color: #eab308;
            font-weight: 700;
        }

        .sold {
            background: #fff7ed;
            color: #c2410c;
            padding: 0.2rem 0.6rem;
            border-radius: 99px;
            font-weight: 700;
        }

        .trust-badges {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .badge {
            background: #f0fdf4;
            color: #15803d;
            border: 1px solid #bbf7d0;
            padding: 0.3rem 0.8rem;
            border-radius: 99px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .product-desc {
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
        }

        .btn {
            flex: 1;
            padding: 1rem;
            border-radius: 99px;
            font-weight: 700;
            font-size: 1rem;
            text-align: center;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-outline:hover {
            background: #f8faff;
        }

        .mobile-sticky-action {
            display: none;
        }

        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                padding: 1.5rem;
            }

            .product-image {
                width: calc(100% + 3rem);
                height: auto;
                aspect-ratio: 1 / 1;
                min-height: unset;
                border-radius: 0;
                border-left: none;
                border-right: none;
                margin-left: -1.5rem; /* negate the padding of .product-grid */
                margin-right: -1.5rem;
                margin-top: -1.5rem;
            }

            .product-info h1 {
                font-size: 1.5rem;
            }

            .action-buttons {
                display: none;
            }

            .mobile-sticky-action {
                display: flex;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: var(--surface);
                padding: 1rem;
                border-top: 1px solid var(--border);
                box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
                z-index: 1000;
                gap: 0.5rem;
            }

            body {
                padding-bottom: 90px;
            }
        }

        /* ─── Quantity Selector ─── */
        .qty-selector {
            display: inline-flex;
            align-items: center;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            background: var(--surface);
        }

        .qty-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border: none;
            background: var(--bg);
            color: var(--text-main);
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }

        .qty-btn:hover {
            background: var(--primary-light);
            color: var(--primary);
        }

        .qty-btn:active {
            transform: scale(0.92);
        }

        .qty-input {
            width: 56px;
            height: 40px;
            text-align: center;
            border: none;
            border-left: 1.5px solid var(--border);
            border-right: 1.5px solid var(--border);
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
            background: var(--surface);
            outline: none;
            -moz-appearance: textfield;
        }

        .qty-input::-webkit-outer-spin-button,
        .qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* ─── Full-width Detail Extra Sections ─── */
        .detail-extra-section {
            max-width: 1000px;
            margin: 1rem auto 0;
            padding: 1.5rem 2rem;
            background: var(--surface);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
        }

        .detail-description-section .product-description img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            margin: 0.75rem 0;
        }

        /* ─── Recommended Products ─── */
        .recommended-section {
            margin-top: 3rem;
            margin-bottom: 2rem;
        }

        .recommended-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }

        .rec-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }

        .rec-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.18);
            border-color: var(--primary);
        }

        .rec-card-img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        }

        .rec-card-body {
            padding: 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            flex: 1;
        }

        .rec-card-title {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-main);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .rec-card-price {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--primary);
            margin-top: auto;
        }

        .rec-card-meta {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .rec-card-rating {
            color: #eab308;
        }

        /* ─── Mobile Qty in Sticky Bar ─── */
        .mobile-qty-selector {
            display: flex;
            align-items: center;
            gap: 0;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            flex-shrink: 0;
        }

        .qty-btn-sm {
            width: 32px;
            height: 34px;
            border: none;
            background: var(--bg);
            color: var(--text-main);
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

        .qty-btn-sm:active {
            background: var(--primary-light);
            color: var(--primary);
        }

        .mobile-qty-selector span {
            min-width: 28px;
            text-align: center;
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-main);
            border-left: 1px solid var(--border);
            border-right: 1px solid var(--border);
            padding: 0 2px;
        }

        @media (max-width: 768px) {
            .detail-extra-section {
                margin: 0.75rem auto 0;
                padding: 1.25rem;
                border-radius: var(--radius-md);
            }

            .recommended-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .recommended-section {
                margin-top: 2rem;
            }
        }

        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(50px);
            background: var(--text-main);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 99px;
            font-weight: 700;
            opacity: 0;
            transition: all 0.3s;
            z-index: 2000;
            pointer-events: none;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .store-footer {
            background: var(--surface);
            border-top: 1px solid var(--border);
            padding: 4rem 1.5rem 2.5rem 1.5rem;
            margin-top: 4rem;
            width: 100%;
        }

        .footer-container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1.2fr;
            gap: 2.5rem;
            margin-bottom: 3rem;
        }

        @media (max-width: 991px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
        }

        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        .footer-column {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .footer-column h3 {
            font-weight: 800;
            font-size: 1.05rem;
            color: var(--text-main);
            letter-spacing: -0.01em;
            text-transform: uppercase;
            font-size: 0.85rem;
            color: var(--text-muted);
            border-bottom: 2px solid var(--border);
            padding-bottom: 0.5rem;
            display: inline-block;
            width: fit-content;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.02em;
        }

        .footer-logo-icon {
            color: var(--primary);
            display: inline-flex;
            align-items: center;
        }

        .footer-text {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.6;
            font-weight: 500;
        }

        .footer-socials {
            display: flex;
            gap: 0.6rem;
        }

        .footer-social-btn {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            border: 1.5px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: var(--transition);
            background: var(--surface);
        }

        .footer-social-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-2px);
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-links a {
            text-decoration: none;
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

        .footer-badge-list {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
        }

        .footer-badge-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .footer-badge-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0fdf4;
            color: #15803d;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: var(--shadow-sm);
        }

        .footer-badge-info {
            display: flex;
            flex-direction: column;
        }

        .footer-badge-title {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--text-main);
        }

        .footer-badge-desc {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }


        .footer-payments-bar {
            max-width: 1000px;
            margin: 0 auto;
            border-top: 1px solid var(--border);
            padding-top: 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        @media (max-width: 768px) {
            .footer-payments-bar {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
        }

        .footer-payments-list {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-payment-logo-wrapper {
            height: 34px;
            padding: 4px 8px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .footer-payment-logo-wrapper:hover {
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        .footer-payment-logo-wrapper svg,
        .footer-payment-logo-wrapper img {
            height: 100%;
            max-width: 65px;
        }

        .premium-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10010;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .premium-modal.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-lg);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .premium-modal.active .modal-content {
            transform: scale(1);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h3 {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-main);
            margin: 0;
        }

        .modal-close-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-sm);
            transition: var(--transition);
        }

        .modal-close-btn:hover {
            color: var(--text-main);
            background: var(--bg);
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--text-muted);
        }

        .modal-body h4 {
            color: var(--text-main);
            font-size: 0.95rem;
            font-weight: 700;
            margin-top: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .modal-body h4:first-child {
            margin-top: 0;
        }

        .modal-body p {
            margin-bottom: 0.75rem;
        }

        .modal-body ol,
        .modal-body ul {
            margin-bottom: 1rem;
            padding-left: 1.25rem;
        }

        .modal-body li {
            margin-bottom: 0.5rem;
        }

        /* Review Styles */
        .reviews-section {
            background: var(--surface);
            padding: 2.5rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            margin-top: 2rem;
        }

        .reviews-title {
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            color: var(--text-main);
        }

        .reviews-layout {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2.5rem;
        }

        @media (max-width: 768px) {
            .reviews-layout {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        .rating-summary-card {
            background: var(--bg);
            padding: 1.5rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            text-align: center;
            height: fit-content;
        }

        .summary-score {
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
        }

        .summary-stars {
            color: #eab308;
            font-size: 1.25rem;
            margin: 0.5rem 0;
        }

        .summary-count {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .rating-bars {
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .rating-bar-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
        }

        .bar-label {
            width: 50px;
            text-align: right;
            color: var(--text-muted);
            font-weight: 600;
        }

        .bar-outer {
            flex: 1;
            height: 8px;
            background: var(--border);
            border-radius: 99px;
            overflow: hidden;
        }

        .bar-inner {
            height: 100%;
            background: #eab308;
            border-radius: 99px;
            width: 0%;
            transition: width 0.6s ease;
        }

        .bar-count {
            width: 25px;
            text-align: left;
            color: var(--text-muted);
        }

        /* Write Review Form */
        .write-review-card {
            background: #fdfdfd;
            border: 2px dashed var(--border);
            padding: 1.5rem;
            border-radius: var(--radius-md);
            margin-bottom: 2rem;
            display: none;
        }

        .write-review-card.active {
            display: block;
        }

        .star-rating-select {
            display: flex;
            gap: 0.5rem;
            font-size: 1.75rem;
            color: var(--border);
            cursor: pointer;
            margin: 0.5rem 0 1rem 0;
        }

        .star-rating-select span {
            transition: color 0.15s;
        }

        .star-rating-select span:hover,
        .star-rating-select span.selected {
            color: #eab308;
        }

        .review-textarea {
            width: 100%;
            padding: 0.75rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            resize: vertical;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .review-textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .image-upload-preview {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .preview-thumb {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        /* Review List */
        .review-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .review-item {
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }

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

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .reviewer-info {
            display: flex;
            flex-direction: column;
        }

        .reviewer-name {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-main);
        }

        .review-date {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .review-stars {
            color: #eab308;
            font-size: 0.9rem;
        }

        .review-comment {
            font-size: 0.9rem;
            color: var(--text-main);
            margin-bottom: 0.5rem;
        }

        .review-images {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .review-images img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            cursor: zoom-in;
            transition: transform 0.2s;
            border: 1px solid var(--border);
        }

        .review-images img:hover {
            transform: scale(1.05);
        }

        .load-more-btn {
            width: 100%;
            padding: 0.75rem;
            border-radius: 99px;
            border: 1.5px solid var(--border);
            background: transparent;
            color: var(--text-main);
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            margin-top: 1rem;
            transition: all 0.2s;
        }

        .load-more-btn:hover {
            background: var(--bg);
            border-color: var(--text-muted);
        }

        /* ── Reviews Store Header ─────────────────────────── */
        .reviews-store-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 16px;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .reviews-store-avatar {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--primary-light);
        }

        .reviews-store-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .reviews-store-avatar-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-light);
            color: var(--primary);
            font-weight: 800;
            font-size: 1.1rem;
        }

        .reviews-store-info {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .reviews-store-name {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.3;
        }

        .reviews-store-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--success);
            background: var(--success-light);
            padding: 2px 8px;
            border-radius: 99px;
            border: 1px solid hsl(138, 60%, 85%);
            width: fit-content;
        }

        .reviews-store-badge svg {
            color: var(--success);
            flex-shrink: 0;
        }

        /* ── Reviews List Column ──────────────────────────── */
        .reviews-list-column {
            display: flex;
            flex-direction: column;
        }

        /* ── Desktop Reviews Pagination ───────────────────── */
        .reviews-pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 1.25rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
            flex-wrap: wrap;
        }

        .reviews-pagination .page-btn {
            min-width: 36px;
            height: 36px;
            padding: 0 10px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--surface);
            color: var(--text-main);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .reviews-pagination .page-btn:hover:not(:disabled):not(.active) {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }

        .reviews-pagination .page-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(99,102,241,0.25);
        }

        .reviews-pagination .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .reviews-pagination .page-ellipsis {
            font-size: 0.85rem;
            color: var(--text-muted);
            padding: 0 4px;
            user-select: none;
        }

        /* ── Mobile Show More Reviews Button ──────────────── */
        .mobile-show-more-reviews {
            width: 100%;
            padding: 12px;
            border-radius: var(--radius-sm);
            border: 1.5px solid var(--border);
            background: transparent;
            color: var(--primary);
            font-weight: 700;
            font-size: 0.88rem;
            cursor: pointer;
            margin-top: 12px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .mobile-show-more-reviews:hover {
            background: var(--primary-light);
            border-color: var(--primary);
        }

        .mobile-show-more-reviews:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Hide mobile-specific elements on desktop */
        .mobile-header-overlay,
        #spaylater-card,
        .mobile-accordions,
        .slider-badge {
            display: none;
        }

        /* ══════════════════════════════════════════════════
           SHAPEE-STYLE MOBILE LAYOUT RESTYLE (max-width: 768px)
           ══════════════════════════════════════════════════ */
        @media (max-width: 768px) {
            /* 1. Global layout overrides */
            .page-store-detail {
                background-color: #f4f4f4 !important;
                padding-bottom: 90px !important;
            }

            .page-store-detail .container {
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                background-color: #f4f4f4 !important;
                display: flex !important;
                flex-direction: column !important;
            }

            /* Prevent elements with .detail-extra-section from drawing double padding/borders on mobile */
            .page-store-detail .detail-extra-section {
                background: transparent !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            /* Specs description card is handled by accordion on mobile, hide the desktop version completely */
            .page-store-detail .specs-description-card {
                display: none !important;
            }

            /* Store card wrapper flex ordering */
            .page-store-detail .store-card-wrapper {
                order: 3 !important;
                display: block !important;
                margin: 0 0 8px 0 !important;
            }

            /* PWA install banner space handling */
            .page-store-detail #pwa-install-banner {
                margin-top: 54px !important;
                order: 1 !important;
            }

            /* 2. Hide desktop navbar, display mobile header */
            .page-store-detail .navbar {
                display: none !important;
            }

            .mobile-header-overlay {
                display: flex !important;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: 54px;
                align-items: center;
                justify-content: space-between;
                padding: 0 12px;
                z-index: 1000;
                transition: background-color 0.25s ease, box-shadow 0.25s ease;
                background-color: transparent;
            }

            .mobile-header-overlay.scrolled {
                background-color: #ffffff !important;
                box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08) !important;
                border-bottom: 1px solid #e2e8f0;
            }

            .header-btn {
                display: flex !important;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                min-width: 36px;
                min-height: 36px;
                flex-shrink: 0;
                border-radius: 50%;
                background: rgba(0, 0, 0, 0.4);
                color: #ffffff !important;
                border: none;
                cursor: pointer;
                transition: all 0.2s;
                padding: 0;
            }

            .mobile-header-overlay.scrolled .header-btn {
                background: #f1f5f9;
                color: #334155 !important;
            }

            .header-right-btns {
                display: flex;
                gap: 8px;
                align-items: center;
            }

            .mobile-header-overlay .search-placeholder {
                flex: 1;
                margin: 0 10px;
                background: #f1f5f9;
                border-radius: 4px;
                height: 36px;
                display: none;
                align-items: center;
                padding: 0 10px;
                color: #94a3b8;
                font-size: 0.85rem;
                font-weight: 500;
                text-decoration: none;
                border: 1px solid #e2e8f0;
            }

            .mobile-header-overlay.scrolled .search-placeholder {
                display: flex !important;
            }

            .cart-btn {
                position: relative;
            }

            .cart-badge {
                position: absolute;
                top: -3px;
                right: -3px;
                background: var(--primary);
                color: #ffffff;
                font-size: 0.65rem;
                min-width: 15px;
                height: 15px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 700;
                border: 1px solid #ffffff;
                padding: 0 2px;
            }

            /* 3. Product Grid & Image Slider overrides */
            .product-grid {
                grid-template-columns: 1fr !important;
                gap: 0 !important;
                padding: 0 !important;
                background: transparent !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                margin-bottom: 0 !important;
                order: 2 !important; /* Flex order */
            }

            .product-image {
                aspect-ratio: 1 / 1 !important;
                width: 100% !important;
                height: auto !important;
                min-height: unset !important;
                border: none !important;
                border-radius: 0 !important;
                margin: 0 !important;
                box-shadow: none !important;
                background: #ffffff !important;
            }

            /* Slider Dots & Badge */
            .slider-dots {
                display: none !important; /* Hide dots on mobile */
            }

            .slider-badge {
                display: block !important;
                position: absolute;
                bottom: 12px;
                right: 12px;
                background: rgba(0, 0, 0, 0.55);
                color: #ffffff;
                padding: 3px 10px;
                border-radius: 12px;
                font-size: 0.75rem;
                font-weight: 600;
                z-index: 10;
                letter-spacing: 0.5px;
            }

            /* 4. Product Info overrides & flexordering */
            .product-info {
                display: flex !important;
                flex-direction: column !important;
                background: #ffffff !important;
                padding: 14px 16px !important;
                margin-bottom: 8px !important; /* Shopee style gap */
                border-bottom: 1px solid #e2e8f0;
                border-radius: 0 !important;
                box-shadow: none !important;
                border: none !important;
            }

            /* Flex Reordering for Shopee Layout */
            .spaylater-card {
                order: 2 !important;
                display: flex !important;
                flex-direction: column;
                background: hsl(245, 100%, 98.5%);
                border: 1px solid hsl(245, 100%, 94%);
                border-radius: 4px;
                padding: 10px 12px;
                margin-bottom: 12px;
                gap: 8px;
            }

            .spaylater-row, .installment-badge-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: 100%;
            }

            .spaylater-badge {
                background: hsl(245, 100%, 96%);
                color: var(--primary);
                font-size: 0.68rem;
                font-weight: 700;
                padding: 2px 6px;
                border-radius: 2px;
                border: 1px solid hsl(245, 100%, 90%);
            }

            .spaylater-text {
                flex: 1;
                font-size: 0.78rem;
                color: #555;
                margin-left: 8px;
                font-weight: 600;
            }

            .installment-badge {
                font-size: 0.78rem;
                color: var(--primary);
                font-weight: 700;
            }

            .arrow-icon {
                color: #94a3b8;
                flex-shrink: 0;
            }

            .product-info h1 {
                order: 3 !important;
                font-size: 1.05rem !important;
                font-weight: 600 !important;
                line-height: 1.45 !important;
                color: #222222 !important;
                margin: 0 0 8px 0 !important;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .social-proof {
                order: 4 !important;
                display: flex !important;
                align-items: center !important;
                margin-bottom: 12px !important;
                gap: 8px !important;
                font-size: 0.8rem !important;
                border-bottom: 1px solid #f1f5f9;
                padding-bottom: 8px;
            }

            .rating {
                font-size: 0.85rem !important;
                color: #ffc107 !important;
            }

            .sold {
                background: none !important;
                color: #777777 !important;
                padding: 0 !important;
                font-weight: 500 !important;
                border-left: 1px solid #e2e8f0;
                padding-left: 8px !important;
            }

            .shipping-card {
                order: 5 !important;
                display: flex !important;
                background: #ffffff;
                border-top: 1px solid #f1f5f9;
                border-bottom: 1px solid #f1f5f9;
                padding: 12px 0;
                margin-bottom: 8px;
            }

            .shipping-row {
                display: flex;
                width: 100%;
                justify-content: space-between;
                align-items: center;
            }

            .shipping-left {
                display: flex;
                gap: 10px;
                align-items: flex-start;
            }

            .shipping-icon {
                color: var(--primary);
                margin-top: 2px;
                flex-shrink: 0;
            }

            .shipping-details {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .shipping-title-row {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 0.8rem;
                flex-wrap: wrap;
            }

            .shipping-bold {
                font-weight: 700;
                color: #222;
            }

            .shipping-divider {
                color: #e2e8f0;
            }

            .shipping-green {
                color: var(--primary);
                font-weight: 600;
            }

            .shipping-sub {
                font-size: 0.75rem;
                color: #777;
            }

            #product-options-section {
                order: 6 !important;
                margin: 0 !important;
                display: flex !important;
                flex-direction: column !important;
            }

            #variations-selector-wrapper,
            #sizes-selector-wrapper {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                background: #ffffff !important;
                border: none !important;
                padding: 14px 16px !important;
                margin-bottom: 0 !important;
                border-bottom: 1px solid #f1f5f9 !important;
                border-radius: 0 !important;
            }

            #variations-container,
            #sizes-container {
                display: flex !important;
                flex-wrap: wrap !important;
                gap: 8px !important;
                margin-top: 8px !important;
            }

            #variations-selector-wrapper h3,
            #sizes-selector-wrapper h3 {
                font-size: 0.85rem !important;
                font-weight: 700 !important;
                color: #666 !important;
                margin-bottom: 8px !important;
            }

            .variation-chip-btn,
            .size-chip-btn {
                padding: 6px 12px !important;
                font-size: 0.8rem !important;
                border-radius: 4px !important;
                font-weight: 500 !important;
                border: 1px solid #e2e8f0 !important;
                background: #f8fafc !important;
            }

            .variation-chip-btn.selected,
            .size-chip-btn.selected {
                border-color: var(--primary) !important;
                background: hsl(245, 100%, 97%) !important;
                color: var(--primary) !important;
                box-shadow: none !important;
            }

            .qty-selector-wrapper {
                order: 7 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                padding: 14px 16px !important;
                margin: 0 !important;
                background: #ffffff !important;
                border-bottom: 1px solid #f1f5f9 !important;
            }

            .qty-selector-wrapper label {
                margin-bottom: 0 !important;
                font-size: 0.85rem !important;
                font-weight: 700 !important;
                color: #666;
            }

            .qty-selector {
                border-radius: 4px !important;
            }

            .qty-btn {
                width: 32px !important;
                height: 32px !important;
            }

            .qty-input {
                width: 48px !important;
                height: 32px !important;
                font-size: 0.9rem !important;
            }

            /* 5. Mobile Accordions Section */
            .mobile-accordions {
                order: 4 !important; /* Flex order */
                display: block !important;
                margin-bottom: 8px !important;
            }

            .accordion-item {
                background: #ffffff;
                border-bottom: 1px solid #f1f5f9;
                margin-bottom: 0;
            }

            .accordion-header {
                display: flex !important;
                justify-content: space-between;
                align-items: center;
                padding: 14px 16px;
                font-size: 0.9rem;
                font-weight: 700;
                color: #333;
                cursor: pointer;
                background: #ffffff;
            }

            .accordion-header svg {
                color: #94a3b8;
                transition: transform 0.2s ease;
            }

            .accordion-item.active .accordion-header svg {
                transform: rotate(180deg);
            }

            .accordion-content {
                display: none;
                padding: 12px 16px 16px 16px;
                background: #ffffff;
                border-top: 1px solid #f8fafc;
                font-size: 0.85rem;
                color: #555;
            }

            .accordion-item.active .accordion-content {
                display: block !important;
            }

            /* Hide original desktop section duplicates */
            .detail-description-section,
            #specs-table-wrapper,
            .secure-checkout-card,
            .social-proof-row,
            .product-share-favorite-row,
            .desktop-thumbnails {
                display: none !important;
            }

            .desktop-details-rows {
                display: flex !important;
                flex-direction: column !important;
                gap: 0 !important;
                order: 5 !important;
            }

            /* Hide desktop-only rows inside desktop-details-rows on mobile */
            .tiers-detail-row,
            .jaminan-detail-row,
            .shipping-detail-row > .detail-label,
            .action-buttons-desktop {
                display: none !important;
            }

            /* Shipping row container mobile style */
            .shipping-detail-row {
                display: block !important;
                padding: 0 !important;
                border: none !important;
                margin-bottom: 8px !important;
            }

            .shipping-card {
                padding: 12px 16px !important;
            }

            /* Mobile Price Box styling */
            .product-price-box {
                order: 1 !important;
                background: transparent !important;
                padding: 0 !important;
                margin-bottom: 8px !important;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: 8px;
            }
            .product-price-box .product-price {
                font-size: 1.6rem !important;
                color: var(--primary) !important;
                font-weight: 800 !important;
                margin: 0 !important;
                order: 1 !important;
            }
            .product-price-box .discount-percentage-badge {
                background: hsl(245, 100%, 96%);
                color: var(--primary);
                font-size: 0.7rem;
                font-weight: 700;
                padding: 2px 6px;
                border-radius: 2px;
                border: 1px solid var(--primary);
                order: 2 !important;
            }
            .product-price-box .price-slashed {
                text-decoration: line-through;
                color: #94a3b8;
                font-size: 0.85rem;
                order: 3 !important;
            }

            /* 6. Review list on mobile styling */
            .reviews-section {
                order: 5 !important; /* Flex order */
                background: #ffffff !important;
                padding: 14px 16px !important;
                margin: 0 0 8px 0 !important;
                border-radius: 0 !important;
                border: none !important;
                box-shadow: none !important;
            }

            .reviews-store-header {
                padding-bottom: 12px !important;
                margin-bottom: 12px !important;
                gap: 10px !important;
            }

            .reviews-store-avatar {
                width: 36px !important;
                height: 36px !important;
            }

            .reviews-store-name {
                font-size: 0.88rem !important;
            }

            .reviews-store-badge {
                font-size: 0.65rem !important;
                padding: 1px 6px !important;
            }

            .reviews-title {
                font-size: 0.95rem !important;
                font-weight: 700 !important;
                margin-bottom: 12px !important;
            }

            .reviews-layout {
                grid-template-columns: 1fr !important;
                gap: 1rem !important;
            }

            /* Mobile: hide desktop pagination, show mobile button */
            .reviews-pagination {
                display: none !important;
            }

            .mobile-show-more-reviews {
                /* visible on mobile when JS sets display */
            }

            .review-item {
                padding-bottom: 1rem !important;
            }

            .review-header {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 4px !important;
            }

            .review-comment {
                font-size: 0.85rem !important;
            }

            .review-images img {
                width: 64px !important;
                height: 64px !important;
            }

            .rating-summary-card {
                padding: 1rem !important;
            }

            .summary-score {
                font-size: 2.25rem !important;
            }

            .summary-stars {
                font-size: 1rem !important;
            }

            /* 7. Shop/Supplier Card on mobile */
            .store-card {
                background: #ffffff !important;
                padding: 14px 16px !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 12px !important;
                margin: 0 !important;
            }
            
            .store-stats-grid {
                display: none !important; /* Hide on mobile */
            }
            
            .store-left-panel {
                display: flex !important;
                flex-direction: column !important;
                gap: 12px !important;
            }
            
            .store-profile {
                display: flex !important;
                align-items: center !important;
                gap: 12px !important;
            }
            
            .store-avatar-container {
                width: 48px !important;
                height: 48px !important;
                flex-shrink: 0;
            }
            
            .store-avatar, .store-avatar-placeholder {
                width: 100% !important;
                height: 100% !important;
                border-radius: 50% !important;
                object-fit: cover !important;
            }
            
            .store-avatar-placeholder {
                background: var(--primary-light);
                color: var(--primary);
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 800;
                font-size: 1.2rem;
            }
            
            .store-name-section {
                flex: 1;
                min-width: 0;
            }
            
            .store-name {
                font-size: 0.95rem !important;
                font-weight: 700 !important;
                margin: 0 0 2px 0 !important;
            }
            
            .store-status-row {
                display: flex !important;
                align-items: center !important;
                gap: 6px !important;
                font-size: 0.75rem !important;
                color: #94a3b8 !important;
            }
            
            .store-online-dot {
                color: #10b981 !important;
                font-weight: 600 !important;
            }
            
            .store-actions {
                display: flex !important;
                gap: 8px !important;
                width: 100% !important;
            }
            
            .btn-store {
                flex: 1 !important;
                height: 36px !important;
                font-size: 0.8rem !important;
                font-weight: 600 !important;
                border-radius: var(--radius-sm) !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 6px !important;
                border: 1px solid var(--primary) !important;
                text-decoration: none !important;
            }
            
            .btn-store-chat {
                color: var(--primary) !important;
                background: hsl(245, 100%, 98.5%) !important;
            }
            
            .btn-store-visit {
                color: #ffffff !important;
                background: var(--primary) !important;
            }

            /* 8. FAQ Section on mobile */
            .faq-section {
                order: 6 !important; /* Flex order */
                background: #ffffff !important;
                padding: 14px 16px !important;
                margin: 0 0 8px 0 !important;
                border-radius: 0 !important;
                border: none !important;
            }

            .faq-section h2 {
                font-size: 1.1rem !important;
                margin-bottom: 1rem !important;
                text-align: left !important;
            }

            /* 9. Recommended grid and section */
            .recommended-section {
                order: 7 !important; /* Flex order */
                margin: 0 !important;
                padding: 14px 16px 2rem 16px !important;
                background-color: #f4f4f4 !important;
            }

            .recommended-section h2 {
                font-size: 0.95rem !important;
                font-weight: 700 !important;
                margin-bottom: 12px !important;
                text-align: left !important;
                color: #555;
            }

            .recommended-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }

            .rec-card {
                border-radius: 4px !important;
                border: none !important;
                box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
            }

            .rec-card-body {
                padding: 8px !important;
                gap: 4px !important;
            }

            .rec-card-title {
                font-size: 0.78rem !important;
                font-weight: 500 !important;
            }

            .rec-card-price {
                font-size: 0.88rem !important;
                font-weight: 700 !important;
                color: var(--primary) !important;
            }

            /* 10. Footer Section */
            .store-footer {
                order: 7 !important; /* Flex order */
                margin-top: 0 !important;
                padding: 2rem 16px 1.5rem 16px !important;
                background: #ffffff !important;
            }

            /* 11. Shopee mobile sticky footer overrides */
            .mobile-sticky-action {
                display: flex !important;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: #ffffff !important;
                /* Push the content up by 12px, plus iOS safe area so it's not flush to bottom */
                padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0)) 0 !important;
                border-top: 1px solid #e2e8f0;
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
                z-index: 1000;
                gap: 0 !important;
                height: calc(52px + 12px + env(safe-area-inset-bottom, 0));
            }

            .mobile-action-icon-btn {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 15% !important;
                height: 100%;
                border: none;
                background: #ffffff;
                color: #555555;
                cursor: pointer;
                padding: 4px 0;
                text-decoration: none;
                border-right: 1px solid #f1f5f9;
                flex: none !important;
            }

            .mobile-action-icon-btn:active {
                background: #f8fafc;
            }

            .mobile-action-icon-btn svg {
                width: 18px;
                height: 18px;
            }

            .mobile-action-icon-btn .icon-label {
                font-size: 0.65rem;
                margin-top: 2px;
                color: #666666;
            }

            .mobile-sticky-action .buy-now-btn {
                width: 70% !important;
                height: 100%;
                border-radius: 0 !important;
                background: var(--primary) !important; /* Signature webstore primary color solid */
                color: #ffffff !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                padding: 0 !important;
                border: none !important;
                font-weight: 700 !important;
                margin: 0 !important;
                flex: none !important;
                box-shadow: none !important;
                transform: none !important;
            }

            .mobile-sticky-action .buy-now-btn:active {
                background: var(--primary-hover, hsl(245, 75%, 52%)) !important;
            }

            .buy-now-btn .btn-text-main {
                font-size: 0.88rem;
                line-height: 1.2;
            }

            .buy-now-btn .btn-text-price {
                font-size: 0.78rem;
                font-weight: 500;
                opacity: 0.9;
                line-height: 1.2;
                margin-top: 1px;
            }

            /* Performance Optimizations */
            .store-footer,
            .recommended-section {
                content-visibility: auto;
                contain-intrinsic-size: 400px;
            }
        }

        /* Hide desktop-specific elements globally (will be overridden in desktop media query) */
        .action-buttons-desktop {
            display: none !important;
        }

        /* ==========================================================================
           SHAPEE-STYLE DESKTOP RESTYLING RULES (min-width: 769px)
           ========================================================================== */
        @media (min-width: 769px) {
            /* Container & Layout */
            .container {
                max-width: 1200px !important;
                margin: 2rem auto !important;
                padding: 0 1.5rem !important;
            }
            
            .product-grid {
                grid-template-columns: minmax(320px, 450px) 1fr !important;
                gap: 30px !important;
                padding: 25px !important;
                border-radius: var(--radius-lg) !important;
                background: #ffffff !important;
                border: 1px solid var(--border) !important;
                box-shadow: var(--shadow-sm) !important;
            }

            /* Left Gallery Column */
            .product-gallery-container {
                display: flex;
                flex-direction: column;
                width: 100% !important;
            }

            .product-image {
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 1 / 1 !important;
                min-height: unset !important;
                border-radius: var(--radius-md) !important;
                border: 1px solid var(--border) !important;
                background: #ffffff !important;
                overflow: hidden;
            }

            /* Desktop Thumbnails */
            .desktop-thumbnails {
                display: flex !important;
                gap: 8px;
                margin-top: 12px;
                overflow-x: auto;
                scrollbar-width: none; /* Hide scrollbar for clean app feel */
            }
            
            .desktop-thumbnails::-webkit-scrollbar {
                display: none;
            }

            .thumbnail-item {
                width: 72px !important;
                height: 72px !important;
                border: 2px solid transparent;
                border-radius: var(--radius-sm) !important;
                cursor: pointer;
                overflow: hidden;
                position: relative;
                flex-shrink: 0;
                transition: border-color 0.2s;
            }

            .thumbnail-item.active {
                border-color: var(--primary) !important;
            }

            .thumbnail-item img, 
            .thumbnail-item video {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .video-thumbnail-overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.3);
                display: flex;
                align-items: center;
                justify-content: center;
                color: #ffffff;
                z-index: 1;
            }

            /* Social Share & Favorite Heart Row */
            .product-share-favorite-row {
                display: flex !important;
                align-items: center;
                justify-content: space-between;
                margin-top: 15px;
                padding-top: 10px;
            }

            .share-options {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 0.9rem;
                color: var(--text-main);
            }

            .share-social-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 28px;
                height: 28px;
                border-radius: 50%;
                color: #ffffff !important;
                text-decoration: none;
                transition: transform 0.15s;
            }

            .share-social-btn:hover {
                transform: scale(1.08);
            }

            .share-social-btn.fb-color { background-color: #1877f2; }
            .share-social-btn.wa-color { background-color: #25d366; }
            .share-social-btn.pin-color { background-color: #e60023; }
            .share-social-btn.x-color { background-color: #000000; }

            .favorite-option {
                display: flex;
                align-items: center;
            }

            .fav-btn {
                background: none;
                border: none;
                color: var(--text-muted);
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 5px;
                font-size: 0.9rem;
                font-weight: 500;
                padding: 4px 8px;
                transition: color 0.15s;
            }

            .fav-btn:hover {
                color: #ef4444;
            }

            .fav-btn .heart-icon {
                color: #ef4444;
                transition: transform 0.2s;
            }

            .fav-btn:hover .heart-icon {
                transform: scale(1.15);
            }

            /* Hide Mobile UI Elements on Desktop */
            .mobile-social-proof,
            .product-tiers-wrapper,
            .mobile-origin-location,
            .mobile-trust-badges,
            .mobile-action-buttons,
            .slider-dots {
                display: none !important;
            }

            /* Right Column - Product Title & Info */
            .product-title {
                font-size: 1.25rem !important;
                font-weight: 600 !important;
                line-height: 1.4 !important;
                color: var(--text-main) !important;
                margin-bottom: 12px !important;
                display: flex !important;
                align-items: flex-start;
                gap: 8px;
            }
            
            .star-badge-title {
                background: var(--primary) !important;
                color: #ffffff !important;
                font-size: 0.72rem !important;
                font-weight: 700 !important;
                padding: 2px 5px !important;
                border-radius: 2px !important;
                text-transform: uppercase;
                flex-shrink: 0;
                margin-top: 2px;
                display: inline-block !important;
            }

            .social-proof-row {
                display: flex !important;
                align-items: center;
                gap: 15px;
                margin-bottom: 20px;
                font-size: 0.9rem;
            }

            .rating-block {
                display: flex;
                align-items: center;
                gap: 5px;
                color: var(--primary);
                border-bottom: 1px solid var(--primary);
                padding-bottom: 1px;
            }

            .rating-num {
                font-weight: 700;
                font-size: 1rem;
            }

            .stars-visual {
                color: var(--primary);
                letter-spacing: -1px;
            }

            .divider-line {
                color: #e2e8f0;
                height: 14px;
                width: 1px;
            }

            .reviews-count-link {
                text-decoration: none;
                color: var(--text-muted);
                border-bottom: 1px solid var(--text-main);
                padding-bottom: 1px;
            }

            .reviews-count-link .count-num {
                color: var(--text-main);
                font-weight: 700;
            }

            .sold-count-block {
                color: var(--text-muted);
            }

            .sold-count-block .count-num {
                color: var(--text-main);
                font-weight: 700;
            }

            .report-block {
                margin-left: auto;
            }

            .report-link {
                color: var(--text-muted);
                text-decoration: none;
                font-size: 0.85rem;
            }

            .report-link:hover {
                color: var(--primary);
            }

            /* Price Box styling */
            .product-price-box {
                display: flex !important;
                align-items: center;
                gap: 15px;
                background: hsl(245, 100%, 98.5%) !important;
                padding: 15px 20px !important;
                border-radius: var(--radius-md) !important;
                margin-bottom: 25px !important;
                flex-wrap: wrap !important;
            }

            .price-slashed {
                text-decoration: line-through;
                color: #94a3b8;
                font-size: 1rem;
                display: block !important;
            }

            .product-price-box .product-price {
                font-size: 1.85rem !important;
                font-weight: 700 !important;
                color: var(--primary) !important;
                margin: 0 !important;
            }

            .discount-percentage-badge {
                background: var(--primary) !important;
                color: #ffffff !important;
                font-size: 0.72rem !important;
                font-weight: 700 !important;
                padding: 2px 5px !important;
                border-radius: var(--radius-sm) !important;
                display: inline-block !important;
            }

            /* Details Rows Layout */
            .desktop-details-rows {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            .detail-row {
                display: flex !important;
                align-items: flex-start;
            }

            .detail-label {
                width: 110px !important;
                flex-shrink: 0;
                color: var(--text-muted) !important;
                font-size: 0.92rem !important;
                font-weight: 500 !important;
                margin: 0 !important;
                padding-top: 8px !important; /* aligns label with content */
            }

            .detail-value {
                flex: 1;
                display: flex !important;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
                color: var(--text-main);
            }

            .promo-badge {
                background: transparent;
                color: var(--primary);
                border: 1px solid var(--primary);
                font-size: 0.85rem;
                font-weight: 600;
                padding: 3px 10px;
                border-radius: 2px;
            }

            /* Shipping Card modifications on desktop */
            .shipping-card {
                background: transparent !important;
                border: none !important;
                padding: 0 !important;
                box-shadow: none !important;
                margin: 0 !important;
                width: 100% !important;
            }

            .shipping-row .arrow-icon {
                display: none !important;
            }

            .shipping-icon {
                color: var(--text-muted);
                margin-top: 2px;
            }

            .shipping-details {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .shipping-title-row {
                font-size: 0.9rem;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .shipping-bold {
                font-weight: 600;
                color: var(--text-main);
            }

            .shipping-divider {
                color: #e2e8f0;
            }

            .shipping-green {
                color: var(--success);
                font-weight: 600;
            }

            .shipping-sub {
                font-size: 0.82rem;
                color: var(--text-muted);
                margin: 0 !important;
            }

            /* Trust Badges Desktop Row */
            .jaminan-detail-row {
                display: flex !important;
            }

            .trust-list-desktop {
                display: flex;
                gap: 15px;
                font-size: 0.88rem;
                font-weight: 500;
                color: var(--text-main);
            }

            .check-icon {
                color: var(--primary);
                font-weight: bold;
                margin-right: 2px;
            }

            /* Option Wrappers Desktop Row */
            #product-options-section {
                margin: 0 !important;
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            #variations-selector-wrapper, 
            #sizes-selector-wrapper {
                background: transparent !important;
                padding: 0 !important;
                border: none !important;
                margin-bottom: 0 !important;
                border-radius: 0 !important;
            }

            .variation-chip-btn,
            .size-chip-btn {
                border-radius: var(--radius-sm) !important;
                padding: 6px 12px !important;
                font-size: 0.88rem !important;
            }

            /* Quantity Row Desktop */
            .qty-selector-wrapper {
                margin: 0 !important;
            }

            .qty-selector {
                border-radius: var(--radius-sm) !important;
            }

            .qty-btn {
                width: 32px !important;
                height: 32px !important;
            }

            .qty-input {
                width: 50px !important;
                height: 32px !important;
                font-size: 0.9rem !important;
                border-left: 1px solid var(--border) !important;
                border-right: 1px solid var(--border) !important;
            }

            .stock-hint {
                display: inline-block !important;
                color: var(--text-muted);
                font-size: 0.88rem;
                margin-left: 12px;
            }

            /* Action Buttons Desktop Layout */
            .action-buttons-desktop {
                display: flex !important;
                gap: 12px !important;
                margin-left: 110px !important;
                margin-top: 25px !important;
                flex-wrap: wrap !important;
            }

            .action-buttons-desktop .btn {
                flex: 1 1 auto !important;
                min-width: 140px !important;
                max-width: 250px !important;
                height: 48px !important;
                padding: 0 15px !important;
                font-size: 0.9rem !important;
                font-weight: 600;
                border-radius: var(--radius-md) !important;
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                gap: 8px;
                white-space: nowrap !important;
            }

            /* (Moved max-width 1024px query outside to prevent CSS nesting parse errors) */
            .btn-add-cart {
                background: hsl(245, 100%, 98.5%) !important;
                color: var(--primary) !important;
                border: 1px solid var(--primary) !important;
            }

            .btn-add-cart:hover {
                background: hsl(245, 100%, 97%) !important;
            }

            .btn-buy-now {
                background: var(--primary) !important;
                color: #ffffff !important;
                border: 1px solid var(--primary) !important;
            }

            .btn-buy-now:hover {
                background: var(--primary-hover) !important;
            }

            /* Supplier Store Card restyling */
            .store-card {
                padding: 25px !important;
                background: #ffffff !important;
                border: 1px solid var(--border) !important;
                border-radius: var(--radius-lg) !important;
                display: grid !important;
                grid-template-columns: 1fr 1.5fr !important;
                gap: 35px !important;
                box-shadow: var(--shadow-sm) !important;
            }

            .store-left-panel {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 15px !important;
                border-right: 1px solid var(--border) !important;
                padding-right: 35px !important;
                width: 100% !important;
            }

            .store-profile {
                width: 100% !important;
                display: flex !important;
                align-items: center;
                gap: 15px;
            }

            .store-avatar-container {
                width: 60px !important;
                height: 60px !important;
            }

            .store-name {
                font-size: 1.05rem !important;
                margin-bottom: 4px !important;
            }

            .store-actions {
                width: 100% !important;
                display: flex !important;
                gap: 10px !important;
            }

            .btn-store {
                flex: 1 !important;
                height: 38px;
                justify-content: center !important;
                font-size: 0.85rem !important;
                border-radius: var(--radius-sm) !important;
            }

            .btn-store-chat {
                border: 1px solid var(--primary) !important;
                color: var(--primary) !important;
                background: hsl(245, 100%, 98.5%) !important;
            }
            
            .btn-store-chat:hover {
                background: hsl(245, 100%, 97%) !important;
            }

            .btn-store-chat svg {
                stroke: var(--primary);
            }

            .btn-store-visit {
                background: var(--primary) !important;
                border: 1px solid var(--primary) !important;
                color: #ffffff !important;
            }

            .btn-store-visit:hover {
                background: var(--primary-hover) !important;
                border-color: var(--primary-hover) !important;
            }

            .store-stats-grid {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 20px 35px !important;
                align-content: center !important;
            }

            @media (max-width: 991px) {
                .store-stats-grid {
                    grid-template-columns: repeat(2, 1fr) !important;
                    gap: 15px 20px !important;
                }
            }

            .stat-item {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                font-size: 0.88rem !important;
            }

            .stat-label {
                color: var(--text-muted) !important;
            }

            .stat-value {
                color: var(--primary) !important;
                font-weight: 700 !important;
                text-align: right !important;
            }

            /* Specifications Table Styling */
            #specs-table {
                margin-top: 15px !important;
            }

            #specs-table tr {
                border-bottom: 1px solid #f1f5f9 !important;
            }

            #specs-table tr:hover {
                background-color: transparent !important;
            }

            #specs-table td {
                padding: 12px 10px !important;
                font-size: 0.9rem !important;
            }

            #specs-table td:first-child {
                width: 25% !important;
                color: var(--text-muted) !important;
                font-weight: 500 !important;
            }

            #specs-table td:last-child {
                color: var(--text-main) !important;
                font-weight: 600 !important;
            }

            .detail-extra-section {
                background: #ffffff !important;
                border: 1px solid var(--border) !important;
                border-radius: var(--radius-lg) !important;
                padding: 25px !important;
                box-shadow: var(--shadow-sm) !important;
                margin: 20px 0 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }
        }



        /* ═══════════════════════════════════════════════════════════════
   DESKTOP PATCH — Shopee-style product detail (min-width: 769px)
   Tambahkan di dalam <style> pada detail.php, setelah store.css
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {

    /* ── 1. Container & grid utama ─────────────────────────────── */
    .container {
        max-width: 1200px !important;
        margin: 1.5rem auto !important;
        padding: 0 1.5rem !important;
    }

    .product-grid {
        display: grid !important;
        grid-template-columns: 450px 1fr !important;
        gap: 40px !important;
        padding: 30px !important;
        border-radius: var(--radius-lg) !important;
        background: #fff !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--shadow-sm) !important;
        align-items: start !important;
    }

    /* ── 2. Galeri kiri ─────────────────────────────────────────── */
    .product-gallery-container {
        display: flex;
        flex-direction: column;
        width: 450px;
    }

    .product-image {
        width: 450px !important;
        height: 450px !important;
        min-height: unset !important;
        border-radius: var(--radius-md) !important;
        border: 1px solid var(--border) !important;
        background: #fff !important;
        overflow: hidden;
        position: relative;
    }

    /* Media slider mengisi kotak gambar */
    .media-slider {
        width: 100%;
        height: 100%;
    }

    .media-slide img,
    .media-slide video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* ── 3. Thumbnail row desktop ───────────────────────────────── */
    .desktop-thumbnails {
        display: flex !important;
        gap: 8px;
        margin-top: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .desktop-thumbnails::-webkit-scrollbar { display: none; }

    .thumbnail-item {
        width: 72px;
        height: 72px;
        border: 2px solid transparent;
        border-radius: var(--radius-sm) !important;
        cursor: pointer;
        overflow: hidden;
        flex-shrink: 0;
        transition: border-color 0.2s;
        background: #f8fafc;
    }

    .thumbnail-item.active,
    .thumbnail-item:hover {
        border-color: var(--primary) !important;
    }

    .thumbnail-item img,
    .thumbnail-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ── 4. Share & Favorite row ────────────────────────────────── */
    .product-share-favorite-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .share-options {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .share-social-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        color: #fff !important;
        text-decoration: none;
        transition: transform 0.15s;
        flex-shrink: 0;
    }

    .share-social-btn:hover { transform: scale(1.1); }
    .share-social-btn.fb-color  { background: #1877f2; }
    .share-social-btn.wa-color  { background: #25d366; }
    .share-social-btn.pin-color { background: #e60023; }
    .share-social-btn.x-color   { background: #000; }

    .fav-btn {
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 4px 8px;
        transition: color 0.15s;
    }

    .fav-btn:hover { color: #ef4444; }
    .fav-btn .heart-icon { color: #ef4444; }

    /* ── 5. Kolom kanan — info produk ───────────────────────────── */
    .product-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Judul produk */
    .product-info h1,
    .product-title {
        font-size: 1.15rem !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
        color: #222 !important;
        margin: 0 0 10px 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .star-badge-title {
        background: var(--primary) !important;
        color: #fff !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        padding: 2px 5px !important;
        border-radius: 2px !important;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-top: 3px;
    }

    /* ── 6. Rating row desktop ──────────────────────────────────── */
    .social-proof-row {
        display: flex !important;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    /* Sembunyikan mobile rating row di desktop */
    .mobile-social-proof { display: none !important; }

    .rating-block {
        display: flex;
        align-items: center;
        gap: 4px;
        color: var(--primary);
        border-bottom: 1px solid var(--primary);
        padding-bottom: 1px;
        cursor: pointer;
    }

    .rating-num  { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
    .stars-visual { color: #ffa500; letter-spacing: -2px; font-size: 0.85rem; }
    .divider-line { color: #cbd5e1; font-size: 0.8rem; }

    .reviews-count-link {
        text-decoration: none;
        color: var(--text-muted);
        border-bottom: 1px solid #94a3b8;
        padding-bottom: 1px;
        font-size: 0.875rem;
    }

    .reviews-count-link .count-num { color: #222; font-weight: 700; }
    .sold-count-block { font-size: 0.875rem; color: var(--text-muted); }
    .sold-count-block .count-num { color: #222; font-weight: 700; }
    .report-block { margin-left: auto; }
    .report-link { color: var(--text-muted); font-size: 0.8rem; text-decoration: none; }
    .report-link:hover { color: var(--primary); }

    /* ── 7. Price box ───────────────────────────────────────────── */
    .product-price-box {
        display: flex !important;
        align-items: baseline !important;
        gap: 10px !important;
        background: hsl(245, 100%, 98.5%) !important;
        padding: 14px 18px !important;
        border-radius: var(--radius-md) !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap !important;
    }

    /* Harga coret */
    .price-slashed {
        text-decoration: line-through !important;
        color: #94a3b8 !important;
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        display: inline !important;
    }

    /* Harga utama */
    .product-price-box .product-price {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    /* Badge diskon */
    .discount-percentage-badge {
        background: var(--primary) !important;
        color: #fff !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        padding: 2px 6px !important;
        border-radius: var(--radius-sm) !important;
        display: inline-block !important;
        align-self: center !important;
    }

    /* ── 8. Detail rows (label + value) ─────────────────────────── */
    .desktop-details-rows {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .detail-row {
        display: flex !important;
        align-items: flex-start !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .detail-row:last-child { border-bottom: none !important; }

    .detail-label {
        width: 120px !important;
        flex-shrink: 0 !important;
        color: #777 !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        margin: 0 !important;
        padding-top: 2px !important;
        line-height: 1.4 !important;
    }

    .detail-value {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        color: #222 !important;
        font-size: 0.875rem !important;
    }

    /* Paket Diskon badge */
    .promo-badge {
        background: transparent;
        color: var(--primary);
        border: 1px solid var(--primary);
        font-size: 0.82rem;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 2px;
    }

    /* ── 9. Shipping row ────────────────────────────────────────── */
    .shipping-card {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .shipping-row { display: flex; justify-content: space-between; align-items: center; }
    .shipping-left { display: flex; gap: 10px; align-items: flex-start; }
    .shipping-icon { color: var(--text-muted); margin-top: 2px; flex-shrink: 0; }

    .shipping-title-row {
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .shipping-bold  { font-weight: 600; color: #222; }
    .shipping-divider { color: #cbd5e1; }
    .shipping-green { color: var(--success); font-weight: 600; font-size: 0.85rem; }
    .shipping-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; display: block; }

    /* Panah chevron di shipping: sembunyikan di desktop */
    .shipping-row .arrow-icon { display: none !important; }

    /* ── 10. Jaminan row ─────────────────────────────────────────── */
    .jaminan-detail-row { display: flex !important; }

    .trust-list-desktop {
        display: flex;
        gap: 14px;
        font-size: 0.85rem;
        font-weight: 500;
        color: #222;
        flex-wrap: wrap;
    }

    .check-icon { color: var(--primary); font-weight: 700; margin-right: 2px; }

    /* Sembunyikan mobile trust badges */
    .mobile-trust-badges { display: none !important; }

    /* ── 11. Variasi — chip dengan thumbnail gambar ──────────────── */
    #product-options-section {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #variations-selector-wrapper,
    #sizes-selector-wrapper {
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
    }

    /* Label selector (h3) jadi detail-label */
    #variations-selector-wrapper h3,
    #sizes-selector-wrapper h3 {
        width: 120px !important;
        flex-shrink: 0 !important;
        color: #777 !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        margin: 0 !important;
        padding-top: 4px !important;
    }

    /* Container chip */
    #variations-container,
    #sizes-container {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }

    /* Chip button — Shopee style persegi dengan thumbnail */
    .variation-chip-btn,
    .size-chip-btn {
        padding: 5px 10px !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: var(--radius-sm) !important;
        background: #fff !important;
        color: #222 !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.15s !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        position: relative !important;
        min-height: 36px !important;
    }

    /* Thumbnail di dalam chip (jika ada) */
    .variation-chip-btn img,
    .size-chip-btn img {
        width: 28px;
        height: 28px;
        object-fit: cover;
        border-radius: 2px;
        flex-shrink: 0;
    }

    .variation-chip-btn:hover:not(:disabled),
    .size-chip-btn:hover:not(:disabled) {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
        background: hsl(245, 100%, 98.5%) !important;
    }

    .variation-chip-btn.selected,
    .size-chip-btn.selected {
        border-color: var(--primary) !important;
        background: hsl(245, 100%, 97%) !important;
        color: var(--primary) !important;
        box-shadow: none !important;
    }

    /* Corner tick pada chip terpilih (ala Shopee) */
    .variation-chip-btn.selected::after,
    .size-chip-btn.selected::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0 14px 14px;
        border-color: transparent transparent var(--primary) transparent;
    }

    /* ── 12. Quantity row ────────────────────────────────────────── */
    .qty-selector-wrapper {
        margin: 0 !important;
    }

    .qty-selector {
        border-radius: var(--radius-sm) !important;
        border: 1px solid #e2e8f0 !important;
    }

    .qty-btn {
        width: 32px !important;
        height: 32px !important;
        border: none !important;
        background: #f8fafc !important;
        color: #444 !important;
    }

    .qty-btn:hover {
        background: hsl(245, 100%, 97%) !important;
        color: var(--primary) !important;
    }

    .qty-input {
        width: 50px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        border-left: 1px solid #e2e8f0 !important;
        border-right: 1px solid #e2e8f0 !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    .stock-hint {
        display: inline-block !important;
        color: var(--text-muted);
        font-size: 0.85rem;
        margin-left: 12px;
    }

    /* ── 13. CTA buttons desktop ─────────────────────────────────── */
    /* Sembunyikan mobile action buttons */
    .mobile-action-buttons { display: none !important; }

    .action-buttons-desktop {
        display: flex !important;
        gap: 12px !important;
        margin-top: 6px !important;
        margin-left: 0 !important; /* Override Block 1 */
        /* Indent sejajar dengan detail-value (bukan detail-label) */
        padding-left: 110px !important;
        flex-wrap: nowrap !important; /* Prevent stacking */
    }

    .action-buttons-desktop .btn {
        flex: 1 !important; /* Allow buttons to stretch equally */
        height: 48px !important;
        padding: 0 24px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        border-radius: var(--radius-md) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: auto !important;
        min-width: 160px !important;
    }

    .btn-add-cart {
        background: hsl(245, 100%, 98.5%) !important;
        color: var(--primary) !important;
        border: 1.5px solid var(--primary) !important;
        box-shadow: none !important;
    }

    .btn-add-cart:hover {
        background: hsl(245, 100%, 96%) !important;
        transform: none !important;
    }

    .btn-buy-now {
        background: var(--primary) !important;
        color: #fff !important;
        border: 1.5px solid var(--primary) !important;
        box-shadow: 0 2px 8px rgba(99,102,241,0.25) !important;
    }

    .btn-buy-now:hover {
        background: var(--primary-hover) !important;
        transform: none !important;
    }

    /* ── 14. Store / Supplier card desktop ───────────────────────── */
    .detail-extra-section.store-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .store-card {
        padding: 20px 24px !important;
        background: #fff !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-lg) !important;
        display: grid !important;
        grid-template-columns: 320px 1fr !important;
        gap: 0 !important;
        box-shadow: var(--shadow-sm) !important;
        align-items: center !important;
    }

    .store-left-panel {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        border-right: 1px solid var(--border) !important;
        padding-right: 24px !important;
        margin-right: 24px !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .store-profile {
        display: flex !important;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .store-avatar-container {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0;
        position: relative;
    }

    .store-avatar,
    .store-avatar-placeholder {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50%;
        object-fit: cover;
    }

    .store-avatar-placeholder {
        background: var(--primary-light);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 1.4rem;
    }

    .store-name-section { flex: 1; min-width: 0; }

    .store-name {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #222 !important;
        margin: 0 0 3px 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .store-online-dot {
        font-size: 0.78rem;
        color: #22c55e;
        font-weight: 600;
    }

    .store-actions {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0;
    }

    .btn-store {
        height: 36px !important;
        padding: 0 14px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: var(--radius-sm) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer;
        text-decoration: none;
        white-space: nowrap;
        min-width: auto !important;
        width: auto !important;
        flex: none !important;
    }

    .btn-store-chat {
        border: 1.5px solid var(--primary) !important;
        color: var(--primary) !important;
        background: hsl(245, 100%, 98.5%) !important;
    }

    .btn-store-chat:hover {
        background: hsl(245, 100%, 96%) !important;
    }

    .btn-store-visit {
        background: var(--primary) !important;
        border: 1.5px solid var(--primary) !important;
        color: #fff !important;
    }

    .btn-store-visit:hover {
        background: var(--primary-hover) !important;
    }

    /* Stats grid di store card */
    .store-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px 20px !important;
        align-content: center !important;
    }

    .stat-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        font-size: 0.82rem !important;
    }

    .stat-label { color: var(--text-muted) !important; }

    .stat-value {
        color: var(--primary) !important;
        font-weight: 700 !important;
    }

    /* ── 15. Spek & Deskripsi sections ──────────────────────────── */
    .detail-extra-section {
        background: #fff !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-lg) !important;
        padding: 24px !important;
        box-shadow: var(--shadow-sm) !important;
        margin: 16px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #specs-table tr { border-bottom: 1px solid #f1f5f9 !important; }
    #specs-table tr:hover { background: transparent !important; }

    #specs-table td {
        padding: 11px 10px !important;
        font-size: 0.875rem !important;
    }

    #specs-table td:first-child {
        width: 22% !important;
        color: var(--text-muted) !important;
        font-weight: 500 !important;
    }

    #specs-table td:last-child {
        color: #222 !important;
        font-weight: 600 !important;
    }

    /* ── 16. Sembunyikan elemen mobile-only di desktop ───────────── */
    .mobile-header-overlay      { display: none !important; }
    .mobile-sticky-action       { display: none !important; }
    .mobile-accordions          { display: none !important; }
    .mobile-origin-location     { display: none !important; }
    .product-tiers-wrapper      { display: none !important; }
    .slider-badge               { display: none !important; }
    .mobile-action-buttons      { display: none !important; }
    .mobile-show-more-reviews   { display: none !important; }
    .mobile-social-proof        { display: none !important; }

    /* Desktop: show pagination when JS sets it */
    .reviews-pagination { display: flex !important; }

    /* Dots slider: tampilkan di desktop */
    .slider-dots { display: flex !important; }

}

