/* ============================================
   ULTRA-COMPACT PREMIUM DESKTOP - CATALOG
   Mobile = UNTOUCHED | Desktop = DENSE & PREMIUM
   ============================================ */

/* Desktop: 1024px+ ONLY */
@media (min-width: 1024px) {

    /* ========================================
       MASTER CONTAINER RULE - UNIFIED ALIGNMENT
       All elements share exact same width & centering
       ======================================== */
    .category-filter,
    .catalog-sections-wrapper {
        max-width: 1200px !important;
        /* Force uniform width */
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* HEADER SPECIFIC - CENTERED 1200PX CONTAINER */
    .app-header {
        padding: 0 24px !important;
        /* Side padding */
        background: white;
        box-shadow: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: sticky !important;
        top: 0;
        z-index: 100;
        height: 70px !important;
        /* Fixed height like landing */
        display: flex;
        align-items: center;
        gap: 15px;
        /* Space between back button and title */
        width: 100% !important;
        max-width: 1200px !important;
        /* Match site width */
        margin: 0 auto !important;
        /* Center container */
        overflow: visible !important;
    }

    .back-btn {
        width: 46px;
        height: 46px;
        font-size: 19px;
        flex-shrink: 0;
    }

    .app-title {
        flex-grow: 0;
    }

    .app-title h1 {
        font-size: 32px;
        line-height: 1;
        margin: 0;
    }

    /* FILTERS SPECIFIC */
    .category-filter {
        padding-top: 8px;
        /* Reduced - closer to header */
        padding-bottom: 12px;
        /* Tighter - closer to content */
    }

    .filter-container {
        max-width: 100%;
        /* Use parent container width */
        margin: 0;
        /* No extra margin */
        justify-content: center;
        gap: 10px;
    }

    .filter-pill {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* CATALOG SECTIONS SPECIFIC */
    .catalog-sections-wrapper {
        padding-top: 24px;
        /* Reduced from 32px - filters feel attached */
        padding-bottom: 32px;
        /* Max-width and horizontal padding inherited from master rule */
    }

    /* SECTION SPACING - VERTICAL RHYTHM */
    .catalog-section {
        margin-top: 48px;
        /* Reduced from 60px - more fluid scroll */
    }

    .catalog-section:first-child {
        margin-top: 0;
        /* No top margin on first section */
    }

    .section-header {
        margin-bottom: 24px;
        /* Space before cards */
    }

    .section-header h2 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 0;
    }

    /* Convert horizontal scroll to grid on desktop */
    .horizontal-scroll-container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        /* 4-column grid */
        gap: 16px !important;
        /* Reduced from 20px - more compact premium density */
        overflow-x: visible !important;
        padding: 0 !important;
    }

    /* CARDS - PREMIUM DEPTH & HOVER */
    .catalog-card {
        min-width: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
        /* Softer & wider */
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid #f0f0f0;
    }

    .catalog-card:hover {
        transform: translateY(-3px) !important;
        /* Subtle 3px lift */
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
        /* Softer but wider on hover */
        border-color: var(--red-brand);
    }

    /* Card Image */
    .card-img-wrapper {
        height: 180px;
        overflow: hidden;
    }

    .card-img-wrapper img {
        transition: transform 0.4s ease;
    }

    .catalog-card:hover .card-img-wrapper img {
        transform: scale(1.05);
    }

    /* Card Content */
    .card-info {
        padding: 16px;
    }

    .card-info h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    /* Rating Badge */
    .card-rating {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    /* Price Row */
    .price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .price-tag strong {
        font-size: 1.2rem;
        color: var(--red-brand);
    }

    /* Add Button - Refined for hierarchy */
    .btn-add-mini {
        width: 32px;
        /* Reduced from 36px - slightly smaller */
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--red-brand);
        color: white;
        border-radius: 50%;
        font-size: 14px;
        /* Icon size control */
        transition: all 0.3s;
        position: relative;
        top: -2px;
        /* Lifted 2px - better visual alignment */
    }

    .catalog-card:hover .btn-add-mini {
        transform: scale(1.12);
        /* Slightly more pronounced on hover */
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {

    .app-header,
    .filter-container,
    .catalog-sections-wrapper {
        max-width: 1280px;
        /* Slightly wider on large screens */
    }

    .horizontal-scroll-container {
        gap: 24px !important;
    }

    .section-header h2 {
        font-size: 36px;
    }
}

/* MODAL - COMPACT */
@media (min-width: 1024px) {
    .modal-card {
        max-width: 850px;
        margin: 36px auto;
        border-radius: 20px;
    }

    .modal-content-scrollable {
        padding: 40px 36px;
    }

    .modal-header h2 {
        font-size: 32px;
    }

    .modal-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .modal-price {
        font-size: 26px;
    }

    .modal-footer-sticky {
        padding: 20px 36px;
    }

    .btn-modal-primary {
        padding: 16px 42px;
        font-size: 17px;
    }
}