/**
 * File: single-product-layout.css
 * Location: assets/css/single-product-layout.css
 * JS: assets/js/single-product-layout.js
 * PHP View: includes/frontend/views/single-product-layout.php
 * Purpose: Advanced layout for Single Product Page. 
 * Updated: Implemented Two-Tone Background (Header vs Body) and Tech Stack container.
 */

/* 🚀 1. MASTER WRAPPER */
.daf-single-page-master {
    background-color: #f5f5f7 !important; /* Premium light grey body background */
    min-height: 100vh;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* 🚀 2. HEADER AREA (The Grey Top Section) */
/* Is section ka background header se alag hoga jaisa screenshot mein hai */
.daf-single-header-main-wrapper {
    background-color: #ffffff !important; /* Pure white or very light grey */
    border-bottom: 1px solid #e1e4e8 !important;
    width: 100% !important;
    padding: 20px 0 !important;
}

.daf-single-header {
    background: transparent !important;
    width: 100% !important;
}

/* 🚀 3. BODY AREA (The Content Section) */
.daf-single-body-wrapper {
    padding: 40px 0 80px 0 !important;
}

/* Flexible 1500px Container Logic */
.daf-single-page-master .daf-archive-inner-limit {
    max-width: 1500px !important;
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
}

/* 🚀 4. ELITE GRID SYSTEM */
.daf-single-grid-container {
    display: grid !important;
    grid-template-columns: 1fr 420px !important; /* Main content vs Sidebar */
    gap: 40px !important;
    align-items: start !important;
}

/* Column Overflows Prevention */
.daf-single-main-content {
    min-width: 0 !important;
}

/* Sticky Purchase Box Logic */
.daf-single-sidebar {
    position: sticky !important;
    top: 30px !important; /* Adjusted for better flow */
    z-index: 10 !important;
}

/* 🚀 5. TECH STACK (The 5 Inline Boxes Section) */
.daf-tech-stack-container {
    margin-top: 40px !important;
    width: 100% !important;
}

/* 🚀 6. GLOBAL SHARP EDGES (ZERO RADIUS) */
.daf-single-page-master div,
.daf-single-page-master section,
.daf-single-page-master article,
.daf-single-page-master aside,
.daf-single-page-master button,
.daf-single-page-master img,
.daf-single-page-master input {
    border-radius: 0 !important;
}

/* 🚀 7. RESPONSIVE / ZOOM TUNING */
@media (max-width: 1200px) {
    .daf-single-grid-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .daf-single-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 30px !important;
    }
}

@media (max-width: 768px) {
    .daf-single-header-main-wrapper {
        padding: 10px 0 !important;
    }
    .daf-single-body-wrapper {
        padding: 20px 0 !important;
    }
}