/*
Theme Name:         Say Oui To Francais Store Theme
Description:        Custom Child Theme for NexusNest WooCommerce integration
Author:             NexusNest Solutions
Template:           twentytwentyfive
Version:            1.0.0
*/

/* ==========================================================================
   1. FORCE ABSOLUTE IMPORTS OF ALL CUSTOM MAIN SITE STYLES
   ========================================================================== */
@import url('/css/style.css');
@import url('/css/timeline.css');
@import url('/css/intro-video-stats.css');
@import url('/css/teaching-values.css');
@import url('/css/footer-index.css');

/* ==========================================================================
   2. FIX FORM CONTAINER CRUSHING AND COMPRESSION GLOBAL RESET
   ========================================================================== */
.woocommerce, .woocommerce *, .woocommerce-page, .woocommerce-page * {
    box-sizing: border-box !important;
}

/* ==========================================================================
   3. DESKTOP VIEWPORT LAYOUT RULES (992px and up)
   ========================================================================== */
@media (min-width: 992px) {
    .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
        list-style: none !important;
    }

    .navbar-nav .nav-link {
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .woocommerce ul.products li.product, 
    .custom-store-body ul.products li.product {
        flex: 1 1 calc(25% - 25px) !important;
        max-width: calc(25% - 25px) !important;
    }
}

/* ==========================================================================
   4. SHARED WOOCOMMERCE NAVBAR LINK ELEMENTS STYLING
   ========================================================================== */
.navbar-nav .nav-link i.custom-nav-icon {
    font-size: 1.2rem !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    display: inline-block !important;
}

.navbar-nav .nav-link .badge {
    position: relative;
    top: -8px;
    left: 2px;
    font-size: 0.7rem;
    padding: 0.25em 0.45em;
    border-radius: 50%;
}

.spec-cta-btn {
    background-color: #007676 !important;
    border-color: #007676 !important;
}

/* ==========================================================================
   5. CENTER AND REALIGN THE MAIN STORE GRID CONTAINER
   ========================================================================== */
.custom-store-body {
    max-width: 1200px !important;
    margin: 50px auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    float: none !important;
    box-sizing: border-box !important;
}

#primary.content-area {
    float: none !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
}

/* ==========================================================================
   6. NATIVE WOOCOMMERCE FILTER & SORTING BUTTON STYLING
   ========================================================================== */
.woocommerce-ordering {
    margin: 20px 0 !important;
    float: none !important;
    display: block !important;
    text-align: right !important;
}

.woocommerce-ordering select {
    padding: 8px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 2rem !important;
    font-family: 'Nunito', sans-serif !important;
    color: #333 !important;
    outline: none !important;
    background-color: #fff !important;
}

/* ==========================================================================
   7. PRODUCTS GRID CONTAINERS LAYOUT MATRIX
   ========================================================================== */
.woocommerce ul.products, 
.custom-store-body ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px auto !important;
    max-width: 100% !important;
}

.woocommerce ul.products li.product, 
.custom-store-body ul.products li.product {
    margin: 0 0 30px 0 !important;
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   8. WOOCOMMERCE FORM COMPONENT GLOBAL INPUT STYLES
   ========================================================================== */
.woocommerce form .form-row {
    margin-bottom: 18px !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

.woocommerce form .form-row label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    outline: none !important;
    background-color: #ffffff !important;
    font-family: 'Nunito', sans-serif !important;
}

/* Action Buttons Reset */
.woocommerce button.button,
.woocommerce a.button {
    background-color: #007676 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 35px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 2rem !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: auto !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background-color: #005d5d !important;
    color: #ffffff !important;
}

/* ==========================================================================
   9. FORCE SIDE-BY-SIDE LOGIN & REGISTRATION GATES (DEAD CENTERED)
   ========================================================================== */
.woocommerce-account #customer_login {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
    width: 100% !important;
}

.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
    flex: 1 1 500px !important; 
    width: 100% !important;
    max-width: 520px !important; 
    background: #ffffff !important;
    padding: 40px !important; 
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}

.woocommerce-account #customer_login .woocommerce-Card,
.woocommerce-account #customer_login .login,
.woocommerce-account #customer_login .register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-account #customer_login h2 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 1.5rem !important;
    color: #333333 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
}

/* ==========================================================================
   10. WOOCOMMERCE ACCOUNT DASHBOARD STRUCTURAL GRID FIX
   ========================================================================== */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Sidebar Menu Control */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 260px !important; 
    width: 260px !important;
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    padding: 0 !important;
    margin-bottom: 8px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block !important;
    padding: 10px 15px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: background 0.2s, color 0.2s !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background-color: #e6f2f2 !important;
    color: #007676 !important;
}

/* Expanded Workspace Content Portal */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 auto !important; 
    width: calc(100% - 300px) !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Dynamic side-by-side flex layout grid for Address cards */
.woocommerce-account .u-columns.addresses {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    margin: 25px 0 !important;
    width: 100% !important;
}

/* Fixed sizing for the Billing and Shipping address containers */
.woocommerce-account .u-columns.addresses .u-column1,
.woocommerce-account .u-columns.addresses .u-column2 {
    flex: 1 1 calc(50% - 15px) !important;
    width: calc(50% - 15px) !important;
    min-width: 320px !important;
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* ==========================================================================
   11. CHECKOUT FIELD ALIGNMENT FIXES
   ========================================================================== */
.form-row-first, .form-row-last {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    min-width: 200px !important;
    display: inline-block !important;
}

.form-row-wide {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* ==========================================================================
   12. GLOBAL GENERAL STRUCTURE RESETS
   ========================================================================== */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Nunito', sans-serif !important;
}

.navbar-nav .nav-item {
    white-space: nowrap !important;
}

/* ==========================================================================
   13. MOBILE AND TABLET RESPONSIVE OVERRIDES (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .navbar-collapse {
        background-color: #f8f9fa !important;
        padding: 20px !important;
        border-radius: 8px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    .navbar-nav.custom-nav-links,
    .navbar-nav.custom-commerce-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .navbar-nav .nav-item,
    .navbar-nav .nav-link {
        width: 100% !important;
        padding: 8px 0 !important;
        text-align: left !important;
    }

    .navbar-nav.custom-commerce-menu {
        margin-top: 10px !important;
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 15px !important;
    }

    .woocommerce ul.products li.product, 
    .custom-store-body ul.products li.product {
        flex: 1 1 calc(50% - 25px) !important;
        max-width: calc(50% - 25px) !important;
    }
    
    /* Stack dashboard elements cleanly on mobile screens */
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
    }
    
    .woocommerce-account #customer_login,
    .woocommerce-account .u-columns.addresses {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .woocommerce-account #customer_login .col-1,
    .woocommerce-account #customer_login .col-2,
    .woocommerce-account .u-columns.addresses .u-column1,
    .woocommerce-account .u-columns.addresses .u-column2 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products li.product, 
    .custom-store-body ul.products li.product {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   14. NATIVE BLOCK SINGLE PRODUCT CONTAINER LAYOUT MATRIX
   ========================================================================== */
/* target the structural single product entry container layout */
.single-product .entry-content,
.single-product .wp-block-woocommerce-single-product {
    max-width: 1200px !important;
    margin: 60px auto !important; /* Forces 60px of breathing space right below your navbar */
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Ensure inner core structural elements maintain centered flow matrices */
.single-product .wp-block-columns,
.single-product .wp-block-group {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   14. NATIVE BLOCK SINGLE PRODUCT CONTAINER LAYOUT MATRIX
   ========================================================================== */
/* Force the absolute outer container wrappers to align perfectly centered */
.single-product .wp-site-blocks,
.single-product main#main,
.single-product .wp-block-woocommerce-single-product,
.single-product .entry-content {
    max-width: 1200px !important;
    margin-top: 60px !important;    /* Keeps the perfect space below your header */
    margin-bottom: 60px !important; /* Spacing above your footer */
    margin-left: auto !important;   /* Pulls the layout away from the left edge */
    margin-right: auto !important;  /* Locks it perfectly dead-center */
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    float: none !important;         /* Prevents float layouts from breaking columns */
    display: block !important;
}

/* Ensure inner core template parts expand beautifully inside the centered space */
.single-product .wp-block-columns,
.single-product .wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}