/*
Theme Name: Blocksy Child - SciuuuS Kids
Theme URI: https://sciuuuskids.it
Description: Custom child theme for SciuuuS Kids barefoot shoes. Code-based header/footer implementation without Elementor.
Author: Damian
Author URI: https://sciuuuskids.it
Template: blocksy
Version: 1.2.0
Text Domain: blocksy-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * Custom styles will be loaded from separate CSS files for better organization:
 * - assets/css/header-custom.css
 * - assets/css/footer-custom.css
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Brand Colors */
    --brand-orange: #FC7D06;
    --brand-green: #009285;
    --brand-white: #ffffff;
    --brand-black: #000000;
    --brand-dark: #161616;
    --brand-darker: #1B1B1B;
    --brand-gray-dark: #333333;
    --brand-gray-medium: #666666;
    --brand-gray-light: #f1f1f1;
    --brand-accent-green: #00ce1b;
    --brand-accent-blue: #21759b;
    
    /* Legacy colors (can be deprecated later) */
    --sciuuuskids-primary: #ff6b6b;
    --sciuuuskids-secondary: #2c3e50;
    --sciuuuskids-accent: #4ecdc4;
    --sciuuuskids-text: #333333;
    --sciuuuskids-light: #f8f9fa;
    
    /* Typography */
    --font-primary: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Gochi Hand', cursive;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --font-size-base: 16px;
    --font-size-small: 13px;
    --font-size-smaller: 12px;
    --font-size-smallest: 11px;
    --font-size-medium: 18px;
    --font-size-large: 24px;
    --font-size-xlarge: 28px;
    --font-size-xxlarge: 32px;
    
    /* Content Font Sizes */
    --font-size-content-body: 18px;
    --font-size-h1: 42px;
    --font-size-h2: 36px;
    --font-size-h3: 30px;
    --font-size-h4: 24px;
    --font-size-h5: 20px;
    --font-size-h6: 18px;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-tiny: 4px;
    --spacing-xs: 8px;
    --spacing-small: 10px;
    --spacing-medium: 15px;
    --spacing-base: 20px;
    --spacing-large: 25px;
    --spacing-xl: 30px;
    
    /* Gap Spacing */
    --gap-tiny: 1px;
    --gap-xs: 8px;
    --gap-small: 10px;
    --gap-medium: 18px;
    --gap-large: 25px;
    
    /* Padding */
    --padding-xs: 5px;
    --padding-small: 10px;
    --padding-medium: 12px;
    --padding-base: 20px;
    --padding-large: 25px;
    --padding-xl: 30px;
    
    /* Border Radius */
    --radius-small: 2px;
    --radius-medium: 3px;
    --radius-base: 4px;
    --radius-circle: 50%;
    
    /* Shadows */
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 0 10px rgba(0, 0, 0, 0.5);
    --shadow-focus: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.8s ease;
    
    /* Container Widths */
    --container-max-width: 1200px;
    --container-padding: 20px;
    
    /* Logo Dimensions */
    --logo-max-width: 683px;
    --logo-height: 180px;
    --logo-mobile-max-width: 165px;
    --logo-mobile-height: 120px;
    
    /* Icon Sizes */
    --icon-size-base: 28px;
    --icon-size-large: 32px;
    --icon-size-small: 26px;
    
    /* Cart Badge */
    --cart-badge-size: 22px;
    --cart-badge-size-mobile: 24px;
    
    /* Wave Heights */
    --wave-height: 30px;
    --wave-height-tablet: 20px;
    --wave-height-mobile: 15px;
    
    /* Menu Widths */
    --submenu-min-width: 200px;
    
    /* Z-Index Scale */
    --z-index-base: 100;
    --z-index-header: 101;
    --z-index-cart: 1002;
    --z-index-skip-link: 10000;
    --z-index-screen-reader: 100000;
    
    /* Opacity Values */
    --opacity-transparent: 0;
    --opacity-light: 0.1;
    --opacity-medium: 0.15;
    --opacity-dark: 0.2;
    --opacity-darker: 0.73;
    --opacity-full: 1;
    
    /* Line Heights */
    --line-height-tight: 1;
    --line-height-snug: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;
    
    /* Content Line Heights */
    --line-height-content-body: 1.8;
    --line-height-heading: 1.3;
    
    /* Content Spacing */
    --content-spacing-small: 1rem;
    --content-spacing-medium: 1.5rem;
    --content-spacing-large: 2rem;
    --content-spacing-xlarge: 3rem;
}

/* ==========================================================================
   Global Overrides
   ========================================================================== */

/* Hide default Blocksy header/footer if using custom ones */
body.using-custom-header .ct-header {
    display: none !important;
}

body.using-custom-footer .ct-footer {
    display: none !important;
}

/* Force non-sticky header (overrides customizer setting) */
.sciuuuskids-custom-header {
    position: relative !important;
}

/* ==========================================================================
   Page Width Control - Whitelist Approach
   ========================================================================== */

/* Container is always full-width */
.ct-container-full {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Content width is controlled in content-custom.css with whitelist approach */

/* Remove all gaps between header and content */
#main,
.site-main,
.ct-container,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure alignfull blocks break out to full width */
.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Specific override for delivery banner - multiple selectors for specificity */
.delivery-banner,
.delivery-banner.alignfull,
.wp-block-group.delivery-banner,
.entry-content .delivery-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure no parent containers constrain full-width blocks */
.entry-content,
.ct-container,
.ct-container-full {
    overflow-x: visible !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}


/* ==========================================================================
   Force White Backgrounds
   ========================================================================== */

body,
#main,
.site-main,
.ct-container,
.ct-container-full,
article,
.entry-content,
.hero-section {
    background: var(--brand-white) !important;
    background-color: var(--brand-white) !important;
}

/* ==========================================================================
   WooCommerce Checkout - Order Received Page
   ========================================================================== */

/* Remove bullets from all list items in tables */
.woocommerce-order-details ul li,
.woocommerce-table--order-details ul li,
.woocommerce-customer-details ul li,
.woocommerce-order-overview li {
    list-style: none !important;
    list-style-type: none !important;
}

.woocommerce-order-details ul,
.woocommerce-table--order-details ul,
.woocommerce-customer-details ul,
.woocommerce-order-overview {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Fix padding in Dettagli ordine (Order Details) section */
.woocommerce-order-details,
.woocommerce-table--order-details {
    padding: 20px !important;
}

.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
    padding: 12px 15px !important;
}

/* Product items in order details - ensure proper padding */
.woocommerce-table--order-details .product-name,
.woocommerce-table--order-details .product-total {
    padding: 15px !important;
}

/* Size info in product details */
.woocommerce-table--order-details .product-name ul {
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
}

.woocommerce-table--order-details .product-name ul li {
    padding: 5px 0 !important;
    margin: 0 !important;
}

/* Align the bottom of the 2 Indirizzo (Address) tables */
.woocommerce-customer-details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: stretch !important;
}

.woocommerce-customer-details .woocommerce-column {
    flex: 1 !important;
    min-width: 300px !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-customer-details address {
    flex-grow: 1 !important;
    padding: 20px !important;
    margin: 0 !important;
}

/* Center billing and shipping columns on checkout page */
.woocommerce-checkout .col2-set {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    flex: 1;
    max-width: 500px;
}

/* Ensure both address blocks have equal height */
.woocommerce-customer-details .woocommerce-column--billing-address,
.woocommerce-customer-details .woocommerce-column--shipping-address {
    display: flex !important;
    flex-direction: column !important;
}

/* Return to shopping link */
.woocommerce-order-received .woocommerce-order {
    position: relative !important;
    margin-top: 30px !important;
}

.woocommerce-order-received .return-to-shop,
.woocommerce-order-received .woocommerce-order-return-to-shop {
    margin-top: 30px !important;
    padding: 20px 0 !important;
    text-align: center !important;
}

.woocommerce-order-received .return-to-shop a,
.woocommerce-order-received .woocommerce-order-return-to-shop a {
    display: inline-block !important;
    padding: 14px 30px !important;
    background-color: var(--brand-orange, #FC7D06) !important;
    color: var(--brand-white, #fff) !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-family: var(--font-primary, Quicksand) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce-order-received .return-to-shop a:hover,
.woocommerce-order-received .woocommerce-order-return-to-shop a:hover {
    background-color: #e06d05 !important;
}

/* Responsive adjustments for addresses */
@media (max-width: 768px) {
    .woocommerce-customer-details .woocommerce-column {
        min-width: 100% !important;
    }

    /* Set column title padding to 0px on mobile */
    .woocommerce-column__title {
        padding: 0px !important;
    }

    /* Stack columns vertically on mobile */
    .woocommerce-checkout .col2-set {
        flex-direction: column;
        align-items: center;
    }

    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        max-width: 100%;
        width: 100%;
    }
}