/* =========================================
   LAVINE - Premium Cleaning Brand CSS
   ========================================= */

/* --- CSS Variables / Design Tokens --- */
:root {
    --primary-blue: #384869;
    --dark-blue: #2b3852;
    --light-blue: #f2f5f9;
    --cyan-accent: #4c628f;
    --white: #ffffff;
    --text-dark: #212529;
    --text-gray: #6c757d;
    --bg-light: #f4f6f9;
    --border-color: #e0e6ed;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(56, 72, 105, 0.05);
    --shadow-md: 0 10px 20px rgba(56, 72, 105, 0.08);
    --shadow-hover: 0 15px 30px rgba(56, 72, 105, 0.15);
    
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body); /* Modern görünüm için Outfit ağırlıklı, Playfair'i sadece özel başlıkta kullanabiliriz */
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.p-0 {
    padding: 0 !important;
}

.overflow-hidden {
    overflow: hidden;
}

.mt-3 {
    margin-top: 1.5rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-blue);
    margin: 15px auto 30px;
    border-radius: 2px;
}
.divider.left {
    margin: 15px 0 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-blue);
}
.btn-white:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #384869;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition-fast);
    padding: 8px 0;
    animation: slideDownNav 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s both;
}

.navbar.scrolled {
    padding: 4px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 65px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan-accent);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--cyan-accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--light-blue);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Zoom out effect */
    transform: scale(1.1);
    transition: transform 6s ease;
}

.slide.active img {
    transform: scale(1);
}

/* Koyu renk bir katman (sadece 'has-overlay' yazılı olan okunsun diye) */
.slide.has-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.3) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 500px;
    opacity: 0;
}

/* Slider içeriği animasyonu */
.slide.active .slide-content {
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-30px); /* adjusted since center is already -50% */
        margin-top: 30px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

.slide-content h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--dark-blue);
    line-height: 1.1;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 300;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.2);
}

/* --- Yeniler (Product Grid) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-info .price {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- Split Sections (Zikzak) --- */
.container-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.container-split.reverse-row {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.split-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.03);
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2.2rem;
}

.split-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- Hızlı Kategoriler --- */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 400px;
}

.category-block {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-block:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 66, 152, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.category-block:hover .category-overlay {
    background: rgba(8, 66, 152, 0.6);
}

.category-overlay h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-family: var(--font-body); /* Serif hatası düzeltildi, modern fonta bağlandı */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.brand-col {
    position: relative;
    left: -100px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.brand-story {
    color: var(--light-blue);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--cyan-accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--light-blue);
}

.footer-col ul li a {
    color: var(--light-blue);
}

.footer-col ul li a:hover {
    color: var(--cyan-accent);
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--cyan-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--light-blue);
    font-size: 0.9rem;
}

/* --- Scroll Animasyon Sınıfları (Intersection Observer için) --- */
.animate-element {
    transition: var(--transition-slow);
    opacity: 0;
}

.fade-up {
    transform: translateY(40px);
}

.fade-in {
    transform: scale(0.95);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

/* Göründüğünde eklenecek 'in-view' class'ı */
.animate-element.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- Responsive (Mobil Uyumluluk) --- */
@media (max-width: 992px) {
    .container-split, .container-split.reverse-row {
        flex-direction: column;
    }
    .split-image img {
        height: 350px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .brand-col {
        left: 0;
        align-items: center;
    }
    .footer-logo {
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobil menü basit tutuldu */
        transform: none;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background-color: var(--white);
    }
    .slide-content h1 {
        font-size: 2.5rem;
    }
    .hero-slider {
        height: 60vh; /* Mobilde asiri zoom'u onler */
    }
    .category-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .category-block {
        height: 300px;
    }
    .lang-toggle {
        margin-left: 0;
        margin-right: 15px;
    }
    #header-logo {
        height: 45px; /* Logo kucultuldu */
    }
    .slider-dots {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CATALOG / PRODUCT LISTING --- */
.page-top-margin { margin-top: 100px; }
.breadcrumb-container { margin-bottom: 30px; }
.breadcrumb, .breadcrumb a { color: var(--text-gray); font-size: 0.95rem; }
.breadcrumb a:hover { color: var(--cyan-accent); }

.catalog-section { display: flex; gap: 40px; min-height: 60vh; align-items: flex-start; }
.sidebar { width: 250px; flex-shrink: 0; }
.sidebar-title { font-size: 1.1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; color: var(--text-dark); }
.category-list { list-style: none; }
.category-list li { margin-bottom: 10px; }
.category-list a { display: flex; justify-content: space-between; color: var(--text-gray); font-size: 1rem; padding: 5px 0; }
.category-list a:hover, .category-list a.active { color: var(--primary-blue); font-weight: 500; }

.catalog-content { flex: 1; }
.catalog-top-bar { display: flex; justify-content: flex-end; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.sort-box label { color: var(--text-gray); margin-right: 10px; }
.sort-box select { padding: 5px; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-dark); background: transparent; outline: none; }

.products-grid-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.catalog-card { background: var(--bg-light); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition-fast); text-decoration: none; border: 1px solid transparent; }
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-color); }
.catalog-card-img { height: 280px; width: 100%; padding: 20px; background: #f6f6f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.catalog-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.catalog-card-body { padding: 20px; text-align: center; }
.product-code { font-size: 0.8rem; color: var(--text-gray); display: block; margin-bottom: 5px; }
.catalog-card-body h4 { font-size: 1.1rem; color: var(--text-dark); font-weight: 500; }

/* --- PRODUCT DETAIL PAGE --- */
.detail-section { min-height: 70vh; margin-bottom: 60px; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 20px; }

.product-gallery { display: flex; flex-direction: column; gap: 15px; }
.main-image-box { background: #f6f6f6; border-radius: 12px; height: 500px; padding: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
.main-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb-images { display: flex; gap: 15px; }
.thumb-img { width: 80px; height: 80px; object-fit: contain; background: #f6f6f6; border-radius: 8px; padding: 10px; border: 2px solid transparent; cursor: pointer; transition: var(--transition-fast); }
.thumb-img:hover { border-color: var(--primary-blue); }

.product-info-box h1 { font-size: 2.2rem; margin-bottom: 5px; }
.product-code-txt { color: var(--text-gray); font-size: 1rem; margin-bottom: 25px; }

.small-label { font-size: 0.85rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.color-swatches { display: flex; gap: 15px; }
.color-swatch { width: 35px; height: 35px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; position: relative; display: inline-block; transition: var(--transition-fast); }
.color-swatch.active { border-color: var(--primary-blue); }
.color-swatch::after { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 50%; border: 1px solid transparent; }
.color-swatch.active::after { border-color: var(--primary-blue); }

.specs-list { list-style: none; color: var(--text-dark); font-size: 1.05rem; }
.specs-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.specs-list li span { color: var(--text-gray); min-width: 120px; display: inline-block; }

.similar-section { margin-bottom: 80px; }
.similar-header { margin-bottom: 30px; font-size: 1.5rem; text-align: left; border-bottom: 2px solid var(--border-color); display: inline-block; padding-bottom: 5px; color: var(--dark-blue); }

@media (max-width: 992px) {
    .catalog-section { flex-direction: column; }
    .sidebar { width: 100%; }
    .products-grid-catalog { grid-template-columns: repeat(2, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr; }
    .main-image-box { height: 400px; }
}

@media (max-width: 480px) {
    .products-grid-catalog { grid-template-columns: 1fr; }
}

/* --- PRELOADER --- */
.lavine-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--white); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.lavine-preloader.preload-finish {
    opacity: 0; visibility: hidden;
}
.spinner {
    width: 60px; height: 60px;
    border: 5px solid rgba(56, 72, 105, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- PRODUCT CARD HOVER IMAGE EFFECT --- */
.catalog-card-img, .product-img { position: relative; }
.primary-img {
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
    padding: 30px; box-sizing: border-box;
}
.hover-img {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    margin: auto; width: 100%; height: 100%;
    object-fit: contain; mix-blend-mode: multiply; opacity: 0;
    padding: 30px; box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.catalog-card:hover .primary-img, .product-card:hover .primary-img { opacity: 0; }
.catalog-card:hover .hover-img, .product-card:hover .hover-img { opacity: 1; transform: scale(1.05); }

@keyframes fadeUpAuto { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@keyframes slideDownNav {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.lang-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
    color: var(--white);
    font-weight: 500;
}
.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.lang-btn.active {
    color: var(--white);
    font-weight: bold;
}
.lang-btn:hover {
    color: var(--white);
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background-color: var(--light-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.back-btn:hover {
    background-color: #384869;
}
