/* ==========================================================================
   MODULE: DESKTOP RESPONSIVE FLUID LAYOUT ENGINE (FULL-BLEED FIT TO DISPLAY)
   Location: /wp-content/themes/tech-glass-commerce/assets/css/desktop-layout.css
   ========================================================================== */

@media (min-width: 992px) {

    /* --- 1. ZERO OUT ALL OUTER SHELL PADDING & MARGINS (ELIMINATES SIDE GAPS) --- */
    html, 
    body, 
    #page, 
    .site, 
    .site-wrapper {
        background-color: #FAF8F6 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* --- 2. UNLOCK MAIN FRONT PAGE CANVAS & PRIMARY SITE SHELL --- */
    #primary,
    main#primary,
    .site-main,
    .front-page-canvas,
    .site-main.front-page-canvas,
    #primary.site-main.front-page-canvas {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- 3. SINGLE INNER CONTAINER PADDING (CLEAN 1-LAYER EDGE BREATHING ROOM) --- */
    .header-container,
    .tech-shop-viewport,
    .tech-app-shell,
    .tech-main-container,
    .tech-front-section,
    .tech-header-inner,
    .tech-luxury-single-viewport,
    .footer-container,
    .shop-grid-container,
    .front-slider-module,
    .front-hero-container,
    .front-pills-container,
    .front-deals-container,
    main > section,
    main {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    /* --- 4. HARD DISABLE MOBILE NAVIGATION DOCKS ON DESKTOP --- */
    .mobile-app-navigation-dock,
    .tech-mobile-dock,
    .tech-mobile-dock-wrapper,
    .tech-fixed-trigger-dock-bar,
    .tech-bottom-nav,
    #tech_mobile_dock_frame,
    div[class*="mobile-dock"],
    footer .mobile-navigation-dock {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* --- 5. DESKTOP HEADER FULL-WIDTH ALIGNMENT --- */
    .tech-site-header,
    .site-header,
    .dynamic-glass {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(211, 133, 170, 0.15) !important;
        padding: 12px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
		border-radius: 20px;
    }

    .site-branding,
    .tech-brand-logo img {
        max-height: 56px !important;
        width: auto !important;
    }

    .tech-header-actions,
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 24px !important;
    }

    /* --- 6. DESKTOP CATEGORIES SHOWCASE RAIL --- */
    .tech-categories-rail-container,
    .quick-category-pills-bar {
        padding: 40px 0 20px 0 !important;
        width: 100% !important;
    }

    .tech-categories-rail,
    .category-pills-viewport {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 28px !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }

    .tech-category-item,
    .category-badge-item {
        width: 100px !important;
        flex: 0 0 auto !important;
    }

    .tech-category-avatar,
    .badge-image-frame {
        width: 88px !important;
        height: 88px !important;
        border-radius: 50% !important;
        border: 2px solid #d385aa !important;
        padding: 3px !important;
        background: #ffffff !important;
    }

    .tech-category-avatar img,
    .badge-image-frame img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    .tech-category-title,
    .badge-name {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #333333 !important;
        margin-top: 10px !important;
        text-align: center !important;
    }

    /* --- 7. DESKTOP 4-COLUMN PRODUCT GRID TRANSFORMATION --- */
    .tech-products-section,
    .tech-shop-viewport {
        padding: 30px 32px 80px 32px !important;
        width: 100% !important;
    }

    .tech-product-grid,
    ul.products,
    .woocommerce ul.products,
    .shop-grid-container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 28px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tech-product-card,
    ul.products li.product,
    .woocommerce ul.products li.product,
    .product-card.dynamic-card {
        margin: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        border: 1px solid rgba(211, 133, 170, 0.15) !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .tech-product-card:hover,
    ul.products li.product:hover,
    .product-card.dynamic-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 35px rgba(211, 133, 170, 0.15) !important;
        border-color: #d385aa !important;
    }

    .tech-product-thumb-frame,
    .card-media-dock {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
    }

    .tech-product-thumb-frame img,
    .base-card-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .tech-product-info-body,
    .card-meta-dock {
        padding: 20px !important;
    }

    .tech-product-title,
    .product-card-title {
        font-family: 'Playfair Display', serif !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #d385aa !important;
        margin: 0 0 8px 0 !important;
    }

    .tech-product-price {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #FF4F00 !important;
        margin-bottom: 12px !important;
    }

    .tech-card-action-btn,
    .woocommerce ul.products li.product .button,
    .card-meta-dock .button {
        height: 44px !important;
        background: rgba(211, 133, 170, 0.12) !important;
        color: #d385aa !important;
        border: 1px solid rgba(211, 133, 170, 0.25) !important;
        border-radius: 12px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
    }

    .tech-card-action-btn:hover,
    .woocommerce ul.products li.product .button:hover,
    .card-meta-dock .button:hover {
        background: #d385aa !important;
        color: #ffffff !important;
    }

    /* --- 8. SINGLE PRODUCT PAGE DESKTOP SPLIT VIEW --- */
    .tech-luxury-single-viewport {
        max-width: 100% !important;
        margin: 40px 0 !important;
        padding: 0 32px !important;
        background: transparent !important;
    }

    .tech-luxury-mobile-layout {
        display: grid !important;
        grid-template-columns: 1.1fr 0.9fr !important;
        gap: 40px !important;
        align-items: start !important;
    }

    .tech-media-carousel-viewport {
        position: sticky !important;
        top: 40px !important;
        border-radius: 20px !important;
        margin-top: 0 !important;
    }

    .tech-product-meta-details-stack {
        border-radius: 24px !important;
        padding: 35px !important;
        box-shadow: none !important;
        border: 1px solid rgba(211, 133, 170, 0.08) !important;
        margin-top: 0 !important;
    }

    .tech-drawer-backdrop-overlay {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10 !important;
        margin-top: 25px !important;
    }

    .tech-glass-slide-drawer {
        transform: none !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: 1px solid rgba(211, 133, 170, 0.08) !important;
        border-radius: 16px !important;
        padding: 20px !important;
        max-height: none !important;
    }

    .tech-drawer-close-x {
        display: none !important;
    }
}