/*==================================================
    MIFUTO STORE
    Modern Responsive Store UI
==================================================*/

:root{

    --primary:#012970;
    --primary-light:#0d4aa8;
    --primary-dark:#011f54;

    --success:#28a745;

    --bg:#f5f7fb;

    --white:#ffffff;

    --text:#333;

    --gray:#666;

    --border:#e7ebf2;

    --radius:14px;

    --shadow:0 8px 20px rgba(0,0,0,.08);

    --shadow-hover:0 15px 35px rgba(0,0,0,.15);

}

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

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Segoe UI",Arial,sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

}

a{

    text-decoration:none;

}

img{

    max-width:100%;

}


/*==========================
Loading
==========================*/

.loading{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

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

    backdrop-filter:blur(3px);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.loading.d-none{

    display:none !important;

}

.loading .spinner-border{

    width:3.5rem;

    height:3.5rem;

    color:var(--primary);

}

/*=============================
Scrollbar
==============================*/

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:10px;

}

::-webkit-scrollbar-track{

    background:#eee;

}

/*=============================
Header
==============================*/

.store-header{

    background:var(--white);

    position:sticky;

    top:0;

    z-index:999;

    padding:0;

    box-shadow:0 2px 15px rgba(0,0,0,.08);

}

.logo-area{

    display:flex;

    align-items:center;

    gap:10px;

}

.logo{

    width:auto;

    height:36px;

    max-width:110px;

    object-fit:contain;

}

.logo-area h1{

    margin:0;

    color:var(--primary);

    font-size:30px;

    font-weight:700;

}

.logo-area p{

    margin:0;

    color:#777;

    font-size:15px;

}

/*=============================
Main Layout
==============================*/

.main-wrapper{

    padding:25px 0;

}

/*=============================
Sidebar
==============================*/

.category-box{

    background:var(--white);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:18px;

    position:sticky;

    top:95px;

}

.category-box h4{

    margin-bottom:18px;

    font-size:20px;

    color:var(--primary);

    font-weight:700;

}

/*=============================
Category List
==============================*/

#categoryList{

    list-style:none;

    padding:0;

    margin:0;

}

#categoryList li{

    padding:12px 16px;

    margin-bottom:10px;

    border-radius:10px;

    border:1px solid var(--border);

    cursor:pointer;

    transition:.3s;

    font-weight:600;

    display:flex;

    align-items:center;

    justify-content:space-between;

    background:#fff;

}

#categoryList li::after{

    content:"›";

    font-size:18px;

    opacity:.4;

}

#categoryList li:hover{

    background:var(--primary);

    color:#fff;

    transform:translateX(5px);

}

#categoryList li:hover::after{

    opacity:1;

}

#categoryList li.active{

    background:var(--primary);

    color:#fff;

    border-color:var(--primary);

}

#categoryList li.active::after{

    opacity:1;

}

/*=============================
Section Title
==============================*/

.section-title{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:20px;

}

.section-title h3{

    color:var(--primary);

    font-size:24px;

    font-weight:700;

}

.section-title span{

    color:#888;

}


/*==================================================
    PRODUCT GRID
==================================================*/

#productList{

    min-height:400px;

}

.product-wrapper{

    margin-bottom:25px;

}

/*==================================================
    PRODUCT CARD
==================================================*/

.product-card{

    background:var(--white);

    border-radius:16px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:all .35s ease;

    display:flex;

    flex-direction:column;

    height:100%;

    position:relative;

}

.product-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-hover);

}

/*==================================================
    PRODUCT IMAGE
==================================================*/

.product-image-box{

    width:100%;

    height:230px;

    overflow:hidden;

    background:#fff;

    position:relative;

}

.frame-preview{
    cursor:zoom-in;
}

.product-image{

    width:100%;

    height:100%;

    object-fit:contain;

    transition:.45s;

    padding:12px;

}

.product-card:hover .product-image{

    transform:scale(1.08);

}

/*==================================================
    OPTIONAL BADGE
==================================================*/

.product-badge{

    position:absolute;

    left:12px;

    top:12px;

    background:var(--primary);

    color:#fff;

    padding:5px 10px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

/*==================================================
    PRODUCT BODY
==================================================*/

.product-body{

    padding:12px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.product-title{

    font-size:17px;

    font-weight:600;

    color:#222;

    line-height:1.35;

    margin-bottom:6px;

}

.product-desc{

    color:#666;

    font-size:14px;

    line-height:1.6;

    margin-bottom:12px;

}

/*==================================================
    PRICE
==================================================*/

.product-price{

    margin-top:auto;

    font-size:26px;

    font-weight:bold;

    color:var(--primary);

}

.product-price::before{

    content:"₹ ";

    font-size:18px;

}

/*==================================================
    BUTTON
==================================================*/

.order-btn{

    margin-top:15px;

    border:none;

    border-radius:10px;

    background:var(--primary);

    color:#fff;

    padding:12px;

    font-weight:600;

    transition:.3s;

    cursor:pointer;

}

.order-btn i{

    margin-right:8px;

}

.order-btn:hover{

    background:var(--primary-light);

    transform:scale(1.02);

}

.order-btn:active{

    transform:scale(.97);

}

/*==================================================
    CARD FOOTER
==================================================*/

.product-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:15px;

    font-size:13px;

    color:#999;

}

/*==================================================
    IMAGE PLACEHOLDER
==================================================*/

.product-image-placeholder{

    width:100%;

    height:230px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#fafafa;

    color:#ccc;

    font-size:55px;

}

/*==================================================
    PRODUCT FADE ANIMATION
==================================================*/

.product-card{

    animation:fadeUp .45s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==================================================
    PRODUCT HOVER OVERLAY
==================================================*/

.product-overlay{

    position:absolute;

    left:0;

    right:0;

    bottom:-60px;

    padding:12px;

    text-align:center;

    background:rgba(1,41,112,.90);

    transition:.3s;

}

.product-card:hover .product-overlay{

    bottom:0;

}

.product-overlay span{

    color:#fff;

    font-size:14px;

}



.toast{

    min-width:320px;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    animation:slideIn .3s ease;

}

@keyframes slideIn{

    from{

        opacity:0;

        transform:translateX(50px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

.cart-line,
.checkout-line,
.pay-line{
    display:flex;
    gap:12px;
    align-items:center;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    margin-bottom:10px;
}

.checkout-line{
    align-items:flex-start;
}

.thumb-sm{
    width:52px;
    height:52px;
    object-fit:cover;
    border-radius:8px;
    background:#f3f5f8;
    border:1px solid #e7ebf2;
    flex:0 0 52px;
}

.photo-chip{
    width:44px;
    height:44px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #d7efe0;
    background:#f3f5f8;
}

.checkout-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:12px;
    margin-bottom:14px;
}

.checkout-step{
    font-size:12px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#64748b;
    margin:0 0 2px;
}

.upload-slots{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}

.upload-slot{
    width:108px;
    padding:6px;
    border:1px dashed #cbd5e1;
    border-radius:8px;
    background:#f8fafc;
}

.upload-slot input[type="file"]{
    width:100%;
    font-size:11px;
}

.upload-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:8px;
}

.upload-row input[type="file"]{
    max-width:220px;
    font-size:12px;
}

.photo-status{
    font-size:12px;
    font-weight:700;
}

.photo-status.ready{
    color:#15803d;
}

.photo-status.wait{
    color:#b45309;
}

.cart-line-body,
.checkout-line-body{
    flex:1;
    min-width:0;
}

.cart-line-title{
    font-weight:700;
    margin-bottom:4px;
}

.cart-line-price{
    color:var(--primary);
    font-weight:700;
}

.cart-qty{
    width:88px;
}

.cart-empty{
    text-align:center;
    padding:40px 16px;
    color:var(--gray);
}

.checkout-review{
    background:#f8fafc;
    border-radius:12px;
    padding:14px;
}

.cart-dock{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1030;
    padding:0 12px calc(12px + env(safe-area-inset-bottom));
    pointer-events:none;
}

.cart-dock[hidden]{
    display:none !important;
}

.cart-dock-card{
    pointer-events:auto;
    max-width:480px;
    margin:0 auto;
    background:#fff;
    border:1px solid #e7ebf2;
    border-radius:16px;
    box-shadow:0 12px 36px rgba(1, 41, 112, 0.22);
    padding:8px 10px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cart-dock-top{
    display:flex;
    align-items:center;
    gap:12px;
}

.cart-dock-thumbs{
    display:flex;
    align-items:center;
    min-width:44px;
}

.cart-dock-thumbs img{
    width:34px;
    height:34px;
    object-fit:cover;
    border-radius:8px;
    border:2px solid #fff;
    margin-left:-8px;
    background:#f8fafc;
}

.cart-dock-thumbs img:first-child{
    margin-left:0;
}

.cart-dock-label{
    font-size:10px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#012970;
    line-height:1.2;
}

.cart-dock-count{
    font-size:13px;
    font-weight:700;
    color:#0f1111;
    line-height:1.2;
}

.cart-dock-total{
    font-weight:800;
    color:#198754;
    font-size:0.95rem;
}

.cart-dock-actions{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.cart-dock-actions .btn{
    min-height:0;
    padding:4px 10px;
    font-size:12px;
    font-weight:700;
    line-height:1.2;
    border-radius:8px;
}

@media (min-width:768px){
    .cart-dock-card{
        flex-direction:row;
        align-items:center;
    }

    .cart-dock-top{
        flex:1;
    }

    .cart-dock-actions{
        width:auto;
        flex-wrap:nowrap;
    }
}

.checkout-review pre{
    white-space:pre-wrap;
    word-break:break-word;
    background:#fff;
    border-radius:8px;
    padding:10px;
    margin:0;
    font-size:12px;
}

.pay-total{
    font-size:1.8rem;
    font-weight:800;
    color:var(--primary);
}