.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 — slim prestige bar (light white / dark black) */
header {
    background: #ffffff;
    color: #0f172a;
    padding: 0;
    min-height: 48px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 2000;
    box-shadow: none;
}

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

header h1 {
    margin: 0;
    color: inherit;
    font-size: 1.35rem;
    white-space: nowrap;
}

header .site-logo {
    margin: 0;
    color: inherit;
    font-size: 1.35rem;
    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: 26px;
    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: 26px;
    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: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 48px;
}

.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: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: min(52vw, 220px) !important;
    z-index: 1;
    justify-self: unset;
}

.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-left > .header-button,
.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .header-left > #kisiBilgileriBtn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.header-nav-drawer body:not(.home-page):not(.editor-page) header > .container > .header-actions {
    position: relative;
    z-index: 2;
    margin-left: auto;
    justify-self: unset;
}

.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: transparent;
    color: #0f172a;
    padding: 0 12px;
    height: 30px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-right: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.header-button:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.22);
    color: #0f172a;
    transform: none;
    box-shadow: none;
}

#kisiBilgileriBtn.header-button:not(.jg-kisi-attention) {
    background: transparent;
    border-color: rgba(209, 32, 35, 0.35);
    color: #B61C1E;
}

#kisiBilgileriBtn.header-button:hover:not(.jg-kisi-attention) {
    background: rgba(209, 32, 35, 0.06);
    border-color: rgba(209, 32, 35, 0.55);
    color: #9C1719;
}

@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: #0f172a;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    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: #B61C1E;
    font-weight: 600;
}

@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: 22px;
        max-width: 100%;
    }

    header {
        min-height: 44px;
        padding: 0;
    }

    .header-nav-drawer body:not(.home-page):not(.editor-page) header > .container {
        min-height: 44px;
    }

    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: #0f172a;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 3001;
    line-height: 1;
}

.header-nav-drawer .mobile-menu-toggle,
.header-nav-drawer .mobile-nav-toggle,
.header-nav-drawer #mobileMenuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-nav-drawer header nav,
html.header-nav-drawer body:not(.editor-page) #mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(320px, 88vw);
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    color: #0f172a;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease;
    z-index: 3000;
    padding-top: 52px;
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.header-nav-drawer header nav.active,
html.header-nav-drawer body:not(.editor-page) #mobileMenu.active {
    transform: translateX(0);
}

/* Drawer: arama + WhatsApp destek */
.header-nav-drawer header nav .jg-drawer-search,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .jg-drawer-search {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
    margin-bottom: 4px;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-wrap > i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.7rem 0.75rem 0.7rem 2.15rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-input:focus {
    outline: none;
    border-color: #94a3b8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-results {
    margin-top: 8px;
    display: grid;
    gap: 4px;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-item {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-item:hover {
    background: #e2e8f0;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-search-empty {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.35rem 0.15rem;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-support {
    border-bottom: none !important;
    margin-top: 8px;
    padding-bottom: 0 !important;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-support-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-wa {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #25d366 !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 0.8rem 0.9rem !important;
    font-weight: 800;
    text-decoration: none;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .jg-drawer-wa i {
    font-size: 1.15rem;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .mobile-menu-category,
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .mobile-menu-category-btn {
    color: #0f172a;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .mobile-menu-category-btn::after {
    color: #64748b;
}
:is(.header-nav-drawer header nav, html.header-nav-drawer body:not(.editor-page) #mobileMenu) .mobile-menu-group {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-nav-drawer header nav > ul,
html.header-nav-drawer body:not(.editor-page) #mobileMenu > ul,
html.header-nav-drawer body:not(.editor-page) #mobileMenu > nav > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

/* Nested category product lists stay collapsed until .open */
.header-nav-drawer header nav .mobile-menu-products,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-products {
    display: none !important;
    list-style: none;
    padding: 0 0 8px 12px;
    margin: 0;
    gap: 8px;
}
.header-nav-drawer header nav .mobile-menu-products.open,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-products.open {
    display: grid !important;
}
.header-nav-drawer header nav .mobile-menu-products a,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-products a {
    color: #334155 !important;
    font-size: 0.98rem;
    font-weight: 600;
}

.header-nav-drawer header nav li,
html.header-nav-drawer body:not(.editor-page) #mobileMenu li {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 10px;
}

.header-nav-drawer header nav a,
html.header-nav-drawer body:not(.editor-page) #mobileMenu a {
    color: #0f172a;
    font-size: 1.1rem;
    display: block;
}

.header-nav-drawer header nav li:last-child,
html.header-nav-drawer body:not(.editor-page) #mobileMenu li:last-child {
    border-bottom: none;
}

.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,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-category {
    font-weight: 700;
    color: #0f172a;
}

.header-nav-drawer header nav .mobile-menu-category-btn,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 6px 0;
    cursor: pointer;
}

.header-nav-drawer header nav .mobile-menu-category-btn::after,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-category-btn::after {
    content: '+';
    font-size: 1.1rem;
    color: #64748b;
}

.header-nav-drawer header nav .mobile-menu-category-btn[aria-expanded="true"]::after,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-category-btn[aria-expanded="true"]::after {
    content: '−';
}

.header-nav-drawer header nav .mobile-menu-products li,
html.header-nav-drawer body:not(.editor-page) #mobileMenu .mobile-menu-products li {
    border-bottom: none;
    padding-bottom: 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: #0f172a;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}
body.dark-mode .header-nav-drawer .mobile-menu-close {
    color: #fafafa;
}

.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;
}

/* Drawer open: lift header/nav above announce bar + floating FABs (stacking context fix) */
html.header-nav-drawer.jg-drawer-open .jg-announce-bar,
html.header-nav-drawer.jg-drawer-open .jg-home-ai,
html.header-nav-drawer.jg-drawer-open .floating-whatsapp-button,
html.header-nav-drawer.jg-drawer-open .fixed-dark-mode-toggle {
    z-index: 1 !important;
    pointer-events: none !important;
}
html.header-nav-drawer.jg-drawer-open .mobile-menu-overlay.active {
    z-index: 5190 !important;
}
html.header-nav-drawer.jg-drawer-open header {
    z-index: 5200 !important;
}
html.header-nav-drawer.jg-drawer-open header nav,
html.header-nav-drawer.jg-drawer-open body:not(.editor-page) #mobileMenu {
    z-index: 5210 !important;
}
html.header-nav-drawer.jg-drawer-open .mobile-menu-toggle,
html.header-nav-drawer.jg-drawer-open .mobile-nav-toggle,
html.header-nav-drawer.jg-drawer-open #mobileMenuBtn {
    z-index: 5211 !important;
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
    .mobile-nav-toggle,
    .mobile-menu-toggle,
    #mobileMenuBtn { display: none !important; }
}
@media (max-width: 768px) {
    .header-nav-drawer .mobile-nav-toggle,
    .header-nav-drawer #mobileMenuBtn,
    .header-nav-drawer .mobile-menu-toggle {
        display: inline-flex !important;
    }
}

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

/* Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Regular.woff2') format('woff2'),
         url('./fonts/Poppins/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Brother';
    src: url("fonts/Brother.woff") format('woff'),
         url("images/varyant fotoğrafları/Brother.woff") format('woff');
    font-weight: 400;
    font-style: normal;
    /* Editor SVG: ilk yüklemede yanlış fallback flash olmasın */
    font-display: block;
}
@font-face {
    font-family: 'TR Bach';
    src: url("TR Bach.TTF") format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* 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: #ffffff;
        box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12);
        transition: transform 0.3s ease;
        z-index: 3000;
        padding-top: 52px;
        display: block;
        border-left: 1px solid rgba(15, 23, 42, 0.08);
    }

    .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: 12px;
        right: 12px;
        background: none;
        border: none;
        color: #0f172a;
        font-size: 1.35rem;
        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: 340px;
    max-width: 92vw;
    height: 100%;
    background-color: #f8fafc;
    box-shadow:
        1px 0 0 rgba(15, 23, 42, 0.06),
        16px 0 40px rgba(15, 23, 42, 0.12);
    z-index: 4501;
    transform: translateX(-110%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* İçerik taşarsa kaydırma çubuğu */
    padding: 18px 16px 28px;
    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;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kisi-bilgileri-panel .form-container .panel-title,
.kisi-bilgileri-panel .form-container > h2,
.kisi-bilgileri-panel .kisi-panel-head .panel-title {
    margin: 0;
    padding: 0 36px 0 0;
    border-bottom: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0f172a;
}

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

.kisi-bilgileri-panel .form-group:last-child {
    margin-bottom: 0;
}

.kisi-bilgileri-panel .form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.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);
}

.product-images.jg-mini-slider {
    display: block;
    min-width: 150px;
    min-height: 150px;
}

.product-images.jg-mini-slider .jg-mini-slide {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity .45s ease, transform .45s ease;
}

.product-images.jg-mini-slider .jg-mini-slide.active {
    opacity: 1;
    transform: scale(1);
}

.jg-mini-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.jg-mini-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    box-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.jg-mini-slider-dot.active {
    background: #2563eb;
}

#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;
  --jg-overlay-w: 150px;
  --jg-overlay-h: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 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: max(5px, calc(var(--jg-overlay-w) * 0.032));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: max(1px, calc(var(--jg-overlay-h) * 0.012));
  font-size: clamp(7px, calc(var(--jg-overlay-w) * 0.06), 11px);
  line-height: 1.08;
  color: #fff;
  padding: 0;
  max-width: 50%;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.image-overlay.integrated .overlay-text {
  left: calc(var(--jg-overlay-w) * 0.17);
  top: 62%;
  transform: translateY(-50%);
  transform-origin: left center;
  max-width: 54%;
}
.image-overlay.integrated.mobile-home .overlay-text {
  left: calc(var(--jg-overlay-w) * 0.14);
  top: 62%;
  transform: translateY(-50%);
  font-size: clamp(8px, calc(var(--jg-overlay-w) * 0.067), 15px);
  line-height: 1.04;
  max-width: 55%;
}
.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;
}
.product-images .image-overlay.back {
  opacity: 0;
  visibility: hidden;
}
.product-images.show-back .image-overlay.back {
  opacity: 1;
  visibility: visible;
}
.product-images.show-back .image-overlay.integrated {
  opacity: 0;
  visibility: hidden;
}

/* Ş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:
        radial-gradient(900px 420px at 50% -10%, rgba(255, 255, 255, 0.72) 0%, transparent 55%),
        linear-gradient(180deg, #eef1f5 0%, #e6ebf1 48%, #e3e8ef 100%);
    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;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    padding: 6px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    width: 100%;
    gap: 0;
    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 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.editor-toolbar .toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 2px 0;
    row-gap: 6px;
    min-height: 30px;
}

.editor-toolbar .toolbar-row--secondary {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    justify-content: center;
}

.toolbar-section,
.editor-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 5px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0 10px;
    margin: 0;
    position: relative; /* download-grid */
}

.editor-toolbar .toolbar-row > .toolbar-section:last-child,
.editor-toolbar .toolbar-row > .toolbar-group:last-child {
    border-right: none;
    padding-right: 4px;
}

.editor-toolbar .toolbar-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

.editor-toolbar .toolbar-group--snap {
    gap: 6px;
    min-width: 0;
}
.editor-toolbar .snap-sensitivity-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
    gap: 1px;
}
.editor-toolbar .snap-sensitivity-label__main {
    font-size: 11px;
    font-weight: 600;
    color: inherit;
}
.editor-toolbar .snap-sensitivity-label__sub {
    font-size: 9px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.01em;
}
.editor-toolbar .snap-sensitivity-slider {
    width: 88px;
    height: 22px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    accent-color: var(--color-primary, #e11d2f);
    cursor: pointer;
    vertical-align: middle;
}
.editor-toolbar .snap-sensitivity-value {
    min-width: 46px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    text-align: left;
}
.editor-toolbar .toolbar-group--snap.is-snap-off .snap-sensitivity-value {
    color: #94a3b8;
}
@media (max-width: 900px) {
  .editor-toolbar .snap-sensitivity-slider { width: 72px; }
}

.toolbar-item {
    background-color: rgba(15, 23, 42, 0.035);
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: #1e293b;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 30px;
    height: 30px;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
}

.toolbar-item:hover {
    background-color: rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.12);
}

.toolbar-item.active {
    background-color: rgba(109, 40, 217, 0.10);
    border-color: rgba(109, 40, 217, 0.28);
    color: #5b21b6;
}

.editor-toolbar .toolbar-item--icon {
    width: 30px;
    min-width: 30px;
    padding: 0;
    background-color: transparent;
    border-color: transparent;
    color: #334155;
}

.editor-toolbar .toolbar-item--icon:hover {
    background-color: rgba(15, 23, 42, 0.06);
    border-color: transparent;
    color: #0f172a;
}

.editor-toolbar .toolbar-item--icon.active {
    background-color: rgba(109, 40, 217, 0.10);
    border-color: transparent;
    color: #5b21b6;
}

.editor-toolbar .toolbar-item--quiet {
    opacity: 0.88;
    background-color: transparent;
    border-color: transparent;
    color: #475569;
}

.editor-toolbar .toolbar-item--quiet:hover {
    opacity: 1;
    background-color: rgba(15, 23, 42, 0.06);
    border-color: transparent;
    color: #0f172a;
}

.editor-toolbar .toolbar-item--primary {
    background-color: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
    font-weight: 600;
    opacity: 1;
    box-shadow: none;
}

.editor-toolbar .toolbar-item--primary:hover {
    background-color: #5b21b6;
    border-color: #5b21b6;
    color: #fff;
    transform: none;
    box-shadow: none;
}

.editor-toolbar .toolbar-item--primary.active {
    background-color: #5b21b6;
    border-color: #5b21b6;
    color: #fff;
}

.editor-toolbar .toolbar-color-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 30px;
}

.editor-toolbar .toolbar-color-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 8px 0 9px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: rgba(15, 23, 42, 0.035);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.editor-toolbar .toolbar-color-label:hover {
    background-color: rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.12);
}

.editor-toolbar .toolbar-color-caption {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    white-space: nowrap;
}

.editor-toolbar .toolbar-color-swatch {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    overflow: hidden;
    background:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.editor-toolbar .toolbar-color-swatch-fill {
    position: absolute;
    inset: 0;
    background: #000000;
}

.editor-toolbar .toolbar-color-swatch--bg .toolbar-color-swatch-fill {
    background: #ffffff;
}

.editor-toolbar .toolbar-color-swatch--text {
    border-radius: 50%;
}

.editor-toolbar .toolbar-color-swatch--bg {
    border-radius: 5px;
}

.editor-toolbar .toolbar-color-swatch-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.editor-toolbar .toolbar-item--color {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.editor-toolbar .toolbar-item--color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.editor-toolbar .toolbar-item--color::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

@media (max-width: 1100px) {
    .editor-toolbar .toolbar-color-caption {
        display: none;
    }
    .editor-toolbar .toolbar-color-label {
        padding: 0 6px;
        min-width: 30px;
        justify-content: center;
    }
}

@media (max-width: 1280px) {
    .editor-toolbar .toolbar-section,
    .editor-toolbar .toolbar-group {
        padding: 0 7px;
        gap: 4px;
    }
}

.editor-toolbar .jg-font-tools {
    gap: 5px;
}

.editor-toolbar .jg-font-tools .jg-font-favs-only {
    opacity: 0.85;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    padding: 0 8px;
    background: transparent;
    border-color: transparent;
}

.editor-toolbar .jg-font-tools .jg-font-favs-only:hover,
.editor-toolbar .jg-font-tools .jg-font-favs-only.active {
    opacity: 1;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

select.toolbar-item {
    display: block;
    height: 30px;
    line-height: 30px;
    padding: 0 26px 0 10px;
    min-width: 132px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(15, 23, 42, 0.035);
    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%2364748b%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: 9px;
    width: auto;
    color: #334155;
}

.font-size-input {
    width: 48px;
    text-align: center;
    padding: 0 4px;
    font-variant-numeric: tabular-nums;
}

.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:
        radial-gradient(900px 420px at 50% -10%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
        linear-gradient(180deg, #eef1f5 0%, #e6ebf1 48%, #e3e8ef 100%);
    padding: 28px 24px 32px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    position: relative;
    min-height: calc(80vh - 100px);
    z-index: 1; /* editor-sidebar-bottom'un altında kalması için z-index eklendi */
    transform-origin: center center;
    /* Toolbar is in-flow; sticky offset is handled by JS spacer when .fixed-toolbar applies */
    margin-top: 0;
}

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

/* Sağ alt sabit stack: nudge arrows above zoom pill */
.workspace-br-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.workspace-br-stack > * {
    pointer-events: auto;
}

/* Mobil: yazı seçilince nudge üstünde Font / Küçült / Büyüt */
.jg-font-quick {
  display: none;
}
.jg-font-quick[hidden] {
  display: none !important;
}

.nudge-control {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 4px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 28px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nudge-control__btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nudge-control__btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nudge-control__btn:active {
    background: #cbd5e1;
}

.nudge-control__btn i {
    font-size: 11px;
    line-height: 1;
}

/* Zoom slider: compact pill inside workspace-br-stack */
.zoom-control {
    position: relative;
    right: auto;
    bottom: auto;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 6px 10px 6px 6px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 28px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.zoom-control input[type="range"] {
    width: 112px;
    height: 4px;
    margin: 0 2px;
    accent-color: #0f172a;
    cursor: pointer;
}

.zoom-control #zoom-percent,
.zoom-control .zoom-control__pct {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: #0f172a;
    min-width: 40px;
    text-align: center;
    line-height: 1;
    padding: 0 2px 0 4px;
}

.zoom-control__btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.zoom-control__btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.zoom-control__btn:active {
    background: #cbd5e1;
}

.zoom-control__btn i {
    font-size: 11px;
    line-height: 1;
}

.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: 12px; /* 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 */
}

.canvas-wrapper.jg-canvas-shell {
    isolation: isolate;
}

.canvas-wrapper .jg-canvas-loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(241, 245, 249, 0.92);
    backdrop-filter: blur(3px);
}

.canvas-wrapper.is-loading .jg-canvas-loader,
.canvas-wrapper.is-error .jg-canvas-loader {
    display: flex;
}

/* Loading skeleton: keep compact card proportions, avoid viewport-tall empty canvas */
.canvas-wrapper.is-loading {
    max-height: min(56vh, 420px);
}
.canvas-wrapper.is-loading .card-canvas {
    max-height: min(56vh, 420px);
    min-height: 160px;
    overflow: hidden;
}
/* Şablon/ekstra sayfa boyutu kilitliyse loading iskeleti ezmesin (kişi bilgisi kayması) */
.canvas-wrapper.is-loading[data-jg-design-locked="1"],
.canvas-wrapper.is-loading[data-jg-design-locked="1"] .card-canvas {
    max-height: none;
    min-height: 0;
}
.canvas-wrapper.is-loading .jg-canvas-loader {
    border-radius: inherit;
    background: rgba(248, 250, 252, 0.94);
}
@media (max-width: 768px) {
  .canvas-wrapper.is-loading {
    max-height: none;
    aspect-ratio: 1.55 / 1;
    width: min(100%, calc(100vw - 1rem));
    height: auto !important;
  }
  .canvas-wrapper.is-loading .card-canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
  }
}

.canvas-wrapper .jg-canvas-loader-card {
    width: min(100%, 280px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.canvas-wrapper .jg-canvas-loader-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: #2563eb;
    animation: jg-canvas-loader-spin 0.85s linear infinite;
}

.canvas-wrapper .jg-canvas-loader-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.canvas-wrapper .jg-canvas-loader-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #475569;
}

.canvas-wrapper .jg-canvas-loader-slow {
    display: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
}

.canvas-wrapper.is-slow .jg-canvas-loader-slow {
    display: inline-flex;
}

.card-canvas.jg-canvas-content-hidden > * {
    visibility: hidden;
}

.canvas-wrapper.preserve-content .card-canvas.jg-canvas-content-hidden > * {
    visibility: visible;
}

.canvas-wrapper.is-error .jg-canvas-loader {
    background: rgba(248, 250, 252, 0.96);
}

.canvas-wrapper.is-error .jg-canvas-loader-card {
    border-color: rgba(239, 68, 68, 0.2);
}

.canvas-wrapper.is-error .jg-canvas-loader-spinner {
    display: none;
}

.canvas-wrapper.is-error .jg-canvas-loader-title {
    color: #b91c1c;
}

.canvas-wrapper.is-error .jg-canvas-loader-text {
    color: #7f1d1d;
}

@keyframes jg-canvas-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.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: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 28px rgba(15, 23, 42, 0.10);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: #999;
    border-radius: 2px;
    overflow: hidden; /* İçerik taşmasını engelle */
}

.card-canvas > svg {
    /* Avoid GPU layer + scale banding ("tel tel") on soft gradients */
    transform: none;
    backface-visibility: visible;
    will-change: auto;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: auto;
}

#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[data-info-field]:not(.logo-container) {
    box-sizing: border-box;
}
.draggable-element[data-jg-align="center"] {
    text-align: center !important;
    display: block !important;
}
.draggable-element[data-jg-align="right"] {
    text-align: right !important;
    display: block !important;
}

.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;
}

/* Küçük DOM öğelerinde handle'lar kutunun dışına taşsın, üst üste binmesin */
.draggable-element.is-compact-ui .resizer {
    width: 12px;
    height: 12px;
}
.draggable-element.is-compact-ui .resizer.top-left { left: -6px; top: -6px; }
.draggable-element.is-compact-ui .resizer.top-right { right: -6px; top: -6px; left: auto; }
.draggable-element.is-compact-ui .resizer.bottom-left { left: -6px; bottom: -6px; top: auto; }
.draggable-element.is-compact-ui .resizer.bottom-right { right: -6px; bottom: -6px; left: auto; top: auto; }
/* Mid-edge handles: desktop only (never force on mobile) */
@media (min-width: 769px) {
  .draggable-element.is-compact-ui.selected .resizer.left,
  .draggable-element.is-compact-ui.selected .resizer.right,
  .draggable-element.is-compact-ui.selected .resizer.top,
  .draggable-element.is-compact-ui.selected .resizer.bottom {
      display: block !important;
  }
}
@media (max-width: 768px) {
  .draggable-element .resizer.left,
  .draggable-element .resizer.right,
  .draggable-element .resizer.top,
  .draggable-element .resizer.bottom,
  .draggable-element.selected .resizer.left,
  .draggable-element.selected .resizer.right,
  .draggable-element.selected .resizer.top,
  .draggable-element.selected .resizer.bottom,
  .draggable-element.is-compact-ui.selected .resizer.left,
  .draggable-element.is-compact-ui.selected .resizer.right,
  .draggable-element.is-compact-ui.selected .resizer.top,
  .draggable-element.is-compact-ui.selected .resizer.bottom,
  .multi-select-overlay .multi-resizer.left,
  .multi-select-overlay .multi-resizer.right,
  .multi-select-overlay .multi-resizer.top,
  .multi-select-overlay .multi-resizer.bottom {
      display: none !important;
      pointer-events: none !important;
  }
}
html.is-mobile .draggable-element .resizer.left,
html.is-mobile .draggable-element .resizer.right,
html.is-mobile .draggable-element .resizer.top,
html.is-mobile .draggable-element .resizer.bottom,
html.is-mobile .draggable-element.selected .resizer.left,
html.is-mobile .draggable-element.selected .resizer.right,
html.is-mobile .draggable-element.selected .resizer.top,
html.is-mobile .draggable-element.selected .resizer.bottom,
html.is-mobile .draggable-element.is-compact-ui.selected .resizer.left,
html.is-mobile .draggable-element.is-compact-ui.selected .resizer.right,
html.is-mobile .draggable-element.is-compact-ui.selected .resizer.top,
html.is-mobile .draggable-element.is-compact-ui.selected .resizer.bottom,
html.is-mobile .multi-select-overlay .multi-resizer.left,
html.is-mobile .multi-select-overlay .multi-resizer.right,
html.is-mobile .multi-select-overlay .multi-resizer.top,
html.is-mobile .multi-select-overlay .multi-resizer.bottom {
    display: none !important;
    pointer-events: none !important;
}

.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 şablon metin düzenleme (contenteditable overlay) */
.svg-text-editor-overlay {
    pointer-events: auto !important;
    -webkit-user-select: text !important;
    user-select: text !important;
    caret-color: inherit;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.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: #ff0000;
    background: transparent;
    box-sizing: border-box;
}

.svg-selection-overlay .svg-sel-handle {
    position: absolute;
    background: #ff0000;
    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: #ff0000;
    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: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ff0000;
    pointer-events: none;
}
.svg-selection-overlay .svg-sel-text-edit {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    border-style: solid;
    border-color: #ff0000;
    color: #ff0000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    z-index: 2;
}
.svg-selection-overlay .svg-sel-text-edit.is-active {
    background: #ff0000;
    color: #fff;
}

.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 */
    transform: scale(var(--editor-ui-scale, 1));
    transform-origin: center;
}
.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%) scale(var(--editor-ui-scale, 1)); cursor: ew-resize; }
.multi-select-overlay .multi-resizer.right { top: 50%; right: -10px; transform: translateY(-50%) scale(var(--editor-ui-scale, 1)); cursor: ew-resize; }
.multi-select-overlay .multi-resizer.top { top: -10px; left: 50%; transform: translateX(-50%) scale(var(--editor-ui-scale, 1)); cursor: ns-resize; }
.multi-select-overlay .multi-resizer.bottom { bottom: -10px; left: 50%; transform: translateX(-50%) scale(var(--editor-ui-scale, 1)); 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;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.palette-header input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.palette-header .palette-close,
.palette-header .palette-mixer-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.palette-header .palette-mixer-toggle {
  font-size: 12px;
  font-weight: 500;
}
.palette-header .palette-mixer-toggle:hover,
.palette-header .palette-close:hover {
  background: #e2e8f0;
}
.palette-header .palette-mixer-toggle.is-active,
.palette-header .palette-mixer-toggle[aria-pressed="true"] {
  background: #111827;
  color: #fff;
}
.palette-mixer {
  padding: 10px 10px 8px;
  border-bottom: 1px solid #eee;
  background: #fafbfc;
}
.palette-mixer-sv {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(0, 100%, 50%));
}
.palette-mixer-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.25);
  pointer-events: none;
  left: 100%;
  top: 0;
}
.palette-mixer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.palette-mixer-eyedropper {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.palette-mixer-eyedropper:hover { background: #f8fafc; }
.palette-mixer-preview {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  background: #000;
}
.palette-mixer-hue {
  flex: 1;
  min-width: 0;
  height: 14px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right,
    hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%),
    hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%), hsl(360,100%,50%));
  outline: none;
  cursor: pointer;
}
.palette-mixer-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: pointer;
}
.palette-mixer-hue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: pointer;
}
.palette-mixer-rgb {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.palette-mixer-rgb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.palette-mixer-rgb-field input {
  width: 100%;
  height: 32px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #0f172a;
  box-sizing: border-box;
}
.palette-mixer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
@media (max-width: 480px) {
  .palette-popover {
    width: min(300px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
  }
  .palette-mixer-sv { height: 120px; }
}
.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(225, 29, 47, 0.22);
    z-index: 9999;
    pointer-events: none;
    display: none;
    overflow: visible;
}

/* Sürüklerken tutamakları gizle; hizalama çubukları kalsın */
html.jg-is-dragging .resizer,
html.jg-is-dragging .rotator,
html.jg-is-dragging .rotator-degree,
html.jg-is-dragging .mobile-text-handle,
html.jg-is-dragging .mobile-image-handle,
html.jg-is-dragging .mobile-text-edit-btn,
html.jg-is-dragging .draggable-element.selected .mobile-text-edit-btn,
html.jg-is-dragging .draggable-element[data-mobile-selected="1"] .mobile-text-edit-btn,
html.jg-is-dragging .multi-select-overlay,
html.jg-is-dragging .svg-selection-overlay,
html.jg-is-dragging .svg-sel-handle,
html.jg-is-dragging .svg-sel-rotator,
html.jg-is-dragging .svg-sel-degree,
html.jg-is-dragging .svg-sel-text-edit,
html.jg-is-dragging .svg-sel-rect,
html.jg-is-dragging g[data-role="selection-layer"],
html.jg-is-dragging #jgSizeBadge,
body.jg-is-dragging .resizer,
body.jg-is-dragging .rotator,
body.jg-is-dragging .rotator-degree,
body.jg-is-dragging .mobile-text-handle,
body.jg-is-dragging .mobile-image-handle,
body.jg-is-dragging .mobile-text-edit-btn,
body.jg-is-dragging .draggable-element.selected .mobile-text-edit-btn,
body.jg-is-dragging .draggable-element[data-mobile-selected="1"] .mobile-text-edit-btn,
body.jg-is-dragging .multi-select-overlay,
body.jg-is-dragging .svg-selection-overlay,
body.jg-is-dragging .svg-sel-handle,
body.jg-is-dragging .svg-sel-rotator,
body.jg-is-dragging .svg-sel-degree,
body.jg-is-dragging .svg-sel-text-edit,
body.jg-is-dragging .svg-sel-rect,
body.jg-is-dragging g[data-role="selection-layer"],
body.jg-is-dragging #jgSizeBadge {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
html.jg-is-dragging .alignment-guide,
body.jg-is-dragging .alignment-guide,
html.jg-is-dragging g[data-role="svg-align-guides"],
body.jg-is-dragging g[data-role="svg-align-guides"] {
    visibility: visible !important;
    pointer-events: none !important;
}

.alignment-guide.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
    background-color: rgba(225, 29, 47, 0.22);
}

.alignment-guide.vertical {
    width: 1px;
    height: 100%;
    top: 0;
    background-color: rgba(225, 29, 47, 0.22);
}
.alignment-guide__seg {
    position: absolute;
    background-color: var(--color-primary, #e11d2f);
    pointer-events: none;
    box-shadow: 0 0 0 0.5px rgba(225, 29, 47, 0.35);
}
.alignment-guide__tick {
    position: absolute;
    background-color: var(--color-primary, #e11d2f);
    pointer-events: none;
    display: block;
}
.alignment-guide.is-active {
    display: block;
}

/* .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: flex-start;
    width: min(100%, 502px);
    margin: 6px auto 2px;
}

.design-label {
    font-size: 0.9375rem;
    color: #334155;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
    text-align: left;
    padding: 0;
    white-space: nowrap;
    width: auto;
    line-height: 1.3;
}

/* İ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;
}
.floating-whatsapp-button.jg-wa-hidden-by-jetia {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.jg-home-ai {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.jg-home-ai-dock {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 4201;
}
.jg-home-ai-combo {
  position: relative;
  width: 64px;
  height: 64px;
}
.jg-home-ai-wa-main {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.36);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 1;
}
.jg-home-ai-wa-main:hover {
  background: #1ebe5a;
}
.jg-home-ai-wa-main svg {
  display: block;
  width: 32px;
  height: 32px;
}
.jg-home-ai-launch {
  position: absolute;
  left: -8px;
  top: -8px;
  z-index: 2;
  border: 0;
  width: 36px;
  min-width: 36px;
  height: auto;
  min-height: 36px;
  padding: 4px 4px 3px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 0 0 2px #fff, 0 8px 16px rgba(37, 99, 235, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.jg-home-ai-launch-wa {
  display: none;
}
.jg-home-ai-launch:focus-visible {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35), 0 8px 16px rgba(37, 99, 235, 0.28);
}
.jg-home-ai-launch .jg-corner-jet {
  display: block;
  width: 16px;
  height: 16px;
  color: #fff;
}
.jg-home-ai-launch .jg-corner-jet svg {
  display: block;
  width: 100%;
  height: 100%;
}
.jg-home-ai-launch-name {
  display: block;
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
}
.jg-home-ai.is-open .jg-home-ai-dock {
  display: none;
}
.jg-home-ai-wa-fab,
.jg-home-ai-wa-fab.floating-whatsapp-button,
a.jg-corner-wa {
  display: none !important;
}
.jg-home-ai-launch-wp {
  display: none;
}
.jg-home-ai-launch-badge,
.jg-home-ai-launch-text {
  display: none;
}
.jg-home-ai-panel {
  width: min(92vw, 440px);
  background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(248,250,252,0.98));
  color: #0f172a;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(15,23,42,0.16), 0 8px 22px rgba(15,23,42,0.08);
  overflow: hidden;
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 4201;
  display: flex;
  flex-direction: column;
}
.jg-home-ai-panel[hidden] {
  display: none !important;
}
.jg-home-ai-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 76px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.08) 46%, rgba(255,255,255,0));
  pointer-events: none;
}
.jg-home-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.12);
  position: relative;
}
.jg-home-ai-head strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.02em;
}
.jg-home-ai-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  max-width: 28ch;
}
.jg-home-ai-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jg-home-ai-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(50vh, 430px);
  overflow: auto;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(248,250,252,0.78), rgba(255,255,255,0.98));
}
.jg-home-ai-message {
  max-width: 94%;
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}
.jg-home-ai-message.is-assistant {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(148,163,184,0.16);
}
.jg-home-ai-message.is-user {
  margin-left: auto;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}
.jg-home-ai-message-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: .7;
}
.jg-home-ai-message-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
}
.jg-home-ai-quick {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 0 14px 8px;
}
.jg-home-ai-chip,
.jg-home-ai-linkbtn {
  border: 1px solid rgba(37,99,235,0.14);
  background: rgba(37,99,235,0.06);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.jg-home-ai-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.jg-home-ai-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.jg-home-ai-product {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148,163,184,0.18);
  background: #fff;
  border-radius: 14px;
  padding: 9px 10px;
  cursor: pointer;
}
.jg-home-ai-product.is-warning {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.95);
}
.jg-home-ai-product.is-critical {
  border-color: rgba(127, 29, 29, 0.36);
  background: rgba(254, 226, 226, 0.98);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.12);
}
.jg-home-ai-product-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.jg-home-ai-product-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}
.jg-home-ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 14px 10px;
  position: relative;
}
.jg-home-ai-tools {
  display: flex;
  gap: 8px;
  padding: 0 14px 10px;
}
.jg-home-ai-toolbtn {
  width: 100%;
  border: 1px dashed rgba(37,99,235,0.28);
  background: rgba(37,99,235,0.05);
  color: #1d4ed8;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.jg-home-ai-input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
}
.jg-home-ai-send,
.jg-home-ai-whatsapp {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.jg-home-ai-send {
  background: linear-gradient(135deg, #0f172a, #111f3a);
  color: #fff;
}
.jg-home-ai-footer {
  flex: 0 0 auto;
  padding: 0 14px 14px;
}
.jg-home-ai-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1fb955);
  color: #f0fdf4;
  box-shadow: 0 14px 26px rgba(37,211,102,0.16);
}
.jg-home-ai-notes {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #7f1d1d;
  font-size: 11px;
  line-height: 1.4;
}
.jg-home-ai-tip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(15,23,42,0.06);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .floating-whatsapp-button:not(.jg-home-ai-wa-fab) {
    display: none !important;
  }
  .jg-home-ai {
    right: 14px !important;
    left: auto !important;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: auto !important;
    max-width: calc(100vw - 28px);
    align-items: flex-end !important;
    gap: 10px;
  }
  .jg-home-ai-dock {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    padding: 0 !important;
  }
  .jg-home-ai-combo {
    width: 60px;
    height: 60px;
  }
  .jg-home-ai-wa-main {
    width: 60px;
    height: 60px;
  }
  .jg-home-ai-wa-main svg {
    width: 30px;
    height: 30px;
  }
  .jg-home-ai-launch {
    width: 34px !important;
    min-width: 34px !important;
    height: auto !important;
    flex: 0 0 auto !important;
    justify-content: center;
    align-items: center;
    overflow: visible;
    max-width: none;
    min-height: 34px;
    padding: 4px 3px 3px !important;
    gap: 1px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    box-shadow: 0 0 0 2px #fff, 0 8px 16px rgba(37, 99, 235, 0.28) !important;
  }
  .jg-home-ai-launch-name {
    display: block !important;
    font-size: 7px !important;
  }
  .jg-home-ai-launch-badge,
  .jg-home-ai-launch-text {
    display: none !important;
  }
  .jg-home-ai-wa-fab,
  .jg-home-ai-wa-fab.floating-whatsapp-button,
  a.jg-corner-wa {
    display: none !important;
  }
  .jg-home-ai.is-open {
    left: auto !important;
    right: 14px !important;
    width: auto !important;
    align-items: flex-end !important;
  }
  .jg-home-ai.is-open .jg-home-ai-dock {
    display: none;
  }
  .jg-home-ai-panel {
    width: min(78vw, 320px);
    margin-left: auto;
    border-radius: 24px;
    max-height: min(64vh, 520px);
  }
  .jg-home-ai.is-open .jg-home-ai-panel {
    width: min(78vw, 320px);
  }
  .jg-home-ai-head {
    padding: 16px 16px 10px;
  }
  .jg-home-ai-head strong {
    font-size: 15px;
  }
  .jg-home-ai-head p {
    font-size: 11px;
    max-width: 24ch;
  }
  .jg-home-ai-messages {
    max-height: min(24vh, 190px);
    padding: 8px 12px 6px;
  }
  .jg-home-ai-message {
    max-width: 100%;
    border-radius: 16px;
    padding: 9px 11px;
  }
  .jg-home-ai-message-body p {
    font-size: 12px;
    line-height: 1.45;
  }
  .jg-home-ai-quick {
    padding: 0 12px 8px;
    gap: 7px;
  }
  .jg-home-ai-chip,
  .jg-home-ai-linkbtn {
    padding: 8px 11px;
    font-size: 11px;
  }
  .jg-home-ai-form {
    grid-template-columns: 1fr;
    padding: 0 12px 10px;
    gap: 10px;
  }
  .jg-home-ai-input {
    min-height: 50px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 16px;
  }
  .jg-home-ai-send,
  .jg-home-ai-whatsapp {
    min-height: 46px;
    font-size: 13px;
  }
  .jg-home-ai-footer {
    padding: 0 12px 12px;
  }
  .jg-home-ai-whatsapp {
    width: 100%;
    min-height: 44px;
  }
  .jg-home-ai-tools {
    padding-top: 0;
  }
}

/* Editor UX Faz 4 — first-time guidance */
body.editor-page {
  --jg-onboard: #6d28d9;
  --jg-onboard-dark: #5b21b6;
  --jg-onboard-soft: #f5f3ff;
  --jg-onboard-success: #16a34a;
}
.jg-editor-progress {
  width: min(100%, 502px);
  margin: 0 auto 8px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  color: #0f172a;
}
.jg-editor-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.jg-editor-progress__eyebrow,.jg-help-sheet__eyebrow {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.jg-editor-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(109,40,217,.16);
  border-radius: 999px;
  background: var(--jg-onboard-soft);
  color: var(--jg-onboard-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.jg-editor-help-btn:hover,.jg-editor-help-btn:focus-visible {
  border-color: rgba(109,40,217,.34);
  background: #ede9fe;
  outline: none;
}
.jg-editor-progress__steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.jg-editor-progress__step { position: relative; min-width: 0; }
.jg-editor-progress__step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 13px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 1px;
  background: #e2e8f0;
}
.jg-editor-progress__step.is-complete:not(:last-child)::after { background: rgba(22,163,74,.42); }
.jg-editor-progress__step>button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  cursor: pointer;
}
.jg-editor-progress__dot {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.jg-editor-progress__label {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jg-editor-progress__step.is-active>button { color: var(--jg-onboard-dark); }
.jg-editor-progress__step.is-active .jg-editor-progress__dot {
  border-color: var(--jg-onboard);
  background: var(--jg-onboard);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}
.jg-editor-progress__step.is-complete>button { color: #166534; }
.jg-editor-progress__step.is-complete .jg-editor-progress__dot {
  border-color: rgba(22,163,74,.24);
  background: #dcfce7;
  color: var(--jg-onboard-success);
}
.jg-cart-attention,.jg-tour-target {
  outline: 2px solid rgba(109,40,217,.28)!important;
  outline-offset: 2px;
}
.jg-cart-attention { box-shadow: 0 6px 16px rgba(109,40,217,.14)!important; }
.jg-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5100;
  background: rgba(15,23,42,.34);
  opacity: 0;
  transition: opacity .22s ease;
}
.jg-help-backdrop.is-open { opacity: 1; }
.jg-help-sheet {
  position: fixed;
  z-index: 5101;
  top: 0;
  right: 0;
  display: flex;
  width: min(420px,calc(100vw - 24px));
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid rgba(15,23,42,.1);
  background: #fff;
  box-shadow: -18px 0 50px rgba(15,23,42,.16);
  color: #0f172a;
  transform: translateX(102%);
  transition: transform .24s ease;
  visibility: hidden;
}
.jg-help-sheet.is-open { transform: translateX(0); visibility: visible; }
.jg-help-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 17px;
  border-bottom: 1px solid #eef2f7;
}
.jg-help-sheet__header h2 {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.jg-help-sheet__close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
}
.jg-help-sheet__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px; }
.jg-help-guide { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.jg-help-guide li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(109,40,217,.1);
  border-radius: 12px;
  background: linear-gradient(145deg,#fff,#faf9ff);
}
.jg-help-guide li>span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--jg-onboard);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.jg-help-guide strong,.jg-help-details strong { color: #0f172a; font-size: 12.5px; font-weight: 800; }
.jg-help-guide p { margin: 2px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.jg-help-details { display: grid; margin-top: 18px; border-top: 1px solid #eef2f7; }
.jg-help-details p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 11px 2px;
  border-bottom: 1px solid #eef2f7;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.jg-help-details i { width: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--jg-onboard); text-align: center; }
.jg-help-sheet__footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom,0px)); border-top: 1px solid #eef2f7; }
.jg-help-tour-replay {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--jg-onboard);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.jg-tour {
  position: fixed;
  z-index: 5200;
  display: none;
  width: min(300px,calc(100vw - 28px));
  padding: 11px 12px 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 10px 24px rgba(15,23,42,.10);
  color: #0f172a;
  opacity: 0;
  transform: translateY(4px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.jg-tour.is-open { display: block; animation: jgTourIn .2s ease forwards; }
@keyframes jgTourIn { to { opacity: 1; transform: translateY(0); } }
.jg-tour__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7c3aed; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.jg-tour__meta button { padding: 2px 0; border: 0; background: transparent; color: #64748b; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.jg-tour h2 { margin: 6px 0 3px; color: #0f172a; font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.jg-tour p { margin: 0; color: #64748b; font-size: 12px; font-weight: 500; line-height: 1.4; }
.jg-tour__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 10px; }
.jg-tour__actions button { min-height: 30px; padding: 5px 11px; border-radius: 8px; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.jg-tour__back { border: 1px solid #e2e8f0; background: #fff; color: #64748b; }
.jg-tour__next { border: 1px solid transparent; background: #0f172a; color: #fff; }
.jg-tour__next:hover { background: #1e293b; }
body.dark-mode .jg-editor-progress,body.dark-mode .jg-help-sheet,body.dark-mode .jg-tour { border-color: rgba(148,163,184,.22); background: #0f172a; color: #e2e8f0; }
body.dark-mode .jg-help-sheet__header h2,body.dark-mode .jg-help-guide strong,body.dark-mode .jg-help-details strong,body.dark-mode .jg-tour h2 { color: #f8fafc; }
body.dark-mode .jg-help-guide li { border-color: rgba(167,139,250,.2); background: #111c31; }
body.dark-mode .jg-tour {
  background: rgba(15,23,42,.96);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
body.dark-mode .jg-tour p { color: #94a3b8; }
body.dark-mode .jg-tour__back { background: transparent; border-color: rgba(148,163,184,.28); color: #cbd5e1; }
body.dark-mode .jg-tour__next { background: #f8fafc; color: #0f172a; }
@media (max-width:768px) {
  /* Faz 7 — canvas-first mobile: journey lives in help / checkout, not above canvas */
  body.editor-page .jg-editor-progress { display: none !important; }
  .jg-editor-progress { width: min(100%,31.375rem); margin-bottom: 2px; padding: 9px 10px 10px; border-radius: 12px; }
  .jg-editor-help-btn { width: 29px; min-height: 29px; justify-content: center; padding: 0; }
  .jg-editor-help-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .jg-editor-progress__label { font-size: 10.5px; }
  .jg-help-sheet { top: auto; bottom: 0; width: 100%; height: min(88dvh,680px); border: 0; border-top: 1px solid rgba(15,23,42,.1); border-radius: 18px 18px 0 0; transform: translateY(102%); }
  .jg-help-sheet.is-open { transform: translateY(0); }
  .jg-tour {
    width: min(272px, calc(100vw - 32px));
    max-width: 272px;
    padding: 9px 10px 10px;
    border-radius: 11px;
    border-color: rgba(15,23,42,.1);
    box-shadow:
      0 1px 2px rgba(15,23,42,.05),
      0 8px 20px rgba(15,23,42,.12);
  }
  .jg-tour__meta { font-size: 9px; font-weight: 700; }
  .jg-tour__meta button { font-size: 10.5px; font-weight: 600; }
  .jg-tour h2 { margin: 4px 0 2px; font-size: 13px; font-weight: 700; }
  .jg-tour p { font-size: 11px; line-height: 1.35; color: #64748b; }
  .jg-tour__actions { gap: 5px; margin-top: 8px; }
  .jg-tour__actions button { min-height: 28px; padding: 4px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; }
  .jg-cart-attention,.jg-tour-target {
    outline-width: 1.5px !important;
    outline-offset: 1px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .jg-help-backdrop,.jg-help-sheet { transition: none; }
  .jg-tour.is-open { animation: none; opacity: 1; transform: none; }
}

/* Header & Navigation (kept in sync with slim prestige header above) */
header {
  background: #ffffff;
  box-shadow: none;
  position: relative;
  z-index: 2000;
}
header a {
  color: #0f172a;
  transition: color .2s ease;
}
header a:hover {
  color: #B61C1E;
  font-weight: 600;
}
.header-button {
  background: transparent;
  color: #0f172a;
  border-radius: 999px;
  box-shadow: none;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.header-button:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

/* 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: 8px;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease, color .15s ease;
}
.toolbar-item:hover,
.toolbar-item.active {
  transform: none;
  box-shadow: none;
}
.editor-toolbar .toolbar-item:hover {
  border-color: rgba(15, 23, 42, 0.12);
}
.editor-toolbar .toolbar-item.active {
  background-color: rgba(109, 40, 217, 0.10);
  border-color: rgba(109, 40, 217, 0.28);
  color: #5b21b6;
}
.editor-toolbar .toolbar-item--primary:hover,
.editor-toolbar .toolbar-item--primary.active {
  background-color: #5b21b6;
  border-color: #5b21b6;
  color: #fff;
}

/* 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: #f8fafc;
  box-shadow:
    1px 0 0 rgba(15, 23, 42, 0.06),
    16px 0 40px rgba(15, 23, 42, 0.12);
}

/* 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.22);
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  display: none;
  overflow: visible;
}
.alignment-guide.horizontal {
  background-color: rgba(225, 29, 47, 0.22);
  height: 1px;
  width: 100%;
  left: 0;
}
.alignment-guide.vertical {
  background-color: rgba(225, 29, 47, 0.22);
  width: 1px;
  height: 100%;
  top: 0;
}
.alignment-guide__seg {
  position: absolute;
  background-color: var(--color-primary, #e11d2f);
  pointer-events: none;
  box-shadow: 0 0 0 0.5px rgba(225, 29, 47, 0.35);
}
.alignment-guide__tick {
  position: absolute;
  background-color: var(--color-primary, #e11d2f);
  pointer-events: none;
  display: block;
}
.alignment-guide.is-active {
  display: block;
}
.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: 14px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.kisi-bilgileri-panel .panel-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

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

/* Brand ribbon — slim prestige strip (pairs with compact header) */
.jg-announce-bar {
  background: #f8fafc;
  color: #0f172a;
  position: relative;
  z-index: 2002;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0;
  box-shadow: none;
  line-height: 1.1;
}
.jg-announce-bar > .container,
body.jg-kv-page .jg-announce-bar > .container {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0 auto;
  padding: 0 12px !important;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jg-announce-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
  min-height: 0;
}
.jg-announce-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.jg-announce-text {
  color: #0f172a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.jg-announce-sub {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.jg-announce-sub::before {
  content: "·";
  margin-right: 8px;
  color: #cbd5e1;
}
@media (min-width: 769px) {
  .jg-announce-text {
    font-size: 11.5px;
  }
}
@media (max-width: 768px) {
  .jg-announce-bar {
    height: 24px;
  }
  .jg-announce-text {
    font-size: 10px;
    letter-spacing: 0.01em;
  }
  .jg-announce-sub {
    display: none;
  }
}
@media (max-width: 380px) {
  .jg-announce-text {
    font-size: 9.5px;
  }
}

/* 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;
}

body.dark-mode .jg-announce-bar {
    background: #000000 !important;
    color: #f3f4f6 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .jg-announce-text {
    color: #f3f4f6 !important;
}
body.dark-mode .jg-announce-sub {
    color: #94a3b8 !important;
}

.jg-ref-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37,99,235,0.22);
    background: rgba(37,99,235,0.08);
    color: #0f172a;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    margin-right: 8px;
}
.jg-ref-countdown .jg-ref-time {
    padding: 3px 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
body.dark-mode .jg-ref-countdown {
    border-color: rgba(147,197,253,0.22);
    background: rgba(37,99,235,0.14);
    color: #fff;
}

.jg-vip-promo-box { color: #0f172a; }
.jg-vip-promo-box .jg-vip-promo-title { font-weight: 900; color: #0f172a; }
.jg-vip-promo-box .jg-vip-promo-lead { margin-top: 6px; font-weight: 900; color: #0f172a; }
.jg-vip-promo-box .jg-vip-promo-body { margin-top: 10px; font-weight: 800; line-height: 1.35; color: #0f172a; }
.jg-vip-promo-box .jg-vip-promo-tagline { margin-top: 8px; font-weight: 900; color: #0f172a; }
body.dark-mode .jg-vip-promo-box { color: #ffffff; }
body.dark-mode .jg-vip-promo-box .jg-vip-promo-title { color: #ffffff; }
body.dark-mode .jg-vip-promo-box .jg-vip-promo-lead { color: #ffffff; }
body.dark-mode .jg-vip-promo-box .jg-vip-promo-body { color: #e5e7eb; }
body.dark-mode .jg-vip-promo-box .jg-vip-promo-tagline { color: #e5e7eb; }

/* 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;
    }
}

/* Editor — Baskı Güvencesi trust card (above canvas) */
.jg-baski-guvence {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 4px;
  padding: 12px 38px 22px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-align: left;
  box-sizing: border-box;
  max-width: 100%;
  transition: padding .2s ease, box-shadow .2s ease, width .2s ease;
}
.jg-baski-guvence__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.jg-baski-guvence__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  transform: scale(1.04);
}
.jg-baski-guvence__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}
.jg-baski-guvence__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  line-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
  border-radius: 11px;
}
.jg-baski-guvence.is-collapsed .jg-baski-guvence__icon {
  cursor: pointer;
}
.jg-baski-guvence__icon svg {
  display: block;
  pointer-events: none;
}
.jg-baski-guvence.is-collapsed {
  display: inline-flex !important;
  width: auto !important;
  max-width: none;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0;
  margin: 0 0 4px;
  padding: 4px;
  border-radius: 12px;
  cursor: pointer;
}
.jg-baski-guvence.is-collapsed .jg-baski-guvence__body,
.jg-baski-guvence.is-collapsed .jg-baski-guvence__sign,
.jg-baski-guvence.is-collapsed .jg-baski-guvence__close {
  display: none !important;
}
.jg-baski-guvence.is-collapsed .jg-baski-guvence__icon {
  margin: 0;
}
.jg-baski-guvence__body {
  flex: 1 1 auto;
  min-width: 0;
}
.jg-baski-guvence__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.jg-baski-guvence__title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  line-height: 1.2;
}
.jg-baski-guvence__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f8fafc;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.jg-baski-guvence__badge svg {
  flex: 0 0 auto;
  opacity: 0.9;
}
.jg-baski-guvence__msg {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #475569;
}
.jg-baski-guvence__msg strong {
  font-weight: 700;
  color: #0f172a;
}
.jg-baski-guvence__sign {
  position: absolute;
  right: 14px;
  bottom: 5px;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(100, 116, 139, 0.72);
  pointer-events: none;
  user-select: none;
}
body.dark-mode .jg-baski-guvence {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: none;
  color: #e2e8f0;
}
body.dark-mode .jg-baski-guvence__close {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
body.dark-mode .jg-baski-guvence__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}
body.dark-mode .jg-baski-guvence__title {
  color: #f8fafc;
}
body.dark-mode .jg-baski-guvence__badge {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
}
body.dark-mode .jg-baski-guvence__msg {
  color: #cbd5e1;
}
body.dark-mode .jg-baski-guvence__msg strong {
  color: #f1f5f9;
}
body.dark-mode .jg-baski-guvence__sign {
  color: rgba(148, 163, 184, 0.65);
}
@media (max-width: 768px) {
  /* Faz 7 — same Baskı Güvencesi card as web, compact for mobile */
  body.editor-page .jg-mobile-trust {
    display: none !important;
  }
  body.editor-page .jg-baski-guvence,
  body.editor-page #editor-review-note {
    display: flex;
    width: min(100%, 31.375rem);
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
    padding: 10px 34px 18px 12px;
    border-radius: 12px;
  }
  body.editor-page .jg-baski-guvence.is-collapsed,
  body.editor-page #editor-review-note.is-collapsed {
    display: inline-flex !important;
    width: auto !important;
    margin-left: 0.5rem;
    margin-right: auto;
    padding: 3px;
    gap: 0;
  }
  .jg-baski-guvence__icon {
    width: 30px;
    height: 30px;
  }
  .jg-baski-guvence__icon svg {
    width: 30px;
    height: 30px;
  }
  .jg-baski-guvence__title {
    font-size: 12.5px;
  }
  .jg-baski-guvence__badge {
    font-size: 10px;
    padding: 2px 7px;
  }
  .jg-baski-guvence__msg {
    font-size: 11.5px;
    line-height: 1.4;
  }
  .jg-baski-guvence__sign {
    right: 12px;
    bottom: 4px;
    font-size: 12px;
  }
}

/* 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;
    }
}

/* =========================================================
   Editor UX Faz 3 — Workspace polish
   ========================================================= */
body.editor-page {
  --jg-stage-0: #eef1f5;
  --jg-stage-1: #e6ebf1;
  --jg-stage-2: #e3e8ef;
  --jg-panel-bg: #f8fafc;
  --jg-panel-ink: #0f172a;
  --jg-panel-muted: #64748b;
  --jg-panel-line: rgba(15, 23, 42, 0.08);
  --jg-elev-1: 0 1px 2px rgba(15, 23, 42, 0.04);
  --jg-elev-2: 0 10px 28px rgba(15, 23, 42, 0.10);

  /* Faz 5 — editor chrome tokens */
  --jg-editor-bg: var(--jg-stage-0);
  --jg-editor-surface: #ffffff;
  --jg-editor-surface-soft: #f8fafc;
  --jg-editor-border: rgba(15, 23, 42, 0.08);
  --jg-editor-border-strong: rgba(15, 23, 42, 0.14);
  --jg-editor-text: #0f172a;
  --jg-editor-text-muted: #64748b;
  --jg-editor-text-soft: #94a3b8;
  --jg-editor-accent: #6d28d9;
  --jg-editor-accent-hover: #5b21b6;
  --jg-editor-toolbar-bg: rgba(255, 255, 255, 0.78);
  --jg-editor-toolbar-line: rgba(15, 23, 42, 0.08);
  --jg-editor-toolbar-label: #64748b;
  --jg-editor-toolbar-ink: #1e293b;
  --jg-editor-toolbar-item: rgba(15, 23, 42, 0.035);
  --jg-editor-toolbar-item-hover: rgba(15, 23, 42, 0.07);
  --jg-editor-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --jg-editor-shadow-md:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.08);
  --jg-editor-shadow-lg:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(15, 23, 42, 0.12);
  --jg-editor-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jg-editor-dur: 180ms;
  --jg-editor-dur-fast: 140ms;
}

.kisi-panel-head {
  margin: 2px 0 2px;
  padding-right: 28px;
}

.kisi-panel-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--jg-panel-muted);
  font-weight: 500;
}

.kisi-panel-section {
  background: #fff;
  border: 1px solid var(--jg-panel-line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--jg-elev-1);
}

.kisi-panel-section + .kisi-panel-section,
.kisi-panel-section + .kisi-panel-actions,
form#kisiBilgileriForm > .kisi-panel-section + .kisi-panel-section {
  margin-top: 0;
}

.kisi-bilgileri-panel form#kisiBilgileriForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kisi-panel-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px;
}

.kisi-panel-section .form-group {
  margin-bottom: 12px;
}

.kisi-panel-section .form-group:last-child {
  margin-bottom: 0;
}

.kisi-panel-section--autofill {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.kisi-panel-hint {
  margin: 4px 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--jg-panel-muted);
}

.kisi-autofill-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.kisi-autofill-btn:hover {
  background: #1e293b;
}

.kisi-autofill-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.kisi-autofill-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
}

.kisi-panel-actions {
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.kisi-bilgileri-panel .kisi-panel-actions button[type="submit"] {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary, #e11d2f);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(225, 29, 47, 0.22);
}

.kisi-bilgileri-panel .kisi-panel-actions button[type="submit"]:hover {
  background: var(--color-primary-dark, #b31223);
}

.kisi-bilgileri-panel .input-with-icon {
  box-shadow: none;
  border-color: rgba(15, 23, 42, 0.10);
  background: #fff;
}

.kisi-bilgileri-panel .input-with-icon:focus-within {
  border-color: rgba(15, 23, 42, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.card-canvas.active {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.12),
    0 12px 30px rgba(15, 23, 42, 0.12);
}

body.editor-page .jg-baski-guvence {
  width: min(100%, 502px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  body.editor-page .design-labels {
    width: min(100%, 31.375rem);
    margin: 0.35rem auto 0.15rem;
    justify-content: flex-start;
  }
  body.editor-page .design-label {
    font-size: 0.88rem;
    padding: 0;
    letter-spacing: -0.015em;
  }
  .kisi-bilgileri-panel {
    width: min(340px, 92vw);
    padding: 16px 14px 24px;
  }
}

/* =========================================================
   Editor UX Faz 5 — Premium detaylar
   Micro-motion, hover, typography, elevation (tokens above)
   ========================================================= */

/* —— Toolbar (light frosted / Apple chrome) —— */
body.editor-page .editor-toolbar {
  background: var(--jg-editor-toolbar-bg);
  border-bottom-color: var(--jg-editor-toolbar-line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 0 rgba(15, 23, 42, 0.04);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

body.editor-page .editor-toolbar .toolbar-label {
  color: var(--jg-editor-toolbar-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.editor-page .editor-toolbar .toolbar-section,
body.editor-page .editor-toolbar .toolbar-group {
  border-right-color: var(--jg-editor-toolbar-line);
}

body.editor-page .toolbar-item {
  background-color: var(--jg-editor-toolbar-item);
  border-color: rgba(15, 23, 42, 0.07);
  color: var(--jg-editor-toolbar-ink);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    color var(--jg-editor-dur) var(--jg-editor-ease),
    opacity var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .toolbar-item:hover {
  background-color: var(--jg-editor-toolbar-item-hover);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
  transform: none;
}

body.editor-page .toolbar-item:active {
  transform: scale(0.97);
  box-shadow: none;
}

body.editor-page .editor-toolbar .toolbar-item.active {
  background-color: rgba(109, 40, 217, 0.10);
  border-color: rgba(109, 40, 217, 0.28);
  color: var(--jg-editor-accent);
  box-shadow: none;
  transform: none;
}

body.editor-page .editor-toolbar .toolbar-color-label {
  background-color: var(--jg-editor-toolbar-item);
  border-color: rgba(15, 23, 42, 0.08);
}

body.editor-page .editor-toolbar .toolbar-color-label:hover {
  background-color: var(--jg-editor-toolbar-item-hover);
  border-color: rgba(15, 23, 42, 0.12);
}

body.editor-page .editor-toolbar .toolbar-color-caption {
  color: var(--jg-editor-toolbar-label);
}

body.editor-page .editor-toolbar .toolbar-item--icon,
body.editor-page .editor-toolbar .toolbar-item--quiet {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 0.9;
  color: #475569;
}

body.editor-page .editor-toolbar .toolbar-item--icon:hover,
body.editor-page .editor-toolbar .toolbar-item--quiet:hover {
  background-color: rgba(15, 23, 42, 0.06);
  border-color: transparent;
  opacity: 1;
  color: var(--jg-editor-text);
  transform: none;
  box-shadow: none;
}

body.editor-page .editor-toolbar .toolbar-item--icon.active {
  background-color: rgba(109, 40, 217, 0.10);
  border-color: transparent;
  color: var(--jg-editor-accent);
}

body.editor-page .editor-toolbar .toolbar-item--primary {
  background-color: var(--jg-editor-accent);
  border-color: var(--jg-editor-accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  opacity: 1;
}

body.editor-page .editor-toolbar .toolbar-item--primary:hover,
body.editor-page .editor-toolbar .toolbar-item--primary.active {
  background-color: var(--jg-editor-accent-hover);
  border-color: var(--jg-editor-accent-hover);
  color: #fff;
  box-shadow: none;
  transform: none;
}

body.editor-page .editor-toolbar .toolbar-item--primary:active {
  transform: scale(0.98);
  box-shadow: none;
}

body.editor-page .editor-toolbar select.toolbar-item,
body.editor-page .editor-toolbar input.toolbar-item:not([type="color"]) {
  background-color: var(--jg-editor-toolbar-item);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

body.editor-page .editor-toolbar select.toolbar-item:hover,
body.editor-page .editor-toolbar input.toolbar-item:not([type="color"]):hover {
  background-color: var(--jg-editor-toolbar-item-hover);
  border-color: rgba(15, 23, 42, 0.12);
}

body.editor-page .editor-toolbar .toolbar-row--secondary {
  border-top-color: var(--jg-editor-toolbar-line);
  justify-content: center;
}

body.editor-page .download-grid {
  border-color: var(--jg-editor-border);
  border-radius: 14px;
  box-shadow: var(--jg-editor-shadow-lg);
  transition:
    opacity var(--jg-editor-dur) var(--jg-editor-ease),
    visibility var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .download-grid.show-grid {
  animation: jg-editor-panel-in var(--jg-editor-dur) var(--jg-editor-ease) both;
}

body.editor-page .download-grid .grid-item {
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur-fast) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .download-grid .grid-item:hover {
  transform: translateY(-1px);
}

body.editor-page .download-grid .grid-item:active {
  transform: scale(0.98);
}

/* —— Stage / canvas —— */
body.editor-page .editor-canvas-area {
  /* Survive toolbar chrome changes: gap lives on content, not toolbar height */
  margin-top: 0;
  padding-top: 12px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, var(--jg-stage-0) 0%, var(--jg-stage-1) 48%, var(--jg-stage-2) 100%);
}

body.editor-page .design-label {
  color: var(--jg-editor-text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.editor-page .card-canvas {
  border-color: var(--jg-editor-border);
  box-shadow:
    var(--jg-editor-shadow-sm),
    0 12px 32px rgba(15, 23, 42, 0.10),
    0 28px 48px rgba(15, 23, 42, 0.04);
  transition:
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .card-canvas.active {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.10),
    0 14px 34px rgba(15, 23, 42, 0.12),
    0 28px 48px rgba(15, 23, 42, 0.05);
}

/* —— Bottom-right stack (nudge + zoom) —— */
body.editor-page .workspace-br-stack {
  gap: 10px;
}

body.editor-page .nudge-control,
body.editor-page .zoom-control {
  border-color: var(--jg-editor-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--jg-editor-shadow-md);
  transition:
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .nudge-control:hover,
body.editor-page .zoom-control:hover {
  border-color: var(--jg-editor-border-strong);
  box-shadow: var(--jg-editor-shadow-lg);
}

body.editor-page .nudge-control__btn,
body.editor-page .zoom-control__btn {
  background: var(--jg-editor-surface-soft);
  color: #334155;
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur-fast) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .nudge-control__btn:hover,
body.editor-page .zoom-control__btn:hover {
  background: #e8eef5;
  color: var(--jg-editor-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

body.editor-page .nudge-control__btn:active,
body.editor-page .zoom-control__btn:active {
  background: #dbe3ee;
  transform: scale(0.94);
  box-shadow: none;
}

body.editor-page .nudge-control__btn svg,
body.editor-page .zoom-control__btn svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

body.editor-page .editor-toolbar .toolbar-item svg {
  display: block;
  flex: 0 0 auto;
}

body.editor-page .zoom-control #zoom-percent,
body.editor-page .zoom-control .zoom-control__pct {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--jg-editor-text);
}

/* —— Left template panel (mobile / narrow) —— */
body.editor-page .template-toggle {
  border-color: var(--jg-editor-border);
  background: var(--jg-editor-surface);
  box-shadow: var(--jg-editor-shadow-sm);
  color: var(--jg-editor-text-muted);
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    color var(--jg-editor-dur) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .template-toggle:hover {
  background: var(--jg-editor-surface-soft);
  border-color: var(--jg-editor-border-strong);
  color: var(--jg-editor-text);
  box-shadow: var(--jg-editor-shadow-md);
}

body.editor-page .template-panel {
  border-color: var(--jg-editor-border);
  background: var(--jg-editor-surface);
  border-radius: 12px;
  box-shadow: var(--jg-editor-shadow-sm);
}

body.editor-page .panel-header {
  background: var(--jg-editor-surface);
  border-bottom-color: var(--jg-editor-border);
  padding: 12px;
}

body.editor-page .panel-search {
  border-color: var(--jg-editor-border-strong);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jg-editor-text);
  background: var(--jg-editor-surface-soft);
  transition:
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease),
    background-color var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .panel-search:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.28);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

body.editor-page .panel-tab {
  border-color: var(--jg-editor-border);
  background: var(--jg-editor-surface-soft);
  color: var(--jg-editor-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    color var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur-fast) var(--jg-editor-ease);
}

body.editor-page .panel-tab:hover {
  border-color: var(--jg-editor-border-strong);
  color: var(--jg-editor-text);
  background: #fff;
  transform: translateY(-1px);
}

body.editor-page .panel-tab.active {
  background: var(--jg-editor-text);
  border-color: var(--jg-editor-text);
  color: #fff;
  transform: none;
}

body.editor-page .template-item {
  border-color: var(--jg-editor-border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur) var(--jg-editor-ease);
  animation: jg-editor-card-in 220ms var(--jg-editor-ease) both;
}

body.editor-page .template-item:hover {
  border-color: var(--jg-editor-border-strong);
  box-shadow: var(--jg-editor-shadow-md);
  transform: translateY(-2px);
}

body.editor-page .panel-note {
  color: var(--jg-editor-text-muted) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* —— Kişi paneli —— */
body.editor-page .kisi-panel-section {
  transition:
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .kisi-panel-section:hover {
  border-color: var(--jg-editor-border-strong);
  box-shadow: var(--jg-editor-shadow-md);
}

body.editor-page .kisi-panel-section-label {
  color: var(--jg-editor-text-soft);
  font-size: 10.5px;
  letter-spacing: 0.07em;
}

body.editor-page .kisi-autofill-btn {
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    opacity var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur-fast) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .kisi-autofill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

body.editor-page .kisi-autofill-btn:active {
  transform: scale(0.98);
}

body.editor-page .kisi-bilgileri-panel .kisi-panel-actions button[type="submit"] {
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur-fast) var(--jg-editor-ease),
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .kisi-bilgileri-panel .kisi-panel-actions button[type="submit"]:hover {
  transform: translateY(-1px);
}

body.editor-page .kisi-bilgileri-panel .kisi-panel-actions button[type="submit"]:active {
  transform: scale(0.98);
}

/* —— Baskı Güvencesi —— */
body.editor-page .jg-baski-guvence {
  border-color: var(--jg-editor-border);
  background: var(--jg-editor-surface);
  box-shadow: var(--jg-editor-shadow-md);
  transition:
    box-shadow var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease),
    transform var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .jg-baski-guvence:hover {
  border-color: var(--jg-editor-border-strong);
  box-shadow: var(--jg-editor-shadow-lg);
  transform: translateY(-1px);
}

body.editor-page .jg-baski-guvence__title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--jg-editor-text);
}

body.editor-page .jg-baski-guvence__badge {
  border-color: var(--jg-editor-border);
  background: var(--jg-editor-surface-soft);
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background-color var(--jg-editor-dur) var(--jg-editor-ease),
    border-color var(--jg-editor-dur) var(--jg-editor-ease);
}

body.editor-page .jg-baski-guvence:hover .jg-baski-guvence__badge {
  background: #f1f5f9;
  border-color: var(--jg-editor-border-strong);
}

body.editor-page .jg-baski-guvence__msg {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--jg-editor-text-muted);
}

/* —— Keyframes + reduced motion —— */
@keyframes jg-editor-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes jg-editor-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editor-page .toolbar-item,
  body.editor-page .editor-toolbar .toolbar-item--primary,
  body.editor-page .nudge-control,
  body.editor-page .zoom-control,
  body.editor-page .nudge-control__btn,
  body.editor-page .zoom-control__btn,
  body.editor-page .template-toggle,
  body.editor-page .template-item,
  body.editor-page .panel-tab,
  body.editor-page .panel-search,
  body.editor-page .kisi-panel-section,
  body.editor-page .kisi-autofill-btn,
  body.editor-page .kisi-bilgileri-panel .kisi-panel-actions button[type="submit"],
  body.editor-page .jg-baski-guvence,
  body.editor-page .jg-baski-guvence__badge,
  body.editor-page .card-canvas,
  body.editor-page .download-grid,
  body.editor-page .download-grid .grid-item {
    transition: none !important;
    animation: none !important;
  }

  body.editor-page .toolbar-item:hover,
  body.editor-page .toolbar-item:active,
  body.editor-page .editor-toolbar .toolbar-item--primary:hover,
  body.editor-page .editor-toolbar .toolbar-item--primary:active,
  body.editor-page .nudge-control__btn:hover,
  body.editor-page .nudge-control__btn:active,
  body.editor-page .zoom-control__btn:hover,
  body.editor-page .zoom-control__btn:active,
  body.editor-page .template-item:hover,
  body.editor-page .panel-tab:hover,
  body.editor-page .kisi-autofill-btn:hover,
  body.editor-page .kisi-autofill-btn:active,
  body.editor-page .kisi-bilgileri-panel .kisi-panel-actions button[type="submit"]:hover,
  body.editor-page .kisi-bilgileri-panel .kisi-panel-actions button[type="submit"]:active,
  body.editor-page .jg-baski-guvence:hover,
  body.editor-page .download-grid .grid-item:hover,
  body.editor-page .download-grid .grid-item:active {
    transform: none !important;
  }

  body.editor-page .download-grid.show-grid,
  body.editor-page .template-item {
    animation: none !important;
  }
}

/* Dark mode — keep elevation soft / neutral */
body.dark-mode.editor-page {
  --jg-editor-surface: rgba(15, 23, 42, 0.94);
  --jg-editor-surface-soft: rgba(30, 41, 59, 0.9);
  --jg-editor-border: rgba(148, 163, 184, 0.18);
  --jg-editor-border-strong: rgba(148, 163, 184, 0.28);
  --jg-editor-text: #f1f5f9;
  --jg-editor-text-muted: #94a3b8;
  --jg-editor-text-soft: #64748b;
  --jg-editor-toolbar-bg: rgba(15, 23, 42, 0.82);
  --jg-editor-toolbar-line: rgba(148, 163, 184, 0.14);
  --jg-editor-toolbar-label: #94a3b8;
  --jg-editor-toolbar-ink: #e2e8f0;
  --jg-editor-toolbar-item: rgba(148, 163, 184, 0.08);
  --jg-editor-toolbar-item-hover: rgba(148, 163, 184, 0.14);
  --jg-editor-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --jg-editor-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --jg-editor-shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.45);
}

body.dark-mode.editor-page .nudge-control,
body.dark-mode.editor-page .zoom-control {
  background: rgba(15, 23, 42, 0.94);
}

body.dark-mode.editor-page .nudge-control__btn,
body.dark-mode.editor-page .zoom-control__btn {
  background: rgba(30, 41, 59, 0.95);
  color: #cbd5e1;
}

body.dark-mode.editor-page .nudge-control__btn:hover,
body.dark-mode.editor-page .zoom-control__btn:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #f8fafc;
}

body.dark-mode.editor-page .toolbar-item {
  background: var(--jg-editor-toolbar-item);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--jg-editor-toolbar-ink);
}

body.dark-mode.editor-page .toolbar-item:hover {
  background: var(--jg-editor-toolbar-item-hover);
  border-color: rgba(148, 163, 184, 0.28);
}

body.dark-mode.editor-page .editor-toolbar .toolbar-item--icon,
body.dark-mode.editor-page .editor-toolbar .toolbar-item--quiet {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
}

body.dark-mode.editor-page .editor-toolbar .toolbar-item--icon:hover,
body.dark-mode.editor-page .editor-toolbar .toolbar-item--quiet:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: transparent;
  color: #f1f5f9;
}

@media (max-width: 768px) {
  body.editor-page .nudge-control__btn,
  body.editor-page .zoom-control__btn {
    width: 30px;
    height: 30px;
  }
}

/* =========================================================
   Editor UX Faz 6 — Conversion / Baskıya Gönder
   Confirm modal (sticky bar lives in editor.html; slimmed 20260715-conv2)
   ========================================================= */

body.jg-print-ready-open {
  overflow: hidden;
}

.jg-print-ready-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    visibility var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.jg-print-ready-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.jg-print-ready-overlay[hidden] {
  display: none !important;
}

.jg-print-ready {
  width: min(100%, 28.5rem);
  max-height: min(92vh, 40rem);
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
  border-bottom: 0;
  background: var(--jg-editor-surface, #fff);
  color: var(--jg-editor-text, #0f172a);
  box-shadow: var(--jg-editor-shadow-lg, 0 14px 36px rgba(15, 23, 42, 0.12));
  transform: translateY(1.25rem);
  transition: transform var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1));
  overflow: hidden;
}

.jg-print-ready-overlay.is-open .jg-print-ready {
  transform: translateY(0);
}

.jg-print-ready__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.7rem;
  border-bottom: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
}

.jg-print-ready__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jg-editor-accent, #6d28d9);
  margin-bottom: 0.2rem;
}

.jg-print-ready__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.jg-print-ready__close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
  background: var(--jg-editor-surface-soft, #f8fafc);
  color: var(--jg-editor-text-muted, #64748b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.jg-print-ready__close:hover {
  color: var(--jg-editor-text, #0f172a);
  border-color: var(--jg-editor-border-strong, rgba(15, 23, 42, 0.14));
}

.jg-print-ready__body {
  padding: 0.95rem 1.1rem 0.35rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.jg-print-ready__preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jg-print-ready__preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jg-print-ready__preview {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 10.5rem;
  border-radius: 0.9rem;
  border: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
}

.jg-print-ready__preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.jg-print-ready__clone-host {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  flex: 0 0 auto;
}

.jg-print-ready__clone {
  flex: 0 0 auto !important;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.jg-print-ready__preview-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--jg-editor-text-muted, #64748b);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1rem;
}

.jg-print-ready__preview-ph i {
  font-size: 1.35rem;
  color: var(--jg-editor-accent, #6d28d9);
  opacity: 0.85;
}

.jg-print-ready__nav {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--jg-editor-border-strong, rgba(15, 23, 42, 0.14));
  border-radius: 999px;
  background: var(--jg-editor-surface, #fff);
  color: var(--jg-editor-text, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition:
    transform var(--jg-editor-dur-fast, 140ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    background-color var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.jg-print-ready__nav[hidden] {
  display: none !important;
}

.jg-print-ready__nav:hover {
  background: #f8fafc;
}

.jg-print-ready__nav:active {
  transform: scale(0.96);
}

.jg-print-ready__nav i {
  font-size: 0.85rem;
  line-height: 1;
}

.jg-print-ready__preview-cap {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jg-editor-text-soft, #94a3b8);
  text-align: center;
  min-height: 1rem;
}

.jg-print-ready__summary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jg-print-ready__product {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--jg-editor-text, #0f172a);
}

.jg-print-ready__meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jg-editor-text-muted, #64748b);
}

.jg-print-ready__price-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
  background: var(--jg-editor-surface-soft, #f8fafc);
}

.jg-print-ready__price-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jg-editor-text-muted, #64748b);
}

.jg-print-ready__price {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--jg-editor-text, #0f172a);
  text-align: right;
}

.jg-print-ready__price.is-loading {
  color: var(--jg-editor-text-soft, #94a3b8);
  font-size: 0.95rem;
}

.jg-print-ready__trust {
  margin-top: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(109, 40, 217, 0.14);
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 55%, #f8fafc 100%);
}

.jg-print-ready__trust-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
  color: var(--jg-editor-text, #0f172a);
}

.jg-print-ready__trust-title i {
  color: var(--jg-editor-accent, #6d28d9);
}

.jg-print-ready__trust-title strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.jg-print-ready__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: #5b21b6;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.jg-print-ready__trust p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: #475569;
}

.jg-print-ready__trust p strong {
  font-weight: 800;
  color: #0f172a;
}

.jg-print-ready__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
  background: var(--jg-editor-surface, #fff);
}

.jg-print-ready__btn {
  border: none;
  border-radius: 0.8rem;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    transform var(--jg-editor-dur-fast, 140ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    background-color var(--jg-editor-dur, 180ms) var(--jg-editor-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.jg-print-ready__btn:active {
  transform: scale(0.985);
}

.jg-print-ready__btn--ghost {
  background: var(--jg-editor-surface-soft, #f8fafc);
  color: var(--jg-editor-text, #0f172a);
  border: 1px solid var(--jg-editor-border-strong, rgba(15, 23, 42, 0.14));
}

.jg-print-ready__btn--ghost:hover {
  background: #f1f5f9;
}

.jg-print-ready__btn--primary {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 55%, #5b21b6 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 20px rgba(109, 40, 217, 0.32);
}

.jg-print-ready__btn--primary:hover {
  filter: brightness(1.04);
}

@media (min-width: 769px) {
  .jg-print-ready-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .jg-print-ready {
    border-radius: 1.15rem;
    border-bottom: 1px solid var(--jg-editor-border, rgba(15, 23, 42, 0.08));
    transform: translateY(0.6rem) scale(0.98);
  }

  .jg-print-ready-overlay.is-open .jg-print-ready {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 420px) {
  .jg-print-ready__actions {
    grid-template-columns: 1fr;
  }

  .jg-print-ready__btn--ghost {
    order: 2;
  }
}

body.dark-mode .jg-print-ready {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
}

body.dark-mode .jg-print-ready__close,
body.dark-mode .jg-print-ready__btn--ghost,
body.dark-mode .jg-print-ready__price-block,
body.dark-mode .jg-print-ready__nav {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

body.dark-mode .jg-print-ready__trust {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.35) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-color: rgba(167, 139, 250, 0.28);
}

body.dark-mode .jg-print-ready__trust p {
  color: #cbd5e1;
}

body.dark-mode .jg-print-ready__trust p strong,
body.dark-mode .jg-print-ready__product,
body.dark-mode .jg-print-ready__price {
  color: #f8fafc;
}

@media (max-width: 768px) {
  .jg-print-ready__nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .jg-print-ready__preview-stage {
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jg-print-ready-overlay,
  .jg-print-ready,
  .jg-print-ready__btn,
  .jg-print-ready__nav {
    transition: none !important;
  }
}
