:root {
    --primary-color: #8C7A6B; /* Mocha / Soft Brown */
    --accent-color: #C8B273; /* Subtle Gold */
    --bg-dark: #FAF8F5; /* Warm Cream / Alabaster */
    --text-light: #3E362E; /* Espresso Brown / Dark Charcoal */
    --glass-bg: rgba(250, 248, 245, 0.7);
    --glass-border: rgba(62, 54, 46, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 600px;
    max-width: 80vw;
    opacity: 1;
}

/* HEADER */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px 40px 50px; /* Yavaş silinme için alt boşluk */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(250,248,245,1) 0%, rgba(250,248,245,0.95) 40%, rgba(250,248,245,0) 100%);
}

#main-header .logo img {
    height: 120px;
}

#main-header nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

#main-header nav a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: inline-block;
    margin-left: 30px;
    font-size: 0.9rem;
    color: #666;
}

.lang-switcher a {
    margin-left: 0 !important;
    color: #888 !important;
}

.lang-switcher a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Mobile Menu & Responsive */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: 0.3s;
}

@media (max-width: 768px) {
    #main-header {
        padding: 15px 25px 25px 25px;
    }
    
    #main-header .logo img {
        height: 70px !important;
    }

    .hamburger {
        display: flex;
    }

    #main-header .header-right > nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    #main-header .header-right > nav.active {
        right: 0;
    }

    #main-header .header-right > nav a {
        margin: 15px 0 !important;
        font-size: 1.2rem;
    }

    .lang-switcher {
        margin: 20px 0 0 0 !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Gallery Fix */
    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
    }
    .gallery-item {
        height: 320px !important;
        width: 100% !important;
    }
    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        object-fit: cover !important;
    }
    .glass-caption {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 0 10px 10px !important;
    }
    #main-header .header-right {
        gap: 15px;
    }
}

/* PRODUCTS / GALLERY SECTION */
.products-section {
    padding: 80px 50px;
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 16px 40px 16px;
    }
    .products-section h2 {
        font-size: 1.8rem !important;
    }
    .products-section > div {
        padding: 0 !important;
    }
    .hero-content {
        padding: 20px 25px !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
    }
    .mood-section {
        padding: 60px 20px !important;
    }
    .mood-section h2 {
        font-size: 2rem !important;
    }
    .mood-section p {
        font-size: 1.1rem !important;
    }
    .gallery-section {
        padding: 20px 16px !important;
    }
}


.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 50px 80px;
    border-radius: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-light);
}

.hero-categories {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-categories span {
    display: inline-block;
    margin: 0 10px;
}

/* MOOD SECTION */
.mood-section {
    padding: 150px 50px;
    text-align: center;
    background-color: var(--bg-dark);
}

.mood-section h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.mood-section p {
    font-size: 1.5rem;
    color: #888;
}

/* GALLERY SECTION */
.gallery-section {
    padding: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 600px;
}

.gallery-item img {
    width: 100%;
    height: 130%; /* Extra height for parallax */
    object-fit: cover;
    transform: translateY(-15%); /* Initial offset for parallax */
}

.glass-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #FAF8F5;
}

/* SLIDE-OUT CART */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slideout-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #FAF8F5;
    z-index: 1010;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}
.slideout-cart.active {
    right: 0;
}

.cart-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}
.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 30px;
}
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}
.cart-item-info h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 5px;
}
.cart-item-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 10px;
    width: max-content;
}
.cart-qty-controls button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
}
.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
}
.checkout-btn:hover {
    background: #736152;
}

/* Add to cart btn style */
.add-to-cart-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: 0.3s;
}
.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
