
/* =======================================================
   Proffessional brand name css
======================================================= */
/* =========================================
   PROFESSIONAL COMPACT BRAND HEADER
========================================= */

#brandHeader{

    display:flex;
    align-items:center;

    gap:8px;

    max-width:150px;

    overflow:hidden;
}

/* LOGO */

.brandLogoWrap{

    width:36px;
    height:36px;

    min-width:36px;

    border-radius:10px;

    overflow:hidden;

    background:#fff;

    box-shadow:
    0 2px 8px rgba(0,0,0,0.15);
}

#brandLogo{

    width:100%;
    height:100%;

    object-fit:cover;
}

/* TEXT AREA */

.brandTexts{

    display:flex;
    align-items:center;
}

/* BRAND NAME */

#pageName{

    font-size:14px;

    font-weight:800;

    color:#fff;

    letter-spacing:0.4px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

    animation:
    brandGlow 3s ease-in-out infinite;
}

/* SOFT ANIMATION */

@keyframes brandGlow{

    0%{
        opacity:1;
    }

    50%{
        opacity:.75;
    }

    100%{
        opacity:1;
    }
}

/* TOP BAR FIX */

#searchContainer{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    height:62px;

    background:#2e8b57;

    z-index:10000;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 10px;

    box-shadow:
    0 2px 10px rgba(0,0,0,0.12);
}

/* LEFT */

.topLeftArea{

    display:flex;
    align-items:center;

    flex:1;

    min-width:0;
}

/* RIGHT */

.topRightArea{

    display:flex;
    align-items:center;

    gap:8px;

    flex-shrink:0;
}
/* 🔥 IMPORTANT FIX */
#onePageStore *{
    box-sizing:border-box;
}

/* 🔥 FONT ONLY CONTAINER PAR */
#onePageStore{

    font-family:
    'Segoe UI',
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

    width:100%;
    max-width:100%;

    margin:0;

    padding-top:35px;

    padding-right:6px;
    padding-bottom:65px;
    padding-left:6px;

    background:#f9f9f9;

    position:relative;

    overflow-x:hidden;
}

/* =========================================
   TOP BAR MODERN
========================================= */

/* LOGO TEXT */
#pageName{

    font-size:18px;
    font-weight:800;

    color:#fff;

    letter-spacing:0.5px;
}

/* =========================================
   REWARD BOX
========================================= */

#rewardCounterBox{

    display:flex;
    align-items:center;

    gap:8px;

    padding:7px 7px;

    border-radius:14px;

    background:
    linear-gradient(
        135deg,
        #fff6d6,
        #ffe38a
    );

    box-shadow:
    0 4px 12px rgba(0,0,0,0.12);

    cursor:pointer;

    transition:0.25s;
}

#rewardCounterBox:hover{

    transform:translateY(-2px);
}

.rewardIcon{

    font-size:15px;
}

.rewardTexts{

    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.rewardLabel{

    font-size:8px;
    font-weight:700;

    color:#8a6500;

    text-transform:uppercase;
}

#rewardCounterAmount{

    font-size:11px;
    font-weight:800;

    color:#111;
}

/* =========================================
   SEARCH ICON
========================================= */

#searchToggleBtn{

    width:40px;
    height:40px;

    border-radius:50%;

    background:#ffffff22;

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

    color:#fff;

    font-size:17px;

    cursor:pointer;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes slideSearch{

    from{

        opacity:0;
        transform:translateY(-10px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }
}
/* =======================================================
   PRODUCT GRID
======================================================= */
.storeView{

  display:grid;

  grid-template-columns:1fr;

  gap:13px;

  padding-top:0;

  padding-right:2px;

  padding-bottom:8px;

  padding-left:2px;
}
/* HOME VIEW */
#homeView{

    margin-top:0 !important;

    padding-top:0 !important;

    padding-left:0 !important;

    padding-right:0 !important;
}


/* Product Title */
.productTitle {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-top:10px;
  margin-bottom:6px;
  line-height: 1.3;
  min-height: 42px; /* 2 lines space */
  height: auto;
  overflow: visible;
  word-break: break-word;
}

/* Product Price */
.productPrice {
  font-size: 15px;
  color: #2196f3;
  font-weight: 700;
  margin-bottom: 8px;
}

/* =======================================================
   BUTTONS
======================================================= */
.btnAdd {
  display: block;
  width: 92%;
  margin: 12px auto 18px auto; /* 🔹 top 12px (gap from gallery), bottom 18px */
  min-height: 48px;
  line-height: 48px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  background: #006FFF;
  color: white;
}
.btnAdd:hover {
  background: #e64a19;
}
 
.btnAdd:hover {
  background: #e64a19;
}



/* =======================================================
   BOTTOM NAVIGATION
======================================================= */
#storeBottomMenu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 9999;
  margin: 0;
  transform: translateY(0);
}

.menuBtn {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s ease;
}

.menuBtn.active {
  color: #ff5722;
  font-weight: 700;
}

.menuBtn:hover {
  color: #ff5722;
}

.menuBtn i {
  font-size: 20px;
  margin-bottom: 3px;
}

/* =======================================================
   QUANTITY BOX
======================================================= */
.qtyBox {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  gap: 6px;
}

.qtyBox button {
  width: 25px;
  height: 25px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qtyBox .decQ { background: #dc3545; color: #fff; } /* minus red */
.qtyBox .incQ { background: #2196f3; color: #fff; } /* plus blue */

.qtyBox .showQ {
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  background: #fff;
  border-radius: 1px;
}


/* =======================================================
   ORDER POPUP
======================================================= */
#orderPopup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#orderPopup .popupBox {
  background: white;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#orderPopup h3 { margin-bottom: 15px; font-size: 18px; color: #333; }

#orderPopup input, #orderPopup textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#orderPopup textarea { resize: none; height: 60px; }
/* ============================
   PRODUCT GALLERY + ADD TO CART GAP FIX
============================ */
.productGallery {
  display: flex;
  gap: 6px; 
  margin-bottom: 0;  /* force no collapse */
  flex-wrap: wrap;    /* responsive gallery */
}

.productGallery img{
width:30%;
height:110px;
object-fit:cover;
border-radius:8px;
cursor:pointer;
}


/*search box refresh button css*/
#refreshStore{
  color:#fff;
  font-size:18px;
  margin-right:8px;
  cursor:pointer;
}
/* CUSTOMER POPUP */

#customerPopup{
position:fixed;
top:0;
left:0;
width:90%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
}

.customerPopupBox{
width:300px;
max-height:450px;
background:white;
border-radius:10px;
padding:15px;
display:flex;
flex-direction:column;
overflow:hidden;
}

.customerPopupHeader{
display:flex;
justify-content:space-between;
font-weight:700;
margin-bottom:10px;
}

#customerListContainer{
overflow-y:auto;
flex:1;
}

.customerCard{
border:3px solid #eee;
padding:10px;
margin-bottom:10px;
border-radius:8px;
cursor:pointer;
}

.customerCard:hover{
background:#f5f5f5;
}
.customerPopupHeader button{
background:#006FFF;
border:none;
font-size:18px;
font-weight:700;
cursor:pointer;
width:28px;
height:28px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
}

.customerPopupHeader button:hover{
background:#eee;
}

/*show result count css*/
#storeResultCount{
    font-size:14px;
    color:#666;

    padding:2px 10px 0 10px;

    margin-top:18px;
    margin-bottom:2px; /* 🔥 very small gap */
}



/* divider between images */
.divider{
    height:1px;
    background:#ddd;
    width:100%;
}

.order-modal{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.order-modal-box{
    width:90%;
    max-width:420px;
    background:#fff;
    border-radius:15px;
    padding:20px;
    text-align:center;
    animation: pop .3s ease-in-out;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

@keyframes pop{
    from{transform:scale(0.8); opacity:0}
    to{transform:scale(1); opacity:1}
}

.order-modal-box h2{
    color:#1db954;
    margin-bottom:10px;
}

.thank-text{
    font-size:14px;
    color:#555;
}

.order-info{
    margin:15px 0;
    padding:10px;
    background:#f6f6f6;
    border-radius:10px;
    text-align:left;
    font-size:14px;
}

.urdu-note{
    font-size:13px;
    color:#333;
    margin:10px 0;
}

.order-buttons{
    display:flex;
    justify-content:space-between;
    margin-top:15px;
}

.btn-close{
    background:#999;
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:8px;
}

.btn-details{
    background:#1db954;
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:8px;
}

/*Order success screen*/

#orderSuccessModal{
    overflow:hidden;
}
#orderSuccessModal{
    display:none;
    flex-direction:column;
}

.successBody{
    height:120vh;

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

    text-align:center;

    padding:20px;
    box-sizing:border-box;
}

.successHeader{
    height:60px;
    display:flex;
    align-items:center;
    gap:15px;
    padding:0 15px;
    border-bottom:1px solid #eee;
}

.successIcon{
    font-size:70px;
    margin-bottom:10px;
}

.successInfo{
    margin-top:2px;
    padding:15px;
    border-radius:12px;
    background:#f7f7f7;
}
.successBottomArea{
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.successBackBtn{
    display: flex;
    align-items: center;
    gap: 8px;

    border: none;
    outline: none;

    background:#16a34a;

    color: #222;

    padding: 12px 22px;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.successBackBtn .material-icons{
    font-size: 20px;
}

.successBackBtn:active{
    transform: scale(0.97);
}

/*====order modal popup reward discounted*/
/* Reward Receipt */

.rewardReceipt{

    position:relative;

    margin-top:5px;

    padding:25px 15px 15px;

    background:#fffdf7;

    border:2px dashed #ff9800;

    border-radius:14px;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}

/* Discount Stamp */

.rewardStamp{

    position:absolute;

    top:-5px;

    right:12px;

    background:#ff9800;

    color:#fff;

    font-size:10px;

    font-weight:700;

    padding:6px 9px;

    border-radius:20px;

    letter-spacing:.5px;

    transform:rotate(6deg);

    box-shadow:
    0 3px 8px rgba(0,0,0,.15);

}

/* Rows */

.rewardRow{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 0;

    border-bottom:1px dashed #ddd;

    font-size:14px;

}

.rewardRow:last-child{

    border-bottom:none;

}

/* Final Amount */

.finalRow{

    margin-top:6px;

    padding-top:12px;

    font-size:17px;

    font-weight:700;

    color:#2e7d32;

}

/*sale-orders css*/
.orderReceiptBox{

    margin-top:2px;

    border:1px dashed #ccc;

    border-radius:12px;

    padding:15px;

    background:#fffdf7;

}

.receiptRow{

    display:flex;

    justify-content:space-between;

    margin:8px 0;

}

.rewardRow{

    color:#28a745;

    font-weight:700;

}

.finalRow{

    border-top:1px solid #ddd;

    margin-top:10px;

    padding-top:5px;

    font-size:18px;

    font-weight:700;

}

.rewardUsedTag{

    display:inline-block;

    margin-top:6px;

    padding:4px 10px;

    background:#d4edda;

    color:#155724;

    border-radius:20px;

    font-size:12px;

    font-weight:700;

}
/*sign inup loafer**/
#authLoader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.authLoaderBox{
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.authSpinner{
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =========================
PRODUCT ACTIONS
========================= */

.productActions{

display:flex;

align-items:center;

gap:10px;

margin-top:12px;

}

/* BIG BUTTON */

.productActions .btnAdd{

flex:1;

height:46px;

border-radius:14px;

}

/*shipping Address adding loader*/

body.loading::after{

    content:'';

    position:fixed;

    inset:0;

    background:
    rgba(255,255,255,.7);

    z-index:99999;
}
.useShippingWrap{
    display:flex;
    align-items:center;
    gap:10px;
    margin:15px 0;
}

.useShippingWrap input{
    width:18px;
    height:18px;
    margin:0;
}

.useShippingWrap label{
    margin:0;
    font-size:15px;
    font-weight:500;
    cursor:pointer;
}