.ls-9d5adbe3-wrapper {
    display: flex;
    gap: 30px; /* Reduced gap slightly for better flow */
    padding: 20px 0;
    align-items: flex-start;
}

/* Mobile specific styling */
@media (max-width: 767px) {
    .ls-9d5adbe3-wrapper {
        flex-direction: column;
        padding: 10px 0; /* Better padding consistency for mobile */
    }
    
    .ls-9d5adbe3-sidebar {
        width: 100% !important; /* Ensure sidebar fits on mobile */
        margin-bottom: 20px;
    }
    
    .ls-9d5adbe3-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Keep 3-column mobile layout */
        gap: 10px; /* Reduced gap for mobile */
    }
    
    .ls-9d5adbe3-toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .ls-9d5adbe3-search {
        width: 100%;
    }
}

.ls-9d5adbe3-sidebar {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* slightly stronger border */
    padding: 25px;
    border-radius: 12px;
}

.ls-9d5adbe3-sidebar-title {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: inherit;
    font-weight: 600;
}

.ls-9d5adbe3-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ls-9d5adbe3-categories li {
    margin-bottom: 12px;
}

.ls-9d5adbe3-categories a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.ls-9d5adbe3-categories a:hover,
.ls-9d5adbe3-categories a.active {
    color: #fff;
    font-weight: bold;
}

.ls-9d5adbe3-main {
    flex-grow: 1;
    width: 100%; /* Ensure main takes full available width */
}

.ls-9d5adbe3-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px; /* Adjusted padding for better header top bar alignment */
    border-radius: 12px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ls-9d5adbe3-search {
    display: flex;
    gap: 10px;
    width: 60%; /* Adjusted width */
    align-items: center; /* Ensure elements align vertically */
}

.ls-9d5adbe3-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 15px; /* Better height matching */
    border-radius: 6px;
    outline: none;
    font-size: 0.95rem;
    height: 45px; /* Set specific height for perfect match */
    box-sizing: border-box;
}

/* Filter button adjustments (if one were present, this styles its container/appearance to match) */
.ls-9d5adbe3-filter-btn {
    height: 45px; /* Match search bar height perfectly */
    padding: 0 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
}


.ls-9d5adbe3-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 20px; /* Reduced gap to prevent cramped feeling while keeping 3 products per row */
}

.ls-9d5adbe3-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Improved border consistency */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Subtle depth/shadow for luxury feel */
}

.ls-9d5adbe3-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.15); /* Improved hover feedback */
    background: rgba(255, 255, 255, 0.04);
}

.ls-9d5adbe3-image {
    width: 100%;
    aspect-ratio: 1; /* Make all product images same aspect ratio */
    overflow: hidden;
    background: #0a0a0a; /* Fallback background */
}

.ls-9d5adbe3-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevent stretching/cropping issues */
    transition: transform 0.5s ease;
}

.ls-9d5adbe3-card:hover .ls-9d5adbe3-image img {
    transform: scale(1.03);
}

.ls-9d5adbe3-content {
    padding: 15px; /* Better padding balance */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px; /* Spacing balance */
}

.ls-9d5adbe3-title {
    font-size: 0.95rem; /* Reduced font size for typography hierarchy */
    line-height: 1.3;
    margin: 0;
    font-weight: 500;
    /* Reduce excessive text wrapping */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-9d5adbe3-title a {
    text-decoration: none;
    color: inherit;
}

.ls-9d5adbe3-price {
    font-weight: 600;
    font-size: 0.95rem; /* Rebalanced font size */
    margin-bottom: 10px;
}

.ls-9d5adbe3-action {
    margin-top: auto;
    text-align: center;
}

.ls-9d5adbe3-btn {
    display: flex; /* perfectly center text vertically and horizontally */
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px; /* Make buttons smaller and cleaner */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ls-9d5adbe3-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px; /* Improve spacing between icons */
}

/* Align all icons on same baseline */
.ls-9d5adbe3-wishlist > * {
    display: flex;
    align-items: center;
}

.ls-9d5adbe3-wishlist a,
.ls-9d5adbe3-wishlist .yith-wcwl-add-button > a,
.ls-9d5adbe3-wishlist i {
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ls-9d5adbe3-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    font-weight: 600;
}

/* Improve floating cart button placement */
.ls-9d5adbe3-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.ls-9d5adbe3-no-results {
    font-size: 1.1rem;
    padding: 30px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}