/* ========================================================================
   MODERN LISTING UI - SHARED RESPONSIVE LAYOUT (ETSY STYLE CLONE)
   Used for Search, Special, and Category pages.
   ======================================================================== */

.modern-listing-wrapper .filters-panel-enhanced { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    flex-wrap: wrap !important; 
    gap: 15px !important; 
    background: transparent !important; 
    padding: 10px 0 !important; 
    margin-bottom: 25px !important; 
    border: none !important;
}

.modern-listing-wrapper .filters-group { 
    display: flex !important; 
    align-items: center !important; 
    gap: 10px !important; 
}

.modern-listing-wrapper .filter-dropdown select { 
    appearance: none !important; 
    -webkit-appearance: none !important; 
    padding: 8px 35px 8px 15px !important; 
    border-radius: 8px !important; 
    border: 1px solid #e1e1e1 !important; 
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M10.3 3.3L6 7.6 1.7 3.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l5 5c.2.2.5.3.7.3s.5-.1.7-.3l5-5c.4-.4.4-1 0-1.4s-1-.4-1.4 0z'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) center !important; 
    cursor: pointer !important; 
    font-size: 14px !important; 
    height: 38px !important; 
}

.modern-listing-wrapper .results-count { 
    color: #595959 !important; 
    font-size: 14px !important; 
}

.modern-listing-wrapper .products-list { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    margin: 0 -12px !important; 
    float: none !important; 
}

.modern-listing-wrapper .product-layout { 
    margin-bottom: 40px !important; 
    padding: 0 12px !important; 
    display: flex !important; 
    width: 20% !important; 
}

.modern-listing-wrapper .product-item-container { 
    background: transparent !important; 
    border: none !important;
    overflow: hidden !important; 
    width: 100% !important; 
    display: flex !important; 
    flex-direction: column !important; 
    padding: 0 !important; 
    box-shadow: none !important; 
}

.modern-listing-wrapper .left-block { 
    position: relative !important; 
    padding: 0 !important; 
    background: transparent !important; 
}

.modern-listing-wrapper .product-image-container { 
    text-align: center !important; 
    width: 100% !important; 
    display: block !important; 
    background: #f4f4f4 !important; /* GREY BACKGROUND AS PER ETSY */
    border-radius: 12px !important;
    overflow: hidden !important;
}

.modern-listing-wrapper .product-image-container img { 
    width: 100% !important; 
    height: auto !important; 
    display: block !important; 
    mix-blend-mode: multiply !important; /* Helps with white background images */
}

/* HIDE DISCOUNT LABEL ON IMAGE */
.modern-listing-wrapper .box-label {
    display: none !important;
}

.modern-listing-wrapper .right-block { 
    padding: 12px 0 0 0 !important; 
    flex-grow: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
}

.modern-listing-wrapper .right-block h4 { 
    font-size: 14px !important; 
    line-height: 1.4 !important; 
    margin: 0 0 6px 0 !important; 
    min-height: 40px !important;
    height: auto !important;
    overflow: hidden !important; 
    font-weight: 400 !important; 
    color: #222 !important;
}

.modern-listing-wrapper .right-block h4 a { 
    color: #222 !important; 
    text-decoration: none !important; 
}

.modern-listing-wrapper .right-block h4 a:hover {
    text-decoration: underline !important;
}

/* Rating Row */
.rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-bottom: 4px !important;
}

.rating-row .rating {
    color: #222 !important;
    font-size: 11px !important;
}

.rating-row .review-count {
    color: #595959 !important;
    font-size: 12px !important;
}

.rating-row .badge-star-seller {
    color: #78107a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

/* Price Row */
.modern-listing-wrapper .price-action-row { 
    display: flex !important; 
    align-items: baseline !important; 
    margin-top: 2px !important; 
    width: 100% !important; 
}

.modern-listing-wrapper .price-new { 
    font-size: 16px !important; 
    font-weight: 700 !important; 
    color: #222 !important; 
    margin-right: 8px !important;
}

.modern-listing-wrapper .price-old {
    font-size: 13px !important;
    color: #757575 !important;
    text-decoration: line-through !important;
    margin-right: 6px !important;
    font-weight: 400 !important;
}

.modern-listing-wrapper .price-discount {
    font-size: 13px !important;
    color: #2e7d32 !important; /* Deep Green */
    font-weight: 600 !important;
}

/* Seller Info */
.seller-info {
    font-size: 12px !important;
    color: #595959 !important;
    margin-top: 6px !important;
}

/* Stock Info */
.stock-info {
    font-size: 12px !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
}

.modern-listing-wrapper .add-btn-plus { 
    display: none !important; 
}

/* Hide legacy elements */
.view-mode, .short-by-show, .product-filter-bottom .text-right { 
    display: none !important; 
}

/* Responsive Grid */
@media (min-width: 1200px) {
    .modern-listing-wrapper .product-layout { width: 20% !important; } 
}

@media (min-width: 992px) and (max-width: 1199px) {
    .modern-listing-wrapper .product-layout { width: 25% !important; } 
}

@media (min-width: 768px) and (max-width: 991px) {
    .modern-listing-wrapper .product-layout { width: 33.33% !important; } 
}

@media (max-width: 767px) {
    .modern-listing-wrapper .product-layout { width: 50% !important; } 
}

@media (max-width: 480px) {
    .modern-listing-wrapper .product-layout { width: 50% !important; } 
    .modern-listing-wrapper .right-block { padding: 10px 5px !important; }
}
