.active-sort-price{
    color: #ff6f00 !important;
}
.product-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #e2e8f0;
}

.grid-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.grid-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-grid-item:hover .grid-item-img {
    transform: scale(1.05);
}

.grid-item-details {
    padding: 1.1rem .40rem 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.supplier-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.price-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: #333333;
    line-height: 1.05;
    white-space: nowrap;
}
.price-discount {
    color: #e53935;
}

.price-symbol {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.supplier-logo-img {
    width: 15%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}

.supplier-business-name {
    font-size: 0.65rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-heading {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.4rem 0;
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.product-min-order {
    font-size: 0.78rem;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    line-height: 1;
}

.discount-badge .percent-sign {
    font-size: 0.85rem;
    opacity: 0.95;
}


.original-price {
    font-size: 0.95rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 500;
}


.current-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}


.normal-price {
    color: #1f2937;
    font-size: 1.2rem;
}

.price-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}


.product-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}


.products-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    padding: .40rem 0;
}

.products-grid-section {
    width: 100%;
}

.grid-title {
    font-weight: 600;
    font-size: 1rem;
}

.products-grid-wrapper {
    position: relative;
    overflow: hidden;
}

.product-grid-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.28s ease;
    position: relative;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    min-height: 360px;
}



/*////////////*/
.filters-box {
    position: sticky !important;
    top: 110px !important;
    align-self: flex-start !important;
    width: 100% !important;
    max-width: 310px !important;
    overflow: visible !important;
    padding: 0 !important;
}

.subset-card-right,
.button-category-filter {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.05) !important;
    margin-bottom: 10px !important;
    transition: all .25s ease !important;
}

.subset-card-right:hover,
.button-category-filter:hover {
    box-shadow: 0 14px 36px rgba(0,0,0,0.07) !important;
}

.title__filters {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
}

.line-card-Selection-discourse {
    border: none !important;
    height: 1px !important;
    background: rgba(0,0,0,0.06) !important;
    margin: 10px 0 !important;
}

.title_card_item_filter {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    color: #222 !important;
    transition: all .2s ease !important;
}

.title_card_item_filter:hover {
    color: #ff7a00 !important;
}

.arrow_btn_filters {
    width: 16px !important;
    height: 16px !important;
    transition: transform .3s ease !important;
}

.title_card_item_filter:not(.collapsed) .arrow_btn_filters {
    transform: rotate(180deg) !important;
}

.collapse-conversation {
    padding: 4px 0 2px 0 !important;
}

.card-body-Selection-discourses {
    border: none !important;
    padding: 0 !important;
}

.item-checkbox-city {
    margin-bottom: 4px !important;
}

.checkbox-lable-city {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    color: #333 !important;
    transition: all .2s ease !important;
}

.checkbox-lable-city:hover {
    color: #ff7a00 !important;
}

.input-checkbox {
    width: 18px !important;
    height: 18px !important;
    accent-color: #ff7a00 !important;
    cursor: pointer !important;
}

.filters-mobile-container {
    display: none;
    position: sticky;
    top: 80px;
    z-index: 10;
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.filters-mobile-wrapper {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    white-space: nowrap;
}

.btn-filter .icon_filter_sort {
    width: 16px;
    height: 16px;
}

.fab-filter-button {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, #ff7a00, #ff6f00);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fab-filter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.fab-filter-button svg {
    width: 24px;
    height: 24px;
}

.fab-filter-button .filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-end;
}

.modal.show .modal-dialog-bottom {
    transform: translateY(0);
}

.modal-content-bottom {
    border-radius: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0.8;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-bottom {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 0;
    position: relative;
}

.modal-header-bottom::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.modal-title-bottom {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 auto;
}

.btn-close-bottom {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    right: 16px;
    top: 16px;
}

.btn-close-bottom:hover {
    background: #f8fafc;
    color: #333;
}

.modal-body-bottom {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fafbfc;
}

.filters-container-mobile {
    padding: 16px;
}

.filter-section-mobile {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.filter-section-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.filter-section-header:hover {
    background: #f8fafc;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #666;
}

.filter-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.filter-section-content.expanded {
    max-height: 400px;
    overflow-y: auto;
}

.filter-options-mobile {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option-mobile:hover {
    transform: translateX(4px);
}

.filter-option-mobile input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff7a00;
    border-radius: 4px;
    cursor: pointer;
}

.filter-option-mobile input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #ff7a00;
    cursor: pointer;
}

.filter-option-mobile label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
    flex: 1;
    user-select: none;
}

.filter-option-mobile.selected label {
    color: #ff7a00;
    font-weight: 500;
}

.modal-footer-bottom {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 0;
}

.btn-apply-filters {
    flex: 1;
    background: linear-gradient(135deg, #ff7a00, #ff6f00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-apply-filters:active {
    transform: translateY(0);
}

.btn-clear-filters {
    flex: 1;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-badge {
    background: #ff7a00;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 8px;
}

@media screen and (max-width: 992px) {
    .filters-box {
        display: none;
    }

    .filters-mobile-container {
        display: none;
    }

    .fab-filter-button {
        display: flex;
    }

    .mobile-categories-container {
        display: block;
    }
}

.mobile-categories-container {
    display: none;
    padding: 10px 0;
    background-color: #fff;
}

.mobile-categories-wrapper {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 0 10px;
}

.mobile-category-chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f1f5f9;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.mobile-category-chip.active {
    background-color: #ff7a00;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

/* Responsive Grid Layout */
@media (max-width: 576px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .price-text {
        font-size: 1rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .products-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Skeleton Loader Styles */
.skeleton-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    min-height: 360px;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
    background: #f0f2f5;
    animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-details {
    padding: 1.1rem .40rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skeleton-line {
    height: 1rem;
    background: #f0f2f5;
    border-radius: 4px;
    margin-top: 0.4rem;
    animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line-md {
    width: 75%;
}

.skeleton-line-sm {
    width: 50%;
    height: 0.8rem;
    margin-top: 1rem;
}

@keyframes skeleton-pulse {
    50% {
        opacity: .5;
    }
}

.mt-6 {
    margin-top: 4rem !important;
}
.mt-7 {
    margin-top: 4rem !important;
}
