html { scroll-behavior: smooth; }

:root {
    --bg-color: #ffffff;
    --text-dark: #121212;
    --text-light: #666666;
    --accent: #B28F6B;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-color); line-height: 1.6; overflow-x: hidden;}
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Custom Scrollbar for Smoothness */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 30px 5%; display: flex; justify-content: space-between; align-items: center;
    background: transparent; transition: var(--transition);
}
.navbar.scrolled { 
    background: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 4px 30px rgba(0,0,0,0.05); 
    padding: 15px 5%; 
}
.navbar.scrolled #navbar-logo {
    height: 55px !important;
}
.navbar.scrolled .logo, .navbar.scrolled .nav-links a, .navbar.scrolled .nav-icons { color: #111 !important; }

.logo { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -1px;}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 40px; color: #fff; list-style:none; }
.nav-links a { font-weight: 500; font-size: 15px; position: relative;}
.nav-links a::after { content:''; position:absolute; bottom:-5px; left:0; width:0; height:1px; background:var(--accent); transition:var(--transition); }
.nav-links a:hover::after { width: 100%; }

.nav-icons { display: flex; gap: 20px; color: #fff; align-items: center;}
.nav-icons span { cursor: pointer; font-size: 18px; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; color: #fff; font-size: 24px; cursor: pointer; z-index: 1001; }
.navbar.scrolled .menu-toggle { color: #111; }

@media (max-width: 768px) {
    .navbar { padding: 16px 5%; }
    .logo { font-size: 22px; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: #fff; flex-direction: column; justify-content: center; align-items: center;
        transition: var(--transition); box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: #111 !important; font-size: 20px; }
    .menu-toggle { display: block; }
    .nav-icons { display: none; }
    #navbar-logo { height: 45px !important; }
    .navbar.scrolled #navbar-logo { height: 40px !important; }
}

/* ============================
   ANIMATIONS
   ============================ */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* ============================
   HERO
   ============================ */
.hero {
    position: relative; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: -2; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.3); z-index: -1; }
.hero-content {
    text-align: center; color: #fff; padding: 0 5%;
}
.hero-content h1 { font-family: var(--font-heading); font-size: clamp(38px, 8vw, 80px); line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: clamp(15px, 3vw, 20px); max-width: 600px; margin: 0 auto 40px; font-weight: 300; }

/* Telefonda hero: yüksekliği azalt, görseli en üstten başlat */
@media (max-width: 768px) {
    .hero { height: 55vh; min-height: 380px; }
    .hero-bg { object-position: center 30%; height: 100%; }
    .hero-content { padding: 0 8%; }
    .btn-primary { padding: 14px 28px; font-size: 12px; }
}
@media (max-width: 480px) {
    .hero { height: 50vh; min-height: 340px; }
    .hero-bg { object-position: center 25%; }
}
.btn-primary {
    display: inline-block; padding: 16px 38px; background: #fff; color: #111;
    font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--accent); color: #fff; }

/* ============================
   GENERIC SECTIONS
   ============================ */
.section-pad { padding: 80px 5%; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(28px, 5vw, 42px); font-weight: 600; }
.section-header p { color: var(--text-light); margin-top: 10px; font-size: 16px; }

@media (max-width: 768px) {
    .section-pad { padding: 60px 5%; }
    .section-header { margin-bottom: 35px; }
    .section-header p { font-size: 14px; }
}

/* ============================
   CATEGORIES GRID (Homepage)
   ============================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.cat-card { position: relative; height: 500px; overflow: hidden; display: block; border-radius: 4px;}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1); }
.cat-card:hover img { transform: scale(1.08); }
.cat-overlay { position: absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 60%); display: flex; flex-direction:column; justify-content: flex-end; padding: 30px; color:#fff;}
.cat-overlay h3 { font-size: 26px; font-family: var(--font-heading); margin-bottom: 5px; }

@media (max-width: 600px) {
    .cat-grid { grid-template-columns: 1fr; }
    .cat-card { height: 350px; }
    .cat-overlay h3 { font-size: 22px; }
}

/* ============================
   PRODUCTS GRID
   ============================ */
.prod-grid-wrap { max-width: 1200px; margin: 0 auto; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1024px) {
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
    .prod-grid { grid-template-columns: 1fr; gap: 30px; }
}
.prod-card { text-align: center; display: flex; flex-direction: column; align-items: center;}
.prod-img-box { position: relative; height: 380px; overflow: hidden; background: #f9f9f9; width: 100%; }
.prod-img-box img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.prod-actions {
    position: absolute; bottom: -60px; left: 0; width: 100%; padding: 15px;
    background: rgba(255,255,255,0.9); transition: var(--transition); display: flex; justify-content: center;
}
.prod-img-box:hover .prod-actions { bottom: 0; }
.prod-img-box:hover img { transform: scale(1.05); }
.btn-explore { background: #111; color: #fff; border: none; padding: 12px 28px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;}
.btn-explore:hover { background: var(--accent); }
.prod-info { padding-top: 18px; }
.prod-info h4 { font-size: 17px; font-weight: 500; font-family: var(--font-heading); margin-bottom: 5px; color: #111;}
.prod-info p { font-size: 14px; color: var(--text-light); }

/* ============================
   MARQUEE (Sizin İçin Önerilenler)
   ============================ */
.marquee-container {
    width: 100%; overflow: hidden; white-space: nowrap; position: relative; background: #fdfdfd; padding: 30px 0;
}
.marquee-track {
    display: inline-block; animation: scroll-left 40s linear infinite;
}
.marquee-item {
    display: inline-block; width: 220px; height: 300px; margin: 0 12px; overflow: hidden; border-radius: 4px;
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .marquee-item { width: 160px; height: 220px; margin: 0 8px; }
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: #000; color: #ccc; padding: 60px 5%; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
footer h2 { color: #fff; font-family: var(--font-heading); font-size: 28px; margin-bottom: 16px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a:hover { color: var(--accent); }

@media (max-width: 768px) {
    footer { padding: 40px 5%; }
    .footer-content { flex-direction: column; text-align: center; gap: 40px !important; }
    .footer-content > div { min-width: 100% !important; margin-bottom: 20px; }
    .footer-content img { margin: 0 auto 20px !important; }
    footer h2 { font-size: 24px; }
}

/* ============================
   PRODUCT DETAIL PAGE
   ============================ */
.product-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 150px; padding-bottom: 80px; padding-left: 5%; padding-right: 5%; max-width: 1200px; margin: 0 auto;}
@media (max-width: 900px) {
    .product-detail-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 100px; }
}
.prod-main-img { width: 100%; height: auto; max-height: 700px; object-fit: cover; }
.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff;
    padding: 16px 32px; font-size: 16px; font-weight: 600; border-radius: 4px; margin-top: 30px;
}
.whatsapp-btn:hover { background: #128C7E; color: #fff; }

/* ============================
   CONTACT PAGE
   ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================
   KURUMSAL PAGE
   ============================ */
@media (max-width: 768px) {
    .kurumsal-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}

/* ============================
   KATALOG (URUNLER) PAGE
   ============================ */
.katalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
@media (max-width: 600px) {
    .katalog-grid { grid-template-columns: 1fr; }
}

/* ============================
   ADMIN PANEL
   ============================ */
.admin-layout { background: #F8F9FA; display: flex; height: 100vh; font-family: 'Plus Jakarta Sans', sans-serif; overflow: hidden; }
.admin-sidebar {
    width: 280px; min-width: 280px; background: #FFFFFF; box-shadow: 2px 0 20px rgba(0,0,0,0.03); display: flex; flex-direction: column;
}
.admin-logo { padding: 35px 30px; font-size: 22px; font-weight: 800; color: #111; border-bottom: 1px solid #F0F0F0; }
.admin-nav { flex: 1; padding: 20px 0; overflow-y: auto; }
.admin-nav ul { list-style: none; }
.admin-nav a {
    display: flex; align-items: center; padding: 13px 30px; color: #555; font-size: 14px; font-weight: 500;
    border-left: 3px solid transparent; transition: 0.3s;
}
.admin-nav a i { margin-right: 15px; font-size: 16px; width: 20px; text-align: center;}
.admin-nav a:hover, .admin-nav a.active {
    background: #F8F9FA; color: #111; border-left-color: #111;
}

.admin-main { flex: 1; padding: 40px; overflow-y: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.admin-topbar h1 { font-size: 28px; font-weight: 600; color: #111; letter-spacing: -0.5px; }
.white-panel { background: #fff; padding: 35px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.02); margin-bottom: 30px;}
.input-elegant {
    width: 100%; padding: 14px 18px; border: 1px solid #EAEAEA; border-radius: 8px; font-family: inherit;
    font-size: 14px; margin-bottom: 18px; background: #FAFAFA; transition: 0.3s;
}
.input-elegant:focus { outline: none; border-color: #111; background: #fff;}
.btn-dark { background: #111; color: #fff; border: none; padding: 13px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }

/* Admin responsive (tablet and below) */
@media (max-width: 900px) {
    .admin-layout { flex-direction: column; height: auto; }
    .admin-sidebar { width: 100%; min-width: unset; height: auto; }
    .admin-nav { max-height: 200px; }
    .admin-main { padding: 25px; }
    .admin-topbar h1 { font-size: 22px; }
    .white-panel { padding: 20px; }
}
