/**
 * Product Listing Styles - Desktop Only
 * Loaded only on screens ≥ 769px
 * Enhanced hover effects, larger spacing
 */

/* =================================
   Desktop Container
   ================================= */
.products.wrapper.list {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* =================================
   Desktop Grid Configuration
   ================================= */
.products.list.items.product-items {
    gap: 30px;
}

/* Responsive column adjustments */
@media (min-width: 769px) and (max-width: 991px) {
    .products.list.items.product-items {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products.list.items.product-items {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1200px) {
    .products.list.items.product-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* =================================
   Desktop Product Cards
   ================================= */

.product-item-info.card:hover {
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-item-details.card-body {
    padding: 15px;
}

/* =================================
   Desktop Typography
   ================================= */
.product-item-name {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.product-address {
    font-size: 0.8125rem;
    margin-bottom: 8px;
}

.product-item-description {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 15px;
    -webkit-line-clamp: 2;
}

/* =================================
   Desktop Features
   ================================= */
.product-features {
    gap: 10px;
    margin-bottom: 10px;
}

.product-features li {
    font-size: 0.8125rem;
}

.product-features i {
    font-size: 0.875rem;
}

.feature-label {
    font-size: 0.6875rem;
}

/* =================================
   Desktop Price (on image)
   ================================= */
.product-item-photo .price-box {
    bottom: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 1.05rem;
    width: 40%;
    left: unset;
}

.product-item-photo .price-box .price {
    font-size: 1.05rem !important;
}

/* =================================
   Desktop Badge
   ================================= */
.product-badge {
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    font-size: 0.6875rem;
}

/* =================================
   Desktop Image
   ================================= */
.product-item-photo {
    aspect-ratio: 4 / 3 !important;
}



/* =================================
   Desktop Actions
   ================================= */
.product-item-actions {
    margin-top: auto;
}

.product-item-actions .listing-link,
.product-item-actions .action.primary {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    
}

.product-item-actions .listing-link:hover,
.product-item-actions .action.primary:hover {
    background-color: #c80026;
    border-color: #c80026;
}

/* =================================
   Desktop Toolbar
   ================================= */
.toolbar {
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.toolbar-sorter select {
    padding: 0.5rem 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.toolbar-sorter select:hover {
    border-color: var(--era-red);
}

.toolbar-sorter select:focus {
    outline: none;
    border-color: var(--era-red);
    box-shadow: 0 0 0 3px rgba(228, 0, 42, 0.1);
}

/* View mode switcher */
.modes {
    display: flex;
    gap: 0.5rem;
}

.modes .mode {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--k-30);
    border-radius: 0.25rem;
    background: var(--k-0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modes .mode:hover {
    border-color: var(--era-red);
    color: var(--era-red);
}

.modes .mode.active {
    background: var(--era-navy);
    color: var(--k-0);
    border-color: var(--era-navy);
}

/* =================================
   Desktop Pagination
   ================================= */
.pages {
    margin-top: 3rem;
}

.pages .items {
    gap: 0.625rem;
}

.pages .item a,
.pages .item strong {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    min-width: 3rem;
}

.pages .item a:hover {
    box-shadow: 0 2px 8px rgba(228, 0, 42, 0.2);
}

/* =================================
   Desktop Sidebar Integration
   ================================= */
.columns .column.main {
    padding: unset;
}

.property-title-section > div:nth-child(1) {
    padding: unset;
}


.sidebar .block {
    margin-bottom: 2rem;
    background: var(--k-0);
    border: 1px solid var(--k-10);
    border-radius: 0.5rem;
}

.sidebar .block-title {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--era-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--era-red);
}

/* =================================
   Desktop Empty State
   ================================= */
.message.info.empty {
    padding: 3rem 2rem;
    font-size: 1.25rem;
    margin: 2rem 0;
}

/* =================================
   Desktop Hover Enhancements
   ================================= */
/* Smooth transitions for all interactive elements */
.product-item-info a,
.product-item-info button,
.toolbar select,
.pages .item a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =================================
   Desktop Grid View Optimization
   ================================= */
@media (min-width: 1400px) {
    .products.wrapper.list {
        max-width: 1400px;
    }

    .products.list.items.product-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
