:root {
    --shopee-orange: #091F92;
    /* Authentic Indigo Dye */
    --shopee-orange-hover: #051359;
    --shopee-orange-light: #eef2fc;
    --shopee-burgundy: #091F92;
    --shopee-burgundy-light: #eef2fc;
    --shopee-yellow: #f59e0b;
    --shopee-mall: #091F92;
    --shopee-canvas: #f8fafc;
    --shopee-card-bg: #ffffff;
    --shopee-border: #e2e8f0;
    --shopee-text-dark: #0f172a;
    --shopee-text-muted: #64748b;
}

/* DARK MODE PALETTE */
html[data-theme="dark"],
body.dark-mode {
    --shopee-orange: #3b82f6;
    /* Vibrant Indigo Blue for dark canvas */
    --shopee-orange-hover: #60a5fa;
    --shopee-orange-light: rgba(59, 130, 246, 0.2);
    --shopee-burgundy: #091F92;
    --shopee-burgundy-light: rgba(9, 31, 146, 0.25);
    --shopee-yellow: #fbbf24;
    --shopee-mall: #091F92;
    --shopee-canvas: #0b0f19;
    --shopee-card-bg: #131b2e;
    --shopee-border: #222f49;
    --shopee-text-dark: #f8fafc;
    --shopee-text-muted: #94a3b8;
}

body {
    background-color: var(--shopee-canvas) !important;
    color: var(--shopee-text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding-top: 66px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

body.no-header {
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 62px;
    }
}

.shopee-main-canvas {
    background-color: var(--shopee-canvas);
    min-height: 100vh;
    padding-top: 16px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .shopee-main-canvas {
        padding-top: 10px;
    }
}

.shopee-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 1. HERO BANNER SECTION */
.shopee-hero-section {
    margin-bottom: 14px;
}

.shopee-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    height: 235px;
}

.shopee-carousel-box {
    position: relative;
    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--shopee-border);
}

.shopee-slides-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.shopee-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.shopee-slide.active {
    opacity: 1;
    z-index: 1;
}

.shopee-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shopee-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 48px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    border-radius: 0;
}

.shopee-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.shopee-carousel-arrow.prev {
    left: 0;
}

.shopee-carousel-arrow.next {
    right: 0;
}

.shopee-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.shopee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.shopee-dot.active {
    background: var(--shopee-orange);
    transform: scale(1.2);
}

.shopee-hero-side-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shopee-side-banner {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--shopee-border);
    border-radius: 2px;
    padding: 12px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.shopee-side-banner:hover {
    border-color: var(--shopee-orange);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.shopee-side-banner.banner-1 {
    background: linear-gradient(135deg, #fff7f5 0%, #ffffff 100%);
}

.shopee-side-banner.banner-2 {
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
}

.side-badge {
    display: inline-block;
    background: var(--shopee-orange);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
    width: fit-content;
    margin-bottom: 4px;
}

.side-badge.yellow {
    background: #d97706;
}

.side-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--shopee-text-dark);
    margin: 0 0 2px 0;
}

.side-sub {
    font-size: 11px;
    color: var(--shopee-text-muted);
    margin: 0;
}

/* 2. CARD SECTION GENERIC */
.shopee-card-section {
    background: var(--shopee-card-bg);
    border: 1px solid var(--shopee-border);
    border-radius: 2px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.shopee-section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 10px;
}

.shopee-section-heading {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--shopee-text-dark);
    margin: 0;
    text-transform: uppercase;
}

.shopee-link-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--shopee-orange);
    text-decoration: none;
}

.shopee-link-more:hover {
    text-decoration: underline;
}

/* KATEGORI PILIHAN GRID */
.cat-swipe-hint-mobile {
    display: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--shopee-orange);
    background: var(--shopee-orange-light);
    padding: 2px 7px;
    border-radius: 999px;
}

.shopee-cat-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.shopee-cat-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 6px;
}

.shopee-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative;
    z-index: 2;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.shopee-cat-item * {
    pointer-events: none;
}

.shopee-cat-item:hover,
.shopee-cat-item.active {
    border-color: var(--shopee-orange);
    background-color: var(--shopee-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(9, 31, 146, 0.08);
}

.shopee-cat-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border: 1px solid #f2f2f2;
    transition: transform 0.15s;
}

.shopee-cat-item:hover .shopee-cat-icon-box,
.shopee-cat-item.active .shopee-cat-icon-box {
    transform: scale(1.06);
}

.shopee-cat-emoji {
    font-size: 18px;
}

.shopee-cat-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--shopee-text-dark);
    line-height: 1.2;
    margin-bottom: 2px;
}

.shopee-cat-sub {
    font-size: 9.5px;
    color: var(--shopee-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* SHOPEE CATALOG & UNIVERSAL PRODUCT STYLING */
#katalog-hero {
    padding-top: 108px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--shopee-border) !important;
}

#katalog-hero .hero-title {
    color: var(--shopee-text-dark) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

#katalog-hero .hero-subtitle {
    color: var(--shopee-text-muted) !important;
}

#products.section {
    background: var(--shopee-canvas);
    padding-top: 14px;
}

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

@media (max-width: 1100px) {
    .grid-cards {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 520px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* Shopee Sharp Card Overrides for Catalog */
.card.apple-card-item {
    border-radius: 2px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    will-change: transform;
    transition: transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease !important;
}

.card.apple-card-item:hover {
    border-color: var(--shopee-orange) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07) !important;
    transform: translateY(-2px) !important;
}

.card .add-btn,
.card .btn-buy {
    background: var(--shopee-orange) !important;
    color: #ffffff !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    border: none !important;
}

.card .add-btn:hover,
.card .btn-buy:hover {
    background: var(--shopee-orange-hover) !important;
}

.card .product-price {
    color: var(--shopee-orange) !important;
    font-weight: 800 !important;
}

.card .brand-badge {
    background: var(--shopee-mall) !important;
    color: #ffffff !important;
    border-radius: 2px !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
}

.toggle-btn.active {
    background: var(--shopee-orange) !important;
    border-color: var(--shopee-orange) !important;
}

/* 4. REKOMENDASI SHOPEE SECTION (FULLWIDTH INDIGO ACCENT LINE) */
.shopee-recom-fullwidth-line {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    background: var(--shopee-orange);
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(9, 31, 146, 0.25);
    z-index: 15;
}

.shopee-recom-section {
    padding: 0;
    background: transparent;
    border: none;
}

.shopee-recom-header {
    background: var(--shopee-card-bg);
    border: 1px solid var(--shopee-border);
    border-top: 4px solid var(--shopee-orange);
    border-radius: 2px 2px 0 0;
    padding: 10px 14px 0 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Ensure the top indigo line spans 100vw across full screen */
.shopee-recom-header::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 4px;
    background: var(--shopee-orange);
    pointer-events: none;
    z-index: 25;
}

.shopee-recom-title-box {
    padding-bottom: 8px;
}

.shopee-recom-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--shopee-orange);
    margin: 0;
}

.shopee-filter-tab-row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shopee-filter-tab-row::-webkit-scrollbar {
    display: none;
}

.shopee-filter-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.15s, border-color 0.15s;
}

.shopee-filter-tab:hover {
    color: var(--shopee-orange);
}

.shopee-filter-tab.active {
    color: var(--shopee-orange);
    font-weight: 800;
    border-bottom-color: var(--shopee-orange);
}

/* SHOPEE PRODUCT GRID: 6 COLUMNS DESKTOP, HIGH DENSITY */
.shopee-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 10px;
}

/* SHOPEE PRODUCT CARD - SHARP, ZERO LAG, CLEAN STRUCTURE */
.shopee-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 2px !important; /* Tajam sudut tegas ala Shopee */
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}

.shopee-product-card:hover {
    border-color: var(--shopee-orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.shopee-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopee-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #ffffff;
    transition: transform 0.25s ease;
}

.shopee-card-badge-mall {
    position: absolute;
    top: 4px;
    left: 0;
    background: var(--shopee-mall);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 1.5px 5px;
    border-radius: 0 2px 2px 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.shopee-card-badge-mall.mall-badge {
    background: #091F92 !important;
    /* Authentic Indigo Dye Mall Badge */
}

.shopee-card-badge-mall.international-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    /* Royal Blue International Mall Badge */
}

.shopee-card-badge-mall.trusted-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    /* Amber Gold Trusted */
}

.shopee-card-badge-mall.star-badge {
    background: #1e40af !important;
    /* Deep Indigo Star */
}

.shopee-card-badge-mall.toko-badge {
    background: #0284c7 !important;
    /* Sky Blue Store */
}

/* Store Meta & Label inside card body */
.shopee-card-store-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    margin-bottom: 2px;
    overflow: hidden;
}

.shopee-card-store-label {
    font-size: 8.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    white-space: nowrap;
    line-height: 1.2;
}

.shopee-card-store-label.mall {
    background: #eef2fc;
    color: #091F92;
    border: 1px solid #c7d5f8;
}

.shopee-card-store-label.international {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.shopee-card-store-label.trusted {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.shopee-card-store-label.star {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.shopee-card-store-label.toko,
.shopee-card-store-label.regular {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.shopee-card-store-text {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopee-card-badge-disc {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 212, 36, 0.95);
    color: #091F92;
    width: 32px;
    padding: 2px 1px 3px 1px;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 9.5px;
    font-weight: 800;
}

.shopee-card-badge-disc::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    border-left: 16px solid rgba(255, 212, 36, 0.95);
    border-right: 16px solid rgba(255, 212, 36, 0.95);
    border-bottom: 4px solid transparent;
}

.shopee-card-soldout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopee-card-soldout-overlay span {
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
}

.shopee-card-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shopee-card-title {
    font-size: 12px;
    line-height: 1.35;
    min-height: 32px;
    height: auto;
    max-height: 52px;
    color: #222222;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    word-break: break-word;
}

/* Floating Instant Badge on thumbnail corner */
.shopee-card-badge-instan {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 1px 4px rgba(234, 88, 12, 0.45) !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    text-transform: uppercase !important;
}

.shopee-card-tag-instan {
    background: #fff7ed !important;
    color: #ea580c !important;
    border: 1px solid #ffedd5 !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
    display: inline-block !important;
    margin-right: 3px !important;
    vertical-align: middle !important;
    letter-spacing: 0.2px !important;
}

.shopee-card-tag-manual {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
    display: inline-block !important;
    margin-right: 3px !important;
    vertical-align: middle !important;
}

.shopee-card-labels {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}

.shopee-card-pill-meta {
    font-size: 9px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    padding: 1px 4px;
    border-radius: 2px;
}

.shopee-card-stock {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.shopee-card-stock.stock-in {
    background: #f0fdf4;
    color: #16a34a;
}

.shopee-card-stock.stock-few {
    background: #fffbeb;
    color: #d97706;
}

.shopee-card-stock.stock-out {
    background: #fef2f2;
    color: #dc2626;
}

.shopee-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}

.shopee-price-main {
    color: var(--shopee-orange);
    font-weight: 800;
    display: flex;
    align-items: baseline;
}

.shopee-rp {
    font-size: 10px;
}

.shopee-val {
    font-size: 15px;
}

.shopee-strike {
    font-size: 10px;
    color: #999999;
    text-decoration: line-through;
}

.shopee-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dotted #f2f2f2;
}

.shopee-card-stars {
    color: #ffce3d;
    font-size: 9px;
    letter-spacing: -1px;
}

.shopee-card-sold {
    font-size: 9.5px;
    color: #777777;
}

.shopee-card-actions {
    display: flex;
    gap: 3px;
    margin-top: 6px;
}

.shopee-card-btn-buy {
    flex: 1;
    background: var(--shopee-orange);
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 5px 0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.shopee-card-btn-buy:hover {
    background: var(--shopee-orange-hover);
}

.shopee-card-btn-cart {
    background: #fff0ed;
    color: var(--shopee-orange);
    border: 1px solid #ffd8cc;
    border-radius: 2px;
    padding: 0 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopee-card-btn-cart:hover {
    background: #ffe6e0;
}

.shopee-load-more-row {
    text-align: center;
    margin-top: 16px;
}

.shopee-btn-load-more {
    display: inline-block;
    background: #ffffff;
    color: #555555;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    padding: 9px 36px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.shopee-btn-load-more:hover {
    border-color: var(--shopee-orange);
    color: var(--shopee-orange);
    background: #fff7f5;
}

/* 5. SHOPEE MALL STRIP */
.shopee-mall-strip {
    margin-top: 20px;
}

.mall-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mall-badge {
    background: var(--shopee-mall);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 2px;
}

.mall-heading {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--shopee-text-dark);
    margin: 0;
}

.mall-guarantee {
    font-size: 11.5px;
    font-weight: 600;
    color: #2e7d32;
}

.shopee-brand-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.shopee-brand-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none !important;
    cursor: pointer;
}

.shopee-brand-cell * {
    pointer-events: none;
}

.shopee-brand-cell:hover {
    border-color: var(--shopee-orange);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shopee-brand-cell img {
    height: 26px;
    max-width: 58px;
    object-fit: contain;
    margin-bottom: 5px;
}

.shopee-brand-label {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
}

html[data-theme="dark"] .shopee-brand-cell {
    background: #172138 !important;
    border-color: #222f49 !important;
}

html[data-theme="dark"] .shopee-brand-label {
    color: #94a3b8 !important;
}

/* 6. SHOPEE VALUE PILLARS */
.shopee-value-section {
    background: #ffffff;
    border: 1px solid var(--shopee-border);
    border-radius: 2px;
    padding: 14px 16px;
    margin-top: 14px;
}

.shopee-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shopee-value-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.val-icon {
    font-size: 24px;
    line-height: 1;
}

.val-text {
    display: flex;
    flex-direction: column;
}

.val-text strong {
    font-size: 12px;
    color: #222;
}

.val-text span {
    font-size: 10.5px;
    color: #777;
}

/* Loading state */
.shopee-loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.shopee-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--shopee-orange);
    border-radius: 50%;
    animation: shopeeSpin 0.7s linear infinite;
}

@keyframes shopeeSpin {
    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
    .shopee-product-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .shopee-cat-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .shopee-brand-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 860px) {
    .shopee-hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .shopee-carousel-box {
        height: 180px;
    }

    .shopee-hero-side-banners {
        flex-direction: row;
    }

    .shopee-side-banner {
        flex: 1;
        min-width: 0;
    }

    .shopee-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mode Geser Horizontal untuk Kategori Pilihan di HP/Tablet */
    .cat-swipe-hint-mobile {
        display: inline-block;
    }

    .shopee-cat-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px !important;
        padding: 2px 2px 6px 2px;
    }

    .shopee-cat-grid::-webkit-scrollbar {
        display: none;
    }

    .shopee-cat-item {
        flex: 0 0 80px !important;
        min-width: 80px !important;
        scroll-snap-align: start;
        padding: 8px 4px !important;
    }

    /* Official Partner Mode HP Lebih Kecil & Ringkas */
    .shopee-mall-strip {
        margin-top: 12px !important;
        padding: 8px 10px !important;
    }

    .shopee-mall-strip .shopee-section-title-bar {
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
    }

    .mall-badge {
        font-size: 8.5px !important;
        padding: 1.5px 5px !important;
    }

    .mall-heading {
        font-size: 11px !important;
    }

    .mall-guarantee {
        font-size: 9.5px !important;
    }

    .shopee-brand-grid {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-columns: 62px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px !important;
        padding-bottom: 2px;
    }

    .shopee-brand-grid::-webkit-scrollbar {
        display: none;
    }

    .shopee-brand-cell {
        padding: 4px 2px !important;
        border-radius: 3px !important;
    }

    .shopee-brand-cell img {
        height: 16px !important;
        max-width: 36px !important;
        margin-bottom: 2px !important;
    }

    .shopee-brand-label {
        font-size: 7.5px !important;
        line-height: 1.1 !important;
    }

    .shopee-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .shopee-main-canvas {
        padding-top: 8px;
        padding-bottom: 74px;
    }

    .shopee-container {
        padding: 0 6px !important;
    }

    .shopee-card-section {
        padding: 10px 8px !important;
        margin-bottom: 10px;
    }

    .shopee-carousel-box {
        height: 145px;
    }

    .shopee-hero-side-banners {
        display: none;
    }

    .shopee-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .shopee-cat-item {
        flex: 0 0 74px !important;
        min-width: 74px !important;
        padding: 6px 3px !important;
    }

    .shopee-cat-icon-box {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
    }

    .shopee-cat-name {
        font-size: 9.5px;
    }

    .shopee-cat-sub {
        display: none;
    }

    .shopee-value-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .shopee-value-section {
        padding: 10px 12px;
    }

    .flash-badge-text {
        display: none;
    }
}

@media (max-width: 380px) {
    .shopee-product-grid {
        gap: 4px;
    }

    .shopee-cat-item {
        flex: 0 0 68px !important;
        min-width: 68px !important;
    }

    .shopee-cat-name {
        font-size: 9px;
    }
}

/* --------------------------------------------------------------------------
       DARK MODE COMPONENT OVERRIDES
       -------------------------------------------------------------------------- */
html[data-theme="dark"] .shopee-card-section {
    background: #131b2e !important;
    border-color: #222f49 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .shopee-product-card {
    background: #14171f !important;
    border-color: #262b38 !important;
}

html[data-theme="dark"] .shopee-product-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .shopee-section-heading,
html[data-theme="dark"] .shopee-recom-title,
html[data-theme="dark"] .mall-heading {
    color: #f8fafc !important;
}

html[data-theme="dark"] .shopee-filter-tab {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .shopee-filter-tab.active {
    color: #3b82f6 !important;
    border-bottom-color: #3b82f6 !important;
}

html[data-theme="dark"] .shopee-filter-tab:hover {
    color: #60a5fa !important;
}

html[data-theme="dark"] .shopee-cat-item {
    background: #14171f !important;
    border-color: #262b38 !important;
}

html[data-theme="dark"] .shopee-cat-item:hover {
    background: #1e2638 !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .shopee-cat-icon-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .shopee-cat-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .shopee-cat-sub {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .shopee-card-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .shopee-card-pill-meta {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .shopee-card-btn-buy {
    background: #091F92 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .shopee-card-btn-buy:hover {
    background: #051359 !important;
}

html[data-theme="dark"] .shopee-card-btn-cart {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .shopee-brand-cell {
    background: #131b2e !important;
    border-color: #222f49 !important;
}

html[data-theme="dark"] .shopee-brand-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .shopee-value-section {
    background: #131b2e !important;
    border-color: #222f49 !important;
}

html[data-theme="dark"] .val-text strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .val-text span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .shopee-btn-load-more {
    background: #151d2f !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .shopee-btn-load-more:hover {
    border-color: #091F92 !important;
    color: #f43f5e !important;
}

html[data-theme="dark"] .shopee-carousel-box {
    background: #131b2e !important;
    border-color: #222f49 !important;
}

html[data-theme="dark"] .shopee-side-banner {
    border-color: #222f49 !important;
}

html[data-theme="dark"] .shopee-card-thumb-wrap,
html[data-theme="dark"] .shopee-card-img {
    background: #151d2f !important;
}

/* Cart Toast Notification */
.em-cart-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1e293b;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #16a34a;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

.em-cart-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.em-toast-icon {
    width: 26px;
    height: 26px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.em-toast-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.em-toast-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.em-toast-desc {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.em-toast-btn {
    background: #091F92;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.em-toast-btn:hover {
    opacity: 0.9;
}

html[data-theme="dark"] .em-cart-toast,
body.dark-mode .em-cart-toast {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
    border-left-color: #22c55e !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .em-toast-title,
body.dark-mode .em-toast-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .em-toast-desc,
body.dark-mode .em-toast-desc {
    color: #94a3b8 !important;
}