/* Color Palette and Variables */
:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #ff9b3b;
    --secondary: #3B82F6;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --dark: #1F2937;
    --muted: #4B5563;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --portal-bg: rgba(255, 255, 255, 0.95);
}

/* 3D Scene Config */
body {
    overflow-x: hidden;
    perspective: 1000px;
}

[data-theme="dark"] {
    --dark: #F9FAFB;
    --light-gray: #1F2937;
    --white: #111827;
    --muted: #9CA3AF;
    --glass-bg: rgba(17, 24, 39, 0.85); /* Navbar Gelap Transparan */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
    color: var(--white);
}

.btn-primary-sm {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}
.btn-primary-sm:hover {
    background-color: var(--primary-dark);
}


/* Navbar Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.navbar.sticky {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
    padding: 15px 0;
}

.lang-btn.active {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.lang-btn:hover:not(.active) {
    background: rgba(0,0,0,0.1) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Only force white text on index page hero (where body doesn't have page-katalog) */
body:not(.page-katalog) .navbar:not(.sticky) .nav-links a,
body:not(.page-katalog) .navbar:not(.sticky) .logo,
body:not(.page-katalog) .navbar:not(.sticky) .theme-toggle i {
    color: var(--white) !important;
}

/* Ensure katalog page navbar is always readable */
.page-katalog .navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-katalog .navbar .nav-links a,
.page-katalog .navbar .logo,
.page-katalog .navbar .theme-toggle i {
    color: var(--dark) !important;
}

.page-katalog .navbar .nav-links a[style*="color: var(--primary)"] {
    color: var(--primary) !important;
}

.page-katalog .navbar .nav-links a:hover {
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================
   BRAND MARQUEE SECTION
   ========================================= */
.brands-section {
    padding: 60px 0;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll 40s linear infinite;
    flex-shrink: 0;
}

.brand-item {
    flex-shrink: 0;
    width: 130px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    filter: grayscale(100%) opacity(0.6);
}

.brand-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 60px));
    }
}

/* Pause on hover */
.brand-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(249, 115, 22, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero strong {
    color: var(--primary-light);
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--muted);
}

/* Philosophy */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.hover-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 15px 40px rgba(255, 122, 0, 0.1);
}

.icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.hover-card:hover .icon-wrap {
    background: var(--primary);
    color: var(--white);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.card p {
    color: var(--muted);
}

/* Stats */
.stats {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.counter {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}
.counter::after {
    content: '+';
}

.stat-item span {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Catalog Enhanced Styling */
.catalog-header-text {
    text-align: center;
    color: var(--muted);
    max-width: 700px;
    margin: -30px auto 40px;
    font-size: 1.1rem;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 28px;
    background: var(--white);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--dark);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.product-badge.promo {
    background: #EF4444;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.product-badge.top-seller {
    background: #8B5CF6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f9fafb;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-inquiry {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card:hover .btn-inquiry {
    transform: translateY(0);
}

.btn-inquiry:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.product-rating {
    font-size: 0.8rem;
    color: #FBBF24;
    font-weight: 700;
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.price-retail {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.original-price {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.sold-count {
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--light-gray);
    padding: 3px 10px;
    border-radius: 50px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quality-label {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-status.in-stock {
    font-size: 0.75rem;
    color: #2563EB;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .product-card {
    background: #1F2937;
    border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .product-img-wrapper {
    background: #111827;
}

[data-theme="dark"] .product-price {
    color: var(--white);
}

[data-theme="dark"] .product-unit,
[data-theme="dark"] .stock-status {
    color: #9CA3AF;
}

[data-theme="dark"] .filter-btn {
    background: #1F2937;
    color: #D1D5DB;
    border-color: rgba(255,255,255,0.1);
}

.img-wrapper {
    cursor: pointer;
    position: relative;
}

.card-overlay-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 115, 22, 0.9);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: var(--transition);
}

.img-wrapper:hover .card-overlay-hint {
    transform: translateY(0);
}

.card-body {
    cursor: pointer;
}


/* Fleet */
.fleet-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.fleet-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    transition: var(--transition);
}

.fleet-item:hover .fleet-icon {
    transform: translateY(-10px);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.2);
}

.fleet-item h3 {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary);
    border: 4px solid var(--white);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--muted);
}

/* Reveal Animation Class (Controlled by GSAP) */
.reveal {
    /* Status awal diatur oleh GSAP dari script.js */
    will-change: transform, opacity;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.3s;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* Kembali ke 3 Kolom untuk Desktop */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-col p {
    color: #9CA3AF;
    margin-bottom: 10px;
}

.footer-col a {
    color: #9CA3AF;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9CA3AF;
    display: inline-block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.footer-form input:focus, .footer-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.footer-form .btn-primary {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Floating WA */
.float-wa {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Pindahkan ke kiri agar tidak menumpuk dengan Portal Pesanan */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: white;
}

/* =========================================
   E-COMMERCE CATALOG STYLES
   ========================================= */

/* Page Header & Carousel */
.page-header {
    background: #fdfdfd;
    padding: 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1920 / 600;
    height: auto;
}

.katalog-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
}

.carousel-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transform: scale(1);
    transition: transform 8s linear;
}

.carousel-item.active .carousel-bg img {
    transform: scale(1);
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 0 10%;
    width: 100%;
}

.carousel-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.carousel-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.4s;
}

.carousel-item.active .carousel-content h2,
.carousel-item.active .carousel-content p {
    transform: translateY(0);
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.arrow-prev { left: 30px; }
.arrow-next { right: 30px; }

@media (max-width: 768px) {
    .page-header { aspect-ratio: 1920 / 600; height: auto; }
    .carousel-content h2 { font-size: 2rem; }
    .carousel-content p { font-size: 1rem; }
    .carousel-arrow { display: none; }
}

/* ==========================================================================
   ULTIMATE ECOMMERCE CATALOG UI
   ========================================================================== */

.ecommerce-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.ecommerce-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.ecommerce-main {
    min-width: 0;
    width: 100%;
}

/* Elegant Sticky Sidebar */
.ecommerce-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 15px 50px rgba(0,0,0,0.03);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.btn-reset {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    opacity: 0.7;
}

.filter-group {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.filter-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 20px;
    font-weight: 800;
}

/* Professional Control Center Refined */
.catalog-header-panel {
    background: white;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 15px 50px rgba(0,0,0,0.03);
    margin-bottom: 50px;
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* Cluster Quick Filters (Pills) */
.cluster-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.cluster-container::-webkit-scrollbar {
    display: none;
}

.cluster-pill {
    white-space: nowrap;
    padding: 10px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cluster-pill:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.cluster-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

/* Sidebar Elements Fix */
.brand-scroll-list {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.brand-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.brand-scroll-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
    transition: all 0.2s ease;
    width: 100%; /* Force vertical list */
}

.custom-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.custom-checkbox:hover {
    color: var(--primary);
}

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

.search-box i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 16px 25px 16px 65px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
    outline: none;
}

.sort-box select {
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-box select:hover {
    border-color: var(--primary);
}

.product-info-bar {
    margin-bottom: 25px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ecommerce Product Grid */
.ecommerce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ecommerce-grid.rendering {
    opacity: 1; /* Matikan efek kedip opacity */
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    color: var(--muted);
    border: 1px dashed #E5E7EB;
}

.ecommerce-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible; /* Ubah ke visible agar bayangan/badge tidak terpotong aneh */
    border: 1px solid #F3F4F6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.ecommerce-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: rgba(255, 122, 0, 0.3);
}

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: var(--light-gray);
    overflow: hidden;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10; /* Kunci di atas gambar */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.red-badge {
    background: #EF4444;
    color: white;
    border: none;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prod-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.prod-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.discount-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.original-price {
    font-size: 0.85rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.prod-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.prod-rating-sold {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.prod-rating-sold .rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prod-rating-sold .separator {
    margin: 0 8px;
    color: #E5E7EB;
}

.card-footer {
    padding: 15px;
    padding-top: 0;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #25D366; /* WA Green */
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-buy:hover {
    background: #20b858;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    background: var(--white);
    border-radius: 8px;
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.2rem; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f172a; /* Latar Belakang Gelap agar Mewah */
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 5000;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active {
        display: flex;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links li a {
        color: #FFFFFF !important; /* Putih Bersih agar kontras di BG Gelap */
        padding: 15px 0 !important;
        display: block !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        opacity: 1 !important;
        transform: none !important;
        text-decoration: none !important;
    }
    .nav-links li a:hover {
        background: rgba(249, 115, 22, 0.2);
        color: var(--primary) !important;
    }
    .logo {
        font-size: 1.2rem; /* Ukuran pas agar tidak pecah baris */
        white-space: nowrap; /* Paksa satu baris */
        max-width: 60%;
    }
    .nav-container {
        gap: 10px;
    }
    /* Sembunyikan tombol kontak di top-bar mobile agar tidak sesak */
    .nav-container .btn-primary-sm {
        display: none;
    }
    .menu-toggle { 
        display: block; 
        margin-left: 10px;
    }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
    .grid-stats { grid-template-columns: 1fr; gap: 30px; }
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
        padding: 0 20px;
    }
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .footer-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 20px;
    }
    .footer-form input, .footer-form textarea {
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.05);
        color: white;
        outline: none;
    }
    .footer-form .btn-primary {
        width: 100%;
        padding: 12px;
        font-weight: 600;
    }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; left: 0 !important; }
    .timeline-item:nth-child(even) .timeline-dot, .timeline-item:nth-child(odd) .timeline-dot {
        left: 21px; right: auto;
    }

    /* Penyesuaian Global untuk HP */
    .section-padding { padding: 40px 0; }
    .section-title h2 { font-size: 2rem; margin-bottom: 30px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; margin-bottom: 20px; }
    .counter { font-size: 3rem; }
    .stat-icon { font-size: 2.5rem; }
    .stat-item span { font-size: 1rem; }
    .card { padding: 30px 20px; }
    .about-content h3 { font-size: 1.5rem; }
    .filter-btn { padding: 6px 18px; font-size: 0.9rem; }



    /* Ecommerce Layout */
    .ecommerce-layout { grid-template-columns: 1fr; gap: 20px; }
    .ecommerce-sidebar { padding: 20px; }
}

/* Sales Booster Features */
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Brand Slider */
.brand-slider {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.brand-track {
    display: flex;
    gap: 50px;
    width: calc(250px * 16);
    animation: scrollBrands 30s linear infinite;
}

.brand-logo {
    width: 200px;
    height: 80px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    flex-shrink: 0;
}

.brand-logo:hover {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 8)); }
}

/* Coverage Area */
.coverage-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.coverage-item i {
    color: var(--primary);
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Ultra Modern 3D Map */
.modern-map-wrapper {
    margin-top: 50px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-3d-card.ultra-modern {
    background: #0f172a;
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.1);
    width: 600px;
    height: 350px;
}

.map-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    transform: translateZ(-30px);
    filter: blur(20px);
}

.map-grid-fine {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(249, 115, 22, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(249, 115, 22, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 30px;
}

.map-center-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.02);
    transform: translateZ(-10px);
}

/* Minimalist Pins */
.m-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    transform-style: preserve-3d;
    z-index: 20;
}

.m-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

.pulse-orange {
    animation: mPulse 2s infinite;
}

@keyframes mPulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    100% { box-shadow: 0 0 0 20px rgba(249, 115, 22, 0); }
}

.m-label {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    transform: rotateX(-45deg) translateZ(30px);
    white-space: nowrap;
}

.m-label span {
    display: block;
    font-size: 0.6rem;
    color: var(--primary);
    font-weight: 400;
}

.p-bogor { top: 20%; left: 15%; }
.p-depok { top: 60%; left: 25%; }
.p-cibinong { top: 40%; left: 55%; }
.p-jakarta { top: 30%; left: 75%; }

@media (max-width: 768px) {
    .map-3d-card.ultra-modern {
        width: 90vw;
        height: 300px;
        transform: rotateX(40deg) rotateZ(-10deg);
    }
}

/* Modern Ecommerce Catalog UI */
.ecommerce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.ecommerce-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.ecommerce-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 122, 0, 0.2);
}

.ecommerce-card .img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square Aspect Ratio */
    overflow: hidden;
    background: #f8fafc;
}

.ecommerce-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

.ecommerce-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.ecommerce-card .card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ecommerce-card .prod-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.ecommerce-card .prod-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.ecommerce-card .prod-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.ecommerce-card .stock-status {
    font-size: 0.75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.ecommerce-card .prod-location {
    font-size: 0.7rem;
    color: #94a3b8;
}

.ecommerce-card .card-footer {
    padding: 12px 15px 15px;
}

.ecommerce-card .btn-buy {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.ecommerce-card .btn-buy:hover {
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.35);
    transform: scale(1.02);
}

/* Red Promo Badge */
.prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

@media (max-width: 576px) {
    .ecommerce-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ecommerce-card .prod-name { font-size: 0.85rem; }
}

/* Professional Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: #fffaf0;
}

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

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .ecommerce-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ecommerce-sidebar {
        position: static;
        padding-bottom: 20px;
    }
}

.search-box input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Pagination Styling */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    50% { opacity: 1; transform: scale3d(1.05, 1.05, 1.05); }
    70% { transform: scale3d(0.9, 0.9, 0.9); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
/* =========================================
   3D PORTAL & QUICK ORDER PORTAL
   ========================================= */

.hero-content h1 {
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.reveal {
    will-change: transform, opacity;
}

/* Quick Order Portal */
.order-portal {
    position: fixed;
    right: -400px;
    bottom: 100px;
    width: 320px;
    background: var(--portal-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 100000; /* Lapisan Tertinggi - Tidak ada yang bisa menghalangi */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 122, 0, 0.2);
    overflow: hidden;
}

.order-portal.active {
    right: 30px;
}

/* Penyesuaian Portal di Mobile */
@media (max-width: 480px) {
    .order-portal {
        width: calc(100% - 40px);
        right: -110%;
        left: 20px;
        bottom: 80px;
    }
    .order-portal.active {
        right: 20px;
        left: 20px;
    }
    .portal-body {
        max-height: 300px;
    }
    .close-portal {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px; /* Lebih besar */
        height: 40px; /* Lebih besar */
        background: #F97316; /* Oranye Terang agar terlihat */
        color: white;
        border: 2px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 100001;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .close-portal:hover {
        background: rgba(0, 0, 0, 0.4);
        transform: scale(1.1);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        padding: 10px;
    }
    .prod-name {
        font-size: 0.85rem;
        height: 2.4rem;
        overflow: hidden;
    }
    .prod-price {
        font-size: 1rem;
    }
}

.portal-header {
    background: var(--primary);
    padding: 15px 20px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-header h4 {
    margin: 0;
    font-size: 1rem;
}

.close-portal {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
}

.portal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.portal-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.portal-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.item-info h5 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--dark);
}

.item-info p {
    margin: 0 0 10px 0;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-buy-sm {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-buy-sm:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.portal-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.02);
    text-align: center;
}

.btn-full-catalog {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-full-catalog:hover {
    color: var(--primary);
}

/* Portal Toggle Button */
.portal-toggle-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 2500; /* Di atas tombol WhatsApp tapi di bawah Portal Card */
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.4);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.portal-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.portal-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .order-portal {
        width: calc(100% - 40px);
        right: -100%;
    }
    .order-portal.active {
        right: 20px;
    }
}

/* =========================================
   PARALLAX ORBS BACKGROUND
   ========================================= */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.4) 0%, rgba(249,115,22,0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(59,130,246,0) 70%);
    bottom: -200px;
    right: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234,88,12,0.35) 0%, rgba(234,88,12,0) 70%);
    top: 40%;
    right: 10%;
}

.orb-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,155,59,0.25) 0%, rgba(255,155,59,0) 70%);
    bottom: 20%;
    left: 5%;
}

[data-theme="dark"] .parallax-orb {
    opacity: 0.3;
}

/* =========================================
   PRELOADER / SPLASH SCREEN
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

[data-theme="dark"] .preloader {
    background: var(--dark);
}

.preloader-content {
    text-align: center;
    perspective: 1000px;
}

.preloader-logo {
    width: 180px; /* Adjust as needed */
    max-width: 80%;
    margin-bottom: 20px;
    animation: pulse3D 2s infinite ease-in-out;
    transform-style: preserve-3d;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(249, 115, 22, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes pulse3D {
    0% { transform: scale(1) translateZ(0); }
    50% { transform: scale(1.05) translateZ(50px); }
    100% { transform: scale(1) translateZ(0); }
}
/* =========================================
   SKELETON LOADING
   ========================================= */
.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, #e5e7eb 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 8px;
}

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

.skeleton-card {
    height: 350px;
    width: 100%;
    border-radius: 20px;
    background: var(--white);
    padding: 20px;
}

.skeleton-img { height: 200px; margin-bottom: 15px; }
.skeleton-text { height: 20px; margin-bottom: 10px; width: 80%; }
.skeleton-text-sm { height: 15px; width: 50%; }
/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 999999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.cookie-consent.show {
    bottom: 20px;
}

[data-theme="dark"] .cookie-consent {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-content i {
    font-size: 1.5rem;
    color: #F97316;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

[data-theme="dark"] .cookie-content p {
    color: rgba(255,255,255,0.7);
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--muted);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] .btn-cookie-decline {
    border-color: rgba(255,255,255,0.1);
}

.btn-cookie-decline:hover {
    background: rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        left: 15px;
        right: 15px;
    }
    .cookie-content {
        flex-direction: column;
    }
    .cookie-btns {
        width: 100%;
    }
    .btn-cookie-accept, .btn-cookie-decline {
        flex: 1;
    }
}

