
/* =========================
   🔥 GLOBAL PERFORMANCE FIX
========================= */

*,
*::before,
*::after{
    box-sizing: border-box;
}

/* =========================
   1. BASIC RESET
========================= */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg,#f8f9fa,#eef1f4);
}

html, body {
    touch-action: manipulation;
}

/* =========================
   2. TYPOGRAPHY
========================= */
h1,h2,h3,h4,h5,h6 {
    font-weight: 600;
}

/* =========================
   3. COLORS
========================= */
a {
    color: #f15a00;   /* 🔥 updated */
    text-decoration: none;
}

.text-primary {
    color: #f15a00 !important;  /* 🔥 updated */
}

/* =========================
   4. BUTTONS
========================= */
.btn-primary {
    background: linear-gradient(135deg, #ff7a1a, #f15a00);  /* 🔥 updated */
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f15a00, #d84300);  /* 🔥 updated */
}

/* =========================
   5. SEARCH MODAL
========================= */
#searchModal .modal-header{
    border-bottom: none;
    padding: 8px 10px;
}

#searchModal .search-form{
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    width: 92%;
	margin: 0 auto;
}

#searchModal .closeBtn{
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    display:flex;
    align-items:center;
    justify-content:center;
}

#searchModal .search-input{
    flex: 1;
    height: 48px;
    border: none;
    background: #f3f3f3;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
}

#searchModal .btn-primary{
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f15a00;   /* 🔥 updated */
    border:none;
	 margin-left: 10px; 
}

#searchModal{
    background: #f9f9f9;
    z-index: 99999;
}

/* =========================
   🔥 COMMON PAGE CONTAINER
========================= */
.page-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* CENTER BLOCK (ALL PAGES USE) */
.center-box{
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}







/* =========================
   🔥 CART PREMIUM UPGRADE
========================= */

/* MAIN LAYOUT */
.cart-wrapper{
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* CART BOX */
.cart-box{
    flex: 2;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* TABLE */
.cart-table{
    margin-bottom: 0 !important;
}

.cart-table th{
    font-size: 15px;
    color: #777;
    font-weight: 600;
    border-bottom: 1px solid #eee !important;
}

.cart-table td{
    padding: 15px 10px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

/* ROW HOVER */
.cart-row:hover{
    background: #fff5ef;   /* 🔥 updated (soft brand tone) */
    transition: 0.2s ease;
}

/* PRODUCT IMAGE */
.product-img{
    width: 65px !important;
    height: 65px !important;
    max-width: none !important;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
}

/* PRODUCT NAME */
.cart-table b a{
    font-size: 15px;
    color: #222;
}

.cart-table b a:hover{
    color: #f15a00;   /* 🔥 updated */
}

/* =========================
   QTY BOX
========================= */
.qty-box{
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-box button{
    width: 30px;
    height: 30px;
    font-weight: bold;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    transition: 0.2s;
}

.qty-box button:hover{
    background: #f15a00 !important;   /* 🔥 updated */
    color: #fff;
    border-color: #f15a00 !important; /* 🔥 updated */
}

.qty-input{
    width: 45px;
    height: 30px;
    text-align: center;
    font-weight: 600;
}

/* =========================
   PRICE COLORS
========================= */
.row-total{
    color: #f15a00 !important;   /* 🔥 updated */
    font-size: 15px;
}

/* EXTRA CHARGE */
.extra-charge{
    color: #888;
    font-size: 13px;
}

/* DELETE ICON */
.delete-item{
    transition: 0.2s;
}

.delete-item:hover{
    transform: scale(1.2);
    color: red !important;
}

/* =========================
   TOTAL BOX (RIGHT SIDE)
========================= */
.totals-box{
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: sticky;
    top: 120px;
}

/* TITLE */
.totals-box h5{
    font-weight: 700;
    margin-bottom: 15px;
}

/* ROW */
.total-row{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

/* GRAND */
.total-row.text-warning{
    font-size: 16px;
}

/* CHECKOUT BUTTON */
.checkout-btn{
    margin-top: 15px;
    padding: 12px;
    border-radius: 30px !important;
    font-weight: 700;
    background: linear-gradient(135deg,#ff7a1a,#d84300) !important;  /* 🔥 updated */
    transition: 0.3s;
}

.checkout-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* =========================
   EMPTY CART (UPGRADE)
========================= */

.empty-cart-box{
    max-width: 420px;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(241,90,0,0.04),   /* 🔥 updated */
        rgba(216,67,0,0.08)    /* 🔥 updated */
    );
    padding: 35px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f1f1;
}

.empty-icon{
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg,#ff7a1a,#f15a00);  /* 🔥 updated */
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.empty-icon i{
    color:#fff;
    font-size:28px;
}

.empty-btn{
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    background: linear-gradient(135deg,#ff7a1a,#f15a00);  /* 🔥 updated */
    color: #fff;
    transition: 0.3s;
}

.empty-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 🔥 EMPTY CART CENTER FIX */
.empty-cart{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}






/* =========================
   MOBILE CART FIX
========================= */
@media(max-width:768px){

.cart-wrapper{
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px !important;
}

.empty-cart{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-cart-box{
    width: 100%;
    max-width: 320px;
    padding: 25px 18px;
    border-radius: 16px;
    transition: 0.3s ease;
}

.empty-icon{
    width: 65px;
    height: 65px;
}

.empty-icon i{
    font-size: 22px;
}



.empty-cart-box p{
    font-size: 13px;
}

.empty-btn{
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 20px;
}

}

/* =========================
   🔥 COMMON UI SYSTEM
========================= */

.common-card{
    background:#fff;
    border-radius:14px;
    padding:15px;
    box-shadow:0 8px 25px rgba(0,0,0,0.05);
    transition:0.3s;
}

.common-card:hover{
    transform: translateY(-5px);
}

/* BUTTON SYSTEM */
.btn-orange{
    background: linear-gradient(135deg,#ff7a1a,#f15a00);   /* 🔥 updated */
    color:#fff;
    border:none;
    border-radius:30px;
    padding:10px 18px;
    font-weight:600;
}

.btn-orange:hover{
    background: linear-gradient(135deg,#f15a00,#d84300);   /* 🔥 updated */
    transform: translateY(-2px);
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
}

/* SCROLLBAR */
::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:#d84300;   /* 🔥 updated */
    border-radius:10px;
}

/* =========================
   🔥 GLOBAL LAYER FIX
========================= */

.main-header,
.mobile-header{
    position: relative;
    z-index: 9999;
}

.popup-alert{
    z-index: 9998;
}

.main-content{
    position: relative;
    z-index: 1;
}

/* =========================
   🔥 WHATSAPP FINAL FIX
========================= */

.wa-popup{
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9997;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.wa-popup.active{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wa-popup-box{
    pointer-events: auto;
}

.wa-floating-btn{
    pointer-events: auto;
    z-index: 9998;
}

/* =========================
   MOBILE FIX
========================= */
@media(max-width:768px){

.product-img{
    width: 55px !important;
    height: 55px !important;
}

body{
    padding-bottom: 60px;
}

}