/* ========== Page Template: Wardrobe (Optimized) ========== */

:root {
    --color-primary: #FF8C00;
    --color-primary-dark: #e67e00;
    --color-primary-light: #FFB347;
    --color-secondary: #2d3748;
    --color-background: #ffffff;
    --color-heading: #1a202c;
    --color-text: #4a5568;
    --color-text-light: #718096;
    --color-border: #e2e8f0;
    --color-surface: #f7fafc;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-max-width: 1200px;
    --container-padding: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-wardrobe {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-background);
}

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

/* ========== Section 1: Hero (Optimized) ========== */
.wardrobe-hero-section {
    width: 100%;
    position: relative;
}

.wardrobe-hero-section .hero-banner {
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.wardrobe-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.7) 100%);
    z-index: 1;
}

.wardrobe-hero-section .hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.wardrobe-hero-section .hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.wardrobe-hero-section .hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.wardrobe-hero-section .hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Base Button Styles */
.page-wardrobe .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.page-wardrobe .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.page-wardrobe .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.page-wardrobe .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-wardrobe .btn-secondary:hover {
    background: #ffffff;
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ========== Section 2: Wardrobe Types Grid ========== */
.wardrobe-types-grid-section {
    padding: 100px 0;
    background-color: var(--color-background);
}

.wardrobe-types-grid-section .section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 60px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.wardrobe-types-grid-section .types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.wardrobe-types-grid-section .type-card {
    display: block;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.wardrobe-types-grid-section .type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.wardrobe-types-grid-section .type-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.wardrobe-types-grid-section .type-card:hover img {
    transform: scale(1.05);
}

.wardrobe-types-grid-section .type-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
    padding: 24px 20px 20px;
    pointer-events: none;
}

.wardrobe-types-grid-section .type-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Design Ideas Grid */
.wardrobe-types-grid-section .design-ideas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wardrobe-types-grid-section .idea-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.wardrobe-types-grid-section .idea-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.wardrobe-types-grid-section .idea-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.wardrobe-types-grid-section .idea-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 24px 24px 12px;
}

.wardrobe-types-grid-section .idea-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 24px 24px;
}

/* ========== Section 3: Product Grid ========== */
.wardrobe-product-grid-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.wardrobe-product-grid-section .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.wardrobe-product-grid-section .product-card {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.wardrobe-product-grid-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.wardrobe-product-grid-section .product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.wardrobe-product-grid-section .product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 24px 24px 12px;
}

.wardrobe-product-grid-section .product-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 24px 24px;
}

/* Second Product Grid Section (8 products) */
.wardrobe-product-grid-section-2 {
    background-color: var(--color-surface);
}

.wardrobe-product-grid-section .products-grid-8 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

/* Pagination Styles */
.wardrobe-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.wardrobe-pagination .pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-border);
    background: #ffffff;
    color: var(--color-heading);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.wardrobe-pagination .pagination-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.wardrobe-pagination .pagination-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.wardrobe-products-wrapper {
    display: none;
}

.wardrobe-products-wrapper.active {
    display: block;
}

/* ========== Section 4: Catalog CTA ========== */
.wardrobe-catalog-cta-section {
    padding: 100px 0;
}

.wardrobe-catalog-cta-section .catalog-cta-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    overflow: hidden;
}

.wardrobe-catalog-cta-section .catalog-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.92) 0%, rgba(26, 32, 44, 0.88) 100%);
}

.wardrobe-catalog-cta-section .catalog-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.wardrobe-catalog-cta-section .catalog-cta-text {
    flex: 1;
    color: #ffffff;
}

.wardrobe-catalog-cta-section .catalog-cta-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.wardrobe-catalog-cta-section .catalog-cta-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
}

.wardrobe-catalog-cta-section .catalog-cta-image {
    flex: 0 0 45%;
}

.wardrobe-catalog-cta-section .catalog-cta-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== Section 5: Built-in Wardrobes Buying Guide ========== */
.built-in-wardrobes-guide-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.built-in-wardrobes-guide-section .guide-wrapper {
    display: block;
}

.built-in-wardrobes-guide-section .guide-content {
    width: 100%;
}

.built-in-wardrobes-guide-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 24px 0;
}

.built-in-wardrobes-guide-section .guide-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 40px 0;
}

.built-in-wardrobes-guide-section .guide-faq {
    margin-top: 40px;
}

.built-in-wardrobes-guide-section .faq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.built-in-wardrobes-guide-section .faq-item:hover .faq-title {
    color: var(--color-primary);
}

.built-in-wardrobes-guide-section .faq-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    transition: color 0.2s ease;
}

.built-in-wardrobes-guide-section .faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.built-in-wardrobes-guide-section .faq-item:hover .faq-icon {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* ========== Section 7: Project Cases ========== */
.wardrobe-project-cases-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.wardrobe-project-cases-section .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wardrobe-project-cases-section .case-card {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.wardrobe-project-cases-section .case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.wardrobe-project-cases-section .case-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.wardrobe-project-cases-section .case-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 24px 24px 16px;
}

.wardrobe-project-cases-section .case-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 24px 24px;
    flex-grow: 1;
}

.wardrobe-project-cases-section .case-card .btn-primary {
    margin: 0 24px 24px;
    width: fit-content;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .wardrobe-types-grid-section .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wardrobe-types-grid-section .design-ideas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wardrobe-product-grid-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wardrobe-product-grid-section .products-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wardrobe-catalog-cta-section .catalog-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .wardrobe-catalog-cta-section .catalog-cta-image {
        flex: 0 0 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .wardrobe-project-cases-section .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wardrobe-hero-section .hero-banner {
        padding: 60px 0;
        min-height: 450px;
    }

    .wardrobe-hero-section .hero-title {
        font-size: 36px;
    }

    .wardrobe-catalog-cta-section {
        padding: 60px 0;
    }

    .wardrobe-catalog-cta-section .catalog-cta-bg {
        min-height: auto;
    }

    .wardrobe-catalog-cta-section .catalog-cta-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
        min-height: auto;
    }

    .wardrobe-catalog-cta-section .catalog-cta-title {
        font-size: 32px;
    }

    .wardrobe-catalog-cta-section .catalog-cta-description {
        font-size: 16px;
    }

    .wardrobe-types-grid-section .types-grid,
    .wardrobe-types-grid-section .design-ideas-grid,
    .wardrobe-product-grid-section .products-grid,
    .wardrobe-product-grid-section .products-grid-8,
    .wardrobe-project-cases-section .cases-grid {
        grid-template-columns: 1fr;
    }
}