﻿

.rts-banner-area-one .banner-bg-image {
    border-radius: 6px;
}

.bg_one-banner.two {
    background-image: url('../../content/assets/images/banner/08.png');
}

.bg_one-banner {
    background-image: url('../../content/assets/images/banner/01.png');
}

.swiper-container {
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.pt_sm--20 {
    padding: 10px 0px !important;
}

/* 🌈 Custom Styling for Category Tabs */
.best-selling-grocery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: none;
    gap: 10px;
    margin-top: 20px;
}

    .best-selling-grocery .nav-item {
        margin: 5px;
    }

    .best-selling-grocery .nav-link {
        border-radius: 30px;
        padding: 5px 11px;
        font-weight: 600;
        font-size: 15px;
        color: #333;
        background: #f8f9fa;
        border: 2px solid #ddd;
        transition: all 0.3s ease-in-out;
    }

        .best-selling-grocery .nav-link:hover {
            background-color: #198754;
            color: white;
            border-color: #198754;
            transform: scale(1.05);
            box-shadow: 0px 3px 10px rgba(25, 135, 84, 0.3);
        }

        .best-selling-grocery .nav-link.active {
            background-color: #198754;
            color: #fff;
            border-color: #198754;
            box-shadow: 0px 3px 8px rgba(25, 135, 84, 0.3);
        }

/* 🌟 Responsive Design */
@@media (max-width: 768px) {
    .best-selling-grocery {
        flex-direction: column;
        align-items: center;
    }

        .best-selling-grocery .nav-link {
            width: 80%;
            text-align: center;
        }
}

.title-left {
    margin-bottom: 10px !important;
}


/*card*/
.card-2 {
    margin-right: 12px;
    margin-left: 12px;
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    min-height: 180px;
    background: rgb(244, 246, 250);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(244, 246, 250);
    border-image: initial;
    border-radius: 10px;
    padding: 20px 0px 18px;
    transition: 0.2s;
}

    .card-2:hover {
        box-shadow: rgba(0, 0, 0, 0.05) 5px 5px 15px;
        background: rgb(255, 255, 255);
        border-width: 1px;
        border-style: solid;
        border-color: rgb(188, 227, 201);
        border-image: initial;
        transition: 0.2s;
    }

.slick-slide {
    display: block;
}

.bg-9 {
    background-color: rgb(236, 255, 236) !important;
    height: 230px !important;
}

.slide {
    display: block;
    flex-shrink: 0;
    position: relative;
    transition-property: transform;
    width: 156px !important;
}

.category-image {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    height: 100%;
    width: 137px;
    visibility: visible;
    animation-delay: 0.3s;
    animation-name: fadeInUp;
}

.category-image {
    width: 100%;
    height: 140px; /* fixed height */
    object-fit: cover; /* crop and maintain layout */
    border-radius: 8px;
}

.swiper-slide .bottom {
    text-align: center;
    margin-top: 12px;
    min-height: 60px; /* keeps category name area fixed */
}

.image-and-action-area-wrapper img {
    width: 100%;
    height: 320px; /* set your desired height */
    object-fit: cover; /* crop and keep layout clean */
    border-radius: 6px;
}


.form-select {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .form-select:hover {
        border-color: #28a745;
    }

    .form-select:focus {
        outline: none;
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    }


.unit-dropdown-wrapper {
    position: relative;
    margin-top: -5px;
}

    .unit-dropdown-wrapper select {
        width: 100%;
        padding: 10px 40px 10px 12px;
        font-size: 14px;
        font-weight: 600;
        color: #1a202c;
        background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        cursor: pointer;
        appearance: none;
        transition: all 0.3s ease;
    }

        .unit-dropdown-wrapper select:hover {
            border-color: #28a745;
            background: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
        }

        .unit-dropdown-wrapper select:focus {
            outline: none;
            border-color: #28a745;
            box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
        }

    .unit-dropdown-wrapper::after {
        content: "▼";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        color: #28a745;
        pointer-events: none;
    }

.product-grid-container {
    padding: 20px 20px;
}

.product-card-wrapper {
    margin-bottom: 10px;
}

.single-shopping-card-one {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 95%;
    display: flex;
    flex-direction: column;
    width: 350px !important;
}

    .single-shopping-card-one:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

/* Image Section */
.image-and-action-area-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.thumbnail-preview {
    display: block;
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

    .thumbnail-preview img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.single-shopping-card-one:hover .thumbnail-preview img {
    transform: scale(1.05);
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

    .badge span {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white !important;
        padding: 6px 12px;
        border-radius: 2px;
        font-size: 12px;
        font-weight: 700;
        display: inline-block;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }

    .badge i {
        display: none;
    }

/* Action Buttons */
.action-share-option {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.single-shopping-card-one:hover .action-share-option {
    opacity: 1;
    transform: translateX(0);
}

.single-action {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .single-action:hover {
        background: #28a745;
        color: white;
        transform: scale(1.1);
    }

    .single-action i {
        font-size: 16px;
    }

/* Body Content */
.body-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .body-content .title {
        font-size: 16px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 4px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s ease;
    }

    .body-content a:hover .title {
        color: #28a745;
    }

    .body-content span {
        font-size: 16px;
        color: #718096;
        margin-bottom: 2px;
        display: block;
    }

/* Price Area */
.price-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

    .price-area .current {
        font-size: 22px;
        font-weight: 700;
        color: #e53e3e;
    }

    .price-area .previous {
        font-size: 15px;
        color: #a0aec0;
        text-decoration: line-through;
    }

/* Custom Dropdown */
.custom-unit-select {
    width: 100%;
    padding: 0px 35px 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background-position: right 12px center;
    background-size: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

    .custom-unit-select:hover {
        border-color: #28a745;
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
    }

    .custom-unit-select:focus {
        outline: none;
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
    }

/* Add to Cart Button */
.quantity-edit {
    margin-top: auto;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #177e3f !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .add-to-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
    }

    .add-to-cart-btn i {
        font-size: 16px;
    }

/* Responsive */
@media (max-width: 768px) {
    .body-content .title {
        font-size: 14px;
    }

    .price-area .current {
        font-size: 18px;
    }

    .price-area .previous {
        font-size: 13px;
    }
}

.single-shopping-card-one .body-content .price-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -5px !important;
}

.single-shopping-card-one .thumbnail-preview .badge span {
    position: absolute;
    top: 12px;
    left: -28px;
    font-size: 11px;
    line-height: 1.1;
    color: #2C3C28;
    text-align: left;
    font-weight: 700;
}

.title {
    transition: 0.3s;
    font-size: 20px;
    margin-bottom: 2px !important;
}

.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-unit-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #28a745;
    border-radius: 8px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    font-size: 14px;
}

/* Custom arrow */
.custom-dropdown-wrapper::after {
    content: "\25BE"; /* down arrow */
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Dropdown open UPWARD */
.custom-unit-select:focus {
    transform-origin: top center;
}

    .custom-unit-select:focus option {
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 100%;
    }

.title-area-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px !important;
}

.custom-unit-select {
    width: 100%;
    padding: 1px 10px !important;
    border: 1px solid #28a745;
    border-radius: 8px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    font-size: 14px;
}

.nice-select .list {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11);
    box-sizing: border-box;
    margin-top: -203px !important;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    -webkit-transform-origin: 50% 0;
    -ms-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
    -ms-transform: scale(0.75) translateY(-21px);
    transform: scale(0.75) translateY(-21px);
    -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 69;
}

#myModal-1 .modal-dialog {
    max-width: 100% !important;
    height: 100% !important;
/*    background-image: url(../../content/kaashtkart-data/kkmodel.png);*/
    background-image: url('../../kaashtkart-data/kkmodel.png');
    border-radius: 10px;
}

#myModal-1 {
    top: 28% !important;
    padding-right: 0 !important;
    transform: translateY(-30%);
}

.custom-swiper-nav {
    display: flex;
    gap: 12px;
}

.custom-swiper-prev,
.custom-swiper-next {
    width: 35px;
    height: 35px;
    border: 1px solid #77b27a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: 0.3s;
}

    .custom-swiper-prev i,
    .custom-swiper-next i {
        font-size: 15px;
        color: #77b27a;
        font-weight: 900;
    }

    .custom-swiper-prev:hover,
    .custom-swiper-next:hover {
        background: #177e3f;
    }

        .custom-swiper-prev:hover i,
        .custom-swiper-next:hover i {
            color: #fff;
        }
