/* ==========================================
   NVR SHOP
   Global Style
========================================== */

:root{

    --primary:#2563eb;
    --secondary:#1e40af;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;

    --bg:#f5f7fb;
    --card:#ffffff;

    --text:#222;
    --text-light:#666;

    --border:#e5e7eb;

    --radius:12px;

    --shadow:0 5px 18px rgba(0,0,0,.08);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Poppins",sans-serif;

    background:var(--bg);

    color:var(--text);

}

/* ===================== */

.container{

    width:95%;
    max-width:1400px;

    margin:auto;

}

/* ===================== HEADER ===================== */

header{

    position:sticky;

    top:0;

    z-index:999;

    background:#fff;

    box-shadow:var(--shadow);

}

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:72px;

}

.logo{

    text-decoration:none;

    font-size:28px;

    font-weight:700;

    color:var(--primary);

}

nav{

    display:flex;

    gap:20px;

}

nav a{

    color:#333;

    text-decoration:none;

    font-weight:500;

}

nav a:hover{

    color:var(--primary);

}

/* ===================== SEARCH ===================== */

#searchForm{

    width:420px;

}

#searchInput{

    width:100%;

    padding:12px 15px;

    border:1px solid var(--border);

    border-radius:30px;

    outline:none;

}

/* ===================== HERO ===================== */

.hero{

    background:linear-gradient(135deg,#2563eb,#1e3a8a);

    color:white;

    padding:70px 0;

}

.hero-content{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

    align-items:center;

}

.hero h1{

    font-size:48px;

    margin-bottom:20px;

}

.hero p{

    font-size:18px;

    line-height:1.8;

}

.hero img{

    width:100%;

}

/* ===================== BUTTON ===================== */

.btn{

    margin-top:20px;

    padding:14px 28px;

    border:none;

    border-radius:8px;

    cursor:pointer;

    background:var(--primary);

    color:white;

    font-weight:600;

}

.btn:hover{

    background:var(--secondary);

}

/* ===================== SECTION ===================== */

section{

    margin:50px 0;

}

.section-title{

    margin-bottom:25px;

}

.section-title h2{

    font-size:30px;

}

/* ===================== GRID ===================== */

.category-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));

    gap:18px;

}

.product-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));

    gap:25px;

}

/* ===================== CARD ===================== */

.card{

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

.product-card{

    background:white;

    border-radius:12px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.3s;

}

.product-card:hover{

    transform:translateY(-6px);

}

.product-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.product-info{

    padding:15px;

}

.product-title{

    font-weight:600;

    margin-bottom:10px;

}

.price{

    color:var(--danger);

    font-size:22px;

    font-weight:700;

}

/* ===================== FOOTER ===================== */

footer{

    margin-top:80px;

    background:#111827;

    color:white;

}

.footer{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    padding:50px 0;

}

.footer a{

    display:block;

    color:#ddd;

    text-decoration:none;

    margin-top:10px;

}

/* ===================== FLOAT BUTTON ===================== */

.floating-cart{

    position:fixed;

    bottom:25px;

    right:25px;

    width:65px;

    height:65px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:white;

    font-size:25px;

    cursor:pointer;

    box-shadow:var(--shadow);

}

#cartCount{

    position:absolute;

    top:-5px;

    right:-5px;

    background:red;

    width:25px;

    height:25px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:13px;

}

.floating-top{

    position:fixed;

    right:25px;

    bottom:105px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#333;

    color:white;

    cursor:pointer;

}

/* ===================== BADGE ===================== */

.badge{

    display:inline-block;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;

    color:white;

}

.badge-success{

    background:var(--success);

}

.badge-danger{

    background:var(--danger);

}

.badge-warning{

    background:var(--warning);

}

/* ===================== RESPONSIVE ===================== */

@media(max-width:992px){

    .hero-content{

        grid-template-columns:1fr;

    }

    .footer{

        grid-template-columns:1fr;

    }

    .navbar{

        flex-direction:column;

        height:auto;

        padding:15px;

        gap:15px;

    }

    #searchForm{

        width:100%;

    }

    nav{

        flex-wrap:wrap;

        justify-content:center;

    }

}

@media(max-width:576px){

    .hero h1{

        font-size:34px;

    }

    .product-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .category-grid{

        grid-template-columns:repeat(2,1fr);

    }

}
/* ===================== CATEGORY BUTTON ===================== */

.category-btn{

    padding:10px 18px;

    border:1px solid var(--border);

    border-radius:30px;

    background:var(--card);

    cursor:pointer;

    font-family:inherit;

    font-weight:500;

    transition:.2s;

}

.category-btn:hover{

    border-color:var(--primary);

    color:var(--primary);

}

.category-btn.active{

    background:var(--primary);

    border-color:var(--primary);

    color:white;

}

/* ===================== PRODUCT ACTION ===================== */

.price-old{

    color:var(--text-light);

    text-decoration:line-through;

    font-size:13px;

}

.product-action{

    display:flex;

    gap:10px;

    margin-top:12px;

}

.product-action button{

    flex:1;

    padding:10px;

    border:none;

    border-radius:8px;

    cursor:pointer;

    font-weight:600;

    font-family:inherit;

}

.btn-detail{

    background:var(--bg);

    color:var(--text);

    border:1px solid var(--border) !important;

}

.btn-cart{

    background:var(--primary);

    color:white;

}

.btn-cart:hover{

    background:var(--secondary);

}

.btn-cart:disabled{

    background:#ccc;

    cursor:not-allowed;

}

/* ===================== PAGINATION ===================== */

#pagination{

    display:flex;

    justify-content:center;

    gap:8px;

    margin-top:30px;

    flex-wrap:wrap;

}

.page-btn{

    min-width:40px;

    height:40px;

    border:1px solid var(--border);

    background:var(--card);

    border-radius:8px;

    cursor:pointer;

    font-family:inherit;

}

.page-btn.active{

    background:var(--primary);

    color:white;

    border-color:var(--primary);

}

.page-btn:disabled{

    opacity:.4;

    cursor:not-allowed;

}

/* ===================== EMPTY STATE ===================== */

.empty{

    grid-column:1/-1;

    text-align:center;

    padding:40px;

    color:var(--text-light);

}

/* ===================== BANNER SLIDER ===================== */

.banner-slider{

    position:relative;

    overflow:hidden;

    border-radius:var(--radius);

}

.banner-track{

    display:flex;

    transition:transform .5s ease;

}

.banner-slide{

    min-width:100%;

}

.banner-slide img{

    width:100%;

    display:block;

    border-radius:var(--radius);

}

.banner-dots{

    position:absolute;

    bottom:15px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:8px;

}

.banner-dot{

    width:10px;

    height:10px;

    border-radius:50%;

    background:rgba(255,255,255,.5);

    cursor:pointer;

}

.banner-dot.active{

    background:white;

}

/* ===================== LOADING ===================== */

#loading{

    position:fixed;

    inset:0;

    background:rgba(255,255,255,.7);

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:9999;

}

.loading-box{

    background:var(--card);

    padding:15px 25px;

    border-radius:8px;

    box-shadow:var(--shadow);

    font-weight:600;

}

/* ===================== TOAST ===================== */

.toast{

    position:fixed;

    bottom:25px;

    left:50%;

    transform:translate(-50%,20px);

    background:#111827;

    color:white;

    padding:12px 22px;

    border-radius:8px;

    opacity:0;

    transition:.3s;

    z-index:9999;

}

.toast.show{

    opacity:1;

    transform:translate(-50%,0);

}

.toast.error{

    background:var(--danger);

}

/* ===================== AUTH PAGES ===================== */

.auth-wrap{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg,#2563eb,#1e3a8a);

    padding:20px;

}

.auth-card{

    background:var(--card);

    width:100%;

    max-width:420px;

    padding:40px 35px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

.auth-logo{

    display:inline-block;

    margin-bottom:20px;

}

.auth-card h1{

    font-size:26px;

    margin-bottom:8px;

}

.auth-subtitle{

    color:var(--text-light);

    margin-bottom:25px;

    font-size:14px;

}

.auth-subtitle a{

    color:var(--primary);

    font-weight:600;

    text-decoration:none;

}

.form-group{

    margin-bottom:18px;

}

.form-group label{

    display:block;

    margin-bottom:6px;

    font-weight:500;

    font-size:14px;

}

.form-group input,
.form-group select,
.form-group textarea{

    width:100%;

    padding:12px 15px;

    border:1px solid var(--border);

    border-radius:8px;

    font-family:inherit;

    font-size:14px;

    outline:none;

}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

    border-color:var(--primary);

}

.form-row-between{

    display:flex;

    justify-content:flex-end;

    margin-bottom:20px;

    font-size:13px;

}

.form-row-between a{

    color:var(--primary);

    text-decoration:none;

}

.btn-block{

    width:100%;

}

.btn-outline{

    background:var(--card);

    color:var(--text);

    border:1px solid var(--border);

}

.btn-outline:hover{

    border-color:var(--primary);

    color:var(--primary);

    background:var(--card);

}

.auth-divider{

    display:flex;

    align-items:center;

    text-align:center;

    color:var(--text-light);

    font-size:13px;

    margin:20px 0;

}

.auth-divider::before,
.auth-divider::after{

    content:"";

    flex:1;

    height:1px;

    background:var(--border);

}

.auth-divider span{

    padding:0 12px;

}

/* ===================== ACCOUNT PAGE ===================== */

.account-wrap{

    display:grid;

    grid-template-columns:260px 1fr;

    gap:30px;

    padding:40px 0 80px;

    align-items:start;

}

.account-sidebar{

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:25px 20px;

    display:flex;

    flex-direction:column;

    gap:8px;

}

.account-avatar-box{

    text-align:center;

    margin-bottom:15px;

}

.account-avatar-box img{

    width:90px;

    height:90px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:12px;

    border:3px solid var(--border);

}

.avatar-upload-label{

    display:block;

    text-align:center;

    font-size:13px;

}

.account-tab{

    text-align:left;

    padding:12px 15px;

    border:none;

    background:transparent;

    border-radius:8px;

    cursor:pointer;

    font-family:inherit;

    font-weight:500;

    font-size:14px;

}

.account-tab:hover{

    background:var(--bg);

}

.account-tab.active{

    background:var(--primary);

    color:white;

}

.account-tab-logout{

    color:var(--danger);

    margin-top:10px;

    border-top:1px solid var(--border);

    padding-top:15px;

    border-radius:0;

}

.account-content{

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:30px;

}

.account-panel{

    display:none;

}

.account-panel.active{

    display:block;

}

.account-panel h2{

    margin-bottom:20px;

    font-size:22px;

}

.panel-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.panel-head h2{

    margin-bottom:0;

}

.text-light{

    color:var(--text-light);

    font-size:13px;

}

/* ===================== ADDRESS CARD ===================== */

.address-list,
.order-list{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.address-card{

    border:1px solid var(--border);

    border-radius:10px;

    padding:16px;

}

.address-card.default{

    border-color:var(--primary);

}

.address-card-head{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:8px;

}

.address-card-actions{

    display:flex;

    gap:10px;

    margin-top:12px;

}

.address-card-actions button{

    padding:6px 14px;

    border:1px solid var(--border);

    background:var(--card);

    border-radius:6px;

    cursor:pointer;

    font-size:13px;

    font-family:inherit;

}

.address-card-actions button:hover{

    border-color:var(--primary);

    color:var(--primary);

}

/* ===================== ORDER CARD ===================== */

.order-card{

    border:1px solid var(--border);

    border-radius:10px;

    padding:16px;

}

.order-card-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:6px;

}

.order-card-total{

    font-weight:700;

    color:var(--danger);

    margin-top:6px;

}

.badge-status.status-pending{ background:var(--warning); }
.badge-status.status-paid{ background:var(--primary); }
.badge-status.status-process{ background:var(--primary); }
.badge-status.status-shipping{ background:var(--secondary); }
.badge-status.status-done{ background:var(--success); }
.badge-status.status-cancel{ background:var(--danger); }
.badge-status.status-refund{ background:#6b7280; }

/* ===================== MODAL ===================== */

.modal{

    display:none;

    position:fixed;

    inset:0;

    z-index:1000;

    align-items:center;

    justify-content:center;

}

.modal.open{

    display:flex;

}

.modal-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.5);

}

.modal-box{

    position:relative;

    background:var(--card);

    border-radius:var(--radius);

    padding:30px;

    width:95%;

    max-width:500px;

    max-height:90vh;

    overflow-y:auto;

}

.modal-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.modal-close{

    border:none;

    background:transparent;

    font-size:26px;

    cursor:pointer;

    line-height:1;

}

.form-grid-2{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

}

@media(max-width:768px){

    .account-wrap{

        grid-template-columns:1fr;

    }

    .form-grid-2{

        grid-template-columns:1fr;

    }

}

/* ===================== CHECKOUT PAGE ===================== */

.checkout-wrap{

    padding:40px 0 80px;

}

.checkout-wrap h1{

    margin-bottom:25px;

}

.checkout-grid{

    display:grid;

    grid-template-columns:1fr 380px;

    gap:25px;

    align-items:start;

}

.checkout-section{

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:22px;

    margin-bottom:20px;

}

.checkout-section h3{

    margin-bottom:15px;

    font-size:17px;

}

.hidden{

    display:none !important;

}

/* ---------- CART ITEMS ---------- */

.cart-items{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.cart-item{

    display:grid;

    grid-template-columns:60px 1fr auto auto;

    gap:14px;

    align-items:center;

}

.cart-item img{

    width:60px;

    height:60px;

    object-fit:cover;

    border-radius:8px;

}

.cart-item-name{

    font-weight:500;

    margin-bottom:4px;

}

.cart-item-qty{

    display:flex;

    align-items:center;

    gap:10px;

}

.cart-item-qty button{

    width:28px;

    height:28px;

    border:1px solid var(--border);

    background:var(--bg);

    border-radius:6px;

    cursor:pointer;

}

.btn-remove-item{

    border:none;

    background:transparent;

    font-size:20px;

    color:var(--danger);

    cursor:pointer;

}

/* ---------- ADDRESS SELECT ---------- */

.address-select-box{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.address-radio{

    display:flex;

    gap:12px;

    align-items:flex-start;

    padding:14px;

    border:1px solid var(--border);

    border-radius:8px;

    cursor:pointer;

}

.address-radio.selected{

    border-color:var(--primary);

    background:#eff6ff;

}

.address-radio input{

    margin-top:4px;

}

/* ---------- SHIPPING / VOUCHER ---------- */

.shipping-row,
.voucher-row{

    display:flex;

    gap:10px;

}

.shipping-row select,
.voucher-row input{

    flex:1;

    padding:12px 15px;

    border:1px solid var(--border);

    border-radius:8px;

    font-family:inherit;

}

/* ---------- PAYMENT METHOD ---------- */

.payment-method-box{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.payment-radio{

    display:flex;

    align-items:center;

    gap:10px;

    padding:14px;

    border:1px solid var(--border);

    border-radius:8px;

    cursor:pointer;

}

.payment-radio.selected{

    border-color:var(--primary);

    background:#eff6ff;

}

/* ---------- SUMMARY ---------- */

.summary-row{

    display:flex;

    justify-content:space-between;

    margin-bottom:12px;

    font-size:14px;

}

.summary-total{

    border-top:1px solid var(--border);

    padding-top:12px;

    margin-top:12px;

    font-weight:700;

    font-size:18px;

    color:var(--danger);

}

/* ---------- RESULT BOX (QRIS / TRANSFER) ---------- */

.result-box{

    max-width:480px;

    margin:0 auto;

    text-align:center;

}

.qris-canvas{

    display:flex;

    justify-content:center;

    margin:20px 0;

}

.result-info{

    margin:15px 0;

    font-size:15px;

}

.bank-item{

    padding:12px;

    border:1px solid var(--border);

    border-radius:8px;

    margin-bottom:10px;

}

.bank-list{

    margin-bottom:15px;

}

@media(max-width:900px){

    .checkout-grid{

        grid-template-columns:1fr;

    }

}