/* Almaftuchin Shop - Complete CSS Styles */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

/* Color Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --dark-bg: #1f2937;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

img {
    -webkit-user-drag: none;
}
/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Temporary highlight used when pagination navigates to catalog */
.catalog-highlight {
    width: 100%;
    animation: catalog-pulse 1.4s ease-in-out;
    box-shadow: 0 12px 40px rgba(59,130,246,0.18) !important;
    border-radius: 8px;
    outline: 3px solid rgba(59,130,246,0.18);
    background-color: rgba(59,130,246,0.06);
}

@keyframes catalog-pulse {
    0% { background-color: rgba(59,130,246,0.08); }
    50% { background-color: rgba(59,130,246,0.16); }
    100% { background-color: transparent; }
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: 1.5rem; /* jarak sedikit ke menu navigasi */
}

.logo:hover {
    color: #2563eb;
}

.logo-accent {
    color: var(--secondary-color);
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    flex: 1;
    display: none; /* default sembunyi di mobile */
    /* menu navigasi akan mengambil ruang panjang di tengah */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* dorong ke paling kanan */
}

/* Header compact search (placed left of cart icon) */
.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search input[type="search"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 220px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(59,130,246,0.08);
}

.header-search .header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    color: var(--text-secondary);
}

.header-search .header-search-btn:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 860px) {
    .header-search input[type="search"] { width: 120px; }
}

/* Mobile search icon (visible only on small screens) */
.mobile-search-icon {
    display: none; /* default hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Dialog/backdrop for mobile search */
.mobile-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none; /* toggled via JS */
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.mobile-search-backdrop.show {
    display: flex;
}

.mobile-search-dialog {
    width: 100%;
    max-width: 560px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
    transform: translateY(8px);
    animation: dialog-pop 180ms ease-out forwards;
}

@keyframes dialog-pop {
    from { transform: translateY(12px) scale(0.995); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.mobile-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-search-row input[type="search"] {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 16px;
}

.mobile-search-row .mobile-search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

.mobile-search-row .mobile-search-close-btn {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
}

/* Small screens: show mobile search icon and hide inline header-search */
@media (max-width: 860px) {
    .header-search { display: none !important; }
    .mobile-search-icon { display: inline-flex; }
}

/* Provide subtle focus styles inside dialog */
.mobile-search-row input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(59,130,246,0.06);
}

/* Ensure dialog contents do not overflow on very small screens */
.mobile-search-dialog { max-height: calc(100vh - 48px); overflow-y: auto; }

/* Product page search clear button (X) */
.search-box { position: relative; }
.search-box .search-input {
    padding-right: 52px; /* room for clear button + search button */
}
.search-box .search-clear-btn {
    position: absolute;
    right: 20%; /* sits inside the input, before the search button */
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}
.search-box .search-clear-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-primary);
}
.search-box .search-clear-btn.show { display: inline-flex; }

.cart-btn, .menu-btn {
    position: relative;
    padding: 0.5rem;
    background: var(--bg-gray);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover, .menu-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.125rem 0.375rem;
    border-radius: 50%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mobile-menu.show .mobile-menu-content {
    transform: scale(1) translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(4px);
}

/* ========================================
   MOBILE MENU RESPONSIVE
======================================== */

@media (max-width: 480px) {
    .mobile-menu-content {
        margin: 0.5rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .mobile-menu-title {
        font-size: 1.1rem;
    }
    
    .mobile-nav-link {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Add smooth scroll behavior when menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: none !important;
}

html.menu-open {
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: none !important;
}

/* Allow scrolling only in menu content */
body.menu-open .mobile-menu-content {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

/* Prevent any other scrolling */
body.menu-open *:not(.mobile-menu-content) {
    overflow: visible !important;
    touch-action: none !important;
}

/* Ensure mobile menu content can still scroll */
.mobile-menu-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Almft Mobile Menu Styles - New Implementation */
.almft-menu-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.almft-menu-mobile.show {
    opacity: 1;
    visibility: visible;
}

.almft-menu-mobile-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.almft-menu-mobile.show .almft-menu-mobile-content {
    transform: scale(1) translateY(0);
}

.almft-menu-mobile-link {
    display: block;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
}

.almft-menu-mobile-link:hover {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.2);
    border-color: transparent;
}

.almft-menu-mobile-close-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.almft-menu-mobile-close-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.almft-menu-mobile-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.almft-menu-mobile-close-btn .icon {
    width: 16px;
    height: 16px;
}

/* Hero Section Styles */
.hero-section {
    display: flex;
    gap: 1.5rem;
    margin: 0 0 2rem 0;
    width: 100%;
}

/* Hero Slider Styles */
.hero-slider {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-radius: 1rem;
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

/* Side Banners */
.side-banners {
    display: flex;
    gap: 1rem;
    width: 300px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-around;
}

.banner-item {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-2px);
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    position: relative;
    width: 33.333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.slide-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Slider Navigation */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slider-container {
        height: 280px; /* Slightly reduce height for mobile */
    }
    
    .slide-title {
        font-size: 1.6rem; /* Adjust font size */
        margin-bottom: 0.8rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content {
        padding: 1.2rem;
        max-width: 90%; /* Make content responsive */
    }
    
    .slider-btn {
        padding: 0.7rem;
    }
    
    .prev-btn {
        left: 0.8rem;
    }
    
    .next-btn {
        right: 0.8rem;
    }
    
    .slide-btn {
        padding: 0.3rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Section & Banners Responsive */
    .hero-section {
        flex-direction: column;
        gap: 1rem;
    }

    .side-banners {
        width: 100%;
        flex-direction: row;
        gap: 1rem;
    }

    .banner-item {
        flex: 1;
    }

    .banner-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 240px;
    }
    
    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .slide-description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .slide-content {
        padding: 1rem;
        max-width: 95%;
    }
    
    .slide-btn {
        padding: 0.3rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .slider-btn {
        padding: 0.6rem;
    }
    
    .prev-btn {
        left: 0.5rem;
    }
    
    .next-btn {
        right: 0.5rem;
    }
}

/* Main Content Layout */
.main-content {
    max-width: 65%;
    margin: 0 auto;
    padding: 1rem 1rem 2rem 1rem; /* Reduce top padding */
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0; /* Remove any top margin */
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .content-layout {
        grid-template-columns: 300px 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        order: 1;
    }
    
    .content-main {
        order: 2;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: 1;
    }
    
    .content-main {
        order: 2;
    }

    /* Hero Section & Banners for Tablet */
    .side-banners {
        width: 250px;
    }

    .banner-image {
        height: 160px;
    }
}

/* Sidebar Styles */
.sidebar {
    order: 2; /* On mobile, sidebar comes after content */
}

/* Mobile override untuk sidebar order jika diperlukan */
@media (max-width: 1023px) {
    .sidebar {
        order: 1; /* On mobile, show sidebar first */
    }
    
    .content-main {
        order: 2;
    }
}

.category-widget {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.category-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: block;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0.4rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(0.25rem);
}

.category-link.active {
    background: var(--primary-color) !important;
    background: #3b82f6 !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    border-color: #3b82f6 !important;
}

.category-link.active:hover {
    background: #2563eb !important;
    color: white !important;
}

.category-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Content Main Styles */
.content-main {
    order: 1;
}

.catalog-header {
    text-align: center;
}

.catalog-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.catalog-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.result-count {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Catalog Controls */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-box {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem 0 0 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 0 0.75rem 0.75rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.search-btn:hover {
    background: #2563eb;
}

.sort-filter {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.sort-select, .category-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 180px;
}

.sort-select:focus, .category-select:focus {
    border-color: var(--primary-color);
}

/* Product Grid - Modern Layout like recommendation cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Catalog Product Card - Using Rekomendasi Card Style */
.catalog-product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    min-height: 320px;
}

.catalog-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.catalog-product-card.out-of-stock {
    opacity: 0.7;
    filter: grayscale(30%);
}

.catalog-product-card .rekomendasi-image-container {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-product-card .rekomendasi-product-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.catalog-product-card:hover .rekomendasi-product-img {
    transform: scale(1.05);
}

.catalog-product-card .rekomendasi-content {
    height: calc(100% - 140px);
    display: flex;
    flex-direction: column;
}

.catalog-product-card .rekomendasi-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-product-card .rekomendasi-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-product-card .price-out-of-stock {
    color: #ef4444;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    display: none;
    font-size: 0.875rem;
}

.catalog-product-card .rekomendasi-view-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    letter-spacing: 0.025em;
}

.catalog-product-card .rekomendasi-view-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.catalog-product-card .rekomendasi-view-btn.disabled {
    background: #ff0000;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.catalog-product-card .rekomendasi-view-btn.disabled:hover {
    background: #ff0000;
    transform: none;
    box-shadow: none;
}

.stock-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #ff0000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Product Card Styles */
.product-summary-card {
    background: var(--bg-white);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.product-summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.product-summary-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(50%);
}

.image-product {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: var(--bg-gray);
    padding: 0.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 1.25rem 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 2.6rem;
}
.radio-option .product-name, .radio-option:has(input:checked) {
    display: none;
}
.product-category {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin: 0 0.5rem 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-container {
    margin: 0 1.25rem 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: left;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-range-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.status-habis {
    color: #ef4444;
    font-weight: 600;
}

.product-actions {
    padding: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    margin: 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: calc(100% - 1.6rem);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.add-to-cart-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* View Detail Button */
.view-detail-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    margin: 0 1.25rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    width: calc(100% - 2.5rem);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    letter-spacing: 0.025em;
}

.view-detail-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.view-detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.view-detail-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    border-radius: 50%;
}

.view-detail-btn:hover::before {
    width: 200%;
    height: 200%;
}

.no-products {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    background: var(--bg-white);
    border-radius: 1.25rem;
    margin: 2rem 0;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.gambar-produk{
    padding: 10px;
    border-radius: 10px;
    width: 175px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Container gambar produk di card utama */
.product-summary-card .product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.product-summary-card .gambar-produk {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.product-summary-card:hover .gambar-produk {
    transform: scale(1.05);
}

/* Cart Message */
.cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.cart-message.show {
    opacity: 1;
    transform: translateX(0);
}

.btn-detail {
    width: 100%;
    padding: 0.4rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-white);
    padding: 1.25rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-white);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    min-width: 2.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-gray);
}

.pagination-prev, .pagination-next {
    font-weight: 600;
    padding: 0.75rem 1rem; /* match pagination-btn */
    min-width: 2.75rem; /* same as pagination-btn */
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--bg-white);
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* prevent wrapping/expansion */
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

/* Terms & Conditions Page Styles */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.terms-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.terms-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.terms-content {
    line-height: 1.7;
}

.terms-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.subsection {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.section-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: justify;
}

.terms-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.terms-list li strong {
    color: var(--text-primary);
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.contact-info .section-text {
    margin-bottom: 0.5rem;
}

.terms-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.update-notice {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

/* Responsive Terms Page */
@media (max-width: 768px) {
    .terms-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .terms-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .subsection {
        margin-left: 0.5rem;
    }

    .terms-list {
        padding-left: 1rem;
    }
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section,
.contact-info-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.form-submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.form-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.form-submit-btn .icon {
    width: 20px;
    height: 20px;
}

/* Contact Info Cards */
.contact-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.contact-detail {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Section */
.contact-faq-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.faq-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Business Info Section */
.business-info-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.business-info-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.business-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.business-info-icon svg {
    width: 24px;
    height: 24px;
}

.business-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.business-hours,
.response-times,
.service-commitment {
    text-align: left;
}

.business-hours p,
.response-times p,
.service-commitment p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.contact-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 1rem;
    overflow: hidden;
}

.contact-cta {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cta-button .icon {
    width: 20px;
    height: 20px;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .business-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        padding: 2rem 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Footer Styles */
.footer {
    background: var(--dark-bg);
    color: white;
    margin-top: 3rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    background: rgba(55, 65, 81, 0.5);
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .product-summary-card {
        min-height: 280px;
        border-radius: 1rem;
    }
    
    .catalog-product-card {
        min-height: 280px;
    }
    
    .catalog-product-card .product-image-container {
        min-height: 100px;
        padding: 1rem;
    }
    
    .catalog-product-card .gambar-produk {
        max-height: 70px;
    }
    
    .catalog-product-card .product-name {
        font-size: 0.85rem;
        margin: 0.75rem 1rem 0.5rem;
        min-height: 2.2rem;
    }
    
    .catalog-product-card .price-container {
        margin: 0 1rem 0.75rem;
    }
    
    .catalog-product-card .price {
        font-size: 1rem;
    }
    
    .catalog-product-card .view-detail-btn {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
        margin: 0 1rem 1rem;
        width: calc(100% - 2rem);
    }
    
    .product-summary-card .product-image-container {
        min-height: 100px;
        padding: 1rem;
    }
    
    .product-summary-card .gambar-produk {
        max-height: 70px;
    }
    
    .product-name {
        font-size: 0.85rem;
        margin: 0.75rem 1rem 0.5rem;
        min-height: 2.2rem;
    }
    
    .price-container {
        margin: 0 1rem 0.75rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .view-detail-btn {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
        margin: 0 1rem 1rem;
        width: calc(100% - 2rem);
    }
    
    .catalog-controls {
        padding: 1.5rem;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .pagination-nav {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.625rem 0.75rem;
        min-width: 2.5rem;
        font-size: 0.85rem;
    }
    
    /* Footer responsive untuk tablet */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    .product-summary-card {
        min-height: 260px;
        border-radius: 0.875rem;
    }
    
    .catalog-product-card {
        min-height: 260px;
        border-radius: 0.875rem;
    }
    
    .product-summary-card .product-image-container {
        min-height: 90px;
        padding: 0.75rem;
    }
    
    .catalog-product-card .product-image-container {
        min-height: 90px;
        padding: 0.75rem;
    }
    
    .product-summary-card .gambar-produk {
        max-height: 60px;
    }
    
    .catalog-product-card .gambar-produk {
        max-height: 60px;
    }
    
    .product-name,
    .catalog-product-card .product-name {
        font-size: 0.8rem;
        margin: 0.625rem 0.875rem 0.375rem;
        min-height: 2rem;
    }
    
    .price,
    .catalog-product-card .price {
        font-size: 0.9rem;
    }
    
    .price-container,
    .catalog-product-card .price-container {
        margin: 0 0.875rem 0.625rem;
    }
    
    .view-detail-btn,
    .catalog-product-card .view-detail-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin: 0 0.875rem 0.875rem;
        width: calc(100% - 1.75rem);
    }
    
    .catalog-controls {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .pagination-nav {
        padding: 0.875rem 1.25rem;
        border-radius: 1rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.625rem;
        min-width: 2.25rem;
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    /* Footer responsive untuk mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .cart-dropdown {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .content-layout {
        grid-template-columns: 300px 1fr;
    }

    .sidebar {
        order: 1;
    }

    .content-main {
        order: 2;
    }

    .catalog-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .sort-filter {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: stretch;
    }

    .sort-select, .category-select {
        min-width: auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .catalog-controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .search-box {
        flex: 1;
        max-width: 400px;
    }

    .sort-filter {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-end;
    }

    .sort-select, .category-select {
        min-width: 180px;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        max-width: 1000px;
    }
    
    .image-product {
        height: 120px;
    }
    
    .product-name {
        font-size: 0.85rem;
        margin: 0.6rem 0.6rem 0.3rem;
    }
    
    .product-category {
        font-size: 0.7rem;
        margin: 0 0.6rem 0.3rem;
    }
    
    .price {
        font-size: 0.95rem;
    }
    
    .btn-detail {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .catalog-title {
        font-size: 1.75rem;
    }
}

/* Additional improvements for catalog */
.catalog-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
}

.catalog-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Status habis improved styling */
.status-habis {
    color: #ef4444;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #fecaca;
    display: inline-block;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Price range label improvements */
.price-range-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(1rem); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading state for products */
.product-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-grid.loading .product-summary-card {
    animation: pulse 2s infinite;
}

/* Improved search focus */
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Select dropdown improvements */
.sort-select, .category-select {
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: #fafbfc;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem 1.25rem;
    padding-right: 3rem;
}

.sort-select:focus, .category-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

/* Desktop layout improvements */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1400px;
    }
    
    .product-summary-card {
        min-height: 380px;
    }
    
    .product-summary-card .product-image-container {
        min-height: 160px;
    }
    
    .product-summary-card .gambar-produk {
        max-height: 120px;
    }
    
    .product-name {
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .price {
        font-size: 1.25rem;
    }
    
    .price-container {
        margin: 0 1.5rem 1.25rem;
    }
    
    .view-detail-btn {
        font-size: 1rem;
        margin: 0 1.5rem 1.5rem;
    }
    
    .catalog-controls {
        gap: 2rem;
    }
    
    .catalog-title {
        font-size: 1.75rem;
    }
    
    .catalog-subtitle {
        font-size: 1.25rem;
    }
}

/* ========================================
   CART DROPDOWN STYLES
======================================== */

.cart-container {
    position: relative;
}

.cart-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 450px;
    max-height: 80vh;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.cart-dropdown.show {
    display: block;
}

/* Modal Backdrop */
.cart-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    display: none;
}

.cart-modal-backdrop.show {
    display: block;
}

/* Cart Modal Header with Close Button */
.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.cart-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.cart-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.cart-close-btn:hover {
    background-color: #f3f4f6;
}

.cart-close-btn svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.cart-close-btn:hover svg {
    color: #374151;
}

/* Cart Modal Body */
.cart-modal-body {
    max-height: calc(80vh - 140px);
    overflow-y: auto;
    padding: 0;
}

.cart-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    margin: 0;
}

.cart-item-remove {
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #dc2626;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.cart-empty p {
    margin: 0;
    font-size: 14px;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
}

.total-amount {
    color: #059669;
    font-size: 16px;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.btn-clear-cart,
.btn-checkout {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-cart {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-clear-cart:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-checkout {
    background: #059669;
    color: white;
}

.btn-checkout:hover {
    background: #047857;
}

.btn-add-to-cart {
    background: #059669;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-add-to-cart:hover {
    background: #047857;
}

/* Mobile Responsive untuk Cart Modal */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 95vw !important;
        max-width: none !important;
        max-height: 85vh !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 12px !important;
        top: 50% !important;
        left: 50% !important;
    }
    
    .cart-modal-header {
        padding: 16px !important;
    }
    
    .cart-modal-title {
        font-size: 16px !important;
    }
    
    .cart-modal-body {
        max-height: calc(85vh - 120px) !important;
    }
}

@media (max-width: 480px) {
    .cart-dropdown {
        width: 98vw !important;
        max-height: 90vh !important;
        border-radius: 8px !important;
        transform: translate(-50%, -50%) !important;
        top: 50% !important;
        left: 50% !important;
    }
    
    .cart-modal-header {
        padding: 12px !important;
    }
    
    .cart-modal-title {
        font-size: 15px !important;
    }
    
    .cart-close-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .cart-close-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .cart-modal-body {
        max-height: calc(90vh - 100px) !important;
    }
    
    /* Adjust cart items for mobile */
    .cart-dropdown .cart-item {
        padding: 12px !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .cart-dropdown .cart-item-info {
        width: 100% !important;
        text-align: center !important;
    }
    
    .cart-dropdown .cart-item-image {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto !important;
    }
    
    .cart-dropdown .cart-item-details {
        text-align: center !important;
    }
    
    .cart-dropdown .cart-item-name {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    .cart-dropdown .cart-item-price {
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    
    .cart-dropdown .cart-footer {
        padding: 12px !important;
    }
    
    .cart-dropdown .cart-total {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .cart-dropdown .checkout-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .cart-dropdown {
        width: calc(100vw - 15px) !important;
        right: -5px !important;
        max-height: 350px !important;
    }
}

/* ===== PRODUCT DETAIL PAGE STYLES ===== */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* New 2-Column Product Layout */
.product-detail-section {
    padding: 2rem 0;
}

.product-main-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Left Column Styles */
.product-left-column {
    padding: 2rem;
    border-right: 1px solid var(--border-color);
}

.product-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.product-info-section {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: flex-start;
}

.product-image-container {
    flex-shrink: 0;
    grid-row: 1 / 3;
}

.product-main-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 1rem;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    grid-column: 2;
    grid-row: 1 / 3;
}

.detail-item {
    display: block;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: var(--bg-white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Right Column Styles */
.product-right-column {
    padding: 1.5rem;
    background: white;
}

.license-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.license-options-compact {
    margin-bottom: 1.5rem;
}

.license-radio-item {
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.license-radio-item:has(input:checked) {
    background-color: #d6e1f3;
    border-color: var(--primary-color);
}

.license-radio-item.sold-out {
    opacity: 0.6;
    border-color: #ef4444;
}

.license-radio-item input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.license-compact-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer;
    width: 100%;
    gap: 1rem;
    padding: 0.5rem 0;
}

.license-radio-item.sold-out .license-compact-label {
    cursor: not-allowed;
}

.license-compact-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
}

.license-compact-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    margin-left: auto !important;
}

.license-compact-price small {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 500;
}

/* Purchase Section Compact */
.purchase-section-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Radio Option Styling for Product Pages */
.radio-option {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    margin-bottom: 1rem;
}

.radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.radio-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    gap: 1rem;
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.radio-option .product-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-option .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    flex-shrink: 0;
    min-width: fit-content;
}

.quantity-section-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-label-compact {
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-controls-compact {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-white);
}

.qty-btn-compact {
    background: var(--bg-gray);
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.qty-btn-compact:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input-compact {
    border: none;
    width: 50px;
    height: 35px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
}

.add-to-cart-compact-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    width: 100%;
}

.add-to-cart-compact-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile Responsive for 2-Column Layout */
@media (max-width: 768px) {
    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .product-left-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .product-main-title {
        font-size: 1.3rem;
    }
    
    .product-info-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
        gap: 1rem;
    }
    
    .product-image-container {
        grid-row: 1;
        justify-self: center;
    }
    
    .product-details {
        grid-column: 1;
        grid-row: 2;
        /* grid-template-columns: 1fr 1fr; */
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .product-main-img {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: left;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .quantity-section-compact {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .product-detail-section {
        padding: 1rem 0;
    }
    
    .product-left-column,
    .product-right-column {
        padding: 1rem;
    }
    
    .product-main-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-main-img {
        width: 80px;
        height: 80px;
    }
    
    .license-compact-label {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .license-compact-name {
        font-size: 0.9rem;
    }
    
    .license-compact-price {
        font-size: 1rem;
    }
}

/* Product Info Grid */
.product-info-grid {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.info-value {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Product Divider */
.product-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 2rem 0;
}

/* License Selection */
.license-selection-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.license-options-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.license-radio-option {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.license-radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.license-radio-option.sold-out {
    opacity: 0.6;
    border-color: #ef4444;
}

.license-radio-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.license-radio-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    gap: 1rem;
}

.license-radio-option.sold-out .license-radio-label {
    cursor: not-allowed;
}

.license-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    flex-shrink: 0;
    min-width: fit-content;
}

.sold-out-text {
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

/* Purchase Controls */
.purchase-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-label {
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-controls-simple {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-gray);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
}

.add-to-cart-main-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.add-to-cart-main-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
/* Essential tab styles to ensure functionality */
        .product-tabs-simple {
            margin-top: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .tab-headers-simple {
            display: flex;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            padding: 0;
            margin: 0;
        }
        
        .tab-header-simple {
            flex: 1;
            padding: 16px 20px;
            background: transparent;
            border: none;
            cursor: pointer !important;
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            transition: all 0.3s ease;
            position: relative;
            border-bottom: 3px solid transparent;
            user-select: none;
        }
        
        .tab-header-simple:hover {
            background: rgba(59, 130, 246, 0.05);
            color: #3b82f6;
        }
        
        .tab-header-simple:active {
            transform: scale(0.98);
        }
        
        .tab-header-simple.active {
            color: #3b82f6 !important;
            background: white !important;
            border-bottom-color: #3b82f6 !important;
            box-shadow: 0 -2px 8px rgba(59, 130, 246, 0.1);
        }
        
        .tab-contents-simple {
            position: relative;
            min-height: 400px;
        }
        
        .tab-content-simple {
            display: none;
            padding: 0px;
            line-height: 1.7;
            color: #374151;
        }
        
        .tab-content-simple.active {
            display: block !important;
        }
        
        .tab-content-simple h3 {
            color: #1e293b;
            margin-bottom: 20px;
            font-size: 24px;
            font-weight: 700;
        }
        
        .tab-content-simple h4 {
            color: #1e293b;
            margin: 25px 0 15px 0;
            font-size: 18px;
            font-weight: 600;
        }
        
        .tab-content-simple ul, .tab-content-simple ol {
            margin: 15px 0;
            padding-left: 20px;
        }
        
        .tab-content-simple li {
            margin-bottom: 8px;
        }
        
        .faq-item {
            margin-bottom: 20px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        
        .faq-item h4 {
            margin-bottom: 10px;
            color: #1e293b;
        }
        
        /* Mobile responsive */
        @media (max-width: 768px) {
            .tab-headers-simple {
                flex-direction: column;
            }
            
            .tab-header-simple {
                border-bottom: 1px solid #e2e8f0;
            }
            
            .tab-content-simple {
                padding: 20px;
            }
        }

/* Simple Tabs */
.product-tabs-simple {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-headers-simple {
    display: flex;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
}

.tab-header-simple {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-header-simple.active {
    color: var(--primary-color);
    background: var(--bg-white);
    border-bottom-color: var(--primary-color);
}

.tab-header-simple:hover {
    color: var(--primary-color);
}

.tab-content-simple {
    display: none;
}

.tab-content-simple.active {
    display: block;
}

.tab-content-simple h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tab-content-simple h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.tab-content-simple p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Mobile Responsive for New Layout */
@media (max-width: 768px) {
    .product-header-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .product-main-title {
        font-size: 2rem;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .purchase-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-section {
        justify-content: center;
    }
    
    .tab-headers-simple {
        flex-direction: row;
    }
    
    .tab-header-simple {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }
    
    .tab-header-simple.active {
        border-bottom-color: var(--border-color);
        border-left: 3px solid var(--primary-color);
    }
}

@media (max-width: 640px) {
    .product-detail-section {
        padding: 1rem 0;
    }
    
    .product-header-section,
    .product-info-grid,
    .license-selection-section,
    .product-tabs-simple {
        margin-bottom: 1rem;
    }
    
    .product-header-img {
        width: 60px;
        height: 60px;
    }
    
    .product-main-title {
        font-size: 1.5rem;
    }
    
    .license-radio-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
}

/* Legacy Product Detail Styles (for backward compatibility) */
.breadcrumb-section {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Product Detail Layout */
.product-detail-section {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Images */
.product-images {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    max-width: 300px;
}

.product-main-img {
    width: 175px;
    height: auto;
    border-radius: 0.5rem;
}

/* Product Info */
.product-info {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-description h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.product-description h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1rem;
}

.product-description p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.feature-list, .requirement-list, .penting {
    list-style: none;
    margin: 0.75rem 0;
}

.feature-list li, .requirement-list li, .penting li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.penting li {
    border-left-color: red !important;
}
.penting li strong {
    color: red;
}
.requirement-list li strong {
    color: var(--text-primary);
}

/* Purchase Section */
.purchase-section {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.purchase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.license-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.license-option {
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.license-option.available {
    border-color: var(--primary-color);
}

.license-option.sold-out {
    border-color: #ef4444;
    opacity: 0.7;
}

.license-option:hover:not(.sold-out) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.license-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.license-devices {
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.sold-out-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.license-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.price-currency {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.license-features {
    margin-bottom: 1rem;
}

.license-features p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.sold-out-btn {
    background: #ef4444 !important;
    cursor: not-allowed !important;
}

.sold-out-btn:hover {
    background: #ef4444 !important;
    transform: none !important;
}

/* Purchase Guarantee */
.purchase-guarantee {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 1rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guarantee-icon {
    font-size: 1.25rem;
}

.guarantee-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Product Tabs */
.product-tabs {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-headers {
    display: flex;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
}

.tab-header {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-header.active {
    color: var(--primary-color);
    background: var(--bg-white);
    border-bottom-color: var(--primary-color);
}

.tab-header:hover {
    color: var(--primary-color);
}

.tab-contents {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tab-content h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.tab-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Installation Steps */
.installation-steps {
    list-style: none;
    counter-reset: step-counter;
}

.installation-steps li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.installation-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.installation-steps strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Responsive for Product Page */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .purchase-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .tab-header {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }
    
    .tab-header.active {
        border-bottom-color: var(--border-color);
        border-left: 3px solid var(--primary-color);
    }
    
    .purchase-guarantee {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-detail-section {
        padding: 1rem 0;
    }
    
    .product-images,
    .product-info,
    .purchase-section,
    .product-tabs {
        padding: 1rem;
    }
    
    .tab-contents {
        padding: 1rem;
    }
    
    .license-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}

/* ===== CHECKOUT PAGE SPECIFIC STYLES ===== */

/* Enhanced form input focus states */
.form-input:focus,
.discount-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Payment method hover animations */
.payment-method {
    position: relative;
    overflow: hidden;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.payment-method:hover::before {
    left: 100%;
}

/* Enhanced payment icons */
.payment-icon {
    background: linear-gradient(135deg, var(--icon-color, #3b82f6), var(--icon-color-dark, #2563eb));
    transition: all 0.3s ease;
}

.payment-method:hover .payment-icon {
    transform: scale(1.1);
}

/* Button loading state */
.create-order-btn.loading {
    position: relative;
    color: transparent;
}

.create-order-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Discount message animations */
.discount-message {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.discount-message[style*="block"] {
    transform: translateY(0);
    opacity: 1;
}

/* Cart item animations */
.cart-item-checkout {
    animation: slideInFromLeft 0.3s ease;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Order summary highlight */
.summary-row:last-child .summary-value {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile checkout improvements */
@media (max-width: 768px) {
    .checkout-container {
        padding: 12px;
    }
    
    .cart-summary,
    .discount-section,
    .form-section,
    .order-summary,
    .agreement-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .checkout-title {
        font-size: 24px;
    }
    
    .form-title,
    .cart-summary-title,
    .discount-title {
        font-size: 16px;
    }
    
    .create-order-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .payment-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .payment-name {
        font-size: 14px;
    }
    
    .qris-image {
        width: 160px;
        height: 160px;
    }
    
    /* Quantity controls adjustments for mobile */
    .qty-btn-checkout {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .qty-value-checkout {
        min-width: 36px;
        font-size: 16px;
    }
    
    .cart-item-checkout {
        gap: 12px;
        padding: 12px;
    }
}

/* Print styles for invoice */
@media print {
    .header,
    .footer,
    .create-order-section {
        display: none;
    }
    
    .checkout-container {
        padding: 0;
        box-shadow: none;
    }
    
    .cart-summary,
    .form-section,
    .order-summary {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
}

/* ========================================
   CHECKOUT PAGE STYLES
======================================== */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.checkout-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.checkout-subtitle {
    color: #64748b;
    font-size: 16px;
}

.order-number, .unique-code {
    display: none;
}

/* Cart Summary Section */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.cart-summary-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-checkout {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.cart-item-image-checkout {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

.cart-item-details-checkout {
    flex: 1;
}

.cart-item-name-checkout {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 15px;
}

.cart-item-license-checkout {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.cart-item-quantity-checkout {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
}

/* Quantity controls for checkout page */
.quantity-controls-checkout {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-btn-checkout {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.qty-btn-checkout:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.qty-btn-checkout:active {
    transform: scale(0.95);
}

.qty-value-checkout {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.cart-item-price-checkout {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

/* Discount Section */
.discount-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.discount-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.discount-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.discount-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.discount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.discount-apply-btn {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.discount-apply-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.discount-apply-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.discount-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    display: none;
}

.discount-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.discount-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Main Checkout Form */
.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-label.required::after {
    content: " *";
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-method.selected {
    border-color: #9bc1ff;
    background: #9bc1ff;
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.payment-method.disabled:hover {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

.payment-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    display: none;
}

.payment-warning.show {
    display: block;
}

/* Empty Cart State */
.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-cart-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-cart-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-cart-subtitle {
    color: #64748b;
    margin-bottom: 24px;
}

.back-to-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-to-shop-btn:hover {
    background: #2563eb;
}

/* Hidden sections when cart is empty */
.checkout-form.hidden,
.discount-section.hidden,
.order-summary.hidden,
.agreement-section.hidden,
.create-order-section.hidden {
    display: none;
}

/* Discount description in order summary */
.discount-description {
    font-size: 11px;
    color: #10b981;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.3;
}

.summary-row.discount-row .summary-label {
    line-height: 1.2;
}

.summary-value.discount {
    color: #10b981;
    font-weight: 600;
}

/* Remove discount button in order summary */
.remove-discount-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f87171;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 6px;
}

.remove-discount-summary:hover {
    background: #ef4444;
}

.discount-row-with-button {
    position: relative;
}

/* Remove discount button */
.remove-discount-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f87171;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 8px;
}

.remove-discount-btn:hover {
    background: #ef4444;
}

.discount-applied-info {
    display: none;
    padding: 12px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 12px;
}

.discount-applied-info.show {
    display: block;
}

.discount-applied-text {
    color: #166534;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.discount-applied-desc {
    color: #15803d;
    font-size: 12px;
    margin-bottom: 8px;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

.payment-name {
    font-weight: 600;
    color: #1e293b;
}

/* QRIS Special */
.qris-info {
    margin-top: 12px;
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    display: none;
}

.qris-info.show {
    display: block;
}

.qris-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    padding-top: 16px;
    margin-top: 8px;
}

.summary-label {
    color: #64748b;
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
}

.summary-value.discount {
    color: #059669;
}

/* Checkbox Agreement */
.agreement-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-input {
    margin-top: 4px;
    transform: scale(1.2);
}

.checkbox-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Create Order Button */
.create-order-section {
    text-align: center;
}

.create-order-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.create-order-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.create-order-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive for Checkout */
@media (max-width: 768px) {
    .checkout-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .discount-input-group {
        flex-direction: column;
    }
    
    .checkout-container {
        padding: 16px;
    }
    
    .cart-item-checkout {
        flex-direction: row;
        text-align: center;
        gap: 6px;
    }
    
    .cart-item-details-checkout {
        text-align: left;
    }
}

/* ========================================
   INVOICE PAGE STYLES
======================================== */

.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: calc(100vh - 200px);
}

.invoice-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.invoice-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.invoice-subtitle {
    color: #64748b;
    font-size: 16px;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

.invoice-content {
    display: none;
}

.invoice-content.show {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    /* Hilangkan header dan footer default browser (tanggal, judul, URL) */
    @page {
        margin: 0;
        size: A4;
    }
    
    /* Aktifkan background graphics secara default */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* CSS untuk menghilangkan header/footer browser secara paksa */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Sembunyikan semua elemen yang mungkin menjadi header/footer */
    *:not(body):not(html):not(.invoice-container):not(.invoice-container *) {
        position: relative !important;
    }
    
    /* Hide navigation and footer when printing */
    .header, .footer, .pesan-invoice {
        display: none !important;
    }
    
    /* Hide copy buttons when printing */
    .copy-btn {
        display: none !important;
    }
    
    /* Sembunyikan tombol Print Invoice dan WhatsApp */
    button {
        display: none !important;
    }
    
    /* Reset margins for print */
    body {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    .invoice-container {
        max-width: none !important;
        margin: 20px !important;
        padding: 20px !important;
        box-shadow: none !important;
        position: relative !important;
        z-index: 999 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Pastikan semua background dan warna tercetak */
    div, span, table, tr, td, th {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Khusus untuk background yang sering digunakan */
    div[style*="background: #f8fafc"],
    div[style*="background: white"],
    tr[style*="background: #f8fafc"],
    span[style*="background:"] {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Ensure good print layout */
    .invoice-header {
        page-break-after: avoid;
    }
    
    /* Kurangi spacing untuk menghemat ruang */
    h1 {
        margin: 8px 0 !important;
        font-size: 18px !important;
    }
    
    h2 {
        margin: 6px 0 !important;
        font-size: 14px !important;
    }
    
    h3 {
        margin: 6px 0 !important;
        font-size: 14px !important;
    }
    
    /* Kompakkan padding untuk elemen div */
    div[style*="padding: 30px"] {
        padding: 10px 0 !important;
    }
    
    div[style*="padding: 20px"] {
        padding: 8px !important;
    }
    
    div[style*="margin-bottom: 30px"] {
        margin-bottom: 10px !important;
    }
    
    div[style*="margin-bottom: 16px"] {
        margin-bottom: 8px !important;
    }
    
    div[style*="margin-bottom: 12px"] {
        margin-bottom: 6px !important;
    }
    
    table {
        page-break-inside: avoid;
        margin: 8px 0 !important;
    }
    
    /* Kompakkan padding cell tabel */
    th, td {
        padding: 4px 8px !important;
    }
    
    /* Layout 2 kolom untuk informasi pesanan dan data pembeli */
    .two-column-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    /* Fallback dengan flexbox jika grid tidak bekerja */
    @supports not (display: grid) {
        .two-column-grid {
            display: flex !important;
            flex-direction: row !important;
            justify-content: space-between !important;
        }
        
        .two-column-grid > div {
            width: 48% !important;
            flex: 0 0 48% !important;
        }
    }
    
    /* Pastikan grid items tidak terpotong */
    .two-column-grid > div {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    
    /* Alternatif dengan float untuk browser yang sangat lama */
    @media print and (-webkit-min-device-pixel-ratio: 0) {
        .two-column-grid {
            display: block !important;
            overflow: hidden !important;
        }
        
        .two-column-grid > div:first-child {
            float: left !important;
            width: 48% !important;
            margin-right: 4% !important;
        }
        
        .two-column-grid > div:last-child {
            float: right !important;
            width: 48% !important;
        }
    }
    
    /* Kompakkan spacing pada background boxes */
    div[style*="background: #f8fafc"] {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* Pastikan konten tidak terpotong */
    * {
        box-sizing: border-box !important;
    }
}

/* Copy button styles */
.copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.copy-btn:hover {
    border-color: #9ca3af;
}

.copy-btn:active {
    background: #d1d5db;
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

/* Promotional Advertisement Styles */
.promotion-info{
    max-width: 80%;
    margin: 0 auto;
    }
@media (max-width: 767px) {
.promotion-info{
    max-width: 100%;
    margin: 0 auto;
    }
}


.promo-ad-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-ad-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.promo-ad-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    color: white;
}

.promo-ad-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.promo-ad-icon {
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.6rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.promo-ad-title-section {
    flex: 1;
    min-width: 0;
}

.promo-ad-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-ad-subtitle {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.promo-ad-body {
    margin-bottom: 1.25rem;
}

.promo-ad-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.promo-ad-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.promo-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.promo-highlight-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.highlight-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.promo-ad-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.promo-ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: white;
    color: #4c1d95;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
    min-width: 160px;
}

.promo-ad-button:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #4c1d95;
    text-decoration: none;
}

.promo-ad-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.promo-ad-button:hover .button-icon {
    transform: translateX(3px);
}

.promo-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Decorative Elements */
.promo-ad-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.decoration-1 {
    width: 100px;
    height: 100px;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

.decoration-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: -40px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(120deg);
    }
    66% {
        transform: translateY(5px) rotate(240deg);
    }
}

/* Responsive Promotional Ad */
@media (max-width: 768px) {
    .promo-ad-content {
        padding: 0.875rem;
    }

    .promo-ad-header {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .promo-ad-icon {
        align-self: center;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .promo-ad-title {
        font-size: 1rem;
    }

    .promo-ad-subtitle {
        font-size: 0.8rem;
    }

    .promo-ad-highlights {
        grid-template-columns: 1fr;
    }

    .promo-ad-button {
        align-self: stretch;
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .decoration-1,
    .decoration-2,
    .decoration-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .promo-ad-content {
        padding: 0.75rem;
    }

    .promo-ad-title {
        font-size: 0.95rem;
    }

    .promo-ad-subtitle {
        font-size: 0.9rem;
    }

    .promo-highlight-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

@media (max-width: 768px) {
    .invoice-container {
        padding: 16px;
    }
    
    .invoice-title {
        font-size: 24px;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 8px !important;
    }
}

/* ========================================
   FOOTER PAYMENT METHODS STYLES
======================================== */

.payment-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.payment-methods-footer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 300px;
}

.payment-icon-footer {
    width: 40px;
    height: 30px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.payment-icon-footer:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .payment-methods-footer {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .payment-icon-footer {
        width: 35px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .payment-methods-footer {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .payment-icon-footer {
        width: 30px;
        height: 22px;
    }
}

.radio-option input[type="radio"],
            .license-radio-item input[type="radio"] {
                display: none;
            }
            
            .radio-option label,
            .license-radio-item label {
                cursor: pointer;
                display: block;
                width: 100%;
            }
            
            .license-radio-item {
                transition: all 0.3s ease;
                position: relative;
                overflow: hidden;
            }
            
            .license-radio-item:has(input:checked) {
                background-color: #d6e1f3;
                border-color: var(--primary-color);
            }
            
            .license-radio-item.sold-out {
                opacity: 0.7;
                position: relative;
            }
            
            .license-radio-item.sold-out::before {
                content: "HABIS";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) rotate(-45deg);
                background: rgba(239, 68, 68, 0.9);
                color: white;
                padding: 5px 30px;
                font-weight: bold;
                font-size: 14px;
                letter-spacing: 1px;
                z-index: 10;
                border-radius: 3px;
                box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
            }
            
            .license-radio-item.sold-out .license-compact-label {
                pointer-events: none;
            }
            
            /* Product page purchase section styles */
            .purchase-section-compact {
                margin-top: 20px;
                padding: 20px;
                background: white;
                border-radius: 12px;
                border: 1px solid #e2e8f0;
            }
            
            .quantity-section-compact {
                margin-bottom: 15px;
            }
            
            .quantity-label-compact {
                display: block;
                margin-bottom: 8px;
                font-weight: 600;
                color: #374151;
                font-size: 14px;
            }
            
            .quantity-controls-compact {
                display: flex;
                align-items: center;
                gap: 0;
                width: fit-content;
                border: 2px solid #e2e8f0;
                border-radius: 8px;
                overflow: hidden;
            }
            
            .qty-btn-compact {
                background: #f8fafc;
                border: none;
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                font-size: 18px;
                font-weight: bold;
                color: #64748b;
                transition: all 0.2s ease;
            }
            
            .qty-btn-compact:hover {
                background: #3b82f6;
                color: white;
            }
            
            .qty-input-compact {
                border: none;
                width: 60px;
                height: 40px;
                text-align: center;
                font-size: 16px;
                font-weight: 600;
                color: #1e293b;
                background: white;
            }
            
            .qty-input-compact:focus {
                outline: none;
            }
            
            .add-to-cart-compact-btn {
                width: 100%;
                padding: 12px 20px;
                background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
                color: white;
                border: none;
                border-radius: 8px;
                font-size: 16px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            }
            
            .add-to-cart-compact-btn:hover {
                background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
                transform: translateY(-2px);
                box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
            }
            
            .add-to-cart-compact-btn:active {
                transform: translateY(0);
            }
            
            /* Tab system styles */
            .product-tabs-simple {
                margin-top: 30px;
                background: white;
                border-radius: 12px;
                box-shadow: 0 4px 20px rgba(0,0,0,0.1);
                overflow: hidden;
            }
            
            .tab-headers-simple {
                display: flex;
                background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
                border-bottom: 1px solid #e2e8f0;
                padding: 0;
                margin: 0;
            }
            
            .tab-header-simple {
                flex: 1;
                padding: 16px 20px;
                background: transparent;
                border: none;
                cursor: pointer;
                font-size: 14px;
                font-weight: 600;
                color: #64748b;
                transition: all 0.3s ease;
                position: relative;
                border-bottom: 3px solid transparent;
            }
            
            .tab-header-simple:hover {
                background: rgba(59, 130, 246, 0.05);
                color: #3b82f6;
            }
            
            .tab-header-simple.active {
                color: #3b82f6;
                background: white;
                border-bottom-color: #3b82f6;
                box-shadow: 0 -2px 8px rgba(59, 130, 246, 0.1);
            }
            
            .tab-header-simple.active::before {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 3px;
                background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            }
            
            .tab-contents-simple {
                position: relative;
                min-height: 400px;
            }
            
            .tab-content-simple {
                display: none;
                padding: 30px;
                line-height: 1.7;
                color: #374151;
                opacity: 0;
                transform: translateY(10px);
                transition: all 0.3s ease;
            }
            
            .tab-content-simple.active {
                padding: 20px;
                display: block;
                opacity: 1;
                transform: translateY(0);
            }
            
            .tab-content-simple h3 {
                color: #1e293b;
                margin-bottom: 20px;
                font-size: 24px;
                font-weight: 700;
                border-bottom: 2px solid #e2e8f0;
                padding-bottom: 10px;
            }
            
            .tab-content-simple h4 {
                color: #1e293b;
                margin: 25px 0 15px 0;
                font-size: 18px;
                font-weight: 600;
            }
            
            .tab-content-simple p {
                margin-bottom: 15px;
            }
            
            .tab-content-simple ul {
                margin: 15px 0;
                padding-left: 0;
            }
            
            .tab-content-simple li {
                list-style: none;
                margin-bottom: 12px;
                padding: 12px 16px;
                background: #f8fafc;
                border-radius: 8px;
                border-left: 4px solid #3b82f6;
                transition: all 0.3s ease;
            }
            
            .tab-content-simple li:hover {
                background: #f1f5f9;
                transform: translateX(5px);
            }
            
            .feature-list li {
                border-left-color: #10b981;
            }
            
            .requirement-list li {
                border-left-color: #f59e0b;
            }
            
            .tab-content-simple ol {
                counter-reset: step-counter;
                padding-left: 0;
            }
            
            .tab-content-simple ol li {
                counter-increment: step-counter;
                position: relative;
                padding-left: 60px;
                margin-bottom: 20px;
                background: #f8fafc;
                border-radius: 12px;
                border-left: 4px solid #8b5cf6;
            }
            
            .tab-content-simple ol li::before {
                content: counter(step-counter);
                position: absolute;
                left: 16px;
                top: 12px;
                background: #8b5cf6;
                color: white;
                width: 28px;
                height: 28px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
                font-size: 14px;
            }
            
            .tab-content-simple ol li strong {
                display: block;
                color: #1e293b;
                font-size: 16px;
                margin-bottom: 8px;
                font-weight: 600;
            }
            
            .faq-item {
                margin-bottom: 20px;
                padding: 20px;
                background: #f8fafc;
                border-radius: 12px;
                border: 1px solid #e2e8f0 !important;
                transition: all 0.3s ease;
            }
            
            .faq-item:hover {
                background: #f1f5f9;
                border-color: #cbd5e1;
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            }
            
            .faq-item h4 {
                color: #1e293b;
                margin-bottom: 12px;
                margin-top: 0px;
                font-size: 16px;
                font-weight: 600;
                border-bottom: 1px solid #e2e8f0;
                padding-bottom: 8px;
            }
            
            .faq-item p {
                margin: 0;
                color: #4b5563;
                line-height: 1.6;
            }
            
            /* Mobile responsive for tabs */
            @media (max-width: 768px) {
                .tab-headers-simple {
                    flex-direction: row;
                }
                
                .tab-header-simple {
                    border-bottom: 1px solid #e2e8f0;
                    border-right: none;
                }
                
                .tab-header-simple.active {
                    border-bottom-color: #3b82f6;
                    border-left: none;
                }
                
                .tab-content-simple {
                    padding: 20px;
                }
                
                .tab-content-simple ol li {
                    padding-left: 50px;
                }
                
                .tab-content-simple ol li::before {
                    width: 24px;
                    height: 24px;
                    font-size: 12px;
                }
            }
/* Mobile styles for main page */
                @media (max-width: 768px) {
                    .main-content {
                        padding: 10px !important;
                        max-width: 100% !important;
                    }
                    
                    .content-layout {
                        display: block !important;
                        gap: 0 !important;
                    }
                    
                    .sidebar {
                        width: 100% !important;
                        margin-bottom: 20px !important;
                        order: -1 !important;
                    }
                    
                    .content-main {
                        width: 100% !important;
                        padding: 0 !important;
                    }
                    
                    .catalog-controls {
                        flex-direction: column !important;
                        gap: 15px !important;
                        margin-bottom: 20px !important;
                    }
                    
                    .search-box {
                        width: 100% !important;
                    }
                    
                    .sort-filter {
                        width: 100% !important;
                        flex-direction: column !important;
                        gap: 10px !important;
                    }
                    
                    .category-select,
                    .sort-select {
                        width: 100% !important;
                        font-size: 16px !important; /* Prevent zoom on iOS */
                    }
                    
                    .product-grid.mobile-layout {
                        grid-template-columns: repeat(2, 1fr) !important;
                        gap: 10px !important;
                    }
                    
                    .product-summary-card.mobile-card {
                        min-height: auto !important;
                    }
                    
                    .product-image-container {
                        margin-bottom: 8px !important;
                    }
                    
                    .product-image-container img {
                        width: 100% !important;
                        max-height: 175px;
                        height: auto !important;
                        object-fit: contain !important;
                    }
                    
                    .product-content {
                        text-align: center !important;
                    }
                    
                    .product-name {
                        font-size: 1rem !important;
                        line-height: 1.3 !important;
                        margin-bottom: 5px !important;
                        display: -webkit-box !important;
                        -webkit-line-clamp: 2 !important;
                        line-clamp: 2 !important;
                        -webkit-box-orient: vertical !important;
                        overflow: hidden !important;
                    }
                    
                    .price-container {
                        margin-bottom: 8px !important;
                    }
                    
                    .price {
                        font-size: 13px !important;
                        font-weight: 600 !important;
                    }
                    
                    .view-detail-btn {
                        padding: 6px 8px !important;
                        font-size: 11px !important;
                        border-radius: 4px !important;
                    }
                    
                    
                    .pagination-nav {
                        justify-content: center !important;
                        flex-wrap: wrap !important;
                        gap: 5px !important;
                    }
                    
                    .pagination-nav button {
                        min-width: 35px !important;
                        height: 35px !important;
                        font-size: 12px !important;
                        padding: 0 !important;
                    }
                    
                    .pagination-dots {
                        display: inline-flex !important;
                        align-items: center !important;
                        padding: 0 5px !important;
                        color: #666 !important;
                        font-size: 14px !important;
                    }
                    
                    .category-widget {
                        padding: 15px !important;
                        display:none !important; /* Hide categories on mobile for simplicity */
                    }
                    
                    .category-title {
                        font-size: 16px !important;
                        margin-bottom: 15px !important;
                    }
                    
                    .category-list {
                        display: flex !important;
                        flex-wrap: wrap !important;
                        gap: 8px !important;
                    }
                    
                    .category-item {
                        flex: 0 0 calc(50% - 4px) !important;
                    }
                    
                    .category-link {
                        padding: 8px 10px !important;
                        font-size: 12px !important;
                        border-radius: 6px !important;
                        display: flex !important;
                        align-items: center !important;
                        gap: 5px !important;
                    }
                    
                    .category-icon {
                        font-size: 14px !important;
                    }
                }
                
                @media (max-width: 480px) {
                    .product-grid.mobile-layout {
                        grid-template-columns: repeat(2, 1fr) !important;
                        gap: 12px !important;
                    }
                    
                    .product-summary-card.mobile-card {
                        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
                    }
                    
                    .product-name {
                        font-size: 1rem !important;
                        min-height: 2.4rem;
                    }
                    
                    .price {
                        font-size: 1.1rem !important;
                        margin-bottom: 8px;
                    }
                    
                    .view-detail-btn {
                        padding: 8px 12px !important;
                        font-size: 0.85rem !important;
                    }
                    
                    .category-item {
                        flex: 0 0 100% !important;
                    }
                }

/* ================================= */
/* PROMO CODE SECTION                */
/* ================================= */

.kode-promo {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.kode-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.3'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.promo-section-header {
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.promo-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.375rem;
    letter-spacing: -0.025em;
}

.promo-section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.promo-tickets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.promo-ticket {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 75px;
    opacity: 0;
    transform: translateY(30px);
}

.promo-ticket.ticket-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.promo-ticket:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ticket-left {
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.discount-badge {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discount-value {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.05rem;
}

.discount-text {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

.ticket-divider {
    flex: 0 0 2px;
    left: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.ticket-dashed-line {
    flex: 1;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8) 0,
        rgba(255, 255, 255, 0.8) 4px,
        transparent 4px,
        transparent 8px
    );
}

.ticket-hole {
    width: 12px;
    height: 12px;
    background: #f8fafc;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.ticket-hole-top {
    margin-top: -6px;
}

.ticket-hole-bottom {
    margin-bottom: -6px;
}

.ticket-right {
    flex: 1;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.promo-info {
    width: 100%;
}

.promo-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.promo-code-section {
    margin-bottom: 0.35rem;
}

.code-label {
    font-size: 0.65rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem;
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.promo-code-text {
    font-size: 0.75rem;
    font-weight: 700;
    flex: 1;
}

.copy-btn {
    background: #3b82f6;
    border: none;
    border-radius: 3px;
    padding: 0.25rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

.copy-icon.success {
    color: white;
}

.copy-icon.error {
    color: white;
}

.promo-validity {
    font-size: 0.6rem;
    margin: 0;
    font-style: italic;
}

/* Toast Notification */
.promo-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
}

.promo-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.promo-toast-success {
    border-left: 4px solid #10b981;
}

.promo-toast-error {
    border-left: 4px solid #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    flex: 0 0 20px;
    height: 20px;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.promo-toast-success .toast-icon {
    color: #10b981;
}

.promo-toast-error .toast-icon {
    color: #ef4444;
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kode-promo {
        padding: 1.25rem 0;
    }
    
    .promo-section-title {
        font-size: 1.75rem;
    }
    
    .promo-section-subtitle {
        font-size: 0.8rem;
    }
    
    .promo-tickets-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.75rem;
    }
    
    .promo-ticket {
        min-height: 65px;
    }
    
    .ticket-left {
        flex: 0 0 60px;
    }
    
    .discount-value {
        font-size: 1.2rem;
    }
    
    .ticket-right {
        padding: 0.5rem;
    }
    
    .promo-title {
        font-size: 0.75rem;
    }
    
    .promo-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .promo-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .kode-promo {
        padding: 1rem 0;
    }
    
    .promo-section-header {
        margin-bottom: 1rem;
    }
    
    .promo-section-title {
        font-size: 1.75rem;
    }
    
    .promo-tickets-container {
        gap: 0.375rem;
        padding: 0 0.5rem;
    }
    
    .promo-ticket {
        min-height: 55px;
    }
    
    .ticket-left {
        flex: 0 0 50px;
    }
    
    .discount-value {
        font-size: 1rem;
    }
    
    .discount-text {
        font-size: 0.55rem;
    }
    
    .ticket-right {
        padding: 0.375rem;
    }
    
    .promo-title {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }
    
    .code-container {
        padding: 0.25rem;
        gap: 0.2rem;
    }
    
    .promo-code-text {
        font-size: 0.65rem;
    }
    
    .copy-btn {
        min-width: 20px;
        height: 20px;
        padding: 0.2rem;
    }
    
    .copy-icon {
        width: 10px;
        height: 10px;
    }
    
    .code-label {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .promo-validity {
        font-size: 0.55rem;
    }
}

/* Bestseller Products Section */
.produk-terlaris {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.produk-terlaris::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.2'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.bestseller-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.bestseller-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.bestseller-title-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #f59e0b;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.bestseller-section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.bestseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    padding: 1rem;
}

/* Bestseller card link wrapper */
.bestseller-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bestseller-card-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.bestseller-card-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.bestseller-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.bestseller-card-link:hover .bestseller-card {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.bestseller-badge {
    position: absolute;
    top: 1rem;
    left: 0.25rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.fire-icon {
    width: 1rem;
    height: 1rem;
    color: #fed7aa;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.product-image-wrapper {
    height: 200px;
    position: relative;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.product-image {
    margin-top: 20%;
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.bestseller-card-link:hover .product-image {
    transform: scale(1.05);
}

.bestseller-card:hover .product-image {
    transform: scale(1.05);
}

.bestseller-discount-badge {
    position: absolute;
    top: 1rem;
    right: 0.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product-info {
    padding: 1rem;
}

/* Product image within clickable card */
.product-image-wrapper {
    height: 200px;
    position: relative;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-category {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-license {
    color: #64748b;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.price-section {
    margin-bottom: 1rem;
}

.bestseller-original-price {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.2rem;
}

.bestseller-current-price {
    color: #dc2626;
    font-size: 1rem;
    font-weight: 800;
    display: block;
}

.bestseller-buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    pointer-events: none;
    user-select: none;
    margin-top: 0.75rem;
}

.bestseller-buy-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.bestseller-cart-icon {
    width: 1rem;
    height: 1rem;
}

.no-bestsellers {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.125rem;
}

.no-bestsellers {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Responsive Design for Bestsellers */
@media (max-width: 1024px) {
    .bestseller-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .bestseller-section-title {
        font-size: 1.75rem;
    }
    
    .bestseller-title-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-width: 768px) {
    /* Removed empty .produk-terlaris ruleset */
    
    .bestseller-header {
        margin-bottom: 2rem;
    }
    
    .bestseller-section-title {
        font-size: 1.75rem;
        gap: 0.5rem;
    }
    
    .bestseller-title-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .bestseller-section-subtitle {
        font-size: 1rem;
    }
    
    .bestseller-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .product-image-wrapper {
        padding: 1.5rem;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1.125rem;
    }
    
    .product-image-wrapper {
        padding: 1.5rem;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1.125rem;
    }
    
    .bestseller-current-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .produk-terlaris {
        padding: 2rem 0;
    }
    
    .bestseller-section-title {
        font-size: 1.75rem;
    }
    
    .bestseller-grid {
        padding: 0 0.5rem;
    }
    
    /* Mobile optimizations for clickable cards */
    .bestseller-card-link:hover {
        transform: translateY(-8px);
        transition: all 0.3s ease;
    }
    
    .bestseller-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper {
        padding: 1rem;
    }
    
    .bestseller-buy-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Accessibility improvements */
/* High contrast mode support */
@media (prefers-contrast: high) {
    .bestseller-card-link:focus {
        outline: 3px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bestseller-card-link,
    .bestseller-card,
    .product-image {
        transition: all 0.3s ease;
    }
}
    
    .product-image {
        width: 100px;
        height: 100px;
        margin-top: 30%;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .bestseller-badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .fire-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .bestseller-buy-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
.bestseller-card-link:hover {
        transform: translateY(-8px) !important;
        transition: all 0.3s ease;
    }

/* ========================================
   PRODUK REKOMENDASI SECTION
======================================== */


.produk-rekomendasi .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rekomendasi-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rekomendasi-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 400;
}

.rekomendasi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.rekomendasi-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.rekomendasi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.rekomendasi-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.rekomendasi-image-container {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rekomendasi-product-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.rekomendasi-card:hover .rekomendasi-product-img {
    transform: scale(1.1);
}

.rekomendasi-content {
    padding: 10px;
    height: calc(100% - 120px);
    display: flex;
    flex-direction: column;
}

.rekomendasi-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rekomendasi-product-category {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: capitalize;
    font-weight: 500;
}

.rekomendasi-rating-section {
    margin-bottom: 12px;
}

.rekomendasi-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.rating-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
    line-height: 1;
}

.rating-value {
    color: #374151;
    font-weight: 600;
}

.review-count {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.2;
}

.rekomendasi-price-section {
    margin-top: auto;
}

.rekomendasi-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.rekomendasi-view-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rekomendasi-view-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

/* Loading State */
.rekomendasi-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 1.1rem;
}

.rekomendasi-loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: rekomendasi-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes rekomendasi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.rekomendasi-error {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN - REKOMENDASI
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .rekomendasi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .rekomendasi-title {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    
    .rekomendasi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .rekomendasi-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .rekomendasi-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .rekomendasi-image-container {
        height: 100px;
    }
    
    .rekomendasi-product-img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .rekomendasi-content {
        padding: 15px;
        height: calc(100% - 100px);
    }
    
    .rekomendasi-product-name {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .rekomendasi-product-price {
        font-size: 1.1rem;
    }
    
    .rekomendasi-view-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .rekomendasi-grid {
        gap: 12px;
    }
    
    .rekomendasi-title {
        font-size: 1.6rem;
    }
    
    .rekomendasi-content {
        padding: 12px;
    }
    
    .rekomendasi-product-name {
        font-size: 0.95rem;
    }
}

/* ========================================
   CART ITEM NOTE STYLES
======================================== */

.cart-item-note-checkout {
    margin-top: 8px;
    width: 100%;
}

.cart-note-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
    background: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cart-note-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cart-note-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Mobile responsiveness for cart notes */
@media (max-width: 768px) {
    .cart-note-input {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Invoice note styling */
.invoice-item-note {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid #e2e8f0;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.invoice-item-note-label {
    font-weight: 600;
    color: #475569;
    font-style: normal;
}

/* ===== VOUCHER TICKET STYLES ===== */
.voucher-ticket {
    display: flex;
    width: 300px;
    height: 190px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.voucher-ticket.ticket-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.voucher-ticket:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.voucher-left {
    flex: 0 0 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.voucher-discount {
    text-align: center;
    color: white;
}

.discount-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.discount-text {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-top: 2px;
}

.voucher-divider {
    position: relative;
    width: 2px;
    background: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    z-index: 2;
}

.voucher-hole {
    width: 16px;
    height: 16px;
    background: #f4f7f9;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    margin-top: -22px;
    margin-bottom: -22px;
    position: relative;
    z-index: 3;
}

.voucher-dashed-line {
    flex: 1;
    width: 2px;
    background: #265ee1;
    margin: 8px 0;
    border: dashed 1px #fff;
}

.voucher-right {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(35, 89, 222, 1) 0%, rgba(35, 175, 222, 1) 100%);
}

.voucher-info {
    width: 100%;
    color: #1f2937;
}

.voucher-title {
    font-size: 16px;
    font-weight: 800;
    color: orange;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voucher-subtitle {
    font-size: 12px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.voucher-code {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 6px;
    border: 2px dashed #cbd5e1;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.code-label {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline;
}
.code-label-slider {
    font-size: 12px;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline;
}
.code-value {
    font-size: 14px;
    font-weight: 900;
    color: red;
    letter-spacing: 1px;
    display: inline;
    margin-left: 0;
}

.validity-text {
    font-size: 9px;
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-style: italic;
}

/* Voucher Banner Container */
#voucher-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* Animation keyframes */
@keyframes ticketSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

.ticket-animate-in {
    animation: ticketSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating animation */

/* Responsive Design */
@media (max-width: 768px) {
    
    .voucher-ticket {
        width: 280px;
        height: 160px;
    }
    
    .voucher-left {
        flex: 0 0 50px;
    }
    
    .discount-value {
        font-size: 24px;
    }
    
    .discount-text {
        font-size: 10px;
    }
    
    .voucher-right {
        padding: 15px;
    }
    
    .voucher-title {
        font-size: 12px;
    }
    
    .voucher-subtitle {
        font-size: 11px;
    }
    
    .code-value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    
    .voucher-ticket {
        width: 260px;
        height: 140px;
    }
    
    .voucher-left {
        flex: 0 0 50px;
    }
    
    .discount-value {
        font-size: 20px;
    }
    
    .voucher-right {
        padding: 12px;
    }
    
    .voucher-title {
        font-size: 11px;
    }
    
    .voucher-subtitle {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .code-value {
        font-size: 11px;
    }
    
    .validity-text {
        font-size: 8px;
    }
}

/* Decorative Elements */
.voucher-ticket::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
}

.voucher-ticket::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 95px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voucher-ticket {
        height: 120px;
    }
    
    .voucher-left {
        flex: 0 0 50px;
    }
    
    .discount-value {
        font-size: 20px;
    }
    
    .voucher-title {
        font-size: 12px;
    }
    
    .voucher-subtitle {
        font-size: 10px;
    }
    
    .code-value {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .voucher-ticket {
        height: 100px;
    }
    
    .voucher-left {
        flex: 0 0 50px;
    }
    
    .voucher-right {
        padding: 12px;
    }
    
    .discount-value {
        font-size: 18px;
    }
    
    .voucher-title {
        font-size: 12px;
    }
    
    .voucher-subtitle {
        font-size: 9px;
        margin-bottom: 6px;
    }
    
    .code-value {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .validity-text {
        font-size: 8px;
    }
}

/* ===== PROMO BANNER STYLES ===== */
.promo-banner {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #6b90ff 0%, #246bee 50%, #9fbdff 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.promo-banner.banner-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

.promo-banner-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.promo-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.promo-banner-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: -40px;
    right: -20px;
    animation-delay: 0s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    bottom: -30px;
    left: -10px;
    animation-delay: 2s;
}

.circle-3 {
    width: 40px;
    height: 40px;
    top: 50%;
    right: 10px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.promo-banner-text {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.promo-banner-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.promo-banner-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    color: orange;
    text-shadow:-1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.promo-banner-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.discount-text {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

.discount-value {
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

.discount-off {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.promo-banner-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    font-size: 12px;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0.5s;
}

.sparkle-2 {
    top: 15px;
    right: 25px;
    animation-delay: 1.5s;
}

.sparkle-3 {
    bottom: 25px;
    left: 30px;
    animation-delay: 2.5s;
}

.sparkle-4 {
    bottom: 15px;
    right: 20px;
    animation-delay: 3.5s;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* Responsive Design for Promo Banner */
@media (max-width: 768px) {
    .promo-banner {
        height: 120px;
    }
    
    .promo-banner-title {
        font-size: 14px;
    }
    
    .promo-banner-subtitle {
        font-size: 18px;
    }
    
    .discount-value {
        font-size: 18px;
    }
    
    .discount-text,
    .discount-off {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        height: 100px;
    }
    
    .promo-banner-content {
        padding: 12px;
    }
    
    .promo-banner-title {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .promo-banner-subtitle {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .discount-value {
        font-size: 16px;
    }
    
    .discount-text,
    .discount-off {
        font-size: 9px;
    }
    
    .sparkle {
        font-size: 10px;
    }
}

/* Product Page Specific Mobile Optimizations - CORRECTED SELECTORS */
@media (max-width: 768px) {
    /* Main layout fixes for product page */
    .main-content {
        max-width: 100% !important;
        padding: 10px !important;
    }
    
    .content-layout {
        display: block !important;
        gap: 0 !important;
    }
    
    .sidebar {
        width: 100% !important;
        margin-bottom: 20px !important;
        order: -1 !important;
    }
    
    .content-main {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Product grid - correct selector */
    #product-list.product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        margin: 0 auto !important;
    }
    
    /* Product cards in grid */
    #product-list .catalog-product-card,
    #product-list .rekomendasi-card {
        min-height: 280px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-image-container,
    #product-list .rekomendasi-card .rekomendasi-image-container {
        min-height: 100px !important;
        padding: 1rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-img,
    #product-list .rekomendasi-card .rekomendasi-product-img {
        max-height: 70px !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-name,
    #product-list .rekomendasi-card .rekomendasi-product-name {
        font-size: 0.85rem !important;
        margin: 0.75rem 1rem 0.5rem !important;
        min-height: 2.2rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-price,
    #product-list .rekomendasi-card .rekomendasi-product-price {
        margin: 0 1rem 0.75rem !important;
        font-size: 1rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-view-btn,
    #product-list .rekomendasi-card .rekomendasi-view-btn {
        font-size: 0.8rem !important;
        padding: 0.625rem 1.25rem !important;
        margin: 0 1rem 1rem !important;
        width: calc(100% - 2rem) !important;
    }
    
    /* Catalog controls responsive */
    .catalog-controls {
        padding: 1rem !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        flex-direction: column !important;
    }
    
    .search-box {
        width: 100% !important;
    }
    
    .sort-filter {
        width: 100% !important;
        gap: 0.5rem !important;
        flex-direction: column !important;
    }
    
    .category-select,
    .sort-select {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    /* Tablet optimizations for product page */
    #product-list.product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    #product-list .catalog-product-card,
    #product-list .rekomendasi-card {
        min-height: 280px !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-image-container,
    #product-list .rekomendasi-card .rekomendasi-image-container {
        min-height: 100px !important;
        padding: 1rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-img,
    #product-list .rekomendasi-card .rekomendasi-product-img {
        max-height: 70px !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-name,
    #product-list .rekomendasi-card .rekomendasi-product-name {
        font-size: 0.85rem !important;
        margin: 0.75rem 1rem 0.5rem !important;
        min-height: 2.2rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-price,
    #product-list .rekomendasi-card .rekomendasi-product-price {
        margin: 0 1rem 0.75rem !important;
        font-size: 1rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-view-btn,
    #product-list .rekomendasi-card .rekomendasi-view-btn {
        font-size: 0.8rem !important;
        padding: 0.625rem 1.25rem !important;
        margin: 0 1rem 1rem !important;
        width: calc(100% - 2rem) !important;
    }
    
    .catalog-controls {
        padding: 1rem !important;
        gap: 1.25rem !important;
        margin-bottom: 2rem !important;
        flex-direction: column !important;
    }
    
    .search-box {
        width: 100% !important;
    }
    
    .sort-filter {
        width: 100% !important;
        gap: 0.5rem !important;
    }
    
    .category-select,
    .sort-select {
        flex: 1 !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations for product page */
    #product-list.product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        max-width: 100% !important;
        padding: 0 0.75rem !important;
    }
    
    #product-list .catalog-product-card,
    #product-list .rekomendasi-card {
        min-height: 260px !important;
        border-radius: 0.875rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-image-container,
    #product-list .rekomendasi-card .rekomendasi-image-container {
        min-height: 90px !important;
        padding: 0.75rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-img,
    #product-list .rekomendasi-card .rekomendasi-product-img {
        max-height: 60px !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-name,
    #product-list .rekomendasi-card .rekomendasi-product-name {
        font-size: 0.8rem !important;
        margin: 0.625rem 0.875rem 0.375rem !important;
        min-height: 2rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-rating-section,
    #product-list .rekomendasi-card .rekomendasi-rating-section {
        margin: 0 0.875rem 0.5rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-rating,
    #product-list .rekomendasi-card .rekomendasi-rating {
        gap: 3px !important;
        font-size: 0.75rem !important;
    }
    
    #product-list .catalog-product-card .rating-top,
    #product-list .rekomendasi-card .rating-top {
        gap: 4px !important;
    }
    
    #product-list .catalog-product-card .rating-stars,
    #product-list .rekomendasi-card .rating-stars {
        font-size: 0.85rem !important;
    }
    
    #product-list .catalog-product-card .rating-value,
    #product-list .rekomendasi-card .rating-value {
        font-size: 0.75rem !important;
    }
    
    #product-list .catalog-product-card .review-count,
    #product-list .rekomendasi-card .review-count {
        font-size: 0.7rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-product-price,
    #product-list .rekomendasi-card .rekomendasi-product-price {
        font-size: 0.9rem !important;
        margin: 0 0.875rem 0.625rem !important;
    }
    
    #product-list .catalog-product-card .rekomendasi-view-btn,
    #product-list .rekomendasi-card .rekomendasi-view-btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        margin: 0 0.875rem 0.875rem !important;
        width: calc(100% - 1.75rem) !important;
    }
    
    .catalog-controls {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }
    
    .pagination-nav {
        padding: 0.875rem 1rem !important;
        border-radius: 1rem !important;
        gap: 0.5rem !important;
    }
    
    .pagination-btn {
        padding: 0.625rem 0.75rem !important;
        min-width: 2.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* ===== VOUCHER TOAST NOTIFICATION ===== */
.voucher-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    min-width: 280px;
}

.voucher-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.voucher-toast-success {
    border-left: 4px solid #10b981;
}

.voucher-toast-error {
    border-left: 4px solid #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-toast-success .toast-icon {
    color: #10b981;
}

.voucher-toast-error .toast-icon {
    color: #ef4444;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .voucher-toast {
        right: 16px;
        left: 16px;
        max-width: none;
        min-width: 0;
    }
}

/* ===== LICENSE SELECTION STYLES ===== */
.license-selection {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.license-selection h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
}

.license-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-option, .license-option-item {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.license-option:hover:not(.disabled), .license-option-item:hover:not(.disabled) {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.license-option.disabled, .license-option-item.disabled {
    background-color: #f9fafb;
    opacity: 0.6;
    cursor: not-allowed;
}

.license-option input[type="radio"], .license-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.license-label, .license-label-dynamic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.license-option.disabled .license-label, .license-option-item.disabled .license-label-dynamic {
    cursor: not-allowed;
}

.license-info, .license-info-dynamic {
    flex: 1;
}

.license-name, .license-name-dynamic {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.license-description, .license-description-dynamic {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.license-price, .license-price-dynamic {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.license-price .out-of-stock, .license-price-dynamic .out-of-stock {
    color: #dc2626;
    font-weight: 600;
}

.radio-indicator, .radio-indicator-dynamic {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.radio-indicator::after, .radio-indicator-dynamic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.license-option input[type="radio"]:checked + .license-label, 
.license-option-item input[type="radio"]:checked + .license-label-dynamic {
    background-color: #eff6ff;
}

.license-option input[type="radio"]:checked + .license-label .radio-indicator,
.license-option-item input[type="radio"]:checked + .license-label-dynamic .radio-indicator-dynamic {
    border-color: #3b82f6;
    background: #ffffff;
}

.license-option input[type="radio"]:checked + .license-label .radio-indicator::after,
.license-option-item input[type="radio"]:checked + .license-label-dynamic .radio-indicator-dynamic::after {
    transform: translate(-50%, -50%) scale(1);
}

.license-option input[type="radio"]:checked + .license-label .license-name,
.license-option-item input[type="radio"]:checked + .license-label-dynamic .license-name-dynamic {
    color: #1d4ed8;
}

/* Mobile responsiveness for license selection */
@media (max-width: 768px) {
    .license-selection {
        margin: 16px 0;
        padding: 16px;
    }
    
    .license-selection h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .license-label, .license-label-dynamic {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .radio-indicator, .radio-indicator-dynamic {
        margin-left: 0;
        align-self: flex-end;
        position: absolute;
        top: 12px;
        right: 12px;
    }
    
    .license-info, .license-info-dynamic {
        width: 100%;
        padding-right: 40px;
    }
    
    .license-name, .license-name-dynamic {
        font-size: 15px;
    }
    
    .license-description, .license-description-dynamic {
        font-size: 13px;
    }
    
    .license-price, .license-price-dynamic {
        font-size: 16px;
        margin-top: 4px;
    }
}

/* Animation for license selection */
@keyframes licenseSelectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.license-option input[type="radio"]:checked + .license-label .radio-indicator,
.license-option-item input[type="radio"]:checked + .license-label-dynamic .radio-indicator-dynamic {
    animation: licenseSelectPulse 0.3s ease;
}


span.stars-inline {
    color: orange;
}

/* Product Rating Styles */
.product-rating {
    margin: 8px 0;
    text-align: left;
    margin-left: 1rem;
}

/* Star SVG styling and pop animation */
.star-icon {
    width: 16px;
    height: 16px;
    fill: rgb(245 158 11);
    color: #d1d5db; /* default empty color */
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), color 220ms ease;
}
.star-icon.filled {
    color: #f59e0b; /* amber/orange */
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}
.star-icon.empty {
    color: #d1d5db;
}
.stars-container .star-icon,
.stars-container-compact .star-icon {
    display: inline-block;
    margin-right: 4px;
    transform-origin: center bottom;
}
.star.half {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}
.star.half svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.star.half .half-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    width: 50%;
    z-index: 2;
}
.star.half .star-icon.empty { z-index: 1; }
.stars-container .star-icon { animation: star-pop 360ms ease; }

@keyframes star-pop {
    0% { transform: translateY(6px) scale(0.85); opacity: 0; }
    60% { transform: translateY(-2px) scale(1.08); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.stars-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 4px;
}

.product-rating .star {
    font-size: 16px;
    line-height: 1;
}

.product-rating .star.filled {
    color: orange;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
}

.product-rating .star.half {
    color: orange;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
}

.product-rating .star.empty {
    color: #d1d5db;
}

.product-rating .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-left: 6px;
}

.product-rating .review-count {
    font-size: 12px;
    color: #6b7280;
    text-align: left;
}

/* Compact rating for recommendations */
.product-rating-wrapper{
    margin-left: 1rem;
}
.product-rating-compact {
    margin: 6px 0 0 0;
    text-align: left;
}

.stars-container-compact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 4px;
}

.product-rating-compact .stars-inline {
    color: orange;
    display: inline-flex;
    gap: 1px;
}

.product-rating-compact .star {
    font-size: 1.25rem;
    line-height: 1;
}

.product-rating-compact .star.filled {
    color: orange;
    text-shadow: 0 0 1px rgba(255, 215, 0, 0.5);
}

.product-rating-compact .star.half {
    color: orange;
    text-shadow: 0 0 1px rgba(255, 215, 0, 0.5);
}

.product-rating-compact .star.empty {
    color: #d1d5db;
}

.product-rating-compact .rating-value {
    font-weight: 600;
    color: #374151;
    margin-left: 6px;
    font-size: 12px;
}

.product-rating-compact .review-count-compact {
    color: #6b7280;
    font-size: 0.75rem;
    text-align: left;
}

/* Mobile responsive for ratings */
@media (max-width: 768px) {
    .product-rating .star {
        font-size: 14px;
    }
    
    .product-rating .rating-value {
        font-size: 13px;
    }
    
    .product-rating .review-count {
        font-size: 11px;
    }
    
    .product-rating-compact {
        font-size: 11px;
    }
    
    .product-rating-compact .star {
        font-size: 12px;
    }
    
    .product-rating-compact .rating-value {
        font-size: 11px;
    }
    
    .product-rating-compact .review-count-compact {
        font-size: 10px;
    }
}

/* Badge HABIS untuk produk out of stock */
.product-image-container,
.rekomendasi-image-container {
    position: relative;
}

.habis-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.habis-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 4px;
    pointer-events: none;
}

/* Mobile responsive for habis badge */
@media (max-width: 768px) {
    .habis-badge {
        font-size: 9px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }
}

#popup-banner-overlay {
			position: fixed;
			top: 0; left: 0; right: 0; bottom: 0;
			background: rgba(0,0,0,0.9);
			z-index: 9999;
			display: flex;
			align-items: center;
			justify-content: center;
		}
		#popup-banner-dialog {
			background: #fff;
			border-radius: 12px;
			box-shadow: 0 4px 24px rgba(0,0,0,0.9);
			max-width: 90vw;
			width: 400px;
			position: relative;
			display: flex;
			flex-direction: column;
			align-items: center;
		}
		#popup-banner-close {
			position: absolute;
			top: 12px;
			right: 12px;
			background: transparent;
			border: none;
			font-size: 1.8rem;
			cursor: pointer;
			color: #fff;
		}
		.popup-banner-image {
			margin-bottom: 16px;
		}
		.popup-banner-footer {
			margin-top: 12px;
			width: 100%;
			text-align: left;
		}
		@media (max-width: 500px) {
			#popup-banner-dialog {
				width: 95vw;
			}
		}