/*
Theme Name: Cassalis Home Concept
Author: Antigravity
Description: Custom WordPress theme for luxury furniture brand.
Version: 1.0.0
*/

:root {
    /* Brand Colors */
    --bg-color: #F9F8F6;
    --text-color: #333333;
    --brand-red: #E60023;
    --brand-turq: #00CED1;
    --white: #ffffff;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    /* Mobile Modern Fix */
    margin: 0;
}

/* Ensure content pushes footer down */
/* Targeting common content containers */
.container,
main,
.site-content,
#content {
    flex: 1;
    /* Grow to fill space */
    width: 100%;
}

/* Fix for header overlap since it is fixed */
body>.container,
body>main {
    /* This ensures the top content isn't hidden behind the fixed header if margin is used elsewhere, 
        but we already have margin-top in specific layouts. 
        We ensure it flexes correctly. */
    flex: 1 0 auto;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--brand-red);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.btn:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

/* Glassmorphism Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    /* User asked for absolute or fixed, fixed is safer for user navigation */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0;
    height: 70px;
    /* Force compact header height */
    display: flex;
    align-items: center;
}

.site-header .header-inner {
    display: flex;
    justify-content: center;
    /* Center the branding */
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 0 5%;
    margin: 0;
    height: 100%;
    position: relative;
    /* Anchor for absolute elements */
}

.site-branding {
    flex-shrink: 0;
    margin: 0;
    position: relative;
    width: 150px;
    height: 100%;
}

.site-branding img,
.custom-logo {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    /* Centered relative to container */
    height: 130px !important;
    width: auto;
    max-width: none;
    margin: 0;
    object-fit: contain;
    z-index: 10000;
}

/* Global Off-Canvas Menu (No Horizontal Menu) */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Force Stack */
    gap: 25px;
    text-align: center;
}

/* Navigation Links (Sidebar Style) */
.main-navigation a {
    font-weight: 500;
    font-size: 1.5rem;
    /* Larger for menu */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    display: block;
}

.main-navigation a:hover {
    color: var(--brand-turq);
}

/* --- Unified Header & Navigation --- */

/* Hamburger Trigger (Visible Globally) */
/* Hamburger Trigger (Visible Globally) */
.hamburger-trigger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 5px;
    position: absolute;
    /* Move to RIGHT */
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-trigger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Off-Canvas Menu Sidebar (Global) */
.menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    /* Slide from RIGHT */
    right: -100%;
    left: auto;
    /* Reset left */
    width: 350px;
    /* Slightly wider for desktop comfort */
    max-width: 80%;
    height: 100vh;
    background-color: #fff;
    transition: right 0.3s ease-in-out;
    z-index: 10005;
    padding: 60px 40px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
}

.mobile-menu-sidebar.active {
    right: 0;
    /* Slide in to Right */
}

.menu-close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

.mobile-menu-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: none;
    text-align: center;
    width: 100%;
    margin-top: 60px;
}

.mobile-menu-sidebar a {
    font-size: 1.5rem;
    /* Larger font for desktop elegance */
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.main-navigation a:hover {
    color: var(--brand-turq);
}


/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh;
    /* Increased height */
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    /* Centering content */
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Product Categories */
.product-categories {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
    padding: var(--spacing-lg) 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Catalog & Socials */
.catalog-social-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.catalog-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}


/* Footer */
.site-footer {
    background-color: #333333;
    /* Dark Warm Grey requested in previous step, ensuring consistency */
    color: var(--white);
    padding: 80px 0;
    margin-top: auto;
    /* Push to bottom if flex fails for some reason */
    padding-bottom: env(safe-area-inset-bottom);
    /* iPhone Safety */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 60px;
        /* Even smaller header on mobile */
        padding: 0 1rem;
    }

    /* Header Layout - Mobile Adjustments */
    .site-header {
        height: 60px;
        padding: 0 1rem;
    }

    .header-inner {
        padding: 0 10px;
    }

    .hamburger-trigger {
        right: 20px;
        /* Adjust for mobile padding */
        left: auto;
        transform: translateY(-50%) scale(0.9);
        /* Slightly smaller */
    }

    .site-branding img {
        height: 50px !important;
        /* Smaller logo on mobile */
        top: -5px;
        /* Adjust positioning */
    }

    .mobile-menu-sidebar {
        width: 80%;
        max-width: 320px;
        padding: 60px 20px;
    }

    .mobile-menu-sidebar a {
        font-family: 'Jost', sans-serif;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img img {
        height: 300px;
    }
}

/* --- Inner Page Styles --- */

/* Page Header */
.page-header {
    background-color: var(--soft-beige);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.archive-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* Inner Grid */
.inner-grid {
    margin-bottom: 50px;
    /* Reuses .category-grid grid layout */
}

/* Archive Grid Override (Sidebar Grid) */
.category-grid.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Responsive Archive Grid */
@media (max-width: 992px) {
    .category-grid.sidebar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid.sidebar-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card Styling (Archive/Category) */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Stretches to match tallest neighbor */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card-img-link {
    display: block;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 300px;
    /* Fixed height for all images */
    object-fit: cover;
    /* Prevents distortion/stretching */
    transition: transform 0.5s ease;
    display: block;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Article Cards Refinements */
.card-content {
    padding: 20px;
    flex-grow: 1;
    /* Pushes content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card-content .category-title {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card-content .category-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.card-content .category-title a:hover {
    color: var(--brand-red);
}

.excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    color: var(--brand-red);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
    width: 100%;
    clear: both;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Single Post */
.single-post-container {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 900px !important;
    /* Narrower for reading */
}

.entry-header {
    text-align: center;
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.entry-meta {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.entry-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
}

/* --- Strict Layout Refactor --- */

/* 1. Main Container Override */
.container {
    max-width: 1400px;
    /* Requested width */
}



/* --- Mobile-First Single Product Layout --- */

/* 1. Base Architecture (Mobile Default) */
.single-product-layout {
    display: flex;
    flex-direction: column;
    /* Stack vertically by default */
    gap: 40px;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Product Gallery (Left Column) */
.product-gallery-col {
    width: 100%;
}

.main-image-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    /* Modern standard */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 15px;
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnails Strip */
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    /* Horizontal scroll on mobile */
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.product-thumbnails::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: #D4AF37;
    /* Active Gold Border */
}

/* 3. Product Info (Right Column) */
.product-info-col {
    width: 100%;
}

/* Typography & Separators */
.single-product-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.title-separator {
    width: 60px;
    height: 3px;
    background-color: #D4AF37;
    /* Gold Line */
    margin-bottom: 25px;
}

.single-product-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

/* Features Table */
.features-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.features-table tr {
    border-bottom: 1px solid #eee;
}

.features-table td {
    padding: 12px 0;
    font-size: 0.95rem;
    color: #555;
}

.features-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}

/* Full Width Buttons */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

/* Desktop Upgrade (@media min-width: 900px) */
@media (min-width: 900px) {
    .single-product-layout {
        flex-direction: row;
        /* Side by side */
        align-items: flex-start;
        padding: 60px 0;
        gap: 60px;
    }

    .product-gallery-col {
        width: 60%;
    }

    .main-image-frame {
        height: 550px;
        /* Fixed height desktop */
    }

    .product-info-col {
        width: 40%;
        position: sticky;
        /* Sticky Info Panel */
        top: 100px;
    }

    .single-product-title {
        font-size: 3rem;
    }
}

/* 2. Main Layout Structure */
.archive-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 60px;
    margin-bottom: 80px;
}

.archive-sidebar {
    width: 25%;
    /* Fixed 25% */
    flex-shrink: 0;
    position: sticky;
    /* Sticky position */
    top: 100px;
    /* Below fixed header */
    padding-right: 20px;
}

.archive-content {
    width: 75%;
    /* Fixed 75% */
}

/* 3. Sidebar Styling */
.sidebar-title {
    font-family: var(--font-heading);
    /* Playfair Display */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: block;
    font-family: var(--font-body);
    /* Manrope */
    font-size: 1rem;
    color: #555;
    padding: 12px 0;
    /* Spacing */
    border-bottom: 1px solid #eee;
    /* Divider */
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #B8860B;
    /* Brand Gold/Brown approximation */
    padding-left: 5px;
    /* Subtle movement */
}

/* 4. Product Grid (The Fix) */
.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Items per row */
    gap: 30px;
    /* Clean spacing */
}

/* 5. Product Cards (Uniformity) */
.product-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card-img-link {
    display: block;
    width: 100%;
    height: 350px;
    /* Fixed Height */
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    /* Fill container */
    object-fit: cover !important;
    /* Crucial: No stretching */
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-content {
    padding: 20px;
    text-align: center;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.product-card .category-title {
    position: static !important;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-shadow: none !important;
}

.product-card .read-more-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
    padding: 8px 20px;
    border-radius: 2px;
    transition: all 0.3s;
}

.product-card .read-more-link:hover {
    background: var(--brand-red);
    color: #fff;
}

/* 6. Footer Adjustment */
.site-footer {
    background-color: #333333;
    /* Dark Warm Grey requested */
    color: #f0f0f0;
    padding: 80px 0;
    /* Increased padding */
    margin-top: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .archive-layout {
        flex-direction: column;
    }

    .archive-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
        background: #f9f9f9;
        /* Light background for separation */
        padding: 20px;
        border-radius: 8px;
    }

    .archive-content {
        width: 100%;
    }

    .sidebar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Sidebar Toggle */
    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .sidebar-title {
        margin-bottom: 0;
        /* Reset margin for flexible header */
        font-size: 1.3rem;
    }

    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: 1px solid #ddd;
        padding: 8px 15px;
        border-radius: 20px;
        font-family: var(--font-body);
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s;
    }

    .sidebar-toggle-btn:hover {
        border-color: var(--text-dark);
    }

    .sidebar-toggle-btn .arrow {
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

    /* Rotate arrow when active */
    .archive-sidebar.active .sidebar-toggle-btn .arrow {
        transform: rotate(180deg);
    }

    /* Content Visibility */
    .sidebar-content {
        display: none;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .archive-sidebar.active .sidebar-content {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 600px) {
    .sidebar-grid {
        grid-template-columns: 1fr;
        /* 1 Column on mobile */
    }
}

/* --- Corporate Single Product Mobile Redesign --- */

.single-product-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

/* 1. Main Gallery (4:3 Aspect Ratio) */
.product-gallery-col {
    position: relative;
    width: 100%;
}

.main-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 2px;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-product-img.placeholder {
    object-fit: contain;
    padding: 20%;
}

/* Overlay Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.gallery-nav:active {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-nav svg {
    stroke: #fff;
    width: 20px;
    height: 20px;
}

/* Zoom Icon */
.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    /* Just an icon for now */
}

.zoom-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* 2. Thumbnails (Horizontal Scroll) */
.product-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 15px 0 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.product-thumbnails::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.thumb-item {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--brand-gold);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Content Area (Corporate) */
.product-info-col {
    padding: 0 5px;
}

.single-product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 10px;
}

.title-separator {
    width: 60px;
    height: 3px;
    background-color: var(--brand-gold);
    margin-bottom: 20px;
}

.single-product-description {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 25px;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
}

.features-table tr {
    border-bottom: 1px solid #eee;
}

.features-table tr:last-child {
    border-bottom: none;
}

.features-table td {
    padding: 12px 0;
    vertical-align: top;
    color: var(--text-dark);
}

.features-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--text-color);
}

/* --- Corporate Contact Page Styles --- */

.map-container {
    width: 100%;
    height: 450px;
    background-color: #e9e9e9;
    position: relative;
    margin-bottom: 60px;
}

.map-placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background: #f4f4f4;
    font-size: 1.2rem;
    font-weight: 500;
}

.headquarters-info {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
}

.hq-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hq-address {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hq-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.contact-split-section {
    margin-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--brand-red);
    display: inline-block;
}

/* Corporate Table Styles */
.corporate-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    margin-top: 20px;
}

.corporate-table th,
.corporate-table td {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.corporate-table th {
    width: 40%;
    font-weight: 700;
    color: var(--text-dark);
}

.corporate-table td {
    color: #555;
    font-weight: 400;
}

.corporate-table tr:last-child th,
.corporate-table tr:last-child td {
    border-bottom: none;
}

/* Form Wrapper Override */
.form-wrapper input,
.form-wrapper textarea,
.form-wrapper select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fafafa;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus {
    border-color: var(--brand-dark);
    outline: none;
    background: #fff;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin-bottom: 40px;
    }

    .hq-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hq-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-outline {
        width: 100%;
        text-align: center;
    }
}


/* --- INSTAGRAM WIDGET AYARLARI (Buradan Değiştir) --- */
:root {
    --insta-max-width: 1400px;
    /* Genişlik: 100% yaparsan tam ekran olur */
    --insta-min-height: 400px;
    /* Yükseklik: Alanın ne kadar uzun olacağı */
}

/* --- KODU BOZMA (Aşağısı Otomatik Alır) --- */
.instagram-widget-wrapper {
    width: 100%;
    max-width: var(--insta-max-width);
    /* Ayardan çeker */
    min-height: var(--insta-min-height);
    /* Ayardan çeker */
    margin: 0 auto;
    padding: 20px 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Widget içeriğini kapsayıcıya uydur */
behold-widget {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* Katalog B�l�m� - �stten Bo�luk */
.catalog-section {
    margin-top: 80px;
    /* �stteki g�rselden uzakla��r */
    margin-bottom: 50px;
    /* Alttaki Instagram'dan uzakla��r */
    text-align: center;
}


/* Center Collection Grid */
.category-grid {
    justify-content: center;
    /* 3 �r�n kal�nca ortalar */
}


/* FORCE COMPLETE CENTERING */
.category-grid {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 30px;
    margin: 0 auto !important;
    width: 100% !important;
}


/* Catalog Hero Section Styles */
.catalog-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 50px;
}