:root {
    --blue-gradient: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%); /* Blue to Greenish */
    --pink-gradient: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); /* Soft Pink */
    --main-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Main Blue */
    --accent-color: #ff3e8c;
    --soft-blue: #85D8FF;
    --soft-pink: #F9C5D1;
    --white-glass: rgba(255, 255, 255, 0.25);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

html {
    background-color: #85D8FF; /* Pastikan html juga punya warna dasar */
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: transparent !important; /* Buat body transparan agar layer terlihat */
    color: #333;
    overflow-x: hidden;
    position: relative;
}

.scroll-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    pointer-events: none;
    display: block !important;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease;
}

.bg-blue {
    background: linear-gradient(135deg, #85D8FF 0%, #B2EBF2 100%);
    opacity: 1;
}

.bg-pink {
    background: linear-gradient(135deg, #F9C5D1 0%, #FCE4EC 100%);
    opacity: 0;
}

.hero-section {
    background: transparent;
    padding: 4rem 0 3rem;
    color: #333; /* Darker text for light background */
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 5;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: none; /* Remove shadow for dark text */
    font-size: 3rem;
    letter-spacing: -1px;
    color: #2c3e50;
}

.hero-section p {
    font-weight: 500;
    opacity: 0.8;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: #555;
}

.category-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 40px !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.icon-circle {
    background: white;
    width: 90px;
    height: 90px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
}

.category-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.category-card h3 {
    color: #333; /* Dark text for cards */
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 1rem;
    text-shadow: none;
}

.category-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.category-card p {
    color: #777 !important;
    font-weight: 500;
}

.category-card .btn-primary {
    background: white;
    color: #4facfe;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card .btn-primary:hover {
    transform: scale(1.05);
    background: #f8f9fa;
    color: #00c9ff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-product {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #fff;
}

.card-product img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-product:hover img {
    transform: scale(1.1);
}

.card-product .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.card-product .price {
    color: #ff3e8c;
    font-weight: 800;
    font-size: 1.25rem;
}

.btn-order {
    background: #ff3e8c; /* Solid pink accent */
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 18px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 62, 140, 0.2);
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 62, 140, 0.3);
    color: #fff;
    opacity: 0.9;
}

/* Floating Cart Button */
#cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff3e8c; /* Changed from WhatsApp green to Pink Accent */
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 62, 140, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cart-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 62, 140, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.hero-section h1 {
    font-weight: 800;
    text-shadow: none;
    font-size: 3rem;
    letter-spacing: -1px;
    color: #2c3e50;
}

.hero-section p {
    font-weight: 500;
    opacity: 0.8;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: #555;
}

.welcome-logo-container {
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.welcome-logo-container:hover {
    transform: rotate(-5deg) scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid #fff;
}

.modal-content {
    border-radius: 35px;
    border: none;
}

.modal-header {
    background: var(--mixed-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.form-control {
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #eee;
    font-weight: 500;
}

.form-control:focus {
    border-color: #85D8FF;
    box-shadow: 0 0 0 4px rgba(133, 216, 255, 0.15);
}

.footer {
    padding: 1.5rem 0;
    background: #1a1d20 !important; /* Dark background like the screenshot */
    color: white !important;
}

.footer p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 1;
}

.footer a {
    color: white !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .category-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    .card-product img {
        height: 160px;
    }
    .card-product .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-info {
        padding: 1.5rem;
    }
    .product-list-item {
        padding: 0.8rem 1rem;
    }
    .product-thumb {
        width: 50px;
        height: 50px;
    }
    .product-details h6 {
        font-size: 0.9rem;
    }
    .badge-promo {
        font-size: 1rem;
    }
}

/* Category Detail Page Styles */
.badge-promo {
    background: #ff3e8c;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: 12px;
}

.section-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.section-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.terms-list {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #555;
}

.terms-list li {
    margin-bottom: 0.5rem;
}

.how-to-order {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.how-to-order ol {
    padding-left: 1.2rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.how-to-order li {
    margin-bottom: 0.5rem;
}

.search-container {
    background: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    outline: none;
}

.filter-tags {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    margin-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.filter-tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.filter-tag {
    white-space: nowrap;
    background: white;
    color: #666;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.filter-tag.active {
    background: var(--brand-color);
    color: white !important;
    border-color: var(--brand-color);
    box-shadow: 0 8px 20px var(--brand-color-soft);
}

.product-list-item {
    background: white;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.product-list-item:hover {
    transform: translateX(5px);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.product-details h6 {
    margin-bottom: 0.2rem;
    font-weight: 700;
    color: #333;
}

.product-details .price-old {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-details .price-new {
    font-size: 1rem;
    font-weight: 700;
    color: #ff3e8c;
}

.btn-add-list {
    background: #5d4037;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-add-list:hover {
    transform: scale(1.1);
    background: #4e342e;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #333;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: #000;
}

.category-page {
    background: #f8f9fa !important;
}

.category-page body {
    background: #f8f9fa !important;
}
