/* =========================
   RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #111;
    /* Pull-to-refresh'i engelle */
    overscroll-behavior-y: contain;
    /* Mobil scroll sorunlarını önle */
    -webkit-overflow-scrolling: touch;
}
.brand-main {
    font-family: 'Playfair Display', serif;
}

/* =========================
   HEADER / NAVBAR
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.55); /* net ama yarı şeffaf */
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* LOGO */
.brand {
    display: inline-block;
    text-align: left;
}

.brand-top {
    display: inline-flex;
    gap: 8px;
}

.brand-top span {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-bottom {
    text-align: center;              
    color: #d2b48c;
    font-size: 12px;
    letter-spacing: 5px;
    margin-top: 4px;
}

.brand-main {
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-sub {
    color: #b08d57;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* MENU */
.menu {
    margin-left: -40px;
    display: flex;
    gap: 28px;
}

.menu a {
    color: #ddd;
    margin-left: 28px;
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #b08d57;
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* =========================
   SLIDER
========================= */
.slider {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: white;
    max-width: 420px;
}

.slide-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-text span {
    font-size: 14px;
    opacity: 0.85;
}

/* =========================
   PRODUCTS GRID
========================= */

/* =========================
   KATEGORİ SLIDER
========================= */
.category-slider {
    background: #f8f6f2;
    padding: 80px 0;
    position: relative;
    width: 100%;
    /* Touch optimizasyonu */
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y; /* Sadece dikey scroll'a izin ver */
}

.category-container {
    max-width: 1200px; /* Daha dar container */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 0 20px;
}

.category-track {
    display: flex;
    gap: 30px; /* Daha az gap */
    padding: 20px 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.category-item {
    flex: 0 0 calc(25% - 22.5px); /* Tam 4'e bölünüyor (30px gap / 4 = 7.5px, her item'den 22.5px çıkarıyoruz) */
    max-width: 280px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.category-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    position: relative;
}

.category-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.category-circle:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-item p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
}

.category-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.category-dot:hover {
    background: rgba(176, 141, 87, 0.6);
}

.category-dot.active {
    background: #b08d57;
    transform: scale(1.4);
}

@media (max-width: 768px) {
    .category-track {
        gap: 30px;
        padding: 20px 30px;
    }
    
    .category-item {
        flex: 0 0 150px;
    }
    
    .category-circle {
        width: 150px;
        height: 150px;
    }
}

.products {
    max-width: 1200px;
    margin-top: 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    text-decoration: none;
    color: #111;
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

.product-card h3 {
    margin-top: 12px;
    font-size: 16px;
}

/* =========================
   PRODUCT PAGE
========================= */

/* =========================
   PROJECTS PAGE
========================= */
.projects-page {
    max-width: 1400px;
    margin: 120px auto 80px;
    padding: 0 24px;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
    color: #111;
}

.projects-header p {
    font-size: 18px;
    color: #666;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.project-info {
    padding: 24px;
    position: relative;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111;
}

.project-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-year {
    display: inline-block;
    background: #b08d57;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-header h1 {
        font-size: 32px;
    }
}

.product-page {
    max-width: 1200px;
    margin: 140px auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-images img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 14px;
}

.product-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* =========================
   WHATSAPP BUTTON
========================= */
.whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: white;
    padding: 14px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .slide-text {
        left: 20px;
        bottom: 30px;
    }

    .slide-text h2 {
        font-size: 26px;
    }

    .product-page {
        grid-template-columns: 1fr;
    }

    .menu a {
        margin-left: 16px;
    }
}

/* =========================
   HAMBURGER MENÜ
========================= */

.hamburger {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 80px;
        right: 20px;
        background: rgba(15,15,15,0.95);
        padding: 20px;
        border-radius: 12px;
        display: none;
        flex-direction: column;
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }
}

/* =========================
   ARROW
========================= */

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    user-select: none;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #b08d57;
}

/* =========================
   FOOTER
========================= */

/* =========================
   REFERANSLAR
========================= */
.references {
    background: #f8f6f2;
    padding: 80px 20px;
    text-align: center;
}

.references h2 {
    font-size: 32px;
    margin-bottom: 60px;
    color: #333;
    letter-spacing: 1px;
    font-weight: 600;
}

.references-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.reference-item {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-width: 200px;
}

.reference-item img {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.reference-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobil slider için dots */
.references-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.references-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.references-dot.active {
    background: #b08d57;
    transform: scale(1.3);
}

/* Desktop - Yan yana görünüm */
@media (min-width: 769px) {
    .references-container {
        justify-content: space-around;
    }
}

/* Mobil - Slider görünümü */
@media (max-width: 768px) {
    .references {
        overflow: hidden;
    }
    
    .references-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    
    .reference-item {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 20px 40px;
    }
    
    .reference-item img {
        max-width: 250px;
    }
    
    .references-dots {
        display: flex;
    }
}

.footer {
    background: #f6f4ef;
    padding-top: 60px;
}

.footer-container {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px 50px;
}

/* SOL */
.footer-left {
    max-width: 350px;
}

.footer-left h3 {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* ORTA */
.footer-center {
    min-width: 200px;
}

.footer-center h4 {
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center li {
    margin-bottom: 8px;
}

.footer-center a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.footer-center a:hover {
    color: #000;
}

/* SAĞ */
.footer-right {
    max-width: 300px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-social {
    margin-top: 28px;
}

.footer-social h4 {
    font-size: 15px;
    margin-bottom: 10px;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.socials .facebook {
    background: #1877f2;
}

.socials .instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}

/* ALT BAR */
.footer-bottom {
    background: #eae7df;
    text-align: center;
    font-size: 13px;
    padding: 14px;
}


@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}


.has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -120px;
    width: 700px;
    background: white;
    padding: 30px;
    display: none;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.has-mega:hover .mega-menu {
    display: flex;
}

.mega-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.mega-col a {
    display: block;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    margin-bottom: 8px;
}

.mega-col a:hover {
    color: #000;
}



.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 0;
    opacity: 0;
    margin-left: 10px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    transition: 0.3s ease;
    background: white;
    z-index: 10;
}

/* 🔥 OLAY BURADA */
.search-box:focus-within input {
    width: 200px;
    opacity: 1;
}

.search-box input.open {
    width: 200px;
    opacity: 1;
}


#searchIcon {
    cursor: pointer;
    font-size: 18px;
}

/* =========================
   MOBİL OVERLAY
========================= */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 997;
}
.menu-overlay.active {
    display: block;
}

/* Mobil alt menü (accordion) — varsayılan gizli */
.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 16px;
    border-left: 2px solid #b08d57;
    margin: 4px 0 12px;
}
.mobile-submenu.open {
    display: flex;
}
.mobile-submenu a {
    font-size: 14px !important;
    color: #aaa !important;
    padding: 8px 0 !important;
    border-bottom: none !important;
    margin-left: 0 !important;
}

/* =========================
   RESPONSIVE — MOBILE ONLY
========================= */
@media (max-width: 768px) {

    /* Header */
    .container {
        padding: 14px 18px;
    }
    .brand-top span {
        font-size: 17px;
        letter-spacing: 2px;
    }
    .brand-bottom {
        font-size: 10px;
        letter-spacing: 3px;
    }

    /* Arama gizle, hamburger göster */
    .search-box { display: none; }
    .hamburger  { display: block; }

    /* Menü: sağdan kayan panel */
    .menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 75% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #111 !important;
        flex-direction: column !important;
        padding: 80px 28px 30px !important;
        z-index: 998 !important;
        transition: right 0.35s ease !important;
        margin: 0 !important;
        gap: 0 !important;
        overflow-y: auto !important;
        display: flex !important; /* her zaman flex, right ile kontrol ediyoruz */
    }
    .menu.open {
        right: 0 !important;
    }

    /* Menü linkleri */
    .menu > a,
    .menu .menu-item > a {
        margin-left: 0 !important;
        color: #eee !important;
        font-size: 15px !important;
        padding: 13px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        display: block !important;
    }
    .menu a::after { display: none !important; }

    /* Desktop mega menüyü mobilde gizle */
    .mega-menu { display: none !important; }

    /* Slider */
    .slider {
        height: 85vw;
        min-height: 300px;
        max-height: 600px;
    }
    .slide-text {
        left: 14px;
        bottom: 18px;
        max-width: calc(100% - 70px);
    }
    .slide-text h2 { font-size: 17px; margin-bottom: 5px; }
    .slide-text span { font-size: 12px; }
    .arrow { font-size: 30px; padding: 6px; }
    .arrow.left { left: 6px; }
    .arrow.right { right: 6px; }

    /* Kategori slider */
    .category-slider { padding: 16px 0; overflow: hidden; }
    .category-container { overflow: hidden; padding: 0; }
    .category-track  { gap: 0; padding: 6px 0; }
    .category-item   { flex: 0 0 50%; max-width: 50%; padding: 0 10px; }
    .category-circle { width: 130px; height: 130px; }
    .category-item p { font-size: 11px; margin-top: 8px; }
    .category-dots   { margin-top: 16px; }

    /* Ürün kartları */
    .products {
        margin-top: 44px;
        padding: 0 14px;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .product-card img  { height: 150px; border-radius: 8px; }
    .product-card h3   { font-size: 13px; margin-top: 7px; }

    /* Ürün detay */
    .product-page {
        margin-top: 90px;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 14px;
    }
    .product-info h1 { font-size: 21px; }

    /* Projeler */
    .projects-page { margin-top: 90px; padding: 0 14px; }
    .projects-header h1 { font-size: 26px; }
    .projects-header p  { font-size: 14px; }
    .projects-grid { grid-template-columns: 1fr; gap: 22px; }
    .project-card img { height: 190px; }

    /* Footer */
    .footer-container { flex-direction: column; gap: 34px; }
    .footer-left { max-width: 100%; }
    .footer-right { max-width: 100%; }

    /* WhatsApp */
    .whatsapp { bottom: 14px; right: 14px; padding: 11px 15px; font-size: 13px; }
}

@media (max-width: 375px) {
    .products { grid-template-columns: 1fr; }
    .product-card img { height: 210px; }
}
