/* =========================================================
   SANATAN DUKAN
   MOBILE HEADER
========================================================= */

@media only screen and (max-width:768px){

body{
    padding-top:170px;
    background:#f8f8fb;
}

body{
    padding-top:200px !important;
}

header{
    height:auto !important;
    min-height:190px !important;
}

/* ================= HEADER ================= */

header{

    position:fixed;
    top:0;
    left:0;
    right:0;

    z-index:99999;

    background:#ffffff;

    display:grid;

    grid-template-columns:52px 1fr 52px 52px;

    grid-template-areas:
    "menu brand account cart"
    "search search search search"
    "filters filters filters filters";

    align-items:center;

    gap:12px;

    padding:14px;

    border-bottom:1px solid #ececec;

    box-shadow:0 4px 16px rgba(0,0,0,.08);

}

/* MENU */

.menu-btn{

    grid-area:menu;

    width:48px;
    height:48px;

    border:none;

    border-radius:14px;

    background:#005BFF;

    color:#fff;

    font-size:24px;

    display:flex;

    align-items:center;

    justify-content:center;

}

/* BRAND */

.brand{

    grid-area:brand;

    display:flex;

    align-items:center;

    gap:10px;

    min-width:0;

}

.brand-logo{

    width:40px;

    height:40px;

    object-fit:contain;

    flex-shrink:0;

}

.brand-text{

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-width:0;

    flex:1;

}

.brand h1{

    margin:0;

    font-size:16px;

    font-weight:700;

    line-height:1.1;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.brand .muted{

    margin-top:2px;

    font-size:11px;

    color:#777;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

/* ACCOUNT */

.mobile-top-buttons{

    display:contents;

}

#viewCartBtn{

    grid-area:cart;

    width:48px;

    height:48px;

    padding:0;

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:14px;

    font-size:0;

}

#viewCartBtn::before{

    content:"🛒";

    font-size:22px;

}

.account-btn{

    grid-area:account;

    width:48px;

    height:48px;

    padding:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:14px;

    font-size:0;

}

.account-btn::before{

    content:"👤";

    font-size:22px;

}

.cart-count{

    position:absolute;

    top:-5px;

    right:-5px;

}

/* SEARCH */

.actions{

    display:contents !important;

}

.search{

    grid-area:search;

    width:100%;

    max-width:none;

    height:54px;

    padding:0 18px;

    border-radius:16px;

    background:#fff;

    border:1px solid #e2e2e2;

    font-size:16px;

    box-shadow:0 2px 8px rgba(0,0,0,.04);

}

/* FILTERS */

.controls{

    grid-area:filters;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:12px;

}

.sort-select{

    width:100%;

    height:52px;

    border-radius:16px;

    background:#fff;

    border:1px solid #e2e2e2;

    font-size:15px;

    font-weight:500;

    box-shadow:0 2px 8px rgba(0,0,0,.04);

}
}

/* Mobile */

@media (max-width:768px){
  .service-hero {
    padding:18px;
  }
  .service-hero h2 {
    font-size:18px;
  }
  .service-primary,
  .service-secondary {
    width:100%;
  }
}

/* ===============================
   🛕 REFERENCE STYLE HERO
================================ */

@media(max-width:768px){

  .hero-slide{
    min-height:300px;
    padding:24px 20px;
    align-items:flex-end;
  }

  .hero-content{
    max-width:100%;
  }

  .hero-title{
    font-size:32px;
  }

  .hero-subtitle{
    font-size:15px;
    line-height:1.5;
  }

  .hero-btn{
    width:100%;
    padding:14px;
    font-size:16px;
  }

  .hero-countdown{
    font-size:14px;
    padding:10px 14px;
  }

}
@media (max-width:900px){.layout{grid-template-columns:1fr}}

/* =====================================
   PREMIUM MOBILE SERVICE CARDS
===================================== */

@media (max-width:768px){

.service-cards{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:8px;

    padding:0 10px;

    margin:12px 0 16px;

}

.service-card{

    position:relative;

    background:#fff;

    border-radius:14px;

    min-height:82px;

    padding:8px 5px;

    text-decoration:none;

    color:#222;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

    text-align:center;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

    transition:.25s;

    overflow:hidden;

}

/* Top Color Strip */

.service-card:nth-child(1){

    border-top:5px solid #ff7300;

}

.service-card:nth-child(2){

    border-top:5px solid #8b45ff;

}

.service-card:nth-child(3){

    border-top:5px solid #1fa44a;

}

/* Service Icon */

.service-card img{
    width:26px;
    height:26px;
    object-fit:contain;
    display:block;
    margin:0 auto 4px;
    flex-shrink:0;
}

/* Title */

.service-card h3{

    margin:4px 0 2px;

    font-size:11px;

    font-weight:700;

    line-height:1.15;

}

/* Subtitle */

.service-card p{

    margin:0;

    font-size:9px;

    color:#777;

    line-height:1.15;

}

/* Touch Effect */

.service-card:active{

    transform:scale(.97);

}

}

/* =========================================================
   SANATAN DUKAN PREMIUM PRODUCT CARDS
========================================================= */

@media (max-width:768px){

.products{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:8px;

    padding:0 10px 16px;

}

.card{
    padding:0;
    border:none;
    background:transparent;
    box-shadow:none;
}

.product-card{

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    display:flex;

    flex-direction:column;

    height:100%;

}

/* ================= IMAGE ================= */

.product-image-box{

    position:relative;

    background:#fff;

    padding:6px;

    aspect-ratio:1/1;

    height:120px;

    display:flex;

    align-items:center;

    justify-content:center;

}

.product-img{

    width:100%;

    height:100%;

    object-fit:contain;

    display:block;

}

/* ================= WISHLIST ================= */

.wishlist-btn{

    position:absolute;

    top:10px;

    right:10px;

    width:32px;

    height:32px;

    border:none;

    border-radius:50%;

    background:#fff;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

    font-size:18px;

    color:#444;

    display:flex;

    align-items:center;

    justify-content:center;

}

/* ================= BADGE ================= */

.discount-badge{

    position:absolute;

    left:10px;

    top:10px;

    background:#ff4d4f;

    color:#fff;

    padding:4px 8px;

    border-radius:20px;

    font-size:10px;

    font-weight:700;

}

/* ================= INFO ================= */

.product-info{

    padding:8px;

    flex:1;

}

.product-info h3{

    margin:0;

    font-size:11px;

    font-weight:700;

    line-height:1.15;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

    min-height:26px;

}

.product-category{

    margin-top:3px;

    color:#777;

    font-size:10px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.stock-warning{

    margin-top:5px;

    font-size:10px;

    font-weight:700;

    color:#b45309;

}

/* ================= FOOTER ================= */

.product-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:4px;

    padding:6px 8px;

}

.price-area{

    display:flex;

    flex-direction:column;

}

.price{

    font-size:15px;

    font-weight:800;

    color:#005BFF;

    line-height:1;

}

.mrp{

    margin-top:4px;

    font-size:10px;

    color:#999;

    text-decoration:line-through;

}

.add-btn{

    min-width:46px;

    height:26px;

    border:none;

    border-radius:6px;

    background:#005BFF;

    color:#fff;

    font-size:10px;

    font-weight:700;

}

.out-btn{

    min-width:46px;

    height:26px;

    border:none;

    border-radius:6px;

    background:#d9d9d9;

    color:#666;

    font-size:10px;

    font-weight:700;

}

.product-card:active{

    transform:scale(.98);

}

}


@media (max-width:768px){

#products{
    width:100% !important;
    max-width:100% !important;
}

.products{

    width:100%;
    max-width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;

}

.products > .card{
    width:auto;
    min-width:0;
    max-width:100%;
}

@media (max-width:768px){

.side-menu{
    padding-top:210px;
}

}

}