/* ===================================
   Khati Shad by Takia
   Premium Style CSS
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root{
    --primary:#2E7D32;
    --primary-dark:#1B5E20;
    --accent:#FFD54F;
    --bg:#f7faf5;
    --text:#333;
    --radius:16px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Hind Siliguri',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

ul{
    list-style:none;
    margin:0;
    padding:0;
}

section{
    padding:60px 0;
}

.container{
    max-width:1200px;
}

/* ================= Scrollbar ================= */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#f1f1f1;
}

::-webkit-scrollbar-thumb{
    background:#2E7D32;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#1B5E20;
}

/* ================= Common Button ================= */

.btn-success{
    background:var(--primary);
    border:none;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btn-success:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

/* ================= Common Card ================= */

.card{
    border:none;
    border-radius:16px;
    overflow:hidden;
    transition:.3s;
    background:#fff;
}

.card:hover{
    transform:translateY(-5px);
}

/* ================= Input ================= */

.form-control{
    border-radius:10px;
    padding:12px;
    border:1px solid #ddd;
}

.form-control:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 .2rem rgba(46,125,50,.15);
}
/*==================================
        NAVBAR
==================================*/

/* ==========================
   Navbar CSS
========================== */

/*==================================
        NAVBAR
==================================*/

.navbar .container{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
}

.navbar-brand{
    display:flex;
    align-items:center;
  white-space:normal;
    margin-right:15px;
}

.navbar-brand img{
    width:55px;
    border-radius:50%;
}

.navbar-brand span{
    font-size:1.1rem;
    font-weight:700;
    color:#fff;
    margin-left:8px;
}

.navbar-nav{
    display:flex;
    flex-direction:row !important;
    align-items:center;
    margin-left:auto;
}

.nav-link{
    font-size:17px;
    color:#fff !important;
    padding:0 10px !important;
    white-space:nowrap;
}

#cartCount{
    font-size:12px;
    padding:4px 7px;
}

/* Mobile */

@media (max-width:576px){

    .navbar-brand img{
        width:42px;
    }

    .navbar-brand span{
        font-size:.85rem;
    }

    .nav-link{
        font-size:14px;
        padding:0 6px !important;
    }

    #cartCount{
        font-size:10px;
    }
}
/*==================================
        HERO
==================================*/

.hero{
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url("images/background-takia.jpeg") center center/cover no-repeat;
}
.hero h1{
    font-size:58px;
    font-weight:700;
    margin-bottom:15px;
}

.hero p{
    font-size:20px;
    margin-bottom:25px;
}

/*==================================
      OFFER BANNER
==================================*/

.offer-banner{

    background:linear-gradient(135deg,#198754,#2ecc71);

    color:#fff;

    border-radius:18px;

    padding:45px 20px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

}

.offer-banner h1{

    font-size:40px;

    font-weight:700;

}

.offer-banner p{

    font-size:18px;

    opacity:.95;

    margin-top:10px;

}

/*==================================
        SEARCH BOX
==================================*/

.search-box{

    position:relative;

}

.search-box i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#999;

}

.search-box input{

    height:55px;

    padding-left:48px;

    border:none;

    border-radius:50px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.search-box input:focus{

    box-shadow:0 5px 20px rgba(25,135,84,.20);

}

/*==================================
      CATEGORY TITLE
==================================*/

.category-title{

    background:linear-gradient(135deg,#198754,#2ecc71);

    color:#fff;

    text-align:center;

    padding:14px;

    border-radius:12px;

    font-size:24px;

    font-weight:700;

    margin:30px 0 20px;

    box-shadow:0 5px 15px rgba(0,0,0,.10);

}
/*==================================
      PRODUCT CARD
==================================*/

.product-card{
    border:none;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.product-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    transition:.4s;
}

.product-card:hover img{
    transform:scale(1.05);
}

.product-card .card-body{
    padding:14px;
    text-align:center;
}

/* Product Name */

.product-name{
    font-size:18px;
    font-weight:700;
    color:#2E7D32;
    line-height:1.4;
    min-height:48px;
    margin-bottom:8px;
}

/* Price */

.product-price{
    font-size:26px;
    font-weight:700;
    color:#198754;
    margin-bottom:5px;
}

/* Weight */

.product-card small{
    display:block;
    color:#777;
    font-size:14px;
    margin-bottom:12px;
}

/* Size Selector */

.size-selector{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:4px;
    margin-bottom:14px;
}

.size-btn{
    border:1px solid #198754;
    background:#fff;
    color:#198754;
    border-radius:8px;
    padding:5px 10px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.size-btn:hover,
.size-btn.active{
    background:#198754;
    color:#fff;
}

/* Quantity */

.quantity-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

.quantity-box button{
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#198754;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.quantity-box button:hover{
    background:#146c43;
}

.quantity-box input{
    width:45px;
    height:34px;
    border:1px solid #ddd;
    border-radius:8px;
    text-align:center;
    font-size:16px;
    font-weight:700;
    background:#fff;
}

/* Add to Cart Button */

.product-card .btn{
    width:100%;
    margin-top:15px;
    padding:9px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
}
/*==================================
        CART TOAST
==================================*/

.cart-toast{
    position:fixed;
    top:20px;
    right:-380px;
    width:320px;
    background:#fff;
    border-left:5px solid #198754;
    border-radius:12px;
    padding:15px;
    display:flex;
    align-items:center;
    gap:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    transition:.4s;
    z-index:9999;
}

.cart-toast.show{
    right:20px;
}

.cart-toast i{
    font-size:34px;
    color:#198754;
}

.cart-toast strong{
    display:block;
    font-size:17px;
    color:#222;
}

.cart-toast p{
    margin:3px 0 0;
    color:#666;
    font-size:14px;
}

/*==================================
            FOOTER
==================================*/

.footer-section{
    background:#198754;
    color:#fff;
    padding:60px 0 20px;
}

.footer-title{
    color:#ffd54f;
    margin-bottom:18px;
}

.footer-text,
.footer-copy{
    color:#f8f9fa;
}

.footer-links li{
    margin-bottom:10px;
}

.footer-links a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:#ffd54f;
    padding-left:6px;
}

.footer-line{
    border-color:rgba(255,255,255,.2);
}

.social-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    margin-right:10px;
    transition:.3s;
}

.social-icon:hover{
    background:#ffc107;
    color:#000;
}
/*==================================
        RESPONSIVE
==================================*/

@media (max-width:992px){

    .hero{
        min-height:420px;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:17px;
    }

    .product-card img{
        height:180px;
    }

}

@media (max-width:768px){

    .navbar-brand{
        font-size:20px;
    }

    .product-card img{
        height:170px;
    }

    .product-name{
        font-size:16px;
        min-height:42px;
    }

    .product-price{
        font-size:22px;
    }

    .size-btn{
        padding:4px 8px;
        font-size:12px;
    }

    .quantity-box button{
        width:30px;
        height:30px;
    }

    .quantity-box input{
        width:40px;
        height:30px;
        font-size:14px;
    }

    .category-title{
        font-size:20px;
    }

    .cart-toast{
        width:280px;
    }

}

@media (max-width:576px){

    .hero{
        min-height:320px;
    }

    .hero h1{
        font-size:28px;
    }

    .hero p{
        font-size:15px;
    }

    .product-card img{
        height:150px;
    }

    .product-card .card-body{
        padding:10px;
    }

    .product-name{
        font-size:15px;
    }

    .product-price{
        font-size:20px;
    }

    .btn{
        font-size:13px;
    }

}
/* ==========================
 Premium Cart Toast
========================== */
.premium-toast{

position:fixed;

bottom:20px;   /* নিচে দেখাবে */

right:20px;

width:330px;

background:#fff;

border-radius:15px;

padding:15px;

display:flex;

align-items:center;

gap:12px;

box-shadow:0 15px 35px rgba(0,0,0,.25);

z-index:1100000;

transform:translateX(120%);

transition:.4s ease;

}

.premium-toast.show{

transform:translateX(0);

}


.toast-icon{

width:50px;
height:50px;
background:#198754;
color:white;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;

}


.toast-content h6{

margin:0;
color:#198754;
font-weight:700;

}


.toast-content p{

margin:5px 0 0;
font-size:14px;

}

.toast-close{

border:none;
background:none;

}
/* Toast Text Color */

.toast-content p,
#toastText{
    color:#000 !important;
    font-weight:600;
}

.toast-content h6{
    color:#198754;
}
/*==================================
        ORDER SUMMARY
==================================*/

.order-summary{

    position:sticky;

    top:90px;

    align-self:flex-start;

    max-height:calc(100vh - 110px);

    overflow-y:auto;

}
/* texting */
/* ==================================
   MOBILE CART FIX
================================== */

.cart-product{
    display:flex;
    align-items:center;
    gap:6px;   /* 15px → 8px */
}
.cart-product img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:12px;
    border:1px solid #eee;
    flex-shrink:0;
}

.cart-info{
    display:flex;
    align-items:center;
}

.cart-info img{
    width:90px;
    height:auto;
    border-radius:8px;
}
.cart-info h6{
     word-break:break-word;
    font-size:17px;
    font-weight:700;
    color:#222;
    margin-bottom:2px;
    line-height:1.4;
}

.cart-info .weight{
    display:block;
    color:#666;
    font-size:14px;
    margin-bottom:5px;
}

.cart-info .price{
    color:#198754;
    font-weight:700;
    font-size:16px;
}

@media (max-width:768px){

    .table{
        min-width:650px;
    }

}

@media (max-width:576px){

    .table{
        min-width:620px;
    }

    .cart-product{
        align-items:center;
        gap:10px;
    }

    .cart-product img{
        width:60px;
        height:60px;
         object-fit:cover;
    }

    .cart-info h6{
        font-size:14px;
        line-height:1.4;
        margin-bottom:4px;
        word-break:break-word;
    }

    .cart-info .weight{
        font-size:12px;
        margin-bottom:3px;
    }

    .cart-info .price{
        font-size:13px;
    }

    #cartItems td{
        padding:8px 6px;
        vertical-align:top;
    }

    .quantity-box button{
        width:28px;
        height:28px;
        font-size:13px;
    }

    .quantity-box input{
        width:38px;
        height:28px;
        font-size:13px;
    }

}
/* Cart Table Fix */
#cartTable table{
    width:100%;
    table-layout:auto;
}

#cartTable th,
#cartTable td{
    vertical-align:middle;
    white-space:nowrap;
}
#cartTable td{
    padding:10px 8px;
}
#cartTable th:first-child,
#cartTable td:first-child{
    width:35%;
}

#cartTable .text-center{
    text-align:center;
}
