#profile-tab-pane .single-shopping-card-one {
    display: flex;
    gap: 15px;
    padding: 15px;
    height: 100%;
}

#profile-tab-pane .thumbnail-preview {
    flex: 0 0 120px;
    max-width: 120px;
}

#profile-tab-pane .thumbnail-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

#profile-tab-pane .list-card-layout {
    flex: 1;
}

#profile-tab-pane .list-card-layout .thumbnail-preview {
    flex: 0 0 120px;
    max-width: 120px;
}

#profile-tab-pane .list-card-layout .thumbnail-preview img {
    width: 100%;
    height: 100%;
    min-width: 120px;
    object-fit: cover;
}

#profile-tab-pane .list-card-layout .body-content {
    flex: 1;
    width: 100%;
}

#profile-tab-pane .body-content {
    flex: 1;
    display: grid !important;
    grid-template-columns: 1fr 120px;
    gap: 15px;
}

@media (max-width: 991px) {
    #profile-tab-pane .body-content {
        grid-template-columns: 1fr;
    }

    #profile-tab-pane .natural-value {
        grid-column: 1 / -1;
    }
}

#profile-tab-pane .title-area-left {
    min-width: 0;
}

#profile-tab-pane .title-area-left .title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 5px;
}

#profile-tab-pane .availability {
    font-size: 13px;
}

#profile-tab-pane .price-area {
    margin: 5px 0 10px;
}

#profile-tab-pane .natural-value {
    min-width: auto !important;
    width: auto !important;
}

#profile-tab-pane .natural-value h6 {
    font-size: 14px;
    margin-bottom: 8px;
}

#profile-tab-pane .natural-value .single {
    display: block !important;
    margin-bottom: 4px;
    font-size: 12px;
}

#profile-tab-pane .cart-counter-action {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

#profile-tab-pane .quantity-edit {
    width: 70px;
}

#profile-tab-pane .rts-btn {
    padding: 0 10px;
    font-size: 12px;
}
.action-buttons{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
}

.wishlist-btn-wrapper{
    display:flex;
    align-items:center;
}

.wishlist-btn-wrapper a,
.wishlist-btn-wrapper button{
    width:38px;
    height:38px;
    border:1px solid #6ca12b;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6ca12b;
    background:#fff;
}

.wishlist-btn-wrapper a:hover,
.wishlist-btn-wrapper button:hover{
    background:#6ca12b;
    color:#fff;
}

.shop-search-wrapper {
    margin-bottom: 15px;
}

.shop-search-wrapper .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.shop-search-wrapper .form-control:focus {
    outline: none;
    border-color: #6ca12b;
    box-shadow: 0 0 0 2px rgba(108, 161, 43, 0.1);
}

.shop-filter-search {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.shop-filter-search:focus {
    outline: none;
    border-color: #6ca12b;
    box-shadow: 0 0 0 2px rgba(108, 161, 43, 0.1);
}

/* Quantity control: widen the -/qty/+ so none of the three parts is clipped or
   overlapping, in both the grid and list view. The list view (profile-tab-pane)
   previously forced a 70px width which collapsed the controls. */
#profile-tab-pane .quantity-edit,
.single-shopping-card-one .cart-counter-action .quantity-edit {
    width: 130px;
}

#profile-tab-pane .quantity-edit .input,
.single-shopping-card-one .cart-counter-action .quantity-edit .input,
#profile-tab-pane .quantity-edit input,
.single-shopping-card-one .cart-counter-action .quantity-edit input {
    width: 52px;
    min-width: 40px;
    max-width: 60px;
    text-align: center;
    border: none;
    font-weight: 600;
    box-sizing: border-box;
}

/* Reset Filter row: keep the existing theme but stop the selects/button from
   overlapping or wrapping onto a broken second line on small screens. */
.nice-select-area-wrapper-and-button .button-area {
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    .nice-select-area-wrapper-and-button {
        flex-wrap: wrap;
        gap: 10px 8px;
    }
    .nice-select-area-wrapper-and-button .nice-select-wrapper-1 {
        flex: 1 1 100%;
    }
    .nice-select-area-wrapper-and-button .nice-select-wrapper-1 .single-select {
        width: calc(50% - 5px);
    }
    .nice-select-area-wrapper-and-button .nice-select-wrapper-1 .single-select .nice-select {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .nice-select-area-wrapper-and-button .nice-select-wrapper-1 .single-select {
        width: 100%;
        max-width: 100%;
    }
    .nice-select-area-wrapper-and-button .button-area {
        width: 100%;
    }
    .nice-select-area-wrapper-and-button .button-area button {
        min-width: 100%;
    }
}

/* Sidebar category/brand list: ensure name and count are aligned and responsive.
   Keep existing colors/typography; only control layout. */
.category-wrapper .single-category {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-wrapper .single-category input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.category-wrapper .single-category label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px; /* increased gap between name and count */
    width: 100%;
    box-sizing: border-box;
}

/* Ensure the filter box label behaves as a block-level full-width element
   to provide stable spacing inside the sidebar filter boxes. */
.single-filter-box .filterbox-body .category-wrapper .single-category label {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

/* Hover and interaction improvements for sidebar filter rows. */
.single-filter-box .filterbox-body .category-wrapper .single-category label {
    align-items: center;
    cursor: pointer;
    /* padding: 6px 8px; */
    border-radius: 6px;
}
.single-filter-box .filterbox-body .category-wrapper .single-category:hover label,
.single-filter-box .filterbox-body .category-wrapper .single-category label:hover {
    background: rgba(108, 161, 43, 0.04); /* subtle theme tint */
}
.single-filter-box .filterbox-body .category-wrapper .single-category input[type="checkbox"] {
    margin-right: 8px;
}
.category-wrapper .single-category label .name {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0; /* allow truncation */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-wrapper .single-category label .count {
    flex: 0 0 auto;
    margin-left: 12px; /* extra breathing room from name */
    white-space: nowrap;
    color: inherit; /* preserve theme color */
}

@media (max-width: 576px) {
    .category-wrapper .single-category label .name {
        white-space: normal;
        overflow: visible;
    }
}

/* Product card image: aspect-ratio and object-fit */
.single-shopping-card-one .thumbnail-preview,
.single-shopping-card-one .thumbnail-preview img {
    display: block;
    width: 100%;
}

.single-shopping-card-one .thumbnail-preview img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Product card title: prevent overflow with ellipsis */
.single-shopping-card-one .product-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Inline styles moved from blade templates */
.category-name-text {
    font-size: 12px;
    color: #629D23;
    margin-bottom: 5px;
    display: block;
}

.brand-name-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.price-area-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-stars .fa-solid.fa-star {
    color: #f5a623;
    font-size: 12px;
}

.rating-stars .fa-regular.fa-star {
    color: #ccc;
    font-size: 12px;
}

.rating-stars .review-count {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
}

.availability-out-of-stock {
    color: #d23f3f;
    font-weight: 600;
}

.availability-low-stock {
    color: #e67e22;
    font-weight: 600;
}

.availability-in-stock {
    color: #27ae60;
    font-weight: 600;
}

.sku-text {
    font-size: 12px;
    color: #999;
}

/* Quantity edit controls responsive breakpoints */
.single-shopping-card-one .cart-counter-action .quantity-edit,
#profile-tab-pane .quantity-edit {
    width: 130px;
}

.single-shopping-card-one .cart-counter-action .quantity-edit .input,
#profile-tab-pane .quantity-edit .input {
    width: 52px;
    min-width: 40px;
    max-width: 60px;
    text-align: center;
    border: none;
    font-weight: 600;
    box-sizing: border-box;
}

/* 320px breakpoint */
@media (max-width: 320px) {
    .single-shopping-card-one .cart-counter-action .quantity-edit,
    #profile-tab-pane .quantity-edit {
        width: 110px;
    }

    .single-shopping-card-one .cart-counter-action .quantity-edit .input,
    #profile-tab-pane .quantity-edit .input {
        width: 44px;
        min-width: 36px;
        max-width: 48px;
        font-size: 12px;
    }

    .single-shopping-card-one .cart-counter-action .button-wrapper-action .button {
        padding: 4px 6px;
        font-size: 11px;
    }

    .filter-toggle-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .top-filter .left-content {
        gap: 8px;
    }

    .shop-sort-wrapper .shop-sort-select {
        min-width: 140px;
        font-size: 12px;
        height: 38px;
    }

    .button-tab-area .single-button {
        padding: 6px;
    }

    .button-tab-area svg {
        width: 14px;
        height: 14px;
    }
}

/* 375px breakpoint */
@media (max-width: 375px) {
    .single-shopping-card-one .cart-counter-action .quantity-edit,
    #profile-tab-pane .quantity-edit {
        width: 120px;
    }

    .single-shopping-card-one .cart-counter-action .quantity-edit .input,
    #profile-tab-pane .quantity-edit .input {
        width: 48px;
        min-width: 38px;
        max-width: 54px;
    }

    .shop-sort-wrapper .shop-sort-select {
        min-width: 150px;
    }
}

/* 425px breakpoint */
@media (max-width: 425px) {
    .single-shopping-card-one .cart-counter-action .quantity-edit,
    #profile-tab-pane .quantity-edit {
        width: 125px;
    }

    .filter-toggle-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .shop-sort-wrapper .shop-sort-select {
        min-width: 160px;
    }

    .button-tab-area .single-button {
        padding: 8px 10px;
    }
}

/* 1366px breakpoint */
@media (max-width: 1366px) {
    .single-shopping-card-one .cart-counter-action .quantity-edit,
    #profile-tab-pane .quantity-edit {
        width: 120px;
    }

    .single-shopping-card-one .cart-counter-action .quantity-edit .input,
    #profile-tab-pane .quantity-edit .input {
        width: 48px;
        min-width: 38px;
        max-width: 56px;
    }
}

/* 1600px breakpoint */
@media (max-width: 1600px) {
    .single-shopping-card-one .cart-counter-action .quantity-edit,
    #profile-tab-pane .quantity-edit {
        width: 128px;
    }

    .single-shopping-card-one .cart-counter-action .quantity-edit .input,
    #profile-tab-pane .quantity-edit .input {
        width: 50px;
        min-width: 40px;
        max-width: 58px;
    }
}

/* 1920px breakpoint */
@media (min-width: 1920px) {
    .single-shopping-card-one .cart-counter-action .quantity-edit,
    #profile-tab-pane .quantity-edit {
        width: 140px;
    }

    .single-shopping-card-one .cart-counter-action .quantity-edit .input,
    #profile-tab-pane .quantity-edit .input {
        width: 56px;
        min-width: 44px;
        max-width: 64px;
    }
}

/* Grid/List view toggle buttons responsive */
.button-tab-area .nav-item .nav-link.single-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-tab-area .nav-item .nav-link.single-button.active {
    background: var(--color-primary, #629d23);
    border-color: var(--color-primary, #629d23);
    color: #fff;
}

.button-tab-area .nav-item .nav-link.single-button svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 320px) {
    .button-tab-area .nav-item .nav-link.single-button {
        padding: 6px 8px;
    }

    .button-tab-area .nav-item .nav-link.single-button svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 425px) {
    .button-tab-area {
        flex-shrink: 0;
    }

    .button-tab-area .nav-item .nav-link.single-button {
        padding: 7px 10px;
    }
}

@media (max-width: 1366px) {
    .button-tab-area .nav-item .nav-link.single-button {
        padding: 8px 10px;
    }

    .button-tab-area .nav-item .nav-link.single-button svg {
        width: 15px;
        height: 15px;
    }
}

@media (min-width: 1600px) {
    .button-tab-area .nav-item .nav-link.single-button {
        padding: 10px 16px;
    }

    .button-tab-area .nav-item .nav-link.single-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1920px) {
    .button-tab-area .nav-item .nav-link.single-button {
        padding: 12px 20px;
    }

    .button-tab-area .nav-item .nav-link.single-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Product gallery thumbnails responsive */
.product-thumb-area {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.product-thumb-area::-webkit-scrollbar {
    display: none;
}

.product-thumb-area .thumb-wrapper {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 80px;
    height: 80px;
    min-width: 80px;
}

.product-thumb-area .thumb-wrapper .product-thumb {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-thumb-area .thumb-wrapper .product-thumb.active,
.product-thumb-area .thumb-wrapper .product-thumb:hover {
    border-color: #629D23;
}

.product-thumb-area .thumb-wrapper .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 575px) {
    .product-thumb-area {
        gap: 10px;
        padding: 8px 0;
    }

    .product-thumb-area .thumb-wrapper {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
}

@media (max-width: 375px) {
    .product-thumb-area .thumb-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

@media (max-width: 320px) {
    .filter-toggle-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
}

@media (max-width: 375px) {
    .filter-toggle-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 425px) {
    .filter-toggle-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1366px) {
    .filter-toggle-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}

@media (min-width: 1600px) {
    .filter-toggle-btn {
        padding: 12px 22px;
        font-size: 15px;
    }
}

@media (min-width: 1920px) {
    .filter-toggle-btn {
        padding: 14px 26px;
        font-size: 16px;
    }
}

.single-shopping-card-one .disabled-out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
