/*
Template Name: Foodmart
Author: Askbootstrap
Author URI: https://themeforest.net/user/askbootstrap
Version: 0.1
*/

/*
- Body
- Custom Bootstrap
- Scroll Bar
- Typography
- Index
- Cart
- Track Order
- Track Delivery Boy
- Listing
*/

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&amp;display=swap');
@import url("../../../../cdn.jsdelivr.net/npm/bootstrap-icons%401.10.3/font/bootstrap-icons.css");

:root {
    --green: #0d8420;
    --green-light: #e8f5e9;
    --yellow: #ffe241;
    --orange: #ec6436;
    --orange-light: #fff0eb;
    --light: #8292B4;
    --light-black: #444444;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

/* Body */
body {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: var(--light-black);
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.9;
}

p {
    font-size: 13px;
    margin-bottom: 0.5rem;
}

/* Custom Bootstrap */
.h6, h6 {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.h5, h5 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 500;
}

.btn {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.form-control {
    font-size: 15px;
    border-radius: var(--border-radius-sm);
    padding: 10px 15px;
}

.text-muted {
    color: var(--light) !important;
}

.link-dark {
    color: var(--light-black) !important;
}

.link-dark:hover {
    color: var(--orange) !important;
}

.osahan-mb-1 {
    margin-bottom: 4px;
}

.fw-bold {
    font-weight: 500 !important;
}

.small, small {
    font-size: 11px;
}

.bg-primary {
    background-color: var(--orange) !important;
}

.text-primary {
    color: var(--orange) !important;
}

.btn-primary {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    box-shadow: 0 3px 10px rgba(236, 100, 54, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 100, 54, 0.3);
}

.btn-outline-success {
    border-color: var(--green) !important;
    color: var(--green) !important;
    background: var(--green-light) !important;
    font-weight: 500;
}

.btn-outline-success:hover {
    background: var(--green) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 19px;
    font-size: 12px;
}

.btn-lg {
    font-size: 15px;
    padding: 15px 20px;
}

.form-control {
    box-shadow: none !important;
    border: 1px solid var(--gray-200);
}

.form-control:focus {
    border-color: var(--orange);
}

.offcanvas-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.form-check .form-check-input:focus {
    box-shadow: none !important;
}

.form-check .form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.shadow, .shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.border {
    border: 1px solid #EAF1F5 !important;
}

.border-bottom {
    border-bottom: 1px solid #EAF1F5 !important;
}

.border-top {
    border-top: 1px solid #EAF1F5 !important;
}

.border-start {
    border-left: 1px solid #EAF1F5 !important;
}

.border-end {
    border-right: 1px solid #EAF1F5 !important;
}

.accordion-item {
    border-color: #eaf1f6;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: var(--orange-light);
    color: var(--orange);
}

.icon-sm {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
}

.icon-lg {
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
}

.all-cate.slick-initialized, 
.top-picks.slick-initialized, 
.coupons.slick-initialized, 
.product-slider.slick-initialized {
    visibility: visible;
    opacity: 1;  
}

.all-cate, 
.top-picks, 
.coupons, 
.product-slider {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

/* Slick slider customization */
.slick-prev, .slick-next {
    z-index: 1;
}

.slick-prev:before, .slick-next:before {
    color: var(--orange);
    opacity: 0.8;
}

/* Scroll Bar */
html ::-webkit-resizer {
    background-color: #ffffff;
}

html ::-webkit-scrollbar {
    width: 6px;
    overflow: visible;
}

html ::-webkit-scrollbar-button {
    display: none;
}

html ::-webkit-scrollbar-corner {
    background-color: #ffffff;
}

html ::-webkit-scrollbar-thumb {
    background-color: rgba(138, 138, 138, 0.4);
    border-radius: 10px;
}

html ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(138, 138, 138, 0.7);
}

html ::-webkit-scrollbar-track-piece {
    background-color: #ffffff;
}

/* Index */
.homepage-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px !important;
}

.user-icon {
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.user-icon:hover {
    transform: scale(1.05);
}

.product-box {
    height: 130px;
    width: auto;
    border: 1px solid #e5e5e5;
    transition: var(--transition);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-box:hover {
    border-color: var(--orange);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}

.btn-category {
    position: absolute;
    bottom: 6rem;
    right: 1rem;
    transition: var(--transition);
}

.btn-category:hover {
    transform: scale(1.05);
}

.osahan-badge {
    font-size: 9px;
    letter-spacing: 0.5px;
    line-height: 11px;
    padding: 6px 5px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.osahan-badge b {
    font-size: 13px;
    font-weight: 500;
}

.all-cate p.card-title {
    line-height: 1.4;
    margin-top: 8px;
    font-weight: 400;
}

.all-cate .card {
    transition: var(--transition);
}

.all-cate .card:hover {
    transform: translateY(-5px);
}

.osahan-offer-banner {
    height: 170px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.osahan-offer-banner-2 {
    height: 120px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.top-picks-item {
    padding: 8px 0;
}

.top-picks-item .card {
    transition: var(--transition);
}

.top-picks-item .card:hover {
    transform: translateY(-5px);
}

.top-picks-item h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

/* Cart */
.cart-product {
    width: 60px;
    transition: var(--transition);
}

.cart-product:hover {
    transform: scale(1.05);
}

.custom-checkbox .btn-outline-danger {
    border-color: #d1d1d1 !important;
    color: #000 !important;
}

.custom-checkbox .btn-check:checked+.btn-outline-danger {
    background-color: var(--orange-light) !important;
    border-color: var(--orange) !important;
    color: var(--orange) !important;
}

.osahan-count input {
    width: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 4px;
}

.osahan-count button {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 0;
}

/* Track Order */
.tracking-time {
    margin-top: -65px;
    position: relative;
}

.order-time {
    height: 85px;
    width: 85px;
    border: 5px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Track Delivery Boy */
.delivery-boy-img {
    min-width: 42px;
    max-width: 42px;
    border-radius: 50%;
    overflow: hidden;
}

.osahan-user-profile img {
    height: 55px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper.nav-wrapper-0 .nav-content h2 {
    display: none;
}

li.nav-parent.level-open h2 {
    display: block !important;
}

/* Listing */
.listing-left {
    width: 85px;
    max-width: 85px;
    min-width: 85px;
}

.listing-navbar img {
    width: 35px;
    transition: var(--transition);
}

.listing-navbar img:hover {
    transform: scale(1.1);
}

.osahan-item-sidebar .nav-link {
    padding: 0px;
    position: relative;
    margin: 10px 0px;
    transition: var(--transition);
}

.osahan-item-sidebar .nav-link img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    padding: 5px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.osahan-item-sidebar .nav-link p {
    color: var(--light);
    transition: var(--transition);
    margin-top: 5px;
}

.osahan-item-sidebar .nav-link.active p {
    color: var(--orange);
    font-weight: 500;
}

.osahan-item-sidebar .nav-link.active {
    background: none;
}

.osahan-item-sidebar .nav-link.active:after {
    content: "";
    position: absolute;
    width: 6px;
    background: var(--orange);
    top: 0;
    bottom: 0;
    right: -10px;
    border-radius: 9px;
}

.osahan-item-sidebar .nav-link.active img {
    background: var(--orange-light) !important;
    transform: scale(1.05);
}

.coupon-top-shape {
    width: 12px;
    height: 12px;
    background: var(--white);
    left: -6px;
    top: -11px;
    border-radius: 50px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.coupon-bottom-shape {
    width: 12px;
    height: 12px;
    background: var(--white);
    left: -6px;
    bottom: -11px;
    border-radius: 50px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.coupon-top-shape-2 {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    left: -14px;
    bottom: -14px;
    border-radius: 50px;
    box-shadow: 1px 0px 1px #e0e0e0;
}

.coupon-bottom-shape-2 {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    right: -14px;
    bottom: -14px;
    border-radius: 50px;
    box-shadow: -1px 0px 1px #e0e0e0;
}

.osahan-coupons-code .border-end {
    border-right-style: dashed !important;
    border-color: var(--white) !important;
}

/* Responsive styles */
@media (max-width: 767px) {
    .product-box {
        height: 100px;
    }
    
    .osahan-offer-banner {
        height: 130px;
    }
    
    .osahan-offer-banner-2 {
        height: 100px;
    }
    
    .h5, h5 {
        font-size: 16px;
    }
    
    .btn-lg {
        padding: 12px 15px;
        font-size: 14px;
    }
}