.size-change-animation {
    transition: transform 0.2s ease, border-color 0.2s ease;
    transform: scale(1.1);
    border-color: #28a745 !important;
}

/* Genel Stiller */
html {
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 10px 0;
}

h1, h2, h3 {
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    color: #fff;
    background: #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}

.btn:hover {
    background: #0056b3;
    text-decoration: none;
}

.btn-small {
    display: inline-block;
    color: #fff;
    background: #28a745;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-small:hover {
    background: #218838;
    text-decoration: none;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    min-height: 56px;
    border-bottom: #007bff 3px solid;
    position: relative;
    z-index: 2000; /* Üstte kalsın, slider altında kalmasın */
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: visible;
    width: 100%;
    max-width: none;
    padding: 0 24px;
}

header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    white-space: nowrap;
}

header .site-logo {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    white-space: nowrap;
}

header h1 a.site-logo-link {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    text-transform: none;
}

header h1 a.site-logo-link:hover {
    text-decoration: none;
    font-weight: inherit;
}

header h1 a.site-logo-link img {
    display: block;
    height: 38px;
    width: auto;
}

header .site-logo a.site-logo-link {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    text-transform: none;
}

header .site-logo a.site-logo-link:hover {
    text-decoration: none;
    font-weight: inherit;
}

header .site-logo a.site-logo-link img {
    display: block;
    height: 38px;
    width: auto;
}

body:not(.home-page):not(.editor-page) header > .container {
    position: relative;
}

body:not(.home-page):not(.editor-page) header > .container > h1,
body:not(.home-page):not(.editor-page) header > .container > .header-left > h1,
body:not(.home-page):not(.editor-page) header > .container > .site-logo,
body:not(.home-page):not(.editor-page) header > .container > .header-left > .site-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 60vw;
}

.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > h1,
.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .header-left > h1,
.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .site-logo,
.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .header-left > .site-logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: none !important;
    justify-self: center;
}

.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .header-left {
    display: contents;
}

.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .header-actions {
    justify-self: end;
}

.header-nav-drawer body.category-page header > .container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.header-nav-drawer body.category-page header > .container > .header-left {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.header-nav-drawer body.category-page header > .container > h1,
.header-nav-drawer body.category-page header > .container > .header-left > h1,
.header-nav-drawer body.category-page header > .container > .site-logo,
.header-nav-drawer body.category-page header > .container > .header-left > .site-logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    max-width: none !important;
}

.header-button {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    margin-right: 12px; /* Başlıktan biraz boşluk bırak */
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.header-button:hover {
    background-color: #0056b3;
}

@keyframes jg-kisi-attention-vars {
    0%, 49% {
        --jgKisiBg: #ffffff;
        --jgKisiFg: #D12023;
        --jgKisiBorder: #D12023;
        box-shadow: 0 0 0 0 rgba(209, 32, 35, 0.0);
    }
    50%, 100% {
        --jgKisiBg: #D12023;
        --jgKisiFg: #ffffff;
        --jgKisiBorder: #D12023;
        box-shadow: 0 0 0 6px rgba(209, 32, 35, 0.16);
    }
}

#kisiBilgileriBtn.jg-kisi-attention {
    --jgKisiBg: #ffffff;
    --jgKisiFg: #D12023;
    --jgKisiBorder: #D12023;
    background-color: var(--jgKisiBg) !important;
    color: var(--jgKisiFg) !important;
    border: 1px solid var(--jgKisiBorder) !important;
    animation: jg-kisi-attention-vars 1.8s steps(1, end) infinite;
}

/* Header Flex Layout Helpers */
.header-left {
    display: flex;
    align-items: center;
    margin-right: auto; /* Push nav to the right */
}

header nav {
    margin-top: 0;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

header li {
    display: inline;
    padding: 0 5px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    white-space: nowrap;
}

#headerCartLink .cart-label,
#headerCartLink .cart-count {
    text-transform: none;
}

@media (max-width: 1400px) {
    #headerCartLink .cart-label {
        display: none;
    }
}

header a:hover {
    color: #007bff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .top-band { display: none !important; }

    header h1,
    header .site-logo { overflow: visible !important; text-overflow: clip !important; }

    header h1 a.site-logo-link img,
    header .site-logo a.site-logo-link img {
        height: auto;
        max-height: 36px;
        max-width: 100%;
    }

    body:not(.home-page) header > .container > h1,
    body:not(.home-page) header > .container > .header-left > h1,
    body:not(.home-page) header > .container > .site-logo,
    body:not(.home-page) header > .container > .header-left > .site-logo {
        max-width: 52vw;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 3001;
}

.header-nav-drawer .mobile-menu-toggle {
    display: block;
}

.header-nav-drawer header nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #333;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 3000;
    padding-top: 60px;
    display: block;
    overflow-y: auto;
}

.header-nav-drawer header nav.active {
    transform: translateX(0);
}

.header-nav-drawer header nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

.header-nav-drawer header nav li {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.header-nav-drawer header nav li:last-child {
    border-bottom: none;
}

.header-nav-drawer header nav a {
    font-size: 1.1rem;
    display: block;
}

.header-nav-drawer header nav .mobile-menu-group {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 12px;
}

.header-nav-drawer header nav .mobile-menu-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 8px;
}

.header-nav-drawer header nav .mobile-menu-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    width: 100%;
}

.header-nav-drawer header nav .mobile-menu-sublist li {
    border-bottom: none;
    padding-bottom: 0;
}

.header-nav-drawer header nav .mobile-menu-category {
    font-weight: 700;
    color: #fff;
}

.header-nav-drawer header nav .mobile-menu-category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 6px 0;
    cursor: pointer;
}

.header-nav-drawer header nav .mobile-menu-category-btn::after {
    content: '+';
    font-size: 1.1rem;
    color: #cbd5f5;
}

.header-nav-drawer header nav .mobile-menu-category-btn[aria-expanded="true"]::after {
    content: '−';
}

.header-nav-drawer header nav .mobile-menu-products {
    list-style: none;
    padding: 0 0 8px 12px;
    margin: 0;
    display: none;
    gap: 8px;
}

.header-nav-drawer header nav .mobile-menu-products.open {
    display: grid;
}

.header-nav-drawer header nav .mobile-menu-products li {
    border-bottom: none;
    padding-bottom: 0;
}

.header-nav-drawer header nav .mobile-menu-products a {
    font-size: 1rem;
    color: #e2e8f0;
    padding-left: 0;
}

.mobile-menu .mobile-menu-group {
    margin-bottom: 8px;
}

.mobile-menu .mobile-menu-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 8px;
}

.mobile-menu .mobile-menu-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.mobile-menu .mobile-menu-sublist li {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 0;
}

.mobile-menu .mobile-menu-category {
    font-weight: 700;
    color: #fff;
}

.mobile-menu .mobile-menu-category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 6px 0;
    cursor: pointer;
}

.mobile-menu .mobile-menu-category-btn::after {
    content: '+';
    font-size: 1.1rem;
    color: #cbd5f5;
}

.mobile-menu .mobile-menu-category-btn[aria-expanded="true"]::after {
    content: '−';
}

.mobile-menu .mobile-menu-products {
    list-style: none;
    padding: 0 0 8px 12px;
    margin: 0;
    display: none;
    gap: 8px;
}

.mobile-menu .mobile-menu-products.open {
    display: grid;
}

.mobile-menu .mobile-menu-products li {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 0;
}

.mobile-menu .mobile-menu-products a {
    font-size: 1rem;
    color: #e2e8f0;
    padding-left: 0;
    border-bottom: 0;
}

.mobile-menu {
    max-height: 100vh;
    overflow-y: auto;
}

.header-nav-drawer .mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-nav-drawer .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2999;
    display: none;
}

.header-nav-drawer .mobile-menu-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
    .mobile-nav-toggle { display: none !important; }
}

.mobile-dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Brother';
    src: url('fonts/Brother.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TR Bach';
    src: url('fonts/Bach.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Mobile Responsive Header */
@media (max-width: 1400px) {
    header .container {
        padding: 0 15px;
    }

    .header-left {
        flex-grow: 1;
        overflow: hidden;
    }

    header h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8rem;
        overflow: visible;
        text-overflow: clip;
        cursor: default;
        min-width: 0;
    }
    
    header h1 a:not(.site-logo-link) {
        text-decoration: none;
        color: inherit;
        display: block;
    }
    
    header h1 a.site-logo-link {
        display: inline-flex;
        align-items: center;
    }

    .header-button {
        padding: 5px 8px;
        font-size: 0.85em;
        margin-right: 8px;
    }

    .mobile-menu-toggle {
        display: block;
    }


    .header-nav-drawer header nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #333;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
        z-index: 3000;
        padding-top: 60px; /* Space for close button */
        display: block;
    }

    .header-nav-drawer header nav.active {
        transform: translateX(0);
    }

    .header-nav-drawer header nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }

    .header-nav-drawer header nav li {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
    
    .header-nav-drawer header nav li:last-child {
        border-bottom: none;
    }

    .header-nav-drawer header nav a {
        font-size: 1.1rem;
        display: block;
    }

    /* Close button for mobile menu */
    .header-nav-drawer .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    /* Overlay when menu is open */
    .header-nav-drawer .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 2999;
        display: none;
    }
    
    .header-nav-drawer .mobile-menu-overlay.active {
        display: block;
    }
}

@media (max-width: 375px) {
    body header {
        padding: 0 10px;
    }

    body header .container {
        padding: 0 10px;
    }

    body header h1 {
        font-size: 1.5rem;
    }

    body header h1 a.site-logo-link img {
        height: 30px;
        max-height: 30px;
    }

    body header .header-button {
        padding: 4px 8px;
        font-size: 0.82em;
    }
}

.kisi-bilgileri-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 90vw;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 4501;
    transform: translateX(-110%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* İçerik taşarsa kaydırma çubuğu */
    padding: 20px;
    box-sizing: border-box;
}

.kisi-bilgileri-panel.open {
    transform: translateX(0);
}

.kisi-bilgileri-panel .form-container {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    max-width: none;
}

.kisi-bilgileri-panel .form-container .panel-title {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.kisi-bilgileri-panel .form-group {
    margin-bottom: 10px;
}

.kisi-bilgileri-panel .form-group label {
    font-size: 0.9em;
}

.kisi-bilgileri-panel .form-group input,
.kisi-bilgileri-panel .form-group textarea,
.kisi-bilgileri-panel .meslek-secimi-container select {
    padding: 8px;
    font-size: 0.9em;
}

/* İkonlu input kapsayıcıları */
.kisi-bilgileri-panel .input-with-icon {
    position: relative;
}
.kisi-bilgileri-panel .input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.95em;
    pointer-events: none;
}
.kisi-bilgileri-panel .input-with-icon input,
.kisi-bilgileri-panel .input-with-icon textarea,
.kisi-bilgileri-panel .input-with-icon select {
    padding-left: 32px;
}
.kisi-bilgileri-panel .form-group button {
    padding: 8px 15px;
    font-size: 0.9em;
}

.kisi-bilgileri-panel .logo-preview img {
    max-width: 100px;
    max-height: 100px;
}

.kisi-bilgileri-gosterim {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.kisi-bilgileri-gosterim h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
    font-size: 1.2em;
}

.kisi-bilgileri-gosterim p {
    margin-bottom: 5px;
    font-size: 0.95em;
    color: #555;
}

.kisi-bilgileri-gosterim .logo-container {
    margin-top: 10px;
    text-align: center;
    max-width: 150px; /* Logo konteyner genişliği */
    max-height: 150px; /* Logo konteyner yüksekliği */
    overflow: hidden; /* Taşmayı gizle */
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    display: inline-block; /* Ortalamak için */
}

.kisi-bilgileri-gosterim .logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Hero Section */
#hero {
    min-height: 400px;
    background: #f4f4f4 url('https://via.placeholder.com/1500x400?text=JetGraphic+Ana+Sayfa') no-repeat center center/cover; /* Yeni ana sayfa görseli */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Ürün sayfaları — başlık şeritlerini koyu tema ile uyumlu yap */
#product-detail .container > h1,
#product-detail .container > h2 {
    background: #000;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Daha iyi kontrast için ürün detay bloklarında başlık ve giriş paragrafları */
.product-options > h2 { color: #111; }
.product-options > p { color: #444; }

#hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #fff;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Kategoriler Section */
#categories {
    padding: 16px 0;
    background: #f8f9fa;
}

#categories h2 {
    display: none;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.category-item h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #007bff;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.product-scroll {
    display: flex;
    overflow-x: auto; /* Yatay kaydırma */
    padding-bottom: 15px; /* Kaydırma çubuğu için boşluk */
    -webkit-overflow-scrolling: touch; /* iOS için yumuşak kaydırma */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #007bff #f1f1f1; /* Firefox */
}

/* Webkit tabanlı tarayıcılar için kaydırma çubuğu stilleri */
.product-scroll::-webkit-scrollbar {
    height: 8px;
}

.product-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-scroll::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.product-scroll::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.product-item-content {
    flex-shrink: 0; /* Öğelerin küçülmesini engelle */
    display: flex;
    flex-direction: column;
    align-items: center; /* İçeriği ortala */
    margin-right: 20px; /* Ürün kutucukları arasında boşluk */
    padding: 15px;
    background: #e9ecef;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Metni de ortala */
}

.product-item-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-link {
    display: block;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.product-images {
    display: flex;
    gap: 10px;
    overflow-x: hidden; /* Yatay kaydırma kaldırıldı */
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox için kaydırma çubuğu kaldırıldı */
    scrollbar-color: transparent transparent; /* Firefox için kaydırma çubuğu kaldırıldı */
    justify-content: center; /* Görselleri ortala */
    position: relative; /* Overlay için konumlandırma */
}

/* Webkit tabanlı tarayıcılar için kaydırma çubuğu stilleri kaldırıldı */
.product-images::-webkit-scrollbar {
    display: none; /* Webkit için kaydırma çubuğu kaldırıldı */
}

.product-images img {
    flex-shrink: 0;
    width: auto; /* Oran korunsun */
    height: auto; /* Oran korunsun */
    max-width: 150px; /* Yatayda taşmayı önle */
    max-height: 150px; /* Dikey görseller tam görünsün */
    object-fit: contain; /* Görsel komple görünsün, kırpma olmasın */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

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

#matbaa-dijital .product-item-content {
    padding: 18px;
}

#matbaa-dijital .product-images img {
    max-width: 200px;
    max-height: 200px;
}

/* Overlay yerleşimi - kartvizit ön yüz görseli için */
.image-overlay {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

/* Bütünleşik görünüm için alt kısımda yumuşak bir degrade alan */
.image-overlay.integrated::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
}
.image-overlay .overlay-text {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
  line-height: 1.15;
  color: #fff;
  padding: 0;
  max-width: 50%;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
}
.image-overlay.integrated .overlay-text {
  left: calc(5px + 17%);
  top: 62%;
  transform: translateY(-50%) scale(0.9);
  transform-origin: left center;
}
.image-overlay.integrated.mobile-home .overlay-text {
  left: calc(5px + 14%);
  top: 62%;
  transform: translateY(-50%) scale(1.35);
}
.image-overlay.integrated.mobile-home .overlay-text .overlay-phone {
  font-size: 90%;
}
.image-overlay .overlay-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-overlay .overlay-logo {
  position: absolute;
  right: 6px;
  top: 6px;
  transform: none;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

/* Boyut varyantları */
.image-overlay .overlay-logo.small {
  max-width: 28px;
  max-height: 28px;
}
.image-overlay .overlay-logo.xsmall {
  max-width: 24px;
  max-height: 24px;
}
.image-overlay .overlay-logo.large {
  max-width: 64px;
  max-height: 64px;
}

/* Logo konum sınıfları */
.image-overlay.pos-top-left .overlay-logo {
  left: 6px;
  top: 6px;
  right: auto;
  transform: none;
}
.image-overlay.pos-top-right .overlay-logo {
  right: 6px;
  top: 6px;
  left: auto;
  transform: none;
}
.image-overlay.pos-top-center .overlay-logo {
  left: 50%;
  top: 6px;
  right: auto;
  transform: translateX(-50%);
}
.image-overlay.pos-bottom-center .overlay-logo {
  left: 50%;
  bottom: 6px;
  top: auto;
  right: auto;
  transform: translateX(-50%);
}
.image-overlay.pos-center .overlay-logo {
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* Biraz yukarı merkez (teklif dosyası ön yüz için) */
.image-overlay.pos-center-up .overlay-logo {
  left: 50%;
  top: 32%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* Biraz aşağı merkez (magnet için) */
.image-overlay.pos-center-down .overlay-logo {
  left: 50%;
  top: 65%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* Arka yüz için ortalanmış logo */
.image-overlay.back .overlay-logo {
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  max-width: 64px;
  max-height: 64px;
}

/* Şirket ünvanı overlay stilleri */
.image-overlay .overlay-company {
  position: absolute;
  color: #222;
  font-weight: normal;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  border-radius: 0;
  font-size: 7px;
  max-width: 80%;
}

.image-overlay .overlay-company.small {
  font-size: 6px;
}

.image-overlay .overlay-company.large {
  font-size: 8px;
}

/* Ünvan pozisyonu JS ile logonun tam altına ayarlanıyor. */

/* Magnet için alt orta telefon bilgisi */
.image-overlay .overlay-phone {
  position: absolute;
  color: #222;
  font-weight: normal;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  border-radius: 0;
  font-size: 7px;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  max-width: 95%;
}

/* Alt orta adres metni */
.image-overlay .overlay-address {
  position: absolute;
  color: #222;
  font-weight: normal;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  border-radius: 0;
  font-size: 7px;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  max-width: 95%;
}

/* İlk kategori için iki satırlı düzen */
.category-item.two-rows .product-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.category-item.two-rows .product-item-content {
    margin-right: 0; /* Grid boşluğu kullanıldığı için sağ boşluğu kaldır */
}
#hizmetler h2 {
    margin-bottom: 30px;
    font-size: 2.5em;
}

#hizmetler ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#hizmetler li {
    background: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.1em;
    color: #333;
}

/* Hakkımızda Section */
#hakkimizda {
    padding: 40px 0;
    background: #fff;
    text-align: center;
}

#hakkimizda h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

#hakkimizda p {
    max-width: 800px;
    margin: auto;
    font-size: 1.1em;
    color: #555;
}

/* İletişim Section */
#iletisim {
    padding: 40px 0;
    background: #f4f4f4;
    text-align: center;
}

#iletisim h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

#iletisim p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

#iletisim form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#iletisim form input[type="text"],
#iletisim form input[type="email"],
#iletisim form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#iletisim form textarea {
    resize: vertical;
    min-height: 100px;
}

#iletisim form button {
    align-self: center;
    width: 50%;
    max-width: 200px;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
}

/* Ürün Detay Sayfası Stilleri */
#product-detail {
    padding: 40px 0;
    background: #f8f9fa;
}

#product-detail h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8em;
    color: #007bff;
}

.product-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.product-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-options {
    flex: 2;
    min-width: 300px;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-options h3 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.product-options p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.05em;
}

.option-group select,
.option-group input[type="number"],
.option-group input[type="file"],
.option-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.option-group select:focus,
.option-group input[type="number"]:focus,
.option-group input[type="file"]:focus,
.option-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.option-group textarea {
    min-height: 120px;
    resize: vertical;
    margin-top: 10px;
}

.price-info {
    margin-top: 30px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-align: right;
}

.price-info span {
    color: #dc3545;
    font-size: 1.3em;
}

.product-options .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
    margin-top: 30px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .product-detail-content {
        flex-direction: column;
        align-items: center;
    }

    .product-image, .product-options {
        max-width: 100%;
    }
}

/* Editor Sayfası Stilleri */
.editor-link-container {
    margin-top: 20px;
    text-align: center;
}

.editor-btn {
    background-color: #ffc107; /* Sarı renk */
    color: #333;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.editor-btn:hover {
    background-color: #e0a800; /* Koyu sarı */
    color: #333;
}

#editor-area {
    padding: 0; /* Üst boşluğu kaldır */
    background: #e5e7eb;
    min-height: 80vh;
}

.editor-container {
    display: flex;
    flex-direction: column; /* Araç çubuğu üstte, tuval altta */
    gap: 0; /* Boşlukları kaldır */
    align-items: center;
    width: 100%; /* Konteyner tam genişlikte */
    padding: 0;
    margin: 0;
    max-width: none; /* Maksimum genişliği kaldır */
    position: relative; /* İçine konumlandırılmış kontroller için bağlam */
    overflow: visible; /* Global .container overflow:hidden'i editor için geçersiz kıl */
}

/* Editor: Sol Şablon Paneli ve düzeni */
.editor-flex {
    display: flex;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.template-toggle {
    flex: 0 0 40px;
    max-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    position: sticky;
    top: 90px;
    height: calc(100vh - 140px);
    z-index: 3;
}

.template-panel {
    flex: 0 0 300px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    position: sticky;
    top: 90px; /* toolbar altına sabitle */
    overflow: hidden; /* İçteki scroll sadece listeye */
    z-index: 2; /* Zoomlanan canvas'ın üzerinde kalsın */
}

.template-panel.collapsed {
    flex: 0 0 0px;
    max-width: 0px;
    border: none;
}
.template-panel.collapsed .panel-header,
.template-panel.collapsed .panel-list {
    display: none;
}

@media (min-width: 769px) {
    .template-toggle,
    .template-panel {
        display: none !important;
    }

    .editor-flex {
        gap: 0;
    }
}

.panel-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.panel-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.panel-tab {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.panel-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.panel-list {
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.template-item {
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.template-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.template-thumb {
    width: 100%;
    max-width: 280px;
    aspect-ratio: var(--ar, 1);
    background: var(--front-bg, #f0f0f0);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ön/arka katmanlama için */
}

.template-thumb img,
.template-thumb .thumb-front,
.template-thumb .thumb-back {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: opacity .2s ease;
}

/* Varsayılan: ön yüz görünür, arka yüz gizli */
.template-thumb .thumb-front { opacity: 1; }
.template-thumb .thumb-back { opacity: 0; }

/* Hover: arka yüzü göster */
.template-item:hover .template-thumb .thumb-front { opacity: 0; }
.template-item:hover .template-thumb .thumb-back { opacity: 1; }

/* Hover: arka planı arka yüz rengine çevir */
.template-item:hover .template-thumb {
    background: var(--back-bg, var(--front-bg, #f0f0f0));
}

/* Tek yüz şablonlarda hover flip devre dışı */
.template-item.no-back:hover .template-thumb .thumb-front { opacity: 1; }
.template-item.no-back:hover .template-thumb .thumb-back { opacity: 0; }
.template-item.no-back:hover .template-thumb { background: var(--front-bg, #f0f0f0); }

/* Tek yüz etiketi */
/* Tek yüz etiketi kaldırıldı (editör sol menüsünde gösterilmeyecek) */

/* Başlık ve açıklama kaldırıldı, büyük görsel önizleme kullanılıyor */

.editor-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.editor-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 2000; /* Zoomlanan canvas'ın üzerinde kalmasını sağlar */
    position: relative; /* Z-index'in çalışması için */
}

.editor-toolbar.fixed-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 5px;
    border-right: 1px solid #333;
    padding-right: 10px;
    position: relative; /* download-grid'in doğru konumlanması için eklendi */
}

.toolbar-section:last-child {
    border-right: none;
    padding-right: 0;
}

.toolbar-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    color: #000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    box-sizing: border-box;
}

.toolbar-item:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.toolbar-item.active {
    background-color: #e0e0e0;
    border-color: #c0c0c0;
}

select.toolbar-item {
    display: block;
    height: 32px;
    line-height: 32px;
    padding: 0 28px 0 10px;
    min-width: 140px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.1%204.6-13%2011.1-1%206.5%203.5%2012.1%2010%2013l128%20128c3.5%203.5%208.1%205.4%2013%205.4s9.5-1.9%2013-5.4l128-128c6.5-6.5%207.4-12.1%206.4-18.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    width: auto;
}

.font-size-input {
    width: 50px;
    text-align: center;
    padding: 8px 5px;
}

.color-picker-btn {
    position: relative;
    overflow: hidden;
}

.color-picker-btn input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* editor-canvas-actions kaldırıldı */

.editor-canvas-area {
    flex: 1;
    width: 100%;
    background: #e5e7eb;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    position: relative;
    min-height: calc(80vh - 100px);
    z-index: 1; /* editor-sidebar-bottom'un altında kalması için z-index eklendi */
    transform-origin: top center;
    margin-top: 60px; /* Toolbar yüksekliği kadar boşluk bırak */
}

/* Canvas container for proper centering during zoom */
.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

/* Zoom slider: sağ alt sabit kontrol */
.zoom-control {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.zoom-control input[type="range"] {
    width: 160px;
}

.zoom-control #zoom-percent {
    font-size: 0.9em;
    color: #333;
    min-width: 48px;
    text-align: right;
}

.editor-sidebar-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    z-index: 100; /* Diğer elementlerin üzerine gelmesi için z-index eklendi */
    position: relative; /* z-index'in çalışması için position eklendi */
}

.editor-sidebar-bottom .tool-group {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative; /* Izgara için konumlandırma bağlamı */
}

.editor-sidebar-bottom .tool-group label {
    margin-bottom: 0;
    white-space: nowrap;
}

.editor-sidebar-bottom .tool-group select,
.editor-sidebar-bottom .tool-group input[type="color"],
.editor-sidebar-bottom .tool-group input[type="range"],
.editor-sidebar-bottom .tool-group input[type="file"],
.editor-sidebar-bottom .tool-group .cmyk-inputs input[type="number"] {
    width: auto;
    min-width: 80px;
    margin-top: 0;
    flex-grow: 0;
}

.editor-sidebar-bottom .cmyk-inputs {
    margin-bottom: 0;
    flex-grow: 0;
}

.editor-sidebar-bottom .cmyk-inputs input[type="number"] {
    width: 60px;
    text-align: center;
}

.editor-sidebar-bottom .editor-tool-btn {
    width: auto;
    margin-top: 0;
    flex-grow: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.9em;
}

.editor-sidebar-bottom input[type="file"] {
    display: none;
}

.canvas-wrapper {
    display: flex;
    flex-direction: column; /* Kartları alt alta sırala */
    gap: 8px; /* Kartlar arasında boşluk */
    width: 502px; /* 8,5cm @ 150DPI (web görünümü için optimize) */
    /* height: auto; Artık sabit bir yükseklik yerine içeriğe göre ayarlanacak */
    position: relative;
    margin: 0 auto; /* Ortalamak için otomatik margin */
}

.card-canvas {
    position: relative; /* Absolute yerine relative */
    width: 100%;
    height: 325px; /* 5,5cm @ 150DPI (web görünümü için optimize) */
    background-color: white; /* Kartvizit arka planı beyaz */
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: #999;
    border-radius: 0;
    overflow: hidden; /* İçerik taşmasını engelle */
}

.card-canvas > svg {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

#card-front, #card-back {
    transform: none; /* 3D dönüşümleri kaldır */
    z-index: auto; /* Z-index'i otomatik bırak */
}

.card-canvas.active {
    z-index: auto; /* Z-index'i otomatik bırak */
}

/* Flipped sınıflarına artık gerek yok */
.canvas-wrapper.flipped #card-front,
.canvas-wrapper.flipped #card-back {
    transform: none;
}

.canvas-placeholder {
    pointer-events: none; /* Tıklamayı engelle */
}

.draggable-element {
    position: absolute;
    cursor: grab;
    user-select: none;
    min-width: 0;
    min-height: 0;
    display: inline-block;
    width: max-content; /* İçeriğe göre genişlesin, gerektiğinde taşsın */
    height: fit-content;
    text-align: left;
    word-break: normal; /* Zorla bölmeyi kaldır */
    overflow-wrap: normal; /* Zorla bölmeyi kaldır */
    box-sizing: border-box;
    z-index: 1;
    line-height: 1.2;
    white-space: nowrap; /* Alt satıra inmesin */
    max-width: none; /* Üst kapsayıcıya göre sınırlamayı kaldır */
    overflow: visible; /* Taşan içerik görünür olsun */
    padding: 0;
}

.draggable-element[contenteditable="true"] {
    width: max-content;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    outline: none;
}
.draggable-element[contenteditable="true"]:focus {
    outline: none;
}

.draggable-element:hover {
    border-color: #007bff;
}

.draggable-element.selected {
    border: none;
    z-index: 2; /* Seçili öğe diğerlerinin üzerinde */
}

/* Logo konteyneri: seçilince çerçeve gösterme, sadece resizer'lar görünsün */
.draggable-element.logo-container.selected {
    border: none;
}

/* Logo alanları: boşken görünür placeholder kutusu */
.draggable-element.logo-container.logo-placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}
.draggable-element.logo-container.logo-placeholder::before {
    content: attr(data-logo-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Seçili olmayan öğelerin kenarlıklarını gizle */
.draggable-element:not(.selected) {
    border: none;
}

.draggable-element img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Görsel kutuyu tam kaplasın */
    display: block; /* Alt boşlukları engelle */
}

.draggable-element.logo-container img {
    object-fit: contain;
    object-position: center;
}

.resizer {
    width: 10px;
    height: 10px;
    background: #007bff;
    border: 1px solid #fff;
    position: absolute;
    z-index: 3; /* Resizer'lar seçili öğenin üzerinde */
    cursor: nwse-resize; /* Köşeler için genel boyutlandırma imleci */
    display: none; /* Varsayılan olarak gizle */
    transform: scale(var(--editor-ui-scale, 1));
    transform-origin: center;
}

.draggable-element.selected .resizer {
    display: block; /* Seçili öğelerde göster */
}

.rotator {
    position: absolute;
    top: 50%;
    right: -34px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #007bff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4;
    cursor: grab;
    touch-action: none;
    transform: scale(var(--editor-ui-scale, 1));
    transform-origin: center;
}

.draggable-element.selected .rotator,
.draggable-element[data-mobile-selected="1"] .rotator {
    display: flex;
}

.rotator i {
    font-size: 14px;
    color: #007bff;
    pointer-events: none;
}

.rotator-degree {
    position: absolute;
    top: 50%;
    right: -88px;
    transform: translateY(-50%) scale(var(--editor-ui-scale, 1));
    transform-origin: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #007bff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4;
    font-size: 12px;
    font-weight: 800;
    color: #007bff;
    pointer-events: none;
}

.draggable-element .rotator.align-left {
    left: -34px;
    right: auto;
}

.draggable-element .rotator-degree.align-left {
    left: -88px;
    right: auto;
}

.draggable-element.selected .rotator-degree,
.draggable-element[data-mobile-selected="1"] .rotator-degree {
    display: flex;
}

.svg-selection-overlay {
    position: absolute;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.svg-selection-overlay .svg-sel-rect {
    position: absolute;
    border-style: dashed;
    border-color: #0099ff;
    background: transparent;
    box-sizing: border-box;
}

.svg-selection-overlay .svg-sel-handle {
    position: absolute;
    background: #0099ff;
    border-style: solid;
    border-color: #fff;
    box-sizing: border-box;
    pointer-events: auto;
    touch-action: none;
}

.svg-selection-overlay .svg-sel-rotator {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    border-style: solid;
    border-color: #0099ff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}

.svg-selection-overlay .svg-sel-rotator svg {
    display: block;
}

.svg-selection-overlay .svg-sel-degree {
    position: absolute;
    border-radius: 11px;
    background: #fff;
    border-style: solid;
    border-color: #0099ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0099ff;
    pointer-events: none;
    box-sizing: border-box;
}

.resizer.top-left {
    top: -10px;
    left: -10px;
    cursor: nwse-resize;
}
.resizer.top-right {
    top: -10px;
    right: -10px;
    cursor: nesw-resize;
}
.resizer.bottom-left {
    bottom: -10px;
    left: -10px;
    cursor: nesw-resize;
}
.resizer.bottom-right {
    bottom: -10px;
    right: -10px;
    cursor: nwse-resize;
}
.resizer.left {
    top: 50%;
    left: -10px;
    transform: translateY(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ew-resize;
}
.resizer.right {
    top: 50%;
    right: -10px;
    transform: translateY(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ew-resize;
}
.resizer.top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ns-resize;
}
.resizer.bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ns-resize;
}

/* Context Menu Stilleri */
.context-menu {
    position: fixed; /* Sayfaya göre konumlandır */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 2000; /* Tüm içeriklerin üstünde */
    display: none; /* Başlangıçta gizli */
    min-width: 150px; /* Menü genişliğini ayarla */
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 8px 12px; /* İç boşlukları ayarla */
    cursor: pointer;
    font-size: 0.9em; /* Yazı boyutunu ayarla */
    color: #333;
}

.context-menu li:hover {
    background-color: #f0f0f0;
}

.editor-tool-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
    -webkit-appearance: none; /* Varsayılan oku gizle */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.1%204.6-13%2011.1-1%206.5%203.5%2012.1%2010%2013l128%20128c3.5%203.5%208.1%205.4%2013%205.4s9.5-1.9%2013-5.4l128-128c6.5-6.5%207.4-12.1%206.4-18.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px; /* Ok için boşluk */
}

.color-picker-overlay {
    position: absolute;
    border: 2px solid #007bff;
    background-color: rgba(0, 123, 255, 0.08);
    display: none;
    z-index: 91;
}

/* Çoklu seçim overlay kabı */
.multi-select-overlay {
    position: absolute;
    border: 2px solid #007bff;
    background-color: rgba(0, 123, 255, 0.08);
    display: none;
    z-index: 91;
    pointer-events: none; /* Kutu tıklamaları almaz, sadece handle'lar alır */
}

/* Çoklu seçim overlay handle'ları */
.multi-select-overlay .multi-resizer {
    width: 10px;
    height: 10px;
    background: #007bff;
    border: 1px solid #fff;
    position: absolute;
    z-index: 92;
    pointer-events: auto; /* Handle'lar tıklanabilir */
}
.multi-select-overlay .multi-resizer.top-left { top: -10px; left: -10px; cursor: nwse-resize; }
.multi-select-overlay .multi-resizer.top-right { top: -10px; right: -10px; cursor: nesw-resize; }
.multi-select-overlay .multi-resizer.bottom-left { bottom: -10px; left: -10px; cursor: nesw-resize; }
.multi-select-overlay .multi-resizer.bottom-right { bottom: -10px; right: -10px; cursor: nwse-resize; }
.multi-select-overlay .multi-resizer.left { top: 50%; left: -10px; transform: translateY(-50%); cursor: ew-resize; }
.multi-select-overlay .multi-resizer.right { top: 50%; right: -10px; transform: translateY(-50%); cursor: ew-resize; }
.multi-select-overlay .multi-resizer.top { top: -10px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.multi-select-overlay .multi-resizer.bottom { bottom: -10px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }

/* Çoklu seçim aktifken tekil resizerları gizle */
.multi-select-active .draggable-element.selected .resizer { display: none; }

/* Tekil öğe resizer temel stil blokunu düzelt */
.resizer {
    width: 10px;
    height: 10px;
    background: #007bff;
    border: 1px solid #fff;
    position: absolute;
    z-index: 3; /* Resizer'lar seçili öğenin üzerinde */
    cursor: nwse-resize; /* Köşeler için genel boyutlandırma imleci */
    display: none; /* Varsayılan olarak gizle */
    transform: scale(var(--editor-ui-scale, 1));
    transform-origin: center;
}

.draggable-element.selected .resizer {
    display: block; /* Seçili öğelerde göster */
}

.resizer.top-left {
    top: -10px;
    left: -10px;
    cursor: nwse-resize;
}
.resizer.top-right {
    top: -10px;
    right: -10px;
    cursor: nesw-resize;
}
.resizer.bottom-left {
    bottom: -10px;
    left: -10px;
    cursor: nesw-resize;
}
.resizer.bottom-right {
    bottom: -10px;
    right: -10px;
    cursor: nwse-resize;
}
.resizer.left {
    top: 50%;
    left: -10px;
    transform: translateY(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ew-resize;
}
.resizer.right {
    top: 50%;
    right: -10px;
    transform: translateY(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ew-resize;
}
.resizer.top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ns-resize;
}
.resizer.bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scale(var(--editor-ui-scale, 1));
    cursor: ns-resize;
}

/* Context Menu Stilleri */
.context-menu {
    position: fixed; /* Sayfaya göre konumlandır */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 2000; /* Tüm içeriklerin üstünde */
    display: none; /* Başlangıçta gizli */
    min-width: 150px; /* Menü genişliğini ayarla */
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 8px 12px; /* İç boşlukları ayarla */
    cursor: pointer;
    font-size: 0.9em; /* Yazı boyutunu ayarla */
    color: #333;
}

.context-menu li:hover {
    background-color: #f0f0f0;
}

.editor-tool-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
    -webkit-appearance: none; /* Varsayılan oku gizle */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.1%204.6-13%2011.1-1%206.5%203.5%2012.1%2010%2013l128%20128c3.5%203.5%208.1%205.4%2013%205.4s9.5-1.9%2013-5.4l128-128c6.5-6.5%207.4-12.1%206.4-18.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px; /* Ok için boşluk */
}

.color-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    color: #fff;
    font-size: 1.5em;
    display: none; /* Başlangıçta gizli */
}

.color-picker-overlay p {
    margin-bottom: 20px;
}

.color-picker-overlay .btn-small {
    background-color: #dc3545;
    color: #fff;
    padding: 10px 20px;
    font-size: 1em;
}

.color-picker-overlay .btn-small:hover {
    background-color: #c82333;
}

.pixel-marker {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: red;
    border: 1px solid white;
    pointer-events: none; /* İşaretçinin tıklamayı engellemesini önle */
    z-index: 1002;
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Merkezden hizala */
}

/* ===== Custom Color Palette Popover ===== */
.palette-popover {
  position: fixed;
  top: 60px;
  left: 20px;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2001;
  display: none;
}
.palette-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.palette-header input[type="search"] {
  flex: 1;
  height: 32px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.palette-header .palette-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}
.palette-section { padding: 10px; }
.palette-title { font-size: .95em; color: #334155; margin-bottom: 8px; display:flex; align-items:center; justify-content:space-between; }
.palette-actions { display:flex; gap:6px; align-items:center; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.swatch:hover { transform: scale(1.06); }
.palette-btn { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; background: #f8fafc; color: #334155; cursor: pointer; font-size: .9em; }
.palette-btn.primary { background: #111827; color:#fff; border-color: #111827; }


.text-style-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.text-style-buttons .editor-tool-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 0.9em;
    background-color: #6c757d;
}

.text-style-buttons .editor-tool-btn.active {
    background-color: #007bff;
}

.alignment-guide {
    position: absolute;
    background-color: rgba(0, 123, 255, 0.5); /* Mavi şeffaf */
    z-index: 99; /* Draggable elementlerin altında görünmesi için */
    display: none; /* Başlangıçta gizli */
}

.alignment-guide.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
    background-color: #007bff; /* Mavi renk */
}

.alignment-guide.vertical {
    width: 1px;
    height: 100%;
    top: 0;
    background-color: #007bff; /* Mavi renk */
}

/* .group-element sınıfının kenarlık tanımını kaldırıldı, artık .draggable-element.selected tarafından yönetilecek */

.selection-box {
    position: absolute;
    border: 2px dashed #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    display: none; /* Başlangıçta gizli */
    pointer-events: none; /* Seçim kutusunun altındaki elementlere tıklamayı engelle */
    z-index: 90; /* Draggable elementlerin altında, canvas'ın üzerinde */
}

.design-labels {
    display: flex;
    justify-content: center; /* Etiketleri ortala */
    width: 600px; /* Canvas genişliği ile aynı */
    margin-bottom: 4px; /* Canvas ile etiketler arasında boşluk */
}

.design-label {
    font-size: 1.1em;
    color: #555;
    font-weight: bold;
    text-align: center;
    padding: 5px 10px;
    white-space: nowrap;
    width: 50%; /* Her etiketin genişliği */
}

/* İsteğe bağlı olarak aktif etiketi vurgulayabiliriz */
/* .design-label.active {
    border-color: #007bff;
} */

/* Yeni indirme butonu ve ızgara stilleri */
.download-grid {
    position: absolute;
    top: calc(100% + 5px); /* Butonun altında, biraz boşlukla görünmesi için */
    right: 0; /* Sağ tarafa hizala */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    z-index: 1500; /* Tüm canvas ve toolbar üstünde */
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-grid.show-grid {
    opacity: 1;
    visibility: visible;
}

.download-grid .grid-item {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    text-align: left;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.download-grid .grid-item:hover {
    background-color: #e0e0e0;
    border-color: #c0c0c0;
}


/* Responsive */
@media (max-width: 992px) {
    .editor-container {
        flex-direction: column;
        align-items: center;
    }

    .editor-sidebar, .editor-canvas-area {
        max-width: 100%;
        width: 100%;
    }

    .canvas-wrapper {
        width: 100%;
        max-width: 502px; /* Masaüstü boyutunu korur */
        margin: 0 auto; /* Ortalanmış görünüm */
    }
    
    .card-canvas {
        height: auto; /* Oranı koruyarak mobilde de aynı yükseklik */
        aspect-ratio: 502 / 325;
    }
}

/* PDF Yazdırma Stilleri */
@media print {
    body {
        font-family: 'Poppins', sans-serif !important; /* Yazdırma için fontu zorla */
        background-color: #fff !important; /* Arka plan rengini zorla */
        color: #000 !important; /* Yazı rengini zorla */
    }

    /* Header ve Footer'ı yazdırma çıktısından kaldır */
    header, footer, .editor-link-container, .product-options form {
        display: none !important;
    }

    /* Ürün detay içeriğini tam genişlikte göster */
    #product-detail .container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-detail-content {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .product-image {
        flex: none !important;
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .product-image img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Resmin tamamının görünmesini sağla */
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .product-options {
        flex: none !important;
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* Diğer öğelerin yazdırma görünümünü iyileştir */
    h1, h2, h3, p {
        color: #000 !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}





/* JetGraphic Modern Theme Overrides */
:root {
  --color-primary: #e11d2f; /* JetGraphic Red */
  --color-primary-dark: #b31223;
  --color-black: #0d0d0d;
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.16);
}

/* Base */
body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

.floating-whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.floating-whatsapp-button:hover {
  background: #1ebe5a;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.floating-whatsapp-button i {
  font-size: 26px;
}
@media (max-width: 640px) {
  .floating-whatsapp-button {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp-button i {
    font-size: 24px;
  }
}

/* Header & Navigation */
header {
  background: var(--color-black);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2000; /* Üstte kalsın, slider altında kalmasın */
}
header a {
  color: #fff;
  transition: color .2s ease;
}
header a:hover {
  color: var(--color-primary);
  font-weight: 600;
}
.header-button {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.header-button:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn,
.editor-tool-btn,
.editor-btn,
.grid-item {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover,
.editor-tool-btn:hover,
.editor-btn:hover,
.grid-item:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Toolbar icon buttons should remain minimal but interactive */
.toolbar-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.toolbar-item:hover,
.toolbar-item.active {
  background-color: #f3f4f6;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Cards */
.category-item,
.product-options,
.product-image img {
  border-radius: 12px;
}
.category-item {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.category-item:hover {
  box-shadow: var(--shadow-md);
}

/* Product detail highlighting */
#product-detail h2 {
  color: var(--color-primary);
}
.price-info span {
  color: var(--color-primary);
}

.jg-il-wrap {
  margin-top: 28px;
}
.jg-il-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.jg-il-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.jg-il-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-black);
}
.jg-il-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.jg-il-link {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}
.jg-il-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .jg-il-grid {
    grid-template-columns: 1fr;
  }
}

.blog-hero {
  padding: 22px 0 8px;
  background: linear-gradient(180deg, rgba(225, 29, 47, 0.08), rgba(225, 29, 47, 0));
}
.blog-title {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--color-black);
}
.blog-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}
.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 10px;
}
.blog-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.blog-wrap {
  padding: 14px 0 30px;
}
.blog-article {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.blog-article h2, .blog-article h3 {
  color: var(--color-black);
}
.blog-article a {
  color: var(--color-primary);
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-black);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 29, 47, 0.28);
  text-decoration: none;
}
.blog-card-title {
  font-weight: 900;
  margin: 0 0 8px;
}
.blog-card-excerpt {
  color: var(--color-muted);
  font-weight: 600;
  margin: 0;
}
.blog-related {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.blog-related h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 900;
}
.blog-pagination {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-page {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-black);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.blog-page:hover {
  border-color: rgba(225, 29, 47, 0.28);
  text-decoration: none;
}
.blog-page-current {
  background: rgba(225, 29, 47, 0.06);
  border-color: rgba(225, 29, 47, 0.18);
}
@media (max-width: 900px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
  .blog-title {
    font-size: 1.8rem;
  }
}

/* Forms & Inputs */
.input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.input-with-icon i {
  color: var(--color-muted);
}
.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select {
  border: none !important;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--color-text);
}
.input-with-icon input:focus,
.input-with-icon textarea:focus,
.input-with-icon select:focus {
  box-shadow: inset 0 0 0 2px var(--color-primary);
  border-radius: 8px;
}
.kisi-bilgileri-panel {
  background-color: var(--color-surface);
  box-shadow: 2px 0 16px rgba(0,0,0,0.16);
}

/* Editor accents (replace legacy blue with brand red) */
.text-style-buttons .editor-tool-btn.active {
  background-color: var(--color-primary);
}
.alignment-guide {
  background-color: rgba(225, 29, 47, 0.4);
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  display: none;
}
.alignment-guide.horizontal {
  background-color: var(--color-primary);
  height: 1px;
  width: 100%;
  left: 0;
}
.alignment-guide.vertical {
  background-color: var(--color-primary);
  width: 1px;
  height: 100%;
  top: 0;
}
.selection-box {
  border-color: var(--color-primary);
  background-color: rgba(225, 29, 47, 0.08);
}
.multi-select-overlay {
  border-color: var(--color-primary);
  background-color: rgba(225, 29, 47, 0.08);
}
.multi-select-overlay .multi-resizer,
.resizer {
  background: var(--color-primary);
}
.color-picker-overlay {
  border-color: var(--color-primary);
  background-color: rgba(225, 29, 47, 0.08);
}

/* Links in product lists */
.product-link {
  color: var(--color-black);
  font-weight: 600;
  transition: color .2s ease;
}
.product-link:hover {
  color: var(--color-primary);
}
.product-link {
  color: var(--color-black);
  font-weight: 600;
  transition: color .2s ease;
}
.product-link:hover {
  color: var(--color-primary);
}
.kisi-bilgileri-panel .panel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 16px;
    background: #dc3545;
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.kisi-bilgileri-panel .panel-close:hover {
    background: #c82333;
}

@media (max-width: 768px), (pointer: coarse) {
  #context-menu {
    display: none !important;
  }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #000 !important;
    color: #e0e0e0 !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: #fff !important;
}

body.dark-mode .container,
body.dark-mode #hero,
body.dark-mode #categories,
body.dark-mode #product-detail,
body.dark-mode #editor-area {
    background-color: #000 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .top-band {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

body.dark-mode .top-band .container,
body.dark-mode .top-band .band-content {
    background-color: transparent !important;
}

/* Kartlar ve Kutular */
body.dark-mode .category-item,
body.dark-mode .product-item-content,
body.dark-mode .product-options,
body.dark-mode .panel-header,
body.dark-mode .template-item,
body.dark-mode .toolbar-item,
body.dark-mode .input-with-icon,
body.dark-mode .jg-il-block {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .seo-section {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .seo-section p,
body.dark-mode .seo-section ul,
body.dark-mode .seo-section li,
body.dark-mode .seo-section summary,
body.dark-mode .seo-section details p {
    color: #e0e0e0 !important;
}

body.dark-mode .seo-section details {
    background: #111 !important;
    border-color: #333 !important;
}

body.dark-mode .product-link {
    color: #e0e0e0 !important;
}
body.dark-mode .jg-il-title {
    color: #fff !important;
}
body.dark-mode .jg-il-link {
    color: #e0e0e0 !important;
}

body.dark-mode .price-info {
    background-color: #2a2a2a !important;
    color: #fff !important;
}

/* Header ve Footer */
body.dark-mode footer {
    background-color: #111 !important;
    border-color: #444 !important;
}

/* Edit��r Alan�� */
body.dark-mode .editor-sidebar {
    background-color: #111 !important;
    border-right-color: #333 !important;
}

body.dark-mode .editor-right {
    background-color: #000 !important;
}

/* Form Elemanlar�� */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #fff !important;
}

/* Dark Mode Toggle Butonu */
.dark-mode-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

body.dark-mode .dark-mode-toggle {
    color: #ffc107; /* Aktifken sar�� ikon (G��ne�x) */
    border-color: #ffc107;
}

.fixed-dark-mode-toggle {
    position: fixed !important;
    left: calc(var(--fixed-toggle-left, 16px) + env(safe-area-inset-left, 0px));
    bottom: calc(var(--fixed-toggle-bottom, 16px) + env(safe-area-inset-bottom, 0px));
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.78);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 0;
    right: auto;
    top: auto;
    touch-action: manipulation;
}

.fixed-dark-mode-toggle:hover {
    background: rgba(0,0,0,0.92);
}

body.dark-mode .fixed-dark-mode-toggle {
    background: rgba(255,255,255,0.86);
    color: #111;
    border-color: rgba(0,0,0,0.18);
}

body.dark-mode .fixed-dark-mode-toggle:hover {
    background: rgba(255,255,255,0.96);
}

@media (max-width: 768px) {
    .fixed-dark-mode-toggle {
        --fixed-toggle-left: 12px;
        --fixed-toggle-bottom: 12px;
        width: 36px;
        height: 36px;
    }
}

/* Mobil Men�� Uyumu */
@media (max-width: 1200px) {
    .header-right {
        display: flex;
        align-items: center;
    }
}

/* Mobil Düzenlemeler (768px altı) */
@media (max-width: 768px) {
    #hakkimizda p, #hakkimizda {
        font-weight: bold;
    }
    #referanslar {
        background-color: #000 !important;
        color: #fff;
    }
    #referanslar h2 {
        color: #fff;
    }
}
