/* FA-LITE BAŞLANGIÇ */
/* Font Awesome 6.4 Free — yalnızca kullanılan simgeler; yeniden üretmek için scripts/fa-lite.py */
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url("./content/fonts/fa-lite-solid.woff2?v=9ded6b") format("woff2")}
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url("./content/fonts/fa-lite-regular.woff2?v=9ded6b") format("woff2")}
@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url("./content/fonts/fa-lite-brands.woff2?v=9ded6b") format("woff2")}
.fa-solid,.fa-regular,.fa-brands{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-solid,.fa-regular{font-family:"Font Awesome 6 Free"}.fa-solid{font-weight:900}.fa-regular{font-weight:400}.fa-brands{font-family:"Font Awesome 6 Brands";font-weight:400}
.fa-spin{animation:fa-spin 2s linear infinite}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
.fa-arrow-left::before{content:"\f060"}.fa-arrow-right-from-bracket::before{content:"\f08b"}.fa-bag-shopping::before{content:"\f290"}.fa-ban::before{content:"\f05e"}.fa-bars::before{content:"\f0c9"}.fa-bolt::before{content:"\f0e7"}.fa-box::before{content:"\f466"}.fa-box-open::before{content:"\f49e"}.fa-building-columns::before{content:"\f19c"}.fa-cart-shopping::before{content:"\f07a"}.fa-check::before{content:"\f00c"}.fa-chevron-left::before{content:"\f053"}.fa-chevron-right::before{content:"\f054"}.fa-circle-check::before{content:"\f058"}.fa-circle-exclamation::before{content:"\f06a"}.fa-circle-info::before{content:"\f05a"}.fa-circle-notch::before{content:"\f1ce"}.fa-circle-question::before{content:"\f059"}.fa-circle-user::before{content:"\f2bd"}.fa-clock::before{content:"\f017"}.fa-credit-card::before{content:"\f09d"}.fa-cube::before{content:"\f1b2"}.fa-eye::before{content:"\f06e"}.fa-eye-slash::before{content:"\f070"}.fa-globe::before{content:"\f0ac"}.fa-heart::before{content:"\f004"}.fa-house::before{content:"\f015"}.fa-location-dot::before{content:"\f3c5"}.fa-lock::before{content:"\f023"}.fa-magnifying-glass::before{content:"\f002"}.fa-magnifying-glass-dollar::before{content:"\f688"}.fa-minus::before{content:"\f068"}.fa-money-bill-transfer::before{content:"\e528"}.fa-pen::before{content:"\f304"}.fa-pen-clip::before{content:"\f305"}.fa-pen-ruler::before{content:"\f5ae"}.fa-pen-to-square::before{content:"\f044"}.fa-phone::before{content:"\f095"}.fa-plus::before{content:"\2b"}.fa-sack-dollar::before{content:"\f81d"}.fa-shapes::before{content:"\f61f"}.fa-shield-halved::before{content:"\f3ed"}.fa-shield-heart::before{content:"\e574"}.fa-tag::before{content:"\f02b"}.fa-tags::before{content:"\f02c"}.fa-trash::before{content:"\f1f8"}.fa-trash-can::before{content:"\f2ed"}.fa-triangle-exclamation::before{content:"\f071"}.fa-truck::before{content:"\f0d1"}.fa-truck-fast::before{content:"\f48b"}.fa-xmark::before{content:"\f00d"}
.fa-calendar::before{content:"\f133"}.fa-copy::before{content:"\f0c5"}.fa-user::before{content:"\f007"}
.fa-instagram::before{content:"\f16d"}.fa-telegram::before{content:"\f2c6"}.fa-whatsapp::before{content:"\f232"}
/* FA-LITE BİTİŞ */

/* Plus Jakarta Sans (değişken yazı tipi, 400-800): Google Fonts yerine kendi sunucumuzdan; yalnızca latin + latin-ext (Türkçe) */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('./content/fonts/pjs-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('./content/fonts/pjs-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* AGENCYB Custom Font */
@font-face {
    font-family: 'AGENCYB';
    src: url('./content/fonts/AGENCYB.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   1. DEĞİŞKENLER & GENEL SIFIRLAMALAR (RESET)
   ========================================================================== */
:root {
    --bg-body: #F8F9FB;
    --bg-surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --primary: #1E293B;
    --primary-hover: #334155;
    --accent: #3B82F6;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --nav-height: 80px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, li { margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: var(--nav-height);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

/* Mobilde blur her scroll karesinde GPU maliyeti cikariyor: opak zemine dusuruluyor.
   Ust serit mobilde sadece logo / geri butonu tasiyor; 80px yerine 56px yeterli. */
@media (max-width: 768px) {
    :root { --nav-height: 56px; }
    .navbar .brand-logo img { height: 40px; width: auto; }   /* HTML'deki height="65" ilk yuklemede serit disina tasiyordu */
    .navbar {
        background: #FFFFFF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.nav-container {
    max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.navbar .brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 0;
}

.brand-logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
}

.brand-logo a,
.navbar .brand-logo a { 
    display: flex; 
    align-items: center; 
    height: 100%; 
    line-height: 0; 
    color: inherit; 
    text-decoration: none; 
}

.navbar .brand-logo img {
    display: block;
    max-height: 100%;
}

.nav-back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary);
    transition: transform 0.2s ease;
    user-select: none;
}

.nav-back-link:hover {
    transform: translateX(-2px);
}

.nav-back-link:hover .nav-back-icon-box {
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.nav-back-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-back-text {
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--primary);
    letter-spacing: -0.2px;
}
.nav-menu { list-style: none; display: flex; gap: 40px; height: 100%;}

.nav-menu li { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    cursor: pointer; 
    display: flex; 
    align-items: center;
    position: relative;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.nav-menu li:hover, .nav-menu li.active { color: var(--primary); }

/* Seçili menünün altındaki şık çizgi */
.nav-menu li.active::after {
    content: ''; 
    position: absolute; 
    bottom: -1px; 
    left: 0; 
    width: 100%; 
    height: 3px;
    background: var(--primary); 
    border-radius: 4px 4px 0 0;
}

#cart-badge { background: var(--accent); color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; margin-left: 6px;}

/* Kullanıcı Profil Alanı */
#nav-user-profile {
    display: none;
    align-items: center;
    position: relative;
    height: 100%;
}

/* ==========================================================================
   3. ORTAK SAYFA ELEMANLARI (COMMON)
   ========================================================================== */
.page { display: none; }
.page.active { display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.narrow { max-width: 700px; }
h1 { font-size: 3rem; color: var(--primary); margin-bottom: 15px;}
h2 { font-size: 2rem; margin-bottom: 15px; }
/* Düğme ve form alanları tarayıcının Arial'ı yerine site fontunu kullanır */
button, input, select, textarea { font-family: inherit; }

/* Sayfa başlığı standardı: ürünler, sepet, giriş ve yasal sayfalar aynı yazı tipi/boyutta */
.products-header h1, .cart-page-title, .login-header h2, .legal-content h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--primary); margin: 0 0 12px; }
.legal-content h1 { margin-bottom: 28px; }
.legal-content h3 { margin: 36px 0 12px; font-size: 1.2rem; font-weight: 700; color: var(--primary); }
@media (max-width: 768px) {
    .products-header h1, .cart-page-title, .login-header h2, .legal-content h1 { font-size: 1.6rem; }
    .legal-content h3 { font-size: 1.1rem; margin-top: 30px; }
}

/* Buton Standartları */
.btn { padding: 14px 28px; border-radius: var(--radius-sm); border: none; font-weight: 600; cursor: pointer; font-size: 1rem; transition: background-color .2s, transform .2s, box-shadow .2s;}
.primary { background: var(--primary); color: white; }
.primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.secondary { background: white; border: 1px solid var(--border); color: var(--text-main); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: white;}

/* Girdi Alanları (Inputs) */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase;}
.input-box { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem;}
.input-box:focus { outline: none; border-color: var(--accent); }

/* ==========================================================================
   4. ÜRÜNLER (KEŞFET) & ÜRÜN DETAY SAYFASI
   ========================================================================== */
.products-header { text-align: center; padding: 45px 20px 20px; background: white; border-bottom: 1px solid var(--border);}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.model-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--border); cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;}
.model-card.skeleton { min-height: 403px; cursor: default; pointer-events: none; background: #f8fafc; }
.model-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent);}
.card-image img { width: 100%; height: 250px; object-fit: cover; background: #f1f5f9;}
.model-info { padding: 20px; }
.model-title { font-weight: 700; font-size: 1.2rem; margin-bottom: 5px; color: var(--primary);}
.model-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px;}
.card-meta { display: flex; justify-content: space-between; align-items: center;}
.price-tag { font-weight: 800; font-size: 1.1rem; }
.card-action-btn { font-size: 0.8rem; font-weight: 600; color: var(--accent); padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; transition: background .2s, color .2s; }
.model-card:hover .card-action-btn { background: var(--accent); color: #fff; }

/* Ürün Detay Grid Yapısı */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start;}
/* Ürün sayfası: başlık ile üst menü arası dar (genel 60 px üst boşluk burada fazlaydı) */
#product-detail-page .container { padding-top: 24px; }
@media (max-width: 768px) {
    #product-detail-page .container { padding-top: 12px; }
    /* "Sepete eklendi" balonu alt çubuğun üstünde durur: en alttaki kutular (Ürün Özellikleri, kargo) altında kalmasın */
    #product-detail-page { padding-bottom: 80px; }
}
.product-images img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border);}

.detail-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid var(--border);}
.customization-box { background: #f8fafc; padding: 25px; border-radius: var(--radius-md); border: 1px solid var(--border);}

/* ==========================================================================
   5. SEPET & ÖDEME ADIMLARI
   ========================================================================== */
#checkout-page {
    padding-top: 15px;
    padding-bottom: 50px;
}

#checkout-page .container {
    padding-top: 25px;
}

.cart-page-title { text-align: left; margin: 10px 0 25px; }
.bulk-box { margin-bottom: 20px; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; }
.cart-list {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sepet / sipariş: QR hedefleri ikon + kısa etiket; uzun link satırı taşırmasın */
.social-chips { display: grid; gap: 3px; margin-top: 4px; }
.social-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.social-chip.pending { font-weight: 500; font-style: italic; }
.social-chip img { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.social-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cart-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.cart-2d-box {
    width: 125px;
    height: 125px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

:root { --cart-preview-max: 112px; }   /* sepet önizlemesinin iç ölçüsü; JS de buradan okuyor */
.cart-item-row { display: flex; align-items: center; gap: 16px; width: 100%; }
.cart-item-row > .info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 110px; gap: 8px; }
.cart-item-title { font-weight: 700; font-size: 1.02rem; color: var(--primary); line-height: 1.3; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 2px; }
.cart-item-price { margin-right: auto; font-weight: 800; font-size: 1.15rem; color: var(--primary); white-space: nowrap; }

/* Telefon: önizleme küçülür, bilgi sütunu genişler (başlık, QR etiketleri, seçim kutusu sığsın) */
@media (max-width: 480px) {
    :root { --cart-preview-max: 80px; }
    .cart-2d-box {
        width: 88px;
        height: 88px;
    }
    .cart-item {
        padding: 12px;
    }
    /* Önizleme + başlık/seçim üstte; fiyat, renk, adet satırı altta kartın tam genişliğinde
       (dar sütunda 4 haneli fiyatla sığmıyordu) */
    .cart-item-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
    .cart-item-row > .info { display: contents; }
    .cart-item-row > .cart-2d-box { grid-row: 1 / span 2; }
    .cart-item-controls { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--border); }
    .cart-item-title { font-size: 0.95rem; }
}

.summary-panel {
    background: white;
    padding: 26px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

/* ==========================================================================
   6. MODERN GİRİŞ / KAYIT EKRANI (LOGIN)
   ========================================================================== */
.login-container { min-height: 60vh; display: flex; justify-content: center; align-items: center; }
.login-container { padding: 24px 16px 40px; }
.login-card { width: 100%; max-width: 400px; padding: 40px; background: white; border-radius: var(--radius-md); border: 1px solid var(--border);}

.login-header {
    margin-bottom: 35px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #F8FAFC;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.login-input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-links {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.link-text { 
    color: var(--accent); 
    cursor: pointer; 
    transition: 0.2s; 
}

.link-text:hover { 
    color: #1d4ed8; 
    text-decoration: underline; 
}

#signup-kvkk {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ==========================================================================
   7. USER DASHBOARD (KONTROL PANELİ) & ADRES/SİPARİŞ KARTLARI
   ========================================================================== */
/* minmax(0,1fr): uzun (kesilmeyen) satırlar sütunu ekrandan geniş yapıp mobilde sayfayı yana taşırmasın */
.dashboard-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px;}
.dash-sidebar, .dash-content { min-width: 0; }
.dash-tab > h3 { margin: 0 0 20px; }
.dash-sidebar { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px;}
.dash-content { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px;}

.dash-menu {
    list-style: none !important; 
    padding: 0 !important;
    margin: 0 !important;
}

.dash-menu li {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    list-style-type: none !important;
}

.dash-menu li:hover {
    background: #F1F5F9;
    color: var(--primary);
}

.dash-menu li.active {
    background: #EFF6FF;
    color: var(--accent);
}

.dash-logout-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #fee2e2;
    background: #fff5f5;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dash-logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.user-brief {
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.user-brief div {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.user-brief p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Siparişlerim kartı: üstte görseller + no/tarih + durum, ortada ürün satırları, altta adet ve tutar */
.order-card {
    padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; background: #fff; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.oc-head { display: flex; align-items: center; gap: 12px; }
.order-avatar-group { display: flex; align-items: center; flex: none; }
.order-avatar-group img, .oc-more { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; box-shadow: var(--shadow-sm); background: #E2E8F0; }
.order-avatar-group > * + * { margin-left: -12px; }
.order-avatar-group > :nth-child(1) { z-index: 3; } .order-avatar-group > :nth-child(2) { z-index: 2; } .order-avatar-group > :nth-child(3) { z-index: 1; }
.oc-more { display: flex; align-items: center; justify-content: center; color: #475569; font-size: 0.78rem; font-weight: 700; box-sizing: border-box; }
.oc-title { flex: 1; min-width: 0; }
.oc-title h4 { margin: 0 0 2px; font-size: 0.98rem; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-date { display: block; white-space: nowrap; font-size: 0.78rem; color: var(--text-light); }
.oc-date i { margin-right: 5px; }
.order-status-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.oc-items { margin: 14px 0 12px; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.oc-item { min-width: 0; }
.oc-item-line { display: flex; align-items: baseline; gap: 6px; }
.oc-item-name { font-weight: 600; font-size: 0.9rem; color: var(--primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-qty { flex: none; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.oc-item-detail { margin-top: 1px; font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oc-total { font-size: 1.05rem; font-weight: 800; color: var(--primary); }

/* Adres Paneli Buton Sabitlemesi */
#tab-addresses .btn-sm.primary {
    background: var(--primary) !important;
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
#tab-addresses .btn-sm.primary:hover { background: var(--primary-hover) !important; }

/* Dinamik Listelenen Adres Kartları */
.address-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
    text-transform: capitalize; /* eski küçük harfli kayıtlar da kelime başı büyük görünsün */
}

.address-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* ==========================================================================
   8. MODAL MODÜLÜ (Universal Popup Yapısı)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FFFFFF;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Elegant Scrollbar for Modals */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 20px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.confirm-box { max-width: 380px; flex-direction: column; padding: 28px 26px 22px; text-align: left; }
.confirm-box h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.confirm-box p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 22px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-actions .btn-sm { padding: 10px 18px; font-size: 0.9rem; color: var(--primary); }
.confirm-actions .confirm-danger { background: #DC2626; border-color: #DC2626; color: #fff; }
.confirm-actions .confirm-danger:hover { background: #B91C1C; border-color: #B91C1C; }

.modal-close {
    position: absolute; 
    top: 15px; right: 15px;
    width: 35px; height: 35px;
    background: #F1F5F9; 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; 
    font-size: 1.2rem; 
    color: var(--text-muted);
    transition: 0.2s;
}

.modal-close:hover { 
    background: #E2E8F0; 
    color: var(--primary);
    transform: rotate(90deg); 
}

/* ==========================================================================
   9. FOOTER, TOASTS & CAROUSEL
   ========================================================================== */
.main-footer { background: #0F172A; color: white; padding: 0 0 30px; margin-top: 20px;}
/* Guven seridi: her biri tek satir, ikon + baslik + kisa aciklama */
.footer-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; background: linear-gradient(#1E293B, #1E293B) no-repeat 20px 100% / calc(100% - 40px) 1px;}   /* çizgi içerikle hizalı (container'ın yan boşluğuna taşmaz) */
.footer-trust-item { display: flex; align-items: center; gap: 14px; }
.footer-trust-item > i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--accent); background: rgba(59,130,246,.12); }
.footer-trust-item span { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; line-height: 1.4; color: #94A3B8;}
.footer-trust-item strong { font-size: 0.88rem; font-weight: 600; color: #F1F5F9;}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 48px; padding-bottom: 0;}
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #F1F5F9; margin: 0 0 18px;}
.footer-brand p { color: #94A3B8; font-size: 0.9rem; line-height: 1.6; margin: 18px 0 22px; max-width: 280px;}
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-social, .footer-phone { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid #263349; color: #CBD5E1; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;}
.footer-social:hover { color: white; border-color: var(--accent); background: rgba(59,130,246,.14); transform: translateY(-2px); text-decoration: none;}
.footer-ico { width: 16px; height: 16px; flex: none; }
.footer-social[aria-label="WhatsApp"] .footer-ico { color: #25D366; }
.footer-phone i { font-size: .8rem; color: var(--accent); }
/* Telefon numarasi: bilgisayarda yalniz yazi (tiklanmaz), dokunmatik cihazda arama dugmesi */
@media (hover: hover) and (pointer: fine) { .footer-phone { border-color: transparent; padding-left: 4px; pointer-events: none; cursor: default; } }
@media (hover: none) and (pointer: coarse) { .footer-phone { flex: 1 1 100%; justify-content: center; background: var(--accent); border-color: var(--accent); color: white; padding: 12px 16px; font-size: .9rem;} .footer-phone i { color: white; } }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; font-size: 0.9rem;}
.footer-col ul li a { color: #94A3B8; transition: color .3s ease, transform .3s ease; text-decoration: none; display: inline-block;}
.footer-col ul li a:hover { color: var(--accent); transform: translateX(5px); text-decoration: none;}
.footer-note { color: #94A3B8; font-size: 0.78rem; line-height: 1.55; margin: 14px 0 0; max-width: 240px;}
.footer-bottom { margin-top: 44px; padding-top: 22px; padding-bottom: 0; background: linear-gradient(#1E293B, #1E293B) no-repeat 20px 0 / calc(100% - 40px) 1px; text-align: center; color: #7C8BA3; font-size: 0.78rem; line-height: 1.8;}
.footer-bottom p { margin: 0;}
.payment-methods { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #94A3B8;}
.iyzico-badge { background: #00AEEF; color: white; padding: 0 12px; height: 26px; display: inline-flex; align-items: center; border-radius: 5px; font-size: 0.72rem; font-weight: 800; letter-spacing: .3px;}
/* Kart rozetleri: Font Awesome "brands" webfont'u (105 KB) yerine hafif yazi/CSS rozetleri */
.card-badge { background: #FFFFFF; color: #1A1F71; padding: 0 12px; height: 26px; display: inline-flex; align-items: center; border-radius: 5px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.4px; white-space: nowrap;}
.card-badge.visa { font-style: italic; font-size: .82rem; letter-spacing: .6px; }
.card-badge.mc { gap: 0; color: #1F2937; font-size: .62rem; font-weight: 700; letter-spacing: 0; text-transform: lowercase;}
.card-badge.mc i { width: 13px; height: 13px; border-radius: 50%; background: #EB001B; display: inline-block; }
.card-badge.mc i + i { background: #F79E1B; margin-left: -5px; mix-blend-mode: multiply; margin-right: 6px; }
.card-badge.mc b { font-weight: 700; }
@media (max-width: 900px) {
    .footer-trust { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding-top: 28px; padding-bottom: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 36px; padding-bottom: 0; }
    .footer-brand, .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-trust { grid-template-columns: 1fr; gap: 16px; }
    .footer-brand p { max-width: none; }
}

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px;}
@media (max-width: 768px) { #toast-container { bottom: 70px; } }
.toast { background: white; padding: 15px 20px; border-radius: 8px; box-shadow: var(--shadow-md); border-left: 4px solid var(--accent); display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s forwards;}
.toast.error { border-left-color: #EF4444; }
.toast.success { border-left-color: #10B981; }

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

#detail-main-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}
#detail-main-carousel::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   10. RENK SEÇİCİ & ÖZEL UI BİLEŞENLERİ (PLA Color Picker)
   ========================================================================== */
.pla-color-select {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--border), 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}
.pla-color-select:hover {
    transform: scale(1.1);
}

.pla-options-dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 100;
}
.pla-options-dropdown::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pla-options-dropdown.open {
    display: grid;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.pla-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--border);
    cursor: pointer;
    transition: transform 0.15s;
}
.pla-swatch:hover {
    transform: scale(1.2);
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

/* ==========================================================================
   12. RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr); /* 1fr içerik genişleyince sütunu taşırıyordu (Sepete Eklendi'de resim büyüyüp sayfa kayıyordu) */
        gap: 14px !important;
    }
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    /* Profil menüsü telefonda kısa: iki sekme yan yana, kartlar kenar boşluğunu fazla yemesin */
    .dash-sidebar { padding: 16px; }
    .user-brief { margin-bottom: 14px; padding-bottom: 12px; }
    .dash-menu { display: flex !important; gap: 8px; }
    .dash-menu li { flex: 1; justify-content: center; margin: 0; padding: 10px 8px; font-size: 0.92rem; }
    .dash-logout-btn { margin-top: 12px; padding: 10px 14px; }
    .dash-content { padding: 16px; }
    .order-card { padding: 14px; }
    .customization-box {
        padding: 16px 14px !important;
        margin-top: 0 !important;
    }
    .advanced-2d-preview-container {
        margin-top: 10px;
    }
    #detail-thumbnails {
        margin-top: 10px !important;
        margin-bottom: 4px !important;
    }
    h1 { font-size: 2rem; }
    .mobile-menu-toggle { display: block !important; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: #ffffff; flex-direction: column; gap: 15px; padding: 20px;
        box-shadow: -4px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease;
        z-index: 1002; display: flex !important;
        align-items: flex-start !important; justify-content: flex-start !important; margin: 0 !important;
    }
    #nav-logout-container { margin: 0 !important; }
    .nav-menu.open { right: 0; }
    .mobile-menu-close { display: block !important; margin: 0 0 20px auto !important; }
    .nav-menu li {
        width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border);
        margin: 0 !important; height: auto !important; flex: 0 0 auto !important;
    }
    .nav-menu li.active::after { display: none; }
    .nav-menu li.active { color: var(--accent); }
    .mobile-backdrop {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1001;
    }
    .mobile-backdrop.open { opacity: 1; visibility: visible; }
    #nav-user-profile { justify-content: flex-start; margin-left: 0 !important; }
    #nav-login-btn { justify-content: flex-start; margin-left: 0 !important; }
    #nav-logout-container { margin-left: 0 !important; }

    /* Klavye & Sabit Alt Bar Çakışmasını Engelleme — sadece klavye açan alanlar.
       (:focus-within butonları da kapsıyordu; Sepete Ekle'ye basınca alt menü kayboluyordu) */
    body.input-focused .bottom-nav-bar,
    body.keyboard-open .bottom-nav-bar {
        display: none !important;
    }
    body.input-focused,
    body.keyboard-open {
        padding-bottom: 0 !important;
    }
}

@media (min-width: 769px) {
    #nav-login-btn, #nav-user-profile { margin-left: auto !important; }
}

/* DIAGONAL COLOR PICKER */
#color-combinations-container { display: flex; flex-wrap: wrap; gap: 12px; }
.diagonal-color-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.diagonal-color-btn:hover { transform: scale(1.1); box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-color: var(--text-muted); }
.diagonal-color-btn.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3); transform: scale(1.15); }
.elegant-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(5px); background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .2s cubic-bezier(0.175,0.885,0.32,1.275), transform .2s cubic-bezier(0.175,0.885,0.32,1.275), visibility .2s; z-index: 100; pointer-events: none; min-width: max-content; }
.diagonal-color-btn:hover .elegant-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.elegant-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: #ffffff transparent transparent transparent; }
.elegant-tooltip::before { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(1px); border-width: 6px; border-style: solid; border-color: var(--border) transparent transparent transparent; z-index: -1; }
.tooltip-row { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-main); }
.tooltip-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.1); }

/* ==========================================================================
   13. MOBİL STICKY ÖNIZLEME (Design Mode)
   ========================================================================== */

/* Navbar transition removed as it stays visible */

/* 2D preview container in its normal (in-flow) state */
.advanced-2d-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.advanced-2d-preview-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 220px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    background: #ffffff !important;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.preview-object-color-layer {
    position: absolute;
    inset: 0;
    clip-path: inset(3px round 11px);   /* taban görselin yarı saydam kenarından koyu boya rengi çerçeve gibi sızmasın */
    width: 100%;
    height: 100%;
    transition: background-color 0.2s ease;
}

.preview-overlay-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
}

.select-box, select.input-box {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .advanced-2d-preview-box {
        max-height: 195px !important;
    }
}

/* ==========================================================================
   14. ÜRÜN DETAY BAŞLIKLARI VE AKSİYON SATIRI
   ========================================================================== */

.mobile-product-header { display: none; }
.desktop-product-header { margin-bottom: 20px; }
.desktop-product-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.desktop-product-header p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* Fiyat ve Sepete Ekle Butonu Yan Yana */
.detail-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.detail-price-box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.detail-price-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.1;
}
/* Ürün özellikleri: kargo kutusuyla aynı beyaz kart dili, kompakt madde listesi */
.detail-specs { margin-top: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; color: var(--text-muted); }
.detail-specs[hidden] { display: none; }
.detail-specs .ds-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.detail-specs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.detail-specs li { display: flex; gap: 8px; font-size: 0.8rem; line-height: 1.45; }
.detail-specs li i { flex: none; margin-top: 3px; font-size: 0.78rem; color: #16a34a; }
.detail-specs li strong { color: var(--primary); font-weight: 600; }
.detail-specs + .detail-shipping-note { margin-top: 10px; }
/* Kargo / garanti notu: beyaz kart, ince ayırıcılı satırlar, nötr ikon kutuları (dikkat çekmeden okunur) */
.detail-shipping-note {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    color: var(--text-muted);
}
.dsn-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.dsn-row + .dsn-row { border-top: 1px solid var(--border); }
.dsn-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #F1F5F9; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.dsn-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.8rem; line-height: 1.4; }
.dsn-text strong { color: var(--primary); font-size: 0.9rem; font-weight: 700; }
.dsn-text b { color: var(--primary); font-weight: 600; }
.dsn-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px;
    padding: 10px 14px; background: #F8FAFC; border-top: 1px solid var(--border); font-size: 0.78rem;
}
.dsn-proof i { color: #16a34a; margin-right: 4px; }
.dsn-wa { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #E8F9EF; border: 1px solid #A7E8C0; color: #128C4A; text-decoration: none; font-weight: 700; margin-left: auto; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.dsn-wa .footer-ico, .dsn-wa i { color: #25D366; transition: color .2s ease; }
.dsn-wa:hover { background: #25D366; border-color: #25D366; color: #fff; text-decoration: none; }
.dsn-wa:hover .footer-ico, .dsn-wa:hover i { color: #fff; }

/* Ürün puanı (başlığın altı) ve müşteri yorumları (yalnızca ürün sayfasında) */
[hidden] { display: none !important; }
.detail-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.detail-rating:hover { color: var(--primary); }
.rating-stars { color: #F59E0B; letter-spacing: 1px; white-space: nowrap; }
.rating-stars .off { color: #E2E8F0; }
.detail-reviews { margin-top: 40px; padding-bottom: 10px; scroll-margin-top: calc(var(--nav-height, 80px) + 12px); }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.reviews-head h3 { margin: 0; }
.reviews-summary { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.reviews-summary b { color: var(--primary); font-size: 1.15rem; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.review-card .rating-stars { font-size: 0.9rem; }
.review-card p { margin: 8px 0 10px; font-size: 0.9rem; line-height: 1.55; color: var(--text-main); white-space: pre-line; overflow-wrap: anywhere; }
.review-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; }
.review-meta b { color: var(--primary); font-weight: 700; }
.reviews-more { display: block; margin: 16px auto 0; padding: 10px 22px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.reviews-more:active { background: #F1F5F9; }

/* Sepet: tahmini kargoya veriliş ve sipariş süreci şeridi */
.cart-ship-est { margin: -4px 0 14px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.cart-ship-est i { color: var(--accent); margin-right: 6px; }
.cart-ship-est strong { color: var(--primary); }
.how-steps {
    list-style: none; margin: 22px 0 0; padding: 14px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; counter-reset: how;
}
.how-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; position: relative; padding: 0 2px; }
.how-steps li + li::before { content: ''; position: absolute; left: -3px; top: 17px; width: 6px; height: 6px; border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: rotate(45deg); }
.how-ico { width: 36px; height: 36px; border-radius: 50%; background: #EFF6FF; color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; margin-bottom: 3px; }
.how-steps b { font-size: 0.8rem; color: var(--primary); }
.how-steps small { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }
@media (max-width: 380px) { .how-steps small { display: none; } }

.detail-add-cart-btn {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 48px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .mobile-product-header {
        display: block;
        margin-bottom: 12px;
        padding: 0 2px;
    }
    .mobile-product-header .mobile-detail-title {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--primary);
        margin: 0 0 4px 0;
        line-height: 1.25;
    }
    .mobile-product-header .mobile-detail-desc {
        font-size: 0.88rem;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.4;
    }

    .desktop-product-header {
        display: none !important;
    }

    #detail-main-carousel {
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   Çerez onay bandı (yalnızca ana sayfa). Telefonda alt menünün üstünde durur.
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1001;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: var(--text-main); text-decoration: underline; }
.cookie-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
/* Reddet açıkça görünür (çerçeveli düğme); Kabul et dolu ve biraz daha büyük */
.cookie-reject {
    padding: 5px 12px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.cookie-reject:hover { border-color: var(--text-light); color: var(--text-main); }
.cookie-accept {
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.cookie-accept:hover { background: var(--primary-hover); }
@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: calc(var(--bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px) + 8px);
        gap: 8px;
        padding: 8px 10px;
    }
}

/* ==========================================================================
   Sipariş sorgulama (giriş kartı içinde)
   ========================================================================== */
.lookup-entry { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.lookup-hint { margin-top: 6px; font-size: 0.88rem; color: var(--text-muted); }
.lookup-error { margin: 16px 0 0; color: #DC2626; font-size: 0.88rem; text-align: center; }
.lookup-card { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-body); font-size: 0.88rem; text-align: left; }
.lookup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.lookup-head small, .lookup-item small { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.lookup-status { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.lookup-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.lookup-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.lookup-item-name { flex: 1; font-weight: 700; color: var(--text-main); }
.lookup-item-price { text-align: right; font-weight: 700; white-space: nowrap; }
.lookup-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-muted); }
.lookup-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; font-weight: 800; color: var(--text-main); }
.lookup-customer { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); color: var(--text-muted); line-height: 1.6; font-size: 0.82rem; }

/* ==========================================================================
   Mobil Üst Bar "Sipariş Takibi" Kompakt Hap Butonu
   ========================================================================== */
.nav-lookup-pill {
    display: none;
}

@media (max-width: 768px) {
    .nav-lookup-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 11px;
        border-radius: 999px;
        background: #F8FAFC;
        border: 1px solid var(--border);
        color: var(--primary);
        font-family: inherit;
        font-size: 0.76rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .nav-lookup-pill i {
        font-size: 0.74rem;
        color: var(--text-muted);
    }
    .nav-lookup-pill:active {
        transform: scale(0.96);
        background: #F1F5F9;
    }
    /* Ürün sayfasında "Sepete Ekle" düğmesi ekrandan çıkınca hap sepet düğmesine döner */
    .nav-lookup-pill.is-cart { background: var(--primary); border-color: var(--primary); color: #fff; }
    .nav-lookup-pill.is-cart i { color: #fff; }
    .nav-lookup-pill.is-cart:active { background: #1E293B; }
}

/* ==========================================================================
   Zarif Animasyonlu "Sepete Eklendi" Buton Durumu
   ========================================================================== */
#add-to-cart {
    position: relative;
    overflow: hidden;
    transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

#add-to-cart.is-added {
    background: linear-gradient(135deg, #059669 0%, #10B981 60%, #34D399 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 22px -4px rgba(16, 185, 129, 0.45), 0 2px 6px rgba(5, 150, 105, 0.25) !important;
    pointer-events: none;
    transform: translateY(-1px);
}

#add-to-cart.is-added::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-20deg);
    animation: addedShimmer 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.added-btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    z-index: 1;
}

.added-icon-ring {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: addedRingPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.added-check-svg {
    width: 14px;
    height: 14px;
    color: #FFFFFF;
}

.added-check-svg path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: addedCheckDraw 0.38s 0.1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.added-btn-text {
    font-weight: 700;
    letter-spacing: 0.1px;
    animation: addedTextSlide 0.36s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes addedRingPop {
    0% { transform: scale(0.3) rotate(-25deg); opacity: 0; }
    70% { transform: scale(1.12) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes addedCheckDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes addedTextSlide {
    0% { opacity: 0; transform: translateY(7px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes addedShimmer {
    0% { left: -120%; }
    100% { left: 160%; }
}

@keyframes cartBadgeBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.38); }
    70% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.badge-bump {
    animation: cartBadgeBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Sepet Renk Seçici Kalem Rozeti ve Sepet Input Doğrulama Efekti
   ========================================================================== */
.cart-color-pen {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cart-color-pen i {
    font-size: 0.45rem;
    color: #334155;
}

@keyframes cartInputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.cart-text-input.cart-input-error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
    animation: cartInputShake 0.4s ease;
}

/* Giriş / Sipariş Sorgula kartı: telefonda kenarlara yapışmaz */
@media (max-width: 480px) {
    .login-card { padding: 28px 20px; }
    .login-header { margin-bottom: 26px; }
}


/* ==========================================================================
   Ürün detay: üstte fiyat rozeti, canlı önizleme şeridi, uyarı vurgusu
   ========================================================================== */
.detail-price-top-wrap { margin-top: 10px; }
.detail-price-top {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: var(--primary);
    line-height: 1.2;
}
.dpt-now { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; }
.dpt-old { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
/* Yüzde indirim: kargo rozetiyle aynı boy ve satırda */
.dpt-off {
    display: inline-flex; align-items: center;
    padding: 4px 11px; border-radius: 999px;
    background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626;
    font-size: 0.82rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.dpt-off[hidden] { display: none; }
@media (max-width: 768px) {
    /* Telefonda fiyat kendi satırında, rozetler altında yan yana */
    .detail-price-top { flex: 1 0 100%; }
    .dpt-now { font-size: 1.7rem; }
}
.design-hint-strip {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}
/* Eksik alan uyarısı: odak verilmez (telefonda klavye açılmasın), çerçeve kırmızı + sarsma */
.attn-error {
    border: 2px solid #ef4444 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
    animation: cartInputShake 0.4s ease;
}
/* Eksik alan mesajı: toast yerine alanın hemen altında */
.field-msg { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; color: #DC2626; font-size: 0.82rem; font-weight: 600; line-height: 1.35; animation: fieldMsgIn .2s ease; }
.field-msg::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; flex: none; }
@keyframes fieldMsgIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* "Kargo dahil" vurgusu: fiyatın yanında yeşil hap (ürün kartı görseli, üst fiyat rozeti, alt fiyat kutusu) */
.ship-incl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857;
    font-size: 0.82rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.ship-incl i { font-size: 0.85em; }
.detail-price-top-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ship-incl-sm { font-size: 0.7rem; padding: 2px 8px; margin-top: 4px; align-self: flex-start; }
.card-image { position: relative; }
.ship-incl-card { position: absolute; left: 10px; bottom: 10px; background: #047857; border-color: #047857; color: #fff; box-shadow: 0 2px 6px rgba(4, 120, 87, 0.35); }
.customization-box { scroll-margin-top: 76px; }
#customization-object-group, #customization-logo-group { scroll-margin-top: 84px; }

@media (max-width: 768px) {
    .product-detail-layout { gap: 10px !important; }
    .mobile-product-header { margin-bottom: 8px; }
    .detail-price-top-wrap { margin-top: 8px; }
    #detail-main-carousel { max-height: 200px !important; }
    #detail-thumbnails { margin-top: 8px !important; margin-bottom: 0 !important; }
    #detail-thumbnails .product-thumb { width: 54px !important; height: 54px !important; }
    .advanced-2d-preview-container { margin-top: 8px; }
    .design-hint-strip { margin-bottom: 8px; font-size: 0.88rem; }
}

/* Üstü çizili eski fiyat (admin: ürün indirim çarpanı) */
.price-wrap { display: inline-flex; align-items: baseline; gap: 4px; }
.old-price { font-size: 0.7em; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }
/* Telefonda eski fiyat asıl fiyatın üstünde, küçük punto */
@media (max-width: 768px) {
    .price-wrap { flex-direction: column-reverse; align-items: center; gap: 0; line-height: 1.15; }
    .price-tag .price-wrap, .detail-price .price-wrap { align-items: flex-start; }
    .old-price { font-size: 0.55em; font-weight: 500; }
}

/* Özelleştirme alanları isteğe bağlı: boş bırakılırsa sipariş sonrası aranıp sorulur */
.optional-note { margin: 0 0 14px; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }
.optional-note i { margin-right: 4px; font-size: 0.85em; }

/* Sepete eklendi balonu: sepet simgesini gösteren kısa, üçgen uçlu balon (konum/ok yeri JS'te: --ax) */
#cart-added-bar {
    position: fixed; z-index: 1100;
    width: max-content; max-width: calc(100% - 20px);
    display: flex; align-items: center; gap: 12px;
    padding: 5px 5px 5px 12px;
    background: #064E3B; color: #fff; border-radius: 10px;
    box-shadow: 0 6px 18px rgba(6, 78, 59, 0.35);
    transform: translateY(8px) scale(0.92); transform-origin: var(--ax, 50%) 100%;
    opacity: 0; pointer-events: none;
    transition: transform .22s cubic-bezier(0.34, 1.4, 0.64, 1), opacity .45s ease; /* kaybolurken yumuşak solar */
}
#cart-added-bar.up { transform: translateY(-8px) scale(0.92); transform-origin: var(--ax, 50%) 0; }
#cart-added-bar.show { transform: none; opacity: 1; pointer-events: auto; }
#cart-added-bar::after {
    content: ""; position: absolute; left: var(--ax, 50%); margin-left: -9px;
    bottom: -13px; border: 9px solid transparent; border-top: 14px solid #064E3B; border-bottom-width: 0;
}
#cart-added-bar.up::after { bottom: auto; top: -7px; border-top: 0 solid transparent; border-bottom: 8px solid #064E3B; margin-left: -8px; border-left-width: 8px; border-right-width: 8px; }
#cart-added-bar .cab-text { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
#cart-added-bar .cab-text i { color: #6EE7B7; margin-right: 4px; }
#cart-added-bar .cab-go {
    flex: none; padding: 7px 12px; border: 0; border-radius: 7px; white-space: nowrap;
    background: #fff; color: #064E3B; font: inherit; font-size: 0.85rem; font-weight: 800; cursor: pointer;
}
/* Sepete uçan ürün resmi */
.fly-dot {
    position: fixed; left: 0; top: 0; z-index: 1200; width: 54px; height: 54px;
    border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3); pointer-events: none; will-change: transform;
}
.fly-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sepet simgesi inen resmi karşılar */
.cart-hit { animation: cartHit .5s ease; }
i.cart-hit { display: inline-block; }
/* Telefonda alt menü simgesi yerinden oynamaz: yalnız renk parlar (büyüme/dönme alt çubuğu bozuk gösteriyordu) */
.bottom-nav-item i.cart-hit { animation: cartGlow .6s ease; }
@keyframes cartGlow { 0%, 100% { color: inherit; } 30%, 60% { color: #059669; } }
/* Balon açıkken çerez bandı kısa süre silinir: balonun altında kalıp ona karışmasın */
#cookie-banner { transition: opacity .15s ease; }
body.cart-bar-on #cookie-banner { opacity: 0; pointer-events: none; }
@keyframes cartHit { 0%, 100% { transform: none; } 25% { transform: scale(1.25) rotate(-10deg); } 55% { transform: scale(1.12) rotate(7deg); } }
/* Dar telefonda "Sepete Eklendi" düğme genişliğinden taşmasın (taşınca sütun genişleyip üstteki resim büyüyor, sayfa kayıp alt menü oynuyordu) */
@media (max-width: 768px) {
    #add-to-cart.is-added { font-size: 0.92rem; padding-left: 8px; padding-right: 8px; }
    #add-to-cart.is-added .added-btn-content { gap: 6px; }
    #add-to-cart.is-added .added-icon-ring { width: 18px; height: 18px; }
    #add-to-cart.is-added .added-check-svg { width: 11px; height: 11px; }
}
@media (max-width: 340px) { #add-to-cart.is-added .added-icon-ring { display: none; } }
/* "Sepete Eklendi" metni dar düğmede iki satıra kırılmasın */
.added-btn-content, .added-btn-text { white-space: nowrap; }

/* Çerez bandı açıkken sayfanın altına boşluk: sepet/ödeme düğmeleri bandın altında kalmasın, üstüne kaydırılabilsin */
body:has(#cookie-banner:not([hidden])) { padding-bottom: 76px; }
@media (max-width: 768px) { body:has(#cookie-banner:not([hidden])) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* viewport-fit=cover: yatayda çentik/kenar boşluğu içeriğin altında kalmasın */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* Sepet (telefon): "Ödemeye Geç" ilk ekranda görünsün diye dikey boşluklar sıkılaştırıldı */
@media (max-width: 768px) {
    #checkout-page { padding-top: 4px; }
    #checkout-page .container { padding-top: 8px; }
    #checkout-page .cart-page-title { margin: 0 0 10px; }
    .cart-list { margin-bottom: 14px; gap: 12px; }
    .summary-panel { padding: 16px; }
    .bulk-box { margin-bottom: 12px; padding: 10px 12px; }
    .summary-panel .price-row { margin-bottom: 8px; }
    .summary-panel > div[style*="height:1px"] { margin: 10px 0 !important; }
}

/* Panelden tasarlanan ürünlerde müşteriye sorulma sırası (myScript.js > applyDesignedFields: alanların `order` değeri) */
.customization-box.kutu-sirali { display: flex; flex-direction: column; }
.customization-box.kutu-sirali > * { order: 300; }
.customization-box.kutu-sirali > .detail-action-row { order: 200; }
#qty-color-row.ayri { display: contents !important; }
#qty-color-row.ayri > .form-group { margin-bottom: 20px !important; }
