/* produc mobile dorpdown */


/* Bottom Sheet Base */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 70vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    transition: bottom 0.35s ease;
    z-index: 99999;
}

/* Active (visible) */
.bottom-sheet.active {
    bottom: 0;
}

/* Header */
.sheet-header {
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

/* Variant Items */
.variant-items {
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Individual Option (same as your dropdown style) */
.variant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
}



/* Product Section Styling */
.product-section-title {
    margin: 20px 0;
    position: relative;
}

.product-section-title h2 {
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
}


.view-all {
    font-size: 14px;
    float: right;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.view-all:hover {
    text-decoration: underline;
}

.product-card {
    border: none;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 500px; /* Fixed height for product card */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures even spacing between elements */
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


.product-card img {
    width: 100%;
    height: 180px; /* Fixed height for images */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover; /* Ensures the image covers the area without stretching */
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    font-weight: bold;
}

.index-product-details {
    padding: 15px;
    text-align: center;
    flex-grow: 1; /* Fills the space if the text is short */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* Ensures all elements are spaced properly */
}
/* 
.product-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
} */
.product-title {
    display: inline-block;
    max-width: 25ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #888;
    margin-left: 5px;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30px; /* Ensures consistent height for the price section */
}

.add-to-cart {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0; /* Prevents inconsistent spacing */
}

.quantity-select {
    margin: 10px 0;
}
/* Responsive Adjustments for Mobile View */
/* @media (max-width: 767.98px) {
    .product-card img {
        width: 100%;
        height: 100px;
        object-fit: fill;
    }
    .discount-badge {
        font-size: 8px;

    }
    .product-card {
        height: auto;
    }

} */
 
.variant-dropdown {
    position: relative;
}

.variant-list {
    position: absolute;
    width: 100%;
    z-index: 10;
    background-color: #fff;
}

.variant-option:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Desktop only: BigBasket-like variant dropdown */
@media (min-width: 1025px) {
    .product-card {
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    .variant-dropdown {
        margin-top: 6px;
        position: relative;
    }

    .bb-variant-trigger {
        border: 1px solid #d2d8dd !important;
        border-radius: 8px !important;
        min-height: 38px;
        font-size: 13px;
        font-weight: 600;
        background: #fff;
        color: #222;
        cursor: pointer;
    }

    .bb-variant-trigger .fa-chevron-down {
        color: #757575;
        font-size: 12px;
        transition: transform 0.2s ease;
    }

    .bb-variant-trigger.open .fa-chevron-down {
        transform: rotate(180deg);
    }

    .variant-list {
        width: calc(100% + 64px);
        left: -32px;
        z-index: 9999;
        border: 1px solid #dde3e7 !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 28px rgba(30, 41, 59, 0.14) !important;
        background: #fff !important;
        padding: 6px !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    #product-slider,
    #sliderTrack {
        overflow: visible !important;
    }

    .variant-option {
        border: 1px solid transparent !important;
        border-radius: 8px;
        padding: 8px 8px !important;
        margin-bottom: 4px;
    }

    .variant-option:last-child {
        margin-bottom: 0;
    }

    .variant-option:hover {
        background: #f5f9f5;
        border-color: #e4efe4 !important;
    }

    .variant-option.active {
        background: #eef8ef;
        border-color: #c6e3c8 !important;
    }

    .kg-label {
        font-size: 13px;
        font-weight: 700;
        color: #1f2937;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .variant-meta {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
    }

    .variant-meta .text-success.fw-bold {
        font-size: 100%;
    }

    .variant-meta .variant-old-price {
        font-size: 100%;
    }

    .variant-meta .variant-current-price {
        font-size: 100%;
    }

    .variant-cart-btn {
        width: 56px;
        height: 26px;
        line-height: 1;
        padding: 0;
        border-radius: 6px;
        font-weight: 700;
        font-size: 12px;
        background: #d9232e;
        border-color: #d9232e;
    }

    .variant-cart-btn:hover {
        background: #b31c25;
        border-color: #b31c25;
    }
}



/* Responsive Adjustments for Mobile View */
@media (max-width: 767.98px) {

    .variant-cart-btn{
        width: 3.5rem;
    height: 1.25rem;
    font-size: 0.75rem;
    padding: 1px;
    }

    .product-price {
        margin-bottom: 15px;
    margin-top: 15px;
    }
    .off{
        display: none;
    }
    .kg-label{
            font-size: 80%;
    font-weight: 400;

    }
    
    .product-card img {
        width: 100%;
        height: 100px;
        object-fit: fill;
    }

    .discount-badge {
        font-size: 8px;
    }

   .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px; /* Adjust as needed */
  }

  .index-product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }


  .product-title {
    min-height: 45px; /* Keeps text area uniform */
  }
    /* .product-title {
        font-size: 14px;
        white-space: normal; 
    } */
    .product-title {
        max-width: 17ch;
    }

    .product-price {
        font-size: 16px;
    }

    .original-price {
        font-size: 12px;
    }

    .add-to-cart {
        font-size: 12px; /* Slightly reduce button font size */
    }
}


@media (min-width: 600px) and (max-width: 1024px) {
    .product-card.border.rounded {
        height: 370px !important;
    }
}
.grid-cols-9 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-12 {
    grid-template-columns: repeat(4, 1fr);
}

/* category */
