/* ==========================================
   NEXPAK SHOP STYLES
   PART 1 - RESET, NAVBAR & FILTERS
========================================== */

:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --dark:#0f172a;
    --light:#f8fafc;
    --white:#ffffff;
    --gray:#64748b;
    --gray-light:#e2e8f0;
    --warning:#f59e0b;
    --success:#16a34a;
    --danger:#dc2626;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body {
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 1s ease-in-out;
}

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

button{
    cursor:pointer;
    font-family:inherit;
}

a{
    text-decoration:none;
}

/* =========================
   NAVBAR
========================= */

.navbar{
    position:sticky;
    top:0;
    z-index:100;
    background:var(--dark);
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.navbar-container{
    max-width:1400px;
    margin:auto;
    padding:15px 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

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

.logo img{
    width:70px;
    height:auto;
}

.logo-text{
    display:flex;
    flex-direction:column;
}

.nex{
    color:#fff;
    font-size:28px;
    font-weight:700;
    line-height:1;
}

.pak{
    color:#f59e0b;
    font-size:28px;
    font-weight:700;
    line-height:1;
}

.small{
    color:#fff;
    font-size:12px;
    letter-spacing:4px;
    margin-top:4px;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:28px;
}

.nav-links a{
    color:#fff;
    font-weight:600;
    transition:.25s;
}

.nav-links a:hover{
    color:#f59e0b;
}

.nav-links .active{
    color:#f59e0b;
}

.cart-link{
    position:relative;
    font-size:28px;
}

.cart-count{
    position:absolute;
    top:-10px;
    right:-10px;

    width:22px;
    height:22px;

    border-radius:50%;
    background:#dc2626;
    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:12px;
    font-weight:700;
}

/* =========================
   SHOP CONTAINER
========================= */

.shop-container{
    max-width:1400px;
    margin:35px auto;
    padding:0 20px;
}

/* =========================
   FILTER BOX
========================= */

.filter-section{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    margin-bottom:30px;
}

.search-box input{
    width:100%;
    padding:14px 18px;
    border:1px solid #dbe3ec;
    border-radius:10px;
    font-size:15px;
    outline:none;
}

.search-box input:focus{
    border-color:#2563eb;
}

.category-filter{
    margin-top:18px;

    display:flex;
    gap:12px;

    overflow-x:auto;
    padding-bottom:5px;
}

.category-filter::-webkit-scrollbar{
    height:6px;
}

.category-filter::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:10px;
}

.filter-btn{
    padding:10px 18px;

    border:1px solid #dbe3ec;
    background:#fff;

    border-radius:10px;

    font-weight:600;

    white-space:nowrap;

    transition:.25s;
}

.filter-btn:hover{
    background:#2563eb;
    color:#fff;
}

.filter-btn.active{
    background:#2563eb;
    color:#fff;
}
/* ==========================================================
   PRODUCTS
========================================================== */

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:30px;
}

.product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 28px rgba(0,0,0,.15);
}

.product-image{
    height:230px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    padding:15px;
}

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

.product-info{
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.product-category{
    font-size:12px;
    text-transform:uppercase;
    color:#64748b;
    letter-spacing:1px;
}

.product-name{
    font-size:20px;
    font-weight:700;
    color:#0f172a;
}

.product-sku{
    color:#64748b;
    font-size:13px;
}

.product-specs{
    color:#475569;
    font-size:14px;
}

.product-price{
    color:#2563eb;
    font-size:28px;
    font-weight:700;
}

.product-price-note{
    font-size:12px;
    color:#64748b;
}

.min-order{
    display:inline-block;
    background:#fff7ed;
    color:#ea580c;
    padding:6px 10px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
}

.size-selector,
.color-selector{
    width:100%;
    padding:12px;
    border:1px solid #e2e8f0;
    border-radius:8px;
    background:white;
    font-size:15px;
}

.product-footer{
    margin-top:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.qty-selector{
    display:flex;
    border:1px solid #e2e8f0;
    border-radius:10px;
    overflow:hidden;
    width:120px;
}

.qty-selector button{
    width:36px;
    border:none;
    background:#f1f5f9;
    font-size:20px;
    font-weight:700;
}

.qty-selector input{
    width:48px;
    border:none;
    text-align:center;
    font-size:15px;
}

.add-cart-btn{
    flex:1;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:10px;
    padding:12px;
    font-weight:700;
    transition:.25s;
}

.add-to-cart-btn:hover{
    background:#1d4ed8;
}

/* ==========================================================
   CART DRAWER
========================================================== */

.cart-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
}

.cart-overlay.active{
    opacity:1;
    visibility:visible;
}

.cart-drawer{
    position:fixed;
    top:0;
    right:-420px;
    width:390px;
    max-width:100%;
    height:100%;
    background:#fff;
    display:flex;
    flex-direction:column;
    transition:.35s;
    z-index:1000;
    box-shadow:-8px 0 30px rgba(0,0,0,.25);
}

.cart-drawer.active{
    right:0;
}

.cart-header{
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #e5e7eb;
}

.cart-header h2{
    font-size:22px;
}

.cart-header button{
    border:none;
    background:none;
    font-size:28px;
    cursor:pointer;
}

#cartItems{
    flex:1;
    overflow-y:auto;
    padding:15px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

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

.cart-summary{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cart-summary div{
    display:flex;
    justify-content:space-between;
}

#checkoutBtn{
    width:100%;
    padding:14px;
    margin-top:18px;
    border:none;
    background:#16a34a;
    color:#fff;
    font-size:16px;
    font-weight:700;
    border-radius:10px;
}

.cart-footer button:last-child{
    width:100%;
    padding:12px;
    margin-top:10px;
    border:1px solid #cbd5e1;
    background:white;
    border-radius:10px;
}
/* ==========================================================
   CHECKOUT MODAL
========================================================== */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:2000;
    padding:20px;
}

.modal.active{
    display:flex;
}

.modal-content{
    width:100%;
    max-width:700px;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

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

.modal-header h2{
    font-size:28px;
}

.modal-header button{
    border:none;
    background:none;
    font-size:30px;
    cursor:pointer;
}

.form-section{
    margin-bottom:30px;
}

.form-section h3{
    margin-bottom:15px;
    color:#0f172a;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.form-section input,
.form-section textarea,
.form-section select{
    width:100%;
    padding:14px;
    border:1px solid #d1d5db;
    border-radius:10px;
    margin-bottom:15px;
    font-size:15px;
}

.form-section textarea{
    min-height:100px;
    resize:vertical;
}

.form-actions{
    display:flex;
    justify-content:flex-end;
    gap:15px;
}

.form-actions button{
    padding:14px 24px;
    border:none;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

.form-actions button:first-child{
    background:#e5e7eb;
    color:#111827;
}

.form-actions button:last-child{
    background:#2563eb;
    color:#fff;
}

/* ==========================================================
   SUCCESS MODAL
========================================================== */

#successModal .modal-content{
    text-align:center;
}

#successModal h2{
    color:#16a34a;
    margin-bottom:15px;
}

#orderNumber{
    margin:20px 0;
    font-size:18px;
    font-weight:700;
    color:#2563eb;
}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#94a3b8;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:992px){

    .navbar-container{
        flex-direction:column;
        gap:20px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

}

@media (max-width:768px){

    .shop-container{
        padding:20px 15px;
    }

    .products-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .product-footer{
        flex-direction:column;
        align-items:stretch;
    }

    .qty-selector{
        width:100%;
    }

    .cart-drawer{
        width:100%;
        right:-100%;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    .logo img{
        height:50px;
    }

    .nex,
    .pak{
        font-size:20px;
    }

}

@media (max-width:480px){

    .navbar{
        padding:15px;
    }

    .filter-section{
        padding:15px;
    }

    .modal-content{
        padding:20px;
    }

    .product-price{
        font-size:24px;
    }

    .cart-header h2{
        font-size:20px;
    }

    }
/* ==========================================================
   PROFESSIONAL CART ITEMS
========================================================== */

.empty-cart{
    text-align:center;
    padding:50px 20px;
    color:#64748b;
}

.cart-item{
    display:flex;
    align-items:flex-start;
    gap:15px;
    padding:15px 0;
    border-bottom:1px solid #e5e7eb;
}

.cart-item-image{
    width:80px;
    height:80px;
    border-radius:10px;
    background:#f8fafc;
    overflow:hidden;
    flex-shrink:0;
    display:flex;
    justify-content:center;
    align-items:center;
}

.cart-item-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.cart-item-details{
    flex:1;
}

.cart-item-details h4{
    margin-bottom:5px;
    font-size:16px;
    color:#0f172a;
}

.cart-item-details small{
    display:block;
    color:#64748b;
    margin-bottom:8px;
}

.cart-qty{
    display:flex;
    align-items:center;
    gap:10px;
    margin:12px 0;
}

.cart-qty button{
    width:32px;
    height:32px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

.cart-qty button:hover{
    background:#1d4ed8;
}

.cart-qty span{
    min-width:28px;
    text-align:center;
    font-weight:700;
}

.cart-price{
    color:#2563eb;
    font-size:18px;
    font-weight:700;
}

.remove-item{
    background:none;
    border:none;
    font-size:22px;
    cursor:pointer;
    color:#dc2626;
    transition:.2s;
}

.remove-item:hover{
    transform:scale(1.15);
   }
/* ===== PREMIUM PRODUCT CARD ===== */

.product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    transition:.3s;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.product-image{
    position:relative;
    height:230px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
}

.product-img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:15px;
}

.stock-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:#16a34a;
    color:#fff;
    padding:6px 12px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
}

.product-sku{
    color:#64748b;
    font-size:13px;
    margin:6px 0;
}

.min-order{
    display:inline-block;
    background:#eff6ff;
    color:#2563eb;
    padding:6px 10px;
    border-radius:8px;
    font-size:13px;
    margin:10px 0;
    font-weight:600;
}

.vat-note{
    font-size:12px;
    color:#64748b;
    margin-bottom:12px;
}

.product-footer{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:15px;
}

.add-to-cart-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    transition:.3s;
}

.add-to-cart-btn:hover{
    background:#1d4ed8;
   }
.catalogue-message {
    margin: 50px auto;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    background: #f5f5f5;
    border-radius: 10px;
}

.catalogue-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.catalogue-message a {
    display: inline-block;
    margin-top: 20px;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}
