/* Home page core styles */
* {
    box-sizing: border-box;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* Marquee */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(21, 24, 39, 0.95), rgba(11, 11, 15, 0.95));
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 2px solid rgba(244, 197, 66, 0.6);
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    margin-top: 16px;
}

@media (min-width: 992px) {
    .slider {
        padding-top: 30%;
        max-height: 400px;
    }
}

.slides {
    position: absolute;
    inset: 0;
    width: 500%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(21, 24, 39, 0.8);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.slider-btn:hover {
    background: rgba(91, 107, 255, 0.9);
    box-shadow: 0 8px 20px rgba(91, 107, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.filter-btn {
    background: rgba(21, 24, 39, 0.7);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(91, 107, 255, 0.35);
    transform: translateY(-1px);
}

/* Product Grid */
.produk {
    padding: 0.5rem 0 2rem;
}

.produk-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 24px 12px;
}

.produk-item {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 250px;
}

.produk-item a {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.produk-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--bg);
    border-radius: 12px;
    margin-bottom: 10px;
}

.produk-item h2 {
    color: var(--text);
    margin: 6px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
}

.produk-item p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
}

.produk-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(91, 107, 255, 0.6);
}

.produk-item.redsale-card {
    background: linear-gradient(145deg, #2a0a18, #1a0b2e);
    border: 2px solid #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
    animation: pulse-border 2s infinite;
}

.produk-item.redsale-card h2 {
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
        border-color: #ff0055;
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 0, 85, 0.6);
        border-color: #aa00ff;
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
        border-color: #ff0055;
    }
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-hot {
    background: linear-gradient(135deg, #ff4e50, #f9d423);
}

.badge-discount {
    background: linear-gradient(135deg, #ff00cc, #333399);
}

.badge-new {
    background: linear-gradient(135deg, #0cebeb, #20e3b2, #29ffc6);
    color: var(--bg);
}

.badge-popular {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.badge-termurah {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* Deposit Promo Float */
.deposit-promo-float {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 999;
    min-width: 180px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #2055e6 0%, #19a1e0 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 22px rgba(32, 85, 230, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deposit-promo-float .promo-kicker {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
}

.deposit-promo-float strong {
    font-size: 0.92rem;
    line-height: 1.2;
}

.deposit-promo-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(32, 85, 230, 0.55);
}

.deposit-promo-float:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Testimonials */
.testimonials-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(to bottom, transparent, rgba(11, 11, 15, 0.6));
    margin-top: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 800;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testi-card {
    background: rgba(21, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.testi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 107, 255, 0.4);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testi-text {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #5b6bff, #8a94ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text);
    font-size: 0.9rem;
}

.user-info h4 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 16px;
    background-color: var(--surface-2);
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

footer p:first-of-type {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 1000px;
    margin: 16px auto;
    padding: 0 20px;
    text-align: justify;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    background: linear-gradient(to right, rgba(91, 107, 255, 0.15), transparent);
}

footer p:not(:first-of-type) {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .produk-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .produk-item {
        padding: 10px;
        border-radius: 12px;
    }

    .produk-item h2 {
        font-size: 0.9rem;
    }

    .produk-item p {
        font-size: 0.78rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .deposit-promo-float {
        right: 18px;
        bottom: 80px;
        min-width: 156px;
        padding: 9px 10px;
        border-radius: 12px;
    }

    .deposit-promo-float .promo-kicker {
        font-size: 0.64rem;
    }

    .deposit-promo-float strong {
        font-size: 0.84rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 420px) {
    .produk-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .produk-item img {
        border-radius: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .deposit-promo-float {
        min-width: 144px;
        bottom: 78px;
    }
}

@media (max-width: 340px) {
    .produk-container {
        grid-template-columns: 1fr;
    }
}





