/* ======================================================
   0. DEĞİŞKENLER VE TEMEL AYARLAR
   ====================================================== */
:root {
    /* ANA RENKLER */
    --primary-color: rgb(50, 0, 178);
    --primary-hover: rgba(50, 0, 178, 0.1);

    /* ARKA PLANLAR */
    --bg-body: #f0f0f0;
    --bg-preview: #2d303f;
    --bg-panel: #ffffff;
    --bg-tabs: rgba(129, 129, 129, 0.05);

    /* YAZI RENKLERİ */
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #dddddd;

    /* ÇERÇEVE VE GÖLGELER */
    --border-color: #dddddd;
    --shadow-soft: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Yardımcı Sınıflar */
.mt-20 {
    margin-top: 20px;
}

.mt-25 {
    margin-top: 25px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-50 {
    margin-bottom: 50px;
}

.fs-16 {
    font-size: 16px;
}


/* ======================================================
   1. ANA İSKELET (WRAPPER)
   ====================================================== */
.designer-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 700px;
}


/* ======================================================
   2. PREVIEW (ÖNİZLEME) ALANI
   ====================================================== */
.preview-section {
    flex: 0 0 60%;
    color: var(--text-light);
    background-color: var(--bg-preview);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    z-index: 0;
}

.design-canvas {
    width: 90%;
    min-height: 300px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 20px;
}

.price-tag {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 28px;
    z-index: 10;
}

/* ======================================================
   3. ANA TABAKA (BACKING LAYER) ve DİNAMİK LEVHA
   ====================================================== */
.canvas-content {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    padding: 10px;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    /* Kelimelerin container dışına çıkabilmesi için */
}

/* HEM KARE HEM STAND İÇİN ORTAK KUTU STİLİ */
/* Bu sınıflar JS tarafından oluşturulan dinamik levhaya verilir */
.cut-square,
.cut-stand {
    border-radius: 12px;
    /* Boyut ve pozisyon JS tarafından verilir, burada padding veya margin olmamalı */
    box-sizing: border-box;
    /* Kenarlıklar boyutu etkilemesin */
}

/* AYAKLAR (FEET) - SADECE STAND İÇİN */
.cut-stand::before,
.cut-stand::after {
    content: '';
    position: absolute;
    width: clamp(15px, 20%, 60px);
    height: 15px;
    bottom: -15px;
    /* Kutunun hemen altına yapışık */

    /* Arka plan ve Border özelliklerini ana kutudan miras al */
    background: inherit;
    border: inherit;
    border-top: none;
    /* Kutunun birleştiği yerde çizgi olmasın */
    box-shadow: inherit;

    border-radius: 0 0 5px 5px;
    z-index: 1;
    pointer-events: none;
}

/* SOL VE SAĞ AYAK KONUMLARI — clamp ile dar levhalarda üst üste binme engellenir */
.cut-stand::before {
    left: clamp(8px, 15%, 60px);
}

.cut-stand::after {
    right: clamp(8px, 15%, 60px);
}


/* ======================================================
   4. NEON YAZI
   ====================================================== */
.neon-text {
    font-family: 'Neonderthaw', cursive;
    white-space: nowrap;
    font-size: 58px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.2s ease, text-shadow 0.2s ease, -webkit-text-stroke-color 0.2s ease;
    position: relative;
    z-index: 2;
    line-height: 1;
    max-width: 100%;
}

.neon-word {
    display: inline-block;
    cursor: move;
    position: relative;
    z-index: 500;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    white-space: pre;
    margin: 0 0.2em;
    transition: transform 0.05s linear;
}

.neon-word.dragging {
    opacity: 0.8;
    z-index: 1000;
    transform: scale(1.05);
}


/* ======================================================
   5. ÖLÇÜ ÇİZGİLERİ
   ====================================================== */
.measure-line {
    position: absolute;
    background-color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.1s linear;
    z-index: 50;
}

.measure-label {
    background-color: var(--bg-preview);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 51;
}

.measure-height {
    left: -15px;
    top: 0;
    bottom: 0;
    width: 1px;
    flex-direction: column;
}

.measure-width {
    bottom: -15px;
    left: 0;
    right: 0;
    height: 1px;
    flex-direction: row;
}

.measure-height::before,
.measure-height::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 1px;
    background: #777;
    left: -2.5px;
}

.measure-height::before {
    top: 0;
}

.measure-height::after {
    bottom: 0;
}

.measure-width::before,
.measure-width::after {
    content: '';
    position: absolute;
    height: 6px;
    width: 1px;
    background: #777;
    top: -2.5px;
}

.measure-width::before {
    left: 0;
}

.measure-width::after {
    right: 0;
}


/* ======================================================
   6. KONTROL PANELİ
   ====================================================== */
.controls-section {
    flex: 1;
    background-color: var(--bg-panel);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    color: var(--primary-color);
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background-color: var(--bg-tabs);
    padding: 6px;
    border-radius: 12px;
    width: 100%;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--bg-panel);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.control-group-text {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.input-wrapper {
    width: 100%;
    border: 1px solid var(--primary-color);
    background-color: var(--bg-tabs);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#text-input {
    border: none;
    outline: none;
    resize: none;
    width: 100%;
    background: transparent;
    color: var(--primary-color);
    font-size: 18px;
}

.warning-msg {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 600;
    display: none;
}

.control-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
}

/* ======================================================
   7. SEÇENEK BUTONLARI
   ====================================================== */

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.designer-wrapper .color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
}

.designer-wrapper .color-btn.active {
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 2px var(--primary-color) !important;
    transform: scale(1.1);
}

.designer-wrapper .btn-cream {
    background-color: #fffdd0 !important;
}

.designer-wrapper .btn-white {
    background-color: #ffffff !important;
}

.designer-wrapper .btn-pink {
    background-color: #ff1493 !important;
}

.designer-wrapper .btn-red {
    background-color: #ff3131 !important;
}

.designer-wrapper .btn-yellow {
    background-color: #ffff00 !important;
}

.designer-wrapper .btn-cyan {
    background-color: #00bfff !important;
}

.designer-wrapper .btn-blue {
    background-color: #00008b !important;
}

.designer-wrapper .btn-green {
    background-color: #39ff14 !important;
}

.designer-wrapper .btn-purple {
    background-color: #800080 !important;
}

.designer-wrapper .btn-gold {
    background-color: #ffd700 !important;
}

.backing-palette {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.designer-wrapper .backing-btn {
    flex: 1;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    transition: transform 0.2s, box-shadow 0.2s;
    background: none;
}

.designer-wrapper .backing-btn:hover {
    transform: translateY(-2px);
}

.designer-wrapper .backing-btn.active {
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.designer-wrapper .btn-bg-gold {
    background: linear-gradient(145deg, #FFD700, #DAA520) !important;
    color: #fff !important;
    border: 0.2px solid #B8860B !important;
}

.designer-wrapper .btn-bg-silver {
    background: linear-gradient(145deg, #E0E0E0, #A9A9A9) !important;
    color: #333 !important;
    border: 0.2px solid #808080 !important;
}

.designer-wrapper .btn-bg-black {
    background-color: #000 !important;
    color: #fff !important;
    border: 0.2px solid #333 !important;
}

.designer-wrapper .btn-bg-transparent {
    background-image: repeating-linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc), repeating-linear-gradient(45deg, #ccc 25%, #f0f0f0 25%, #f0f0f0 75%, #ccc 75%, #ccc) !important;
    background-color: transparent !important;
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    color: #333 !important;
}

.option-palette {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.option-btn {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-hover);
}

.option-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(50, 0, 178, 0.2);
}

/* GEÇİCİ OLARAK GİZLENDİ */
.size-palette {
    display: none !important;
    gap: 10px;
    margin-bottom: 20px;
}

.size-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 5px;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary-color);
}

.size-name {
    font-size: 16px;
    font-weight: 700;
}

.size-dim {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.size-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(50, 0, 178, 0.3);
}

.size-btn:hover:not(.active) {
    background-color: var(--bg-tabs);
}


/* ======================================================
   8. ÖZEL EBAT (SLIDER & MANUEL)
   ====================================================== */
.custom-size-container {
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.size-lock-icon {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 5px;
}

/* Slider Modu */
.slider-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.manual-toggle-link {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.manual-toggle-link:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.slider-wrapper {
    width: 100%;
    padding: 10px 0;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value-display {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Manuel Giriş Modu */
.manual-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.manual-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.manual-input-group {
    flex: 1;
}

.manual-input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.manual-input-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.manual-input-group input:focus {
    border-color: var(--primary-color);
}

.manual-x {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 18px;
}

.manual-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* GEÇİCİ OLARAK GİZLENDİ */
.size-palette {
    display: none !important;
    gap: 10px;
    margin-bottom: 20px;
}


/* ======================================================
   9. FONT SEÇİCİ (AÇILIR MENÜ)
   ====================================================== */
.font-selector-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    user-select: none;
    z-index: 1000;
}

.font-selected-display {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.font-selected-display:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 0, 178, 0.1);
}

.current-font-name {
    font-size: 24px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
}

.dropdown-arrow {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #f5f5f5;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
}

.font-options-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    max-height: 320px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 101;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.font-selector-wrapper.open .font-options-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.font-selector-wrapper.open .font-selected-display {
    border-color: var(--primary-color);
}

.font-selector-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
    background-color: var(--primary-color);
    color: #fff;
}

.font-option-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.font-option-item:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.font-option-item.selected {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(50, 0, 178, 0.3);
}

.font-options-list::-webkit-scrollbar {
    width: 6px;
}

.font-options-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.font-options-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.font-options-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


/* ======================================================
   10. SİPARİŞ ÖZETİ
   ====================================================== */
.order-summary {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #fafafe 0%, #f5f3ff 100%);
    border: 1px solid rgba(50, 0, 178, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.summary-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    flex-shrink: 0;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 8px 0;
    opacity: 0.3;
    border-radius: 1px;
}

.summary-total {
    padding-top: 10px;
    border-bottom: none;
}

.summary-total .summary-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.summary-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.3px;
}


/* ======================================================
   11. SEPETE EKLE BUTONU & CART ACTIONS
   ====================================================== */
.add-to-cart-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b21d4 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(50, 0, 178, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 0, 178, 0.4);
}

.add-to-cart-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(50, 0, 178, 0.3);
}

.add-to-cart-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.add-to-cart-btn.loading {
    background: linear-gradient(135deg, #7c5cbf 0%, #9b6fd4 100%);
}

.add-to-cart-btn.success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.add-to-cart-btn i {
    font-size: 20px;
}

/* Sepet ve Ödeme Linkleri */
.cart-actions {
    display: flex;
    gap: 10px;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-link-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.go-to-cart {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.go-to-cart:hover {
    background-color: var(--primary-hover);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 0, 178, 0.15);
}

.go-to-checkout {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.go-to-checkout:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    opacity: 0.9;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======================================================
   12. BİLDİRİM (TOAST)
   ====================================================== */
.neon-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid #10b981;
    max-width: 360px;
}

.neon-toast.show {
    transform: translateX(0);
}

.neon-toast.error {
    border-left-color: #ef4444;
}

.neon-toast .toast-icon {
    font-size: 22px;
    color: #10b981;
    flex-shrink: 0;
}

.neon-toast.error .toast-icon {
    color: #ef4444;
}

.neon-toast .toast-message {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}


/* ======================================================
   13. NEON MİKTAR (Sepet Sayfası)
   ====================================================== */
.neon-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, rgb(50, 0, 178));
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}


/* ======================================================
   14. RESPONSIVE
   ====================================================== */

/* === MASAÜSTÜ (992px ve üzeri) === */
@media (min-width: 992px) {
    .designer-wrapper {
        flex-direction: row;
    }

    .preview-section {
        flex: 1;
        min-width: 0;
    }

    .controls-section {
        flex: 0 0 400px;
        flex-shrink: 0;
        height: 100%;
        border-left: 1px solid var(--border-color);
    }
}

/* === TABLET ve MOBİL (991px ve altı) === */
@media (max-width: 991px) {
    .designer-wrapper {
        height: auto;
    }

    .preview-section {
        flex: 0 0 auto;
        height: 300px;
        overflow: hidden;
    }

    .design-canvas {
        width: 95%;
        min-height: 200px;
        padding: 15px;
    }

    .price-tag {
        font-size: 22px;
        top: 15px;
        right: 15px;
    }

    .controls-section {
        padding: 16px;
    }

    .sidebar-title {
        font-size: 20px;
    }

    .font-selected-display {
        height: 48px;
    }

    .font-options-list {
        grid-template-columns: 1fr 1fr;
        max-height: 260px;
    }

    .font-option-item {
        height: 50px;
        font-size: 17px;
    }

    .option-btn {
        font-size: 13px;
        padding: 10px 8px;
    }

    .backing-btn {
        font-size: 13px;
        padding: 9px;
    }

    .neon-word {
        margin: 0 0.15em;
    }

    .measure-label {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* === KÜÇÜK MOBİL (480px ve altı) === */
@media (max-width: 480px) {
    .preview-section {
        height: 250px;
    }

    .design-canvas {
        width: 98%;
        min-height: 170px;
        padding: 10px;
    }

    .price-tag {
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    .sidebar-title {
        font-size: 18px;
    }

    .tab-btn {
        font-size: 13px;
        padding: 8px 10px;
        gap: 5px;
    }

    .control-group-text {
        font-size: 14px;
    }

    .control-description {
        font-size: 12px;
    }

    .option-palette {
        gap: 6px;
    }

    .option-btn {
        font-size: 12px;
        padding: 9px 6px;
    }

    .backing-palette {
        gap: 6px;
        flex-wrap: wrap;
    }

    .backing-btn {
        font-size: 12px;
        padding: 8px 6px;
        min-width: calc(50% - 6px);
    }

    .color-palette {
        gap: 8px;
    }

    .color-btn {
        width: 30px;
        height: 30px;
    }

    .slider-value-display {
        font-size: 15px;
    }

    #text-input {
        font-size: 16px;
        /* iOS zoom engeli */
    }

    .current-font-name {
        font-size: 18px;
    }

    .font-options-list {
        grid-template-columns: 1fr;
        max-height: 220px;
    }

    .font-option-item {
        height: 45px;
        font-size: 16px;
    }

    .add-to-cart-btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .neon-toast {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .summary-value {
        max-width: 55%;
        font-size: 12px;
    }

    .summary-price {
        font-size: 18px !important;
    }

    .manual-inputs {
        gap: 6px;
    }

    .manual-input-group input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .manual-toggle-link {
        font-size: 12px;
    }

    .measure-label {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* ======================================================
   15. BOYUT LİMİT UYARISI (3000 cm² üzeri - Speech Bubble)
   ====================================================== */
.neon-limit-overlay {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(107, 33, 212, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 300 !important;
    padding: 24px 20px 18px 20px !important;
    text-align: center !important;
    max-width: 320px !important;
    width: 290px !important;
    border: 2px solid rgba(107, 33, 212, 0.15) !important;
}

.neon-limit-overlay.hidden {
    display: none !important;
}

/* Kapatma Butonu */
.neon-limit-close {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 6px !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 2px 6px !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    border-radius: 50% !important;
}

.neon-limit-close:hover {
    color: #333 !important;
    transform: scale(1.15) !important;
}

.neon-limit-bubble-content {
    all: unset !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.neon-limit-text {
    all: unset !important;
    box-sizing: border-box !important;
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    line-height: 1.5 !important;
    margin: 0 0 4px 0 !important;
}

/* İletişime Geç Butonu */
.neon-limit-btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin-top: 4px !important;
    border: none !important;
}

.neon-limit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Responsive Konumlandırma */

/* Masaüstü (min-width: 992px) */
@media (min-width: 992px) {
    .neon-limit-overlay {
        right: 15px !important;
        top: 140px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: limitFadeInDesktop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    @keyframes limitFadeInDesktop {
        0% { opacity: 0; transform: scale(0.85); }
        100% { opacity: 1; transform: scale(1); }
    }

    .neon-limit-bubble-tail {
        all: unset !important;
        position: absolute !important;
        right: -8px !important;
        top: 50% !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-top: 8px solid transparent !important;
        border-bottom: 8px solid transparent !important;
        border-left: 8px solid #ffffff !important;
        border-right: none !important;
        filter: drop-shadow(3px 0 1px rgba(107, 33, 212, 0.08)) !important;
    }
}

/* Mobil ve Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .neon-limit-overlay {
        bottom: 12px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        animation: limitFadeInMobile 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    @keyframes limitFadeInMobile {
        0% { opacity: 0; transform: translateX(-50%) scale(0.85); }
        100% { opacity: 1; transform: translateX(-50%) scale(1); }
    }

    .neon-limit-bubble-tail {
        all: unset !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-left: 8px solid transparent !important;
        border-right: 8px solid transparent !important;
        border-top: 8px solid #ffffff !important;
        border-bottom: none !important;
        filter: drop-shadow(0 3px 1px rgba(107, 33, 212, 0.08)) !important;
    }
}