/* 1. HIDE THEME BREADCRUMBS & DEFAULT TITLES */
body.daf-archive-active .ast-breadcrumbs,
body.daf-archive-active .entry-header,
body.daf-archive-active .hdaf-header-section {
    display: none !important;
}

/* 2. CENTERED CONTAINER LOGIC */
body.daf-archive-active #page, 
body.daf-archive-active #content,
body.daf-archive-active .site-content {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.daf-marketplace-master {
    width: 100% !important;
    padding: 40px 0 100px 0 !important;
    background-color: #f8fafc !important;
}

.daf-marketplace-layout {
    max-width: 1500px !important; /* 🎯 Master Width Centered */
    width: 95% !important;
    margin: 0 auto !important; 
    box-sizing: border-box !important;
}

/* 3. 🎯 ELITE 4-COLUMN GRID ENGINE (Forced) */
.daf-elite-grid {
    display: grid !important;
    /* repeat(4, 1fr) matlab screen par 4 barabar hisse */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 20px !important; /* Tighter gap for 4-column elite look */
    width: 100% !important;
}

/* Card Width Security: Card ko apni limit se bahar nahi jane dega */
.daf-elite-grid .daf-product-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* 4. SYNC WITH YOUR SHOP TOP BAR */
.daf-shop-top-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 35px !important;
    padding: 20px 25px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

/* 5. RESPONSIVE ENGINE (Tablet & Mobile balance) */
@media (max-width: 1300px) {
    .daf-elite-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Tablet par 3 */
    }
}

@media (max-width: 900px) {
    .daf-elite-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Chote tablet par 2 */
    }
}

@media (max-width: 600px) {
    .daf-elite-grid {
        grid-template-columns: 1fr !important; /* Mobile par 1 */
    }
    .daf-marketplace-layout {
        width: 90% !important;
    }
}