.sidebar-menu-item.open .has-submenu-slide .has-submenu-slide-content.open {
    display: block !important;
}

/* ── Premium Product Cards ── */
.single-product-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.single-product-item:hover {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Fixed image height */
.single-product-item .product-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 180px !important;
    flex-shrink: 0;
}
.single-product-item .product-thumb a {
    display: block;
    height: 100%;
}
.single-product-item .product-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.single-product-item:hover .product-thumb img {
    transform: scale(1.04);
}

/* No-image placeholder */
.product-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f4f5f7;
    border-radius: 10px;
    color: #b0b4bc;
}
.product-thumb-placeholder span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Content area */
.single-product-item .content-wrap {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 10px 10px;
}
.single-product-item .product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.single-product-item .product-rating {
    background: rgba(255, 193, 7, 0.08);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
}
.single-product-item .product-rating .text {
    font-size: 11px;
    font-weight: 600;
    color: var(--td-heading);
}
.single-product-item .product-info .wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.single-product-item:hover .product-info .wishlist-btn,
.single-product-item .product-info .wishlist-btn.stroked {
    opacity: 1;
}

/* Product contents — flex column for pinning */
.single-product-item .product-contents {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
.single-product-item .product-contents .title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--td-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.single-product-item .product-contents .title a {
    color: inherit;
    transition: color 0.2s ease;
}
.single-product-item .product-contents .title:hover a {
    color: var(--td-primary);
}
.single-product-item .product-contents .author {
    font-size: 12px;
    font-weight: 400;
    color: rgba(30, 29, 37, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}
.single-product-item .product-contents .author span {
    color: rgba(30, 29, 37, 0.7);
    font-weight: 500;
}

/* Price info — always pinned to bottom */
.single-product-item .product-contents .price-info {
    margin-top: auto !important;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.single-product-item .product-contents .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.single-product-item .product-contents .price .current-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--td-primary);
    letter-spacing: -0.2px;
}
.single-product-item .product-contents .price .old-price {
    font-size: 12px;
    color: rgba(30, 29, 37, 0.4);
    text-decoration: line-through;
    font-weight: 400;
}
.single-product-item .product-contents .offer .offer-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(30, 29, 37, 0.55);
}

/* ── Mobile Enhancements ── */

/* Category bar: horizontal scroll on mobile */
@media (max-width: 767px) {
    .all-items-section .section_space-pT {
        padding-top: 20px !important;
    }
    .items-filter-wrapper .category-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        margin-bottom: 20px !important;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .items-filter-wrapper .category-bar::-webkit-scrollbar {
        display: none;
    }
    .items-filter-wrapper .category-bar .cat-item {
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        white-space: nowrap;
        flex-shrink: 0;
        gap: 5px !important;
    }
    .items-filter-wrapper .category-bar .cat-item .icon {
        font-size: 12px !important;
    }
    .items-filter-wrapper .category-bar .cat-item .icon iconify-icon {
        width: 14px !important;
        height: 14px !important;
    }
    .items-filter-wrapper .category-bar .cat-item .text {
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    /* Filter bar: stack vertically */
    .items-filter-wrapper .filter-bar {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .items-filter-wrapper .filter-bar .price-range-option {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        padding: 8px 12px !important;
    }
    .items-filter-wrapper .filter-bar .price-range .price-range-values {
        gap: 6px;
    }
    .items-filter-wrapper .filter-bar .price-range .price-range-values input {
        width: 70px !important;
        font-size: 13px !important;
    }
    .items-filter-wrapper .filter-bar .right-options {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .items-filter-wrapper .filter-bar .right-options .default-select {
        flex: 1;
    }

    /* Product cards: tighter on mobile */
    .single-product-item {
        padding: 5px !important;
        border-radius: 10px !important;
    }
    .single-product-item .product-thumb {
        height: 140px !important;
        border-radius: 8px !important;
    }
    .product-thumb-placeholder {
        border-radius: 8px !important;
    }
    .product-thumb-placeholder svg {
        width: 36px !important;
        height: 36px !important;
    }
    .single-product-item .content-wrap {
        padding: 10px 6px 8px !important;
    }
    .single-product-item .product-info {
        margin-bottom: 6px !important;
    }
    .single-product-item .product-rating {
        padding: 2px 6px !important;
    }
    .single-product-item .product-rating .text {
        font-size: 10px !important;
    }
    .single-product-item .product-contents .title {
        font-size: 13px !important;
        min-height: 2.4em !important;
        margin-bottom: 2px !important;
    }
    .single-product-item .product-contents .author {
        font-size: 11px !important;
    }
    .single-product-item .product-contents .price-info {
        padding-top: 8px !important;
    }
    .single-product-item .product-contents .price .current-price {
        font-size: 13px !important;
    }
    .single-product-item .product-contents .price .old-price {
        font-size: 11px !important;
    }

    /* Product grid: proper 2-col spacing */
    .all-product-section .row.gy-30 {
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
    }

    /* Section spacing */
    .section_space-py {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .all-items-section.section_space-pT {
        padding-top: 20px !important;
    }

    /* Flash sale section tighter */
    .flash-sale-section .flash-sale-heading {
        margin-bottom: 16px !important;
    }
    .flash-sale-section .section-title {
        font-size: 20px !important;
    }
    .flash-sale-one {
        padding: 8px 12px !important;
        border-radius: 10px !important;
    }
    .flash-sale-one .time-block .time-number {
        font-size: 16px !important;
    }
    .flash-sale-one .time-block .time-label {
        font-size: 9px !important;
    }

    /* Page header compact */
    .breadcrumb-area {
        padding: 14px 0 !important;
    }
    .breadcrumb-area .breadcrumb-title {
        font-size: 18px !important;
    }
}

/* Small phones (< 400px) */
@media (max-width: 399px) {
    .items-filter-wrapper .category-bar .cat-item {
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }
    .single-product-item .product-thumb {
        height: 120px !important;
    }
    .single-product-item .product-contents .title {
        font-size: 12px !important;
    }
    .single-product-item .product-contents .price .current-price {
        font-size: 12px !important;
    }
}