/*
Theme Name: TDividers Child
Theme URI: https://toiletdividers.com/
Description: Custom child theme for Toilet Dividers - Premium Astra Redesign.
Author: Narayan
Author URI: 
Template: astra
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body { font-family: 'Plus Jakarta Sans', sans-serif; color: #1e293b; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #111827; }
/* Hide redundant WooCommerce breadcrumb on single product pages */
.woocommerce-breadcrumb { display: none !important; }

/* Increase single product page container width */
.single-product .ast-woocommerce-container {
  max-width: 1400px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Hide the auto-generated "Home" page title on the front page */
.home .entry-title { display: none !important; }

/* Top Bar Styling */
.td-top-bar { 
    background: #1e293b; 
    color: #fff; 
    padding: 10px 0; 
    font-size: 0.85rem; 
    font-weight: 600; 
}
.td-top-bar .ast-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.td-top-info { display: flex; gap: 20px; align-items: center; }
.td-top-info a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.td-top-info a:hover { color: #38bdf8; }
.td-status-notice { background: rgba(56, 189, 248, 0.2); padding: 4px 12px; border-radius: 4px; border: 1px solid #38bdf8; }

/* Page Banner Styling */
.td-page-banner { 
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%), url('/wp-content/uploads/2026/03/banner12-toilet-dividers-2048x1116-1.jpg') center/cover;
    background-blend-mode: overlay;
    padding: 100px 0; 
    color: #fff; 
    text-align: center; 
}
.td-page-banner h1 { color: #fff; font-size: 3.5rem; margin-bottom: 15px; text-transform: capitalize; }

/* Hero Banner Homepage */
.td-hero-banner { 
    padding: 160px 0; 
    color: #fff; 
}
.td-hero-content { max-width: 800px; }
.td-hero-badge { 
    display: inline-block; 
    background: #38bdf8; 
    color: #0f172a; 
    padding: 6px 14px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.td-hero-lead { 
    font-size: 1.4rem; 
    opacity: 0.9; 
    margin: 30px 0 45px; 
    max-width: 650px; 
    line-height: 1.6;
}
.td-hero-actions { display: flex; gap: 20px; }
.td-hero-btn { 
    padding: 18px 36px; 
    border-radius: 12px; 
    font-weight: 800; 
    text-decoration: none; 
    font-size: 1.1rem; 
    transition: 0.3s;
}
.td-hero-btn.primary { background: #38bdf8; color: #0f172a; box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3); }
.td-hero-btn.primary:hover { background: #fff; transform: translateY(-3px); }
.td-hero-btn.secondary { background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.td-hero-btn.secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.td-breadcrumbs { font-size: 0.95rem; display: flex; justify-content: center; gap: 10px; opacity: 0.9; font-weight: 600; }
.td-breadcrumbs a { color: #fff; text-decoration: none; }
.td-breadcrumbs a:hover { text-decoration: underline; }
.td-breadcrumbs .separator { opacity: 0.5; }

/* Custom Footer Styling */
.td-main-footer { 
    background: #0f172a; 
    color: #cbd5e1; 
    padding: 100px 0 40px; 
    margin-top: 80px;
}
.td-footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr; 
    gap: 40px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 60px;
    margin-bottom: 40px;
}
.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; }
.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-contact .phone-large { 
    display: block; 
    font-size: 1.75rem; 
    font-weight: 800; 
    color: #fff; 
    margin: 15px 0; 
    text-decoration: none; 
}
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    text-decoration: none; 
    transition: 0.2s;
}
.social-icon:hover { background: #3730a3; transform: translateY(-3px); }

.td-footer-bottom { text-align: center; font-size: 0.85rem; color: #64748b; margin-top: 40px; }

/* Hide Astra Footer Builder Rows */
.site-below-footer-wrap, 
.site-primary-footer-wrap, 
.site-above-footer-wrap { 
    display: none !important; 
}

@media (max-width: 1024px) {
    .td-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .td-page-banner h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .td-top-bar .ast-container { flex-direction: column; gap: 10px; }
    .td-footer-grid { grid-template-columns: 1fr; }
}

/* ── Step 3: Layout Cards — preserve natural image proportions ──────────── */
/* Scoped exclusively to .wootd-layout-card — no other card steps affected  */
.wootd-layout-card .wootd-card-img {
    aspect-ratio: unset;       /* remove the forced 4/3 ratio from base class */
    height: auto;              /* let the image dictate the container height   */
    background: #ffffff;       /* clean white bg instead of grey placeholder  */
}

.wootd-layout-card .wootd-card-img img {
    width: 100%;
    height: auto;              /* natural height — no squeezing               */
    object-fit: unset;         /* override the base "fill" that causes squeezing */
    display: block;
}

/* WooCommerce Archive Quantity Inputs */
.archive-qty-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.archive-qty-form .quantity {
    margin: 0 !important;
}

.archive-qty-form .quantity input {
    width: 60px !important;
    height: 42px !important;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.archive-qty-form .add_to_cart_button {
    margin: 0 !important;
    background-color: #1e3a5f !important;
    color: #fff !important;
    padding: 0 20px !important;
    height: 42px !important;
    line-height: 42px !important; 
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    transition: 0.3s !important;
}

.archive-qty-form .add_to_cart_button:hover {
    background-color: #38bdf8 !important;
    color: #0f172a !important;
    transform: translateY(-2px);
}

/* Service Area Full-Width Layout Fixes */
.single-service_area.ast-page-builder-template .site-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.single-service_area.ast-page-builder-template #primary {
    margin: 0 !important;
}

/* Premium Single Page Enhancements */
.td-sticky-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.td-sticky-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 70px -15px rgba(15, 23, 42, 0.22) !important;
}

.td-selector-app-wrapper {
    transition: 0.3s ease;
}

.td-selector-app-wrapper:hover {
    border-color: #38bdf8 !important;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}


/* ── Product Configurator Mobile Responsiveness ──────────────────────────── */
@media (max-width: 880px) {
    /* Hide Explainer Images for Faster Loading & Less Scrolling */
    .wootd-door-radio-content img,
    .wootd-inline-context-bar .wootd-context-tile img,
    .wootd-color-chart img,
    .wootd-urinal-visual,
    .wootd-shipping-img,
    .wootd-inline-header::before,
    .wootd-inline-header::after {
        display: none !important;
    }

    /* Compact Layout */
    .wootd-inline-body {
        grid-template-columns: 1fr !important;
    }

    .wootd-inline-form-col {
        padding: 15px !important;
    }

    .wootd-section {
        padding: 15px !important;
        margin-bottom: 12px !important;
    }

    .wootd-section-header {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    /* Optimize Radio Buttons */
    .wootd-radio-group {
        grid-template-columns: 1fr !important; /* Stack for easier tapping */
        gap: 8px !important;
    }

    .wootd-door-grid {
        grid-template-columns: 1fr !important; /* Stack door swings */
        gap: 8px !important;
    }

    .wootd-radio-option {
        padding: 12px 14px !important;
        min-height: auto !important;
    }

    .wootd-door-radio-option {
        padding: 10px 12px !important;
    }

    .wootd-door-radio-content {
        flex-direction: row !important; /* Text next to radio instead of below */
        gap: 8px !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .wootd-door-radio-content .wootd-radio-text {
        text-align: left !important;
    }

    /* Sticky Footer Adjustments */
    #wootd-sticky-footer {
        padding: 10px 15px !important;
    }

    .wootd-sticky-price {
        font-size: 18px !important;
    }

    /* Price Panel compacting */
    .wootd-inline-price-panel {
        padding: 15px !important;
        border-radius: 0 !important;
    }

    .wootd-inline-total-amount {
        font-size: 32px !important;
    }

    /* Floor Plan (keep but make smaller height) */
    .wootd-floorplan-section {
        margin: 0 15px 15px !important;
    }

    .wootd-floorplan-canvas-wrap {
        min-height: 200px !important;
    }

    .wootd-floorplan-canvas-wrap canvas {
        max-height: 200px !important;
    }

    /* Context Bar (Steps) */
    .wootd-inline-context-bar {
        padding: 10px 15px !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    
    .wootd-inline-context-bar .wootd-context-tile {
        padding: 6px 10px !important;
        flex: 1 1 calc(50% - 10px) !important;
    }
    
    .wootd-inline-context-bar .wootd-context-sep {
        display: none !important;
    }
    
    .wootd-inline-context-bar .wootd-context-label {
        font-size: 8px !important;
    }
    
    .wootd-inline-context-bar .wootd-context-value {
        font-size: 11px !important;
    }

    /* Checklist Section */
    .wootd-completion-checklist {
        margin-top: 15px !important;
        padding: 12px !important;
    }

    /* Quote Info Highlight compacting */
    .wootd-quote-info-highlight {
        margin: 20px 15px !important;
        padding: 15px !important;
        font-size: 13px !important;
    }

    .wootd-quote-info-highlight h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .wootd-quote-info-highlight ul {
        gap: 6px !important;
    }

    /* Unit Visual Hierarchy compacting */
    .wootd-visual-viewport-container {
        padding: 12px !important;
        margin: 10px 0 !important;
    }

    .wootd-visual-label {
        margin-bottom: 8px !important;
        font-size: 10px !important;
    }

    .wootd-unit-wrapper {
        width: 45px !important;
    }
}


/* ── Landscape Specific Adjustments ─────────────────────────────────────── */
@media (max-height: 600px) and (orientation: landscape) {
    .td-page-banner {
        padding: 40px 0 !important;
    }

    .td-page-banner h1 {
        font-size: 2rem !important;
    }

    .wootd-inline-header {
        padding: 15px 20px !important;
    }

    .wootd-inline-title {
        font-size: 18px !important;
    }

    /* Hide floor plan in extreme landscape to save space */
    .wootd-floorplan-section {
        display: none !important;
    }

    /* Make total amount smaller to fit sticky footer better if needed */
    .wootd-inline-total-amount {
        font-size: 24px !important;
    }
}