@import url('partials.css');

/* ==============
   TAMPILAN DASAR
   ============== */
:root {
    --brand-maroon: #7A0C2E;
    --brand-maroon-dark: #4A0318;
    --brand-soft-red: #FFF0F4;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --radius-lg: 20px;
    --radius-md: 12px;
}

body.page-beranda {
    font-family: 'Poppins', sans-serif !important;
    background-color: #FAFAFB;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.navbar, header, .bottom-nav, .mobile-nav {
    z-index: 9999 !important;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====
   HERO
   ==== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
    z-index: 1;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(0,0,0,0.2) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-text-box {
    max-width: 620px;
    color: #FFFFFF;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: clamp(14px, 2vw, 16px);
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--brand-maroon);
    color: #FFF;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(122, 12, 46, 0.4);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: #FFF;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* ================
   FLOATING FEATURES
   ================ */
.features-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.features-glass-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border: 1px solid #F1F5F9;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.f-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-soft-red);
    color: var(--brand-maroon);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-item h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ====================
   SECTIONS DAN HEADING
   ==================== */
.section { padding: 60px 0; }

.section-header { 
    text-align: center; 
    margin-bottom: 35px; 
}

.sub-tag {
    color: var(--brand-maroon);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-title {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    margin-top: 6px;
}

/* ========
   KATEGORI
   ======== */
.kategori-animated-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-kat-anim {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

.kat-link { 
    text-decoration: none; 
    color: inherit; 
}

.kat-img-box {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.kategori-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.kat-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(122, 12, 46, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-weight: 600;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-kat-anim h3 {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
}

/* ======
   PRODUK
   ====== */
.section-produk-loop {
    width: 100%;
    overflow: hidden;
}

.scroll-product-rail {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px 0;
    position: relative;
}

.scroll-product-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.product-item-card {
    width: 270px;
    flex-shrink: 0;
    display: flex;
}

.product-modern-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.p-img-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #F8FAFC;
}

.p-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.p-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #94A3B8;
    font-size: 28px;
}

.badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(5px);
    color: var(--brand-maroon);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.p-details { 
    padding: 12px 4px 4px 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.p-details h4 { 
    font-size: 14px; 
    font-weight: 600; 
    margin: 0 0 8px 0; 
}

.p-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-val { 
    font-weight: 700; 
    color: var(--brand-maroon); 
    font-size: 15px; 
}

.btn-quick-view {
    width: 34px;
    height: 34px;
    background: var(--brand-soft-red);
    color: var(--brand-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============
   BANNER PROMO
   ============ */
.section-promo-glass { 
    padding-bottom: 80px; 
}

.glass-banner {
    background: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-maroon-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    color: #FFF;
}

.glass-content h2 { 
    font-size: clamp(20px, 3.5vw, 32px); 
    font-weight: 700; 
    margin-bottom: 10px; 
}

.glass-content p { 
    color: #E2E8F0; 
    font-size: clamp(13px, 2vw, 15px); 
    max-width: 600px; 
    margin: 0 auto 24px auto; 
}

.btn-glass-cta {
    display: inline-block;
    background: #FFF;
    color: var(--brand-maroon);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==================
   EFEK HOVER DESKTOP
   ================== */
@media (hover: hover) and (pointer: fine) {
    .btn-hero-primary:hover {
        background: #96133B;
        transform: translateY(-3px);
    }

    .btn-hero-secondary:hover {
        background: #FFF;
        color: var(--text-dark);
    }

    .card-kat-anim:hover .kat-hover-overlay { opacity: 1; }

    .product-modern-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 35px rgba(0,0,0,0.08);
    }

    .product-modern-card:hover .p-img-wrapper img {
        transform: scale(1.08);
    }

    .btn-quick-view:hover {
        background: var(--brand-maroon);
        color: #FFF;
    }
}

/* =========================
   RESPONSIF MOBILE & TABLET
   ========================= */
@media (min-width: 769px) {
    .navbar, header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }

    .hero-section {
        margin-top: 60px;
    }
}

@media (max-width: 992px) {
    .container { padding: 0 20px; }

    .features-glass-card {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
        gap: 15px;
    }
    .feature-item p { display: none; }

    .kategori-animated-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-item-card { width: 240px; }

    .section-promo-glass { padding-bottom: 100px; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }

    .hero-section { 
        min-height: 70vh; 
        padding: 40px 0; 
    }

    .hero-cta-group { width: 100%; }

    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
    .features-wrapper { margin-top: -20px; }

    .features-glass-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .feature-item p { display: block; }

    .kategori-animated-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-item-card { width: 190px; }

    .scroll-product-wrapper { gap: 12px; }

    .glass-banner { padding: 32px 20px; }
    
    .section-promo-glass { 
        padding-bottom: 120px; 
        margin-bottom: 20px;
    }
}