/* 
    NGOPYIUK PREMIUM DESIGN SYSTEM 
    Global Styles for Homepage, Brand Pages, and Admin
*/

:root {
    --primary: #FF70C1; /* New Logo Pink */
    --primary-light: #FF9ED5;
    --secondary: #D4ADFC; /* New Soft Purple/Lavender */
    --accent: #6BCB77; 
    --extra: #4D96FF; 
    --bg-cream: #FFFDF9;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 10px 30px rgba(255, 112, 193, 0.1);
    --shadow-hover: 0 15px 40px rgba(255, 112, 193, 0.2);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* NAVBAR PREMIUM */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 160px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background: white; /* Optional: adds a small white background if logo is transparent and needs it */
    padding: 2px;
}

.logo-icon {
    display: none;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    background: rgba(0,0,0,0.03);
    padding: 8px 24px;
    border-radius: 100px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* HERO SECTION */
.hero-welcome {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(255, 112, 193, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(212, 173, 252, 0.08), transparent),
                var(--bg-cream);
    position: relative;
}

.welcome-box h1 {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.welcome-box p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 45px;
    font-weight: 500;
}

/* BRAND SELECTOR / TABS */
.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    overflow-x: auto;
    padding: 10px;
}

.pill-item {
    padding: 14px 28px;
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    color: var(--text-dark);
}

.pill-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.3);
    transform: translateY(-4px) scale(1.05);
}

/* AUTO-GENERATED CATEGORY NAV */
.category-nav {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px;
    overflow-x: auto;
    padding: 10px 5px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-item-auto {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: 100px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.cat-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.cat-text {
    font-size: 13px;
    font-weight: 800;
    color: #444;
    letter-spacing: 0.5px;
}

/* Active State */
.cat-item-auto.active {
    background: var(--active-color, var(--primary));
    border-color: var(--active-color, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cat-item-auto.active .cat-icon-wrapper {
    background: rgba(255,255,255,0.2);
    color: white;
}

.cat-item-auto.active .cat-text {
    color: white;
}

/* MOBILE REFINEMENT: Icon Only */
@media (max-width: 768px) {
    .cat-item-auto {
        padding: 8px; 
        width: 52px;
        height: 52px;
        justify-content: center;
        gap: 0;
    }

    .cat-text {
        display: none;
    }

    .cat-icon-wrapper {
        width: 100%;
        height: 100%;
        background: none;
        font-size: 20px;
        color: #555;
    }
    
    .cat-item-auto.active .cat-icon-wrapper {
        background: none;
        color: white;
    }
}

/* PRODUCT GRID ADAPTIVE */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 Columns */
    gap: 15px;
    margin-top: 20px;
}

/* TABLET: 3-4 Columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* DESKTOP: Horizontal List View for Products */
@media (min-width: 1025px) {
    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Desktop Brand Grid: Centered and Narrow to match text above */
    .brand-grid-home {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 750px; /* Match the width of the welcome text block */
        margin: 0 auto !important;
        padding: 0 20px;
    }

    .brand-grid-home .product-card {
        flex-direction: row !important;
        justify-content: space-between !important; /* Spread elements apart */
        padding: 15px 35px !important;
        height: 85px !important;
        align-items: center !important;
        background: white !important;
        border-radius: 100px !important; /* Pill shape looks more premium in rows */
    }

    .brand-grid-home .img-box {
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        flex-shrink: 0;
    }

    .brand-grid-home .p-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        margin-left: 25px;
        gap: 20px;
    }

    .brand-grid-home .p-info h4 {
        margin: 0 !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        flex: 1;
        text-align: left;
    }

    .brand-grid-home .p-info p {
        margin: 0 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        white-space: nowrap;
        background: #fff0f6;
        padding: 6px 16px;
        border-radius: 100px;
    }

    .brand-grid-home .p-info h4 {
        margin: 0 !important;
        font-size: 18px !important;
    }

    .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        padding: 12px 20px !important;
        gap: 20px;
    }

    .img-box {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .p-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .p-info h4 {
        height: auto !important;
        margin-bottom: 4px !important;
        font-size: 16px !important;
    }

    .p-price-area {
        flex-direction: row !important;
        align-items: baseline;
        gap: 8px;
    }

    /* Desktop Quanty Stepper to the Right */
    .card-actions {
        margin-left: auto;
    }
}

/* PRODUCT CARD PREMIUM */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: prodFadeIn 0.5s ease-out forwards;
}

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

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 107, 0.1);
}

.img-box {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: #fdfdfd;
    margin-bottom: 10px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-dark);
}

.p-price-area {
    display: flex;
    flex-direction: column;
}

.p-old-price {
    font-size: 11px;
    text-decoration: line-through;
    color: #ccc;
}

.p-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary); /* Green accent */
}

/* QUANTITY STEPPER */
.stepper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 2px;
    gap: 10px;
}

.btn-step {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.btn-step:hover {
    background: var(--primary);
    color: white;
}

.step-val {
    font-weight: 800;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.btn-details {
    transition: 0.3s;
    opacity: 0.4;
}

.btn-details:hover {
    opacity: 1;
    color: var(--primary) !important;
}

/* CATEGORY BADGE */
.cat-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: #aaa;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* ADMIN PANEL OVERLAY */
.admin-modal-content {
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

/* PROMO TERMS BOX */
.promo-terms-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #F0F0F0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.promo-terms-box {
    background: #fdfdfd;
    font-size: 13px;
    color: var(--text-light);
}

.promo-terms-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-terms-box ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    border-bottom: 1px dashed #eee;
}

.promo-terms-box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.promo-terms-box li:last-child {
    border-bottom: none;
}

#toggleTermsBtn {
    transition: 0.3s;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

#toggleTermsBtn:hover {
    background: #f0f0f0 !important;
}

#toggleTermsBtn i.fa-chevron-down {
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ACTION BUTTONS (CARA ORDER / WIFI) */
.btn-terms-action {
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-terms-action:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.terms-btns-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* BRAND HEADER DETAIL */
.brand-header-detail {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(to right, white, #FFFDF9);
    padding: 30px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 2px solid #FDFDFD;
    position: relative;
    overflow: hidden;
}

.brand-header-detail::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--secondary);
    opacity: 0.1;
    border-radius: 50%;
}

.brand-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 18px;
}

.brand-header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-title-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.brand-badges {
    display: flex;
    gap: 10px;
}

.brand.p-price-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.disc-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.count-tag {
    background: #fff3e0;
    color: #ef6c00;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.admin-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    /* COMPACT NAVBAR */
    .header-nav { padding: 10px 0; height: 60px; }
    .logo-icon { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
    .brand-name { font-size: 18px; }
    .nav-links { display: none; }
    .btn-admin { padding: 6px 12px !important; font-size: 11px !important; }

    /* HERO SECTION */
    .hero-welcome { padding: 30px 0 10px; text-align: center; }
    .welcome-box h1 { font-size: 26px; }

    /* STICKY CATEGORY NAV (PILL STYLE) */
    #categoryNav {
        position: sticky;
        top: 55px;
        z-index: 900;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        padding: 12px 0;
        margin: 0 -20px 15px;
        padding-left: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scrollbar-width: none;
    }
    #categoryNav::-webkit-scrollbar { display: none; }

    .cat-item {
        flex-direction: row !important;
        min-width: fit-content !important;
        height: 40px !important;
        padding: 0 18px !important;
        border-radius: 100px !important;
        background: white;
        border: 1px solid #f0f0f0 !important;
        gap: 8px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    }
    .cat-item i { font-size: 14px !important; }
    .cat-item span { font-size: 12px !important; font-weight: 700 !important; }
    .cat-item.active {
        background: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
        box-shadow: 0 8px 20px rgba(255, 112, 193, 0.2) !important;
    }

    /* MOBILE LIST VIEW (1 COLUMN) */
    .product-grid { 
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* KEEP HOME BRAND CARDS AS GRID */
    .brand-grid-home {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* MOBILE HEADER OPTIMIZATION */
    header {
        padding: 8px 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
    }

    .nav-container {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .logo-area { 
        margin-bottom: 2px;
    }
    
    .logo-img {
        height: 24px !important;
    }

    .brand-name {
        font-size: 16px !important;
    }

    /* HERO SECTION */
    .hero-welcome { padding: 40px 0 20px; text-align: center; }
    .welcome-box h1 { font-size: 32px; margin-bottom: 10px; }
    .welcome-box p { font-size: 16px; margin-bottom: 25px; }

    .brand-tabs {
        margin: 15px 0 !important;
        padding: 5px !important;
        gap: 8px !important;
    }

    .pill-item {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }

    .nav-links {
        display: none !important;
    }

    /* Brand Detail Page spacing */
    #menu.container {
        padding-top: 15px !important;
    }

    .brand-header-detail {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        margin-bottom: 25px !important;
        padding: 20px !important;
    }

    .brand-logo-img {
        width: 60px !important;
        height: 60px !important;
    }

    .brand-title-main {
        font-size: 24px !important;
    }

    .brand-grid-home .product-card {
        flex-direction: column !important;
        text-align: center;
        padding: 15px !important;
        border: 2px solid white !important;
        box-shadow: 0 10px 25px rgba(255, 112, 193, 0.05) !important;
    }
    .brand-grid-home .product-card:hover {
        box-shadow: 0 15px 35px rgba(255, 112, 193, 0.15) !important;
        border-color: var(--primary-light) !important;
    }
    
    .product-card .img-box { 
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        border-radius: 14px !important;
    }
    
    .p-info {
        flex-grow: 1;
        text-align: left;
        padding: 0;
    }

    .p-info h4 { 
        font-size: 14px !important;
        height: auto !important;
        margin-bottom: 4px !important;
    }

    .p-price-area {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .btn-step {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .btn-add-initial {
        background: var(--primary);
        color: white;
        border: none;
    }

    /* ADMIN MOBILE FIXES - ULTRA STABLE */
    body.admin-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    #adminOverlay {
        display: none;
        align-items: flex-start;
        justify-content: center;
        padding: 10px;
        width: 100vw !important;
        overflow-x: hidden !important;
        left: 0;
    }

    .admin-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 15px !important;
        border-radius: 20px !important;
        min-height: auto !important;
        overflow-x: hidden !important;
        position: relative;
    }

    
    .admin-modal-content .brand-tabs {
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        margin: 20px -15px !important; /* Full width bleed */
        padding: 0 15px 15px !important;
        scrollbar-width: none;
    }

    .admin-header-area {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    /* REPLACING TABLE WITH CARDS ON MOBILE */
    #adminProductList {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }

    #adminProductList tr {
        display: flex !important;
        background: #fff;
        border: 1px solid #eee !important;
        border-radius: 16px;
        padding: 12px !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #adminProductList td { 
        padding: 0 !important; 
        border: none !important; 
    }

    #adminProductList td:nth-child(1) { width: 50px; margin-right: 12px; } /* Img */
    #adminProductList td:nth-child(2) { flex: 1; min-width: 0; }           /* Info */
    #adminProductList td:nth-child(3) { display: none; }                   /* Hide table price */
    #adminProductList td:nth-child(4) { width: auto; margin-left: 10px; } /* Actions */

    thead { display: none !important; }
    table { display: block !important; width: 100% !important; }
    tbody { display: flex !important; flex-direction: column; gap: 10px; width: 100% !important; }

    .admin-form-grid { grid-template-columns: 1fr !important; }
    
    /* FOOTER GRID FOR GLOBAL SETTINGS */
    .admin-modal-content > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Stack WA & WiFi Inputs */
    .admin-modal-content div[style*="display: flex; gap: 12px"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .admin-modal-content div[style*="display: flex; gap: 12px"] input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .admin-modal-content div[style*="display: flex; gap: 12px"] button {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    /* Adjust Code Output Area */
    #adminOutputCode {
        height: 150px !important;
    }


/* ADMIN PREMIUM REDESIGN */
.admin-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.admin-product-card {
    background: white;
    border-radius: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.admin-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.admin-card-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
}

.admin-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card-info {
    flex-grow: 1;
    min-width: 0;
}

.admin-card-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-card-cat {
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.admin-card-prices {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.admin-price-now {
    font-weight: 800;
    color: var(--primary);
    font-size: 13px;
}

.admin-price-old {
    font-size: 10px;
    text-decoration: line-through;
    color: #ccc;
}

.admin-card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-card-actions button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.admin-btn-edit {
    background: #ebf5ff;
    color: #3182ce;
}

.admin-btn-edit:hover {
    background: #3182ce;
    color: white;
}

.admin-btn-delete {
    background: #fff5f5;
    color: #e53e3e;
}

.admin-btn-delete:hover {
    background: #e53e3e;
    color: white;
}

/* Responsive Admin Overlay */
/* Responsive Admin Overlay */
@media (max-width: 768px) {
    .admin-modal-content {
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100vh;
    }
    
    .admin-product-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-header-area {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .admin-search-wrapper {
        max-width: 100% !important;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.2s ease-in-out 0s 2;
    border-color: #ff4757 !important;
}

/* FINAL POLISH */
.btn-up i { font-size: 14px; }
.cart-count-badge { font-weight: 900; }
.cart-input:focus { background: rgba(255,255,255,0.25); }

/* FLOATING CART BAR PREMIUM */
#cartSection {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    background: linear-gradient(135deg, var(--primary), #FF8E8E);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 18px 30px;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-up {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-up:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.cart-summary-text {
    display: flex;
    flex-direction: column;
}

.cart-total-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.cart-total-value { font-size: 20px; font-weight: 800; color: #fff; }

.cart-form-area {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 400px;
}

.cart-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 15px;
    color: white;
    font-size: 13px;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.btn-order-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    white-space: nowrap;
}

.cart-icon-float {
    background: white;
    color: #2d5a5a;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    transition: 0.3s;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: var(--text-dark);
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* CART ORDER LIST POPUP */
.cart-order-list {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 25px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 107, 107, 0.1);
    color: var(--text-dark);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-order-list.active {
    display: flex;
}

@keyframes popIn {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.cart-list-header {
    background: #fdfdfd;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--primary);
}

.btn-close-list {
    background: #eee;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
}

.cart-list-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 20px;
}

.cart-item-row {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 700;
    font-size: 14px;
}

.cart-item-brand {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
}

.cart-item-qty {
    font-weight: 800;
    color: var(--primary);
    background: #fff0f0;
    padding: 2px 8px;
    border-radius: 6px;
    height: fit-content;
}

.cart-item-note {
    grid-column: span 2;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    outline: none;
    transition: 0.3s;
}

.cart-item-note:focus {
    border-color: var(--primary-light);
    background: white;
}

.cart-list-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

/* CATEGORY NAV PREMIUM - GLOBAL */
.category-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 25px;
    scrollbar-width: none;
    margin-bottom: 20px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 25px !important;
    background: white;
    border: 1px solid #eee !important;
    border-radius: 100px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: fit-content !important;
    height: auto !important;
    text-align: center;
    gap: 10px !important;
    color: #888 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.cat-item i {
    font-size: 16px !important;
    color: inherit !important;
}

.cat-item span {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit !important;
}

.cat-item:hover {
    border-color: var(--primary-light) !important;
    transform: translateY(-3px);
    color: var(--primary) !important;
}

.cat-item.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(255, 112, 193, 0.25) !important;
    transform: translateY(-5px) scale(1.05);
}

.cat-item.active i, .cat-item.active span {
    color: white !important;
}

/* HERO SECTION */
.hero-welcome {
    padding: 120px 0 80px; /* Increased top padding for sticky header */
    text-align: center;
    background: radial-gradient(circle at top right, #FFF3E0, transparent),
                radial-gradient(circle at bottom left, #E8F5E9, transparent),
                var(--bg-cream);
}

@media (max-width: 768px) {
    .header-nav {
        background: white !important; /* Solid white on mobile for clarity */
        padding: 15px 0 5px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        align-items: center;
    }
    
    .logo-area {
        min-width: unset;
        justify-content: center;
        width: 100%;
    }

    .nav-links {
        display: flex;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 20px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        background: #fdfdfd;
        border-top: 1px solid #f0f0f0;
    }

    .hero-welcome {
        padding: 150px 20px 60px; /* Increased for better mobile clearance */
    }

    /* Brand Header Box Mobile Fix */
    .brand-header-box {
        padding: 40px 15px 15px !important; /* Increased top padding */
        margin-top: 10px !important;
    }
    
    .brand-info-main h2 {
        font-size: 28px !important;
        margin-top: 5px;
    }

    .logo-img-container {
        width: 80px !important;
        height: 80px !important;
    }
}
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .nav-links a {
        font-size: 11px;
        padding: 4px 8px;
    }

    .cat-item {
        min-width: 75px;
        height: 75px;
        border-radius: 20px;
    }
    .cat-item i { font-size: 18px; }
    .cat-item span { font-size: 9px; }
}

/* FINAL POLISH */
.btn-up i { font-size: 14px; }
.cart-count-badge { font-weight: 900; }
.cart-input:focus { background: rgba(255,255,255,0.25); }

/* SIMPLE FORM STYLES */
.form-group-simple {
    margin-bottom: 25px;
    text-align: left;
}
.form-group-simple label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.form-group-simple input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #f0f0f0;
    background: none;
    font-size: 16px;
    font-weight: 700;
    color: #444;
    transition: all 0.3s ease;
    border-radius: 0;
}
.form-group-simple input:focus {
    outline: none;
    border-bottom-color: var(--primary);
    transform: translateY(-2px);
}
.form-group-simple input::placeholder {
    color: #eee;
    font-weight: 400;
}




/* MOBILE OPTIMIZATIONS (Max Width 1024px) */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr; /* Single column for list view */
        gap: 12px;
        padding: 10px;
    }

    .product-card {
        flex-direction: row !important;
        align-items: center;
        padding: 12px;
        gap: 15px;
        border-radius: 20px;
        min-height: auto;
    }

    .img-box {
        width: 85px !important;
        height: 85px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        border-radius: 14px;
    }

    .p-info {
        flex: 1;
        text-align: left;
        padding: 0;
    }

    .p-info h4 {
        font-size: 15px !important;
        margin-bottom: 4px !important;
        height: auto !important;
        line-height: 1.3;
    }

    .p-price-area {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0;
    }

    .p-price {
        font-size: 16px !important;
    }

    .card-actions {
        position: absolute;
        bottom: 12px;
        right: 12px;
        margin: 0;
    }

    .stepper {
        padding: 1px;
        gap: 5px;
        background: #f8fafc;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .btn-step {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .btn-add-initial {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--primary), #ff9ccb);
        color: white;
        box-shadow: 0 5px 15px rgba(255, 112, 193, 0.3);
    }
}

/* ============================================================
   FLOATING CART SYSTEM (SYNCED DESKTOP & MOBILE)
============================================================ */
#cartSection {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

/* CART BAR CONTAINER */
.cart-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto 20px;
    border-radius: 24px;
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-summary-text {
    display: flex;
    flex-direction: column;
}

.cart-total-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: #888;
    letter-spacing: 0.5px;
}

.cart-total-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

/* FORM AREA */
.cart-form-area {
    flex: 1;
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.cart-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd; /* Slightly darker border */
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: #ffffff; /* Solid white background */
    color: #333333; /* Dark text for visibility */
    transition: 0.3s;
}

.cart-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 112, 193, 0.1);
}

/* BUTTONS */
.btn-up {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: #f0f0f0;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-up:hover {
    background: #e0e0e0;
}

.btn-order-whatsapp {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-order-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 112, 193, 0.3);
}

/* CART ICON FLOAT */
.cart-icon-float {
    position: relative;
    width: 48px;
    height: 48px;
    background: #FFF0F6;
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* DETAIL LIST (POPUP) */
.cart-order-list {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid #eee;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-order-list.active {
    display: flex;
}

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

.cart-list-header {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 14px;
}

.btn-close-list {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-list-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-row {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    display: grid;
    grid-template-areas: "info qty" "note note";
    gap: 8px;
}

.cart-item-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

.cart-item-brand {
    font-size: 10px;
    color: #999;
}

.cart-item-qty {
    grid-area: qty;
    text-align: right;
    font-weight: 900;
    color: var(--primary);
}

.cart-item-note {
    grid-area: note;
    width: 100%;
    border: 1px solid #eee;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    outline: none;
}

/* SLIM MOBILE CART OVERRIDE (MOBILE ONLY - NO DESKTOP CHANGES) */
@media (max-width: 1024px) {
    #cartSection {
        position: fixed !important;
        bottom: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 92% !important;
        max-width: 380px !important;
        z-index: 9999 !important;
        background: transparent !important;
        padding: 0 !important;
        display: block;
    }

    .cart-container {
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 112, 193, 0.3) !important;
        border-radius: 100px !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
        margin: 0 !important;
        gap: 8px !important;
    }
    
    .cart-left {
        gap: 8px !important;
        margin: 0 !important;
    }

    .cart-summary-text .cart-total-value {
        font-size: 14px !important;
        font-weight: 900 !important;
        color: var(--primary) !important;
        white-space: nowrap !important;
    }

    .btn-order-whatsapp {
        padding: 10px 18px !important;
        font-size: 13px !important;
        border-radius: 100px !important;
        background: var(--primary) !important;
        margin: 0 !important;
    }

    .cart-icon-float {
        width: 38px !important;
        height: 38px !important;
        background: #fff0f6 !important;
        border-radius: 50% !important;
        margin: 0 !important;
    }

    .cart-order-list {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 70px !important;
        border-radius: 20px !important;
    }

    /* Hide redundant elements on mobile bar */
    .cart-total-label, .cart-form-area, .btn-up { 
        display: none !important; 
    }
}

/* MOBILE OVERRIDES (COMBINED) */
@media (max-width: 1024px) {
    /* HERO SECTION COMPACT */
    .hero-welcome {
        padding: 25px 0 15px !important;
    }

    .welcome-box h1 {
        font-size: 26px !important;
        margin-bottom: 5px !important;
    }

    /* MOBILE HEADER ADJUSTMENTS - GRID METHOD (STABLE) */
    .navbar {
        display: grid !important;
        grid-template-columns: 50px 1fr 50px !important;
        align-items: center !important;
        padding: 10px 15px !important;
        height: 60px !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .mobile-menu-btn {
        grid-column: 1;
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        font-size: 22px !important;
        color: var(--primary) !important;
        transform: none !important;
    }

    .logo-area {
        grid-column: 2;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: auto !important;
    }
    
    .logo-img {
        height: 30px !important;
    }

    .brand-name {
        font-size: 16px !important;
    }

    /* Add a pseudo-element for the 3rd column to maintain symmetry */
    .navbar::after {
        content: "";
        grid-column: 3;
    }
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    box-shadow: 10px 0 40px rgba(0,0,0,0.1);
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-drawer {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.drawer-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.drawer-links a i {
    width: 24px;
    color: var(--primary);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2900;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.cart-list-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.cart-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.total-price-text {
    font-weight: 900;
    font-size: 20px;
    color: var(--primary);
}

.cart-popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.hide-desktop { display: none; }
@media (max-width: 1024px) {
    .hide-desktop { display: block; }
    .hide-mobile { display: none !important; }
}

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 112, 193, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 112, 193, 0.5);
}

.btn-back-to-top:active {
    transform: scale(0.9);
}

@media (max-width: 1024px) {
    .btn-back-to-top {
        bottom: 100px; /* Di atas floating cart mobile */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* UNIQUE TESTIMONIAL SECTION - CENTER ALIGNED */
.ng-testi-section {
    margin: 60px auto 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.testi-header {
    text-align: center;
    margin-bottom: 35px;
}

.testi-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.testi-header i {
    color: var(--primary);
    margin-right: 10px;
}

.ng-testi-grid {
    display: flex !important;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ng-testi-grid::-webkit-scrollbar {
    display: none;
}

.ng-testi-card {
    flex: 0 0 300px !important;
    width: 300px !important;
    background: white !important;
    padding: 35px 25px !important; /* Extra vertical padding */
    border-radius: 28px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06) !important;
    scroll-snap-align: center;
    border: 1px solid rgba(0,0,0,0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* CENTER EVERYTHING */
    text-align: center !important; /* CENTER TEXT */
    gap: 20px !important;
    box-sizing: border-box;
}

.testi-stars {
    color: #FFBC0D !important;
    font-size: 15px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.testi-text {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.7 !important;
    font-style: italic !important;
    margin: 0 !important;
    flex-grow: 1;
}

.testi-user {
    display: flex !important;
    flex-direction: column !important; /* STACK VERTICALLY */
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 10px;
}

.testi-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important; /* CIRCULAR AS PER SCREENSHOT */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    margin: 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testi-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.testi-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

.testi-status {
    font-size: 10px !important;
    color: #27AE60 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #e9f7ef;
    padding: 4px 10px;
    border-radius: 100px;
}

/* DESKTOP: SYMMETRICAL GRID */
@media (min-width: 1025px) {
    .ng-testi-section {
        max-width: 1000px !important; /* Make it wider to fit 3 cards properly */
        margin: 60px auto 0 !important;
        padding: 0 !important;
    }

    .ng-testi-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        overflow-x: visible !important;
        padding: 0 !important;
        gap: 25px !important;
    }

    .ng-testi-card {
        flex: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* SPLASH SCREEN */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo img {
    width: 140px;
    height: auto;
    margin-bottom: 15px; /* Reduced for better centering balance */
    animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

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

.splash-content p {
    font-weight: 700;
    color: #444;
    font-size: 14px;
}

/* ADMIN OVERLAY REFINED */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-panel {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}

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

.admin-header {
    background: #f8f9fa;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.admin-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.admin-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
}

.admin-body {
    padding: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.btn-admin-task {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: white;
    font-weight: 800;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-admin-task:hover {
    background: #f8f9fa;
    border-color: #ddd;
    transform: translateY(-2px);
}

/* PREMIUM PRICE TYPOGRAPHY */
.p-price-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.p-price {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 2px !important;
}

.p-price::before {
    content: "Rp";
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-right: 1px !important;
    color: var(--primary) !important;
    opacity: 0.9 !important;
}

.p-old-price {
    font-size: 12px !important;
    color: #bbb !important;
    text-decoration: line-through !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 1px !important;
}

.p-old-price::before {
    content: "Rp";
    font-size: 10px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .p-price {
        font-size: 16px !important;
    }
    .p-price::before {
        font-size: 10px !important;
    }
}
