:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --surface: #ffffff;
  --surface-dark: #f5f7fa;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
  min-height: 100vh;
}

/* Theme Selection Screen */
body.theme-selection {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #e8f2f8;
  position: relative;
  overflow-x: hidden;
}

body.theme-selection .container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  width: 100%;
}

.app-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.template-categories {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 32px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.category-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.theme-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.theme-preview {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-ribbon {
  position: absolute;
  top: 20px;
  padding: 8px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 18px;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-name {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.custom-theme-card .theme-ribbon {
  font-size: 48px;
  font-weight: 300;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-template-card {
  border: 2px dashed var(--border);
  transition: all 0.3s ease;
}

.upload-template-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--surface-dark);
}

.modal-body {
  padding: 24px;
}

.color-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.color-input-group label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-input-group span {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.color-input-large {
  width: 100%;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 4px;
}

.theme-preview-mini {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.preview-bg {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-ribbon {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.setup-question {
  margin-bottom: 24px;
}

.setup-question label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-question span {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}

.business-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.business-type-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 120px;
}

.business-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.business-type-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.business-type-icon {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.business-type-card:hover .business-type-icon {
  transform: scale(1.1);
}

.business-type-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.business-type-card.selected .business-type-name {
  color: var(--primary);
  font-weight: 700;
}

.select-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.preset-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.preset-item-btn {
  text-align: left;
  justify-content: flex-start;
}

.preset-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-item-card:hover {
  background: var(--surface-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Editor Screen */
body.editor {
  background: linear-gradient(135deg, #e8f0f5 0%, #d8e8f0 100%) !important;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: linear-gradient(135deg, #d8e4ed 0%, #c8d8e5 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
  z-index: 100;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.back-btn:hover {
  background: var(--surface-dark);
}

.app-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.top-bar-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.controls-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.compact-label span {
  font-weight: 500;
}

.size-input.compact {
  width: 60px;
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.color-input.compact {
  width: 50px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.theme-select.compact,
.language-select.compact {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface);
  cursor: pointer;
  min-width: 120px;
}

.compact-btn {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

.download-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-buttons .btn {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.size-input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.color-input {
  width: 70px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.theme-select,
.language-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  cursor: pointer;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-dark);
}

/* Mobile Tabs */
.mobile-tabs {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.tab-btn {
  flex: 1;
  padding: 16px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Screen Tabs Container (Alt kısımda ekran sekmeleri) */
.screen-tabs-container {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--surface) !important;
  border-top: 2px solid var(--border) !important;
  padding: 10px !important;
  z-index: 1001 !important; /* Mobile tabs'ın üstünde olmalı */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
  max-height: 120px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.screen-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
}

.screen-tab {
  min-width: 100px;
  max-width: 150px;
  padding: 12px 16px;
  padding-right: 30px; /* X butonu için alan */
  background: var(--surface-dark);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  white-space: nowrap;
  overflow: visible; /* X butonunun görünmesi için */
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-tab:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.screen-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.screen-tab .screen-number {
  font-size: 11px;
  opacity: 0.8;
  margin-right: 4px;
}

.screen-tab.active .screen-number {
  opacity: 1;
}

.screen-tab-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.screen-tab-close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}

.screen-tab:hover .screen-tab-close {
  opacity: 1;
}

.screen-tab-close:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

/* Editor Layout */
.editor-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0f5 0%, #d8e8f0 100%);
}

.control-panel {
  width: 380px;
  background: linear-gradient(135deg, #d8e4ed 0%, #c8d8e5 100%);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}

.panel-section {
  margin-bottom: 32px;
}

.panel-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.add-category {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.add-category .input {
  flex: 1;
}

.add-category .btn {
  white-space: nowrap;
}

.input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.category-item:hover {
  border-color: var(--primary);
  background: #f0f4ff;
}

.category-item.active {
  border-color: var(--primary);
  background: #e8edff;
}

.category-item-name {
  font-weight: 600;
  flex: 1;
}

.category-item-actions {
  display: flex;
  gap: 4px;
}

.category-item-actions button {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
}

.item-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.item-form .btn {
  width: 100%;
}

.item-form .btn-secondary {
  margin-top: -8px;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-row {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.item-row-info {
  flex: 1;
}

.item-row-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.item-row-code {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.item-row-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.item-row-price {
  font-weight: 600;
  color: var(--primary);
}

.item-row-actions {
  display: flex;
  gap: 4px;
}

.item-row {
  cursor: move;
  transition: all 0.2s ease;
  user-select: none;
}

.item-row.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.item-row.drag-over {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.item-row-actions button {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
}

/* TV Preview */
.preview-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: auto;
  background: linear-gradient(135deg, #e8f0f5 0%, #d8e8f0 100%) !important;
}

.tv-preview-container {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.tv-preview {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.menu-content {
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 30px 10px 10px;
  box-sizing: border-box;
  display: block;
  visibility: visible;
}

.category-block {
  position: absolute;
  cursor: move;
  user-select: none;
}

.category-ribbon {
  padding: 8px 24px;
  font-weight: 800;
  display: inline-block;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
  position: relative;
}

/* Düz (Rect) - Default */
.category-ribbon-rect {
  border-radius: 0;
}

/* Yuvarlak Köşeli */
.category-ribbon-rounded {
  border-radius: 12px;
}

/* Yırtık Kenarlı */
.category-ribbon-torn {
  border-radius: 0;
  position: relative;
  clip-path: polygon(
    0% 5%,
    3% 0%,
    6% 4%,
    9% 0%,
    12% 3%,
    15% 0%,
    18% 5%,
    21% 0%,
    24% 4%,
    27% 0%,
    30% 3%,
    33% 0%,
    36% 5%,
    39% 0%,
    42% 4%,
    45% 0%,
    48% 3%,
    51% 0%,
    54% 5%,
    57% 0%,
    60% 4%,
    63% 0%,
    66% 3%,
    69% 0%,
    72% 5%,
    75% 0%,
    78% 4%,
    81% 0%,
    84% 3%,
    87% 0%,
    90% 5%,
    93% 0%,
    96% 4%,
    99% 0%,
    100% 3%,
    100% 97%,
    97% 100%,
    94% 96%,
    91% 100%,
    88% 97%,
    85% 100%,
    82% 96%,
    79% 100%,
    76% 97%,
    73% 100%,
    70% 96%,
    67% 100%,
    64% 97%,
    61% 100%,
    58% 96%,
    55% 100%,
    52% 97%,
    49% 100%,
    46% 96%,
    43% 100%,
    40% 97%,
    37% 100%,
    34% 96%,
    31% 100%,
    28% 97%,
    25% 100%,
    22% 96%,
    19% 100%,
    16% 97%,
    13% 100%,
    10% 96%,
    7% 100%,
    4% 97%,
    0% 100%
  );
}

/* Hap Şekli */
.category-ribbon-pill {
  border-radius: 50px;
}

/* Dalgalı */
.category-ribbon-wavy {
  border-radius: 0;
  position: relative;
  clip-path: polygon(
    0% 10%,
    5% 0%,
    10% 10%,
    15% 0%,
    20% 10%,
    25% 0%,
    30% 10%,
    35% 0%,
    40% 10%,
    45% 0%,
    50% 10%,
    55% 0%,
    60% 10%,
    65% 0%,
    70% 10%,
    75% 0%,
    80% 10%,
    85% 0%,
    90% 10%,
    95% 0%,
    100% 10%,
    100% 90%,
    95% 100%,
    90% 90%,
    85% 100%,
    80% 90%,
    75% 100%,
    70% 90%,
    65% 100%,
    60% 90%,
    55% 100%,
    50% 90%,
    45% 100%,
    40% 90%,
    35% 100%,
    30% 90%,
    25% 100%,
    20% 90%,
    15% 100%,
    10% 90%,
    5% 100%,
    0% 90%
  );
}

/* Zikzak */
.category-ribbon-zigzag {
  border-radius: 0;
  position: relative;
  clip-path: polygon(
    0% 50%,
    2.5% 0%,
    5% 50%,
    7.5% 0%,
    10% 50%,
    12.5% 0%,
    15% 50%,
    17.5% 0%,
    20% 50%,
    22.5% 0%,
    25% 50%,
    27.5% 0%,
    30% 50%,
    32.5% 0%,
    35% 50%,
    37.5% 0%,
    40% 50%,
    42.5% 0%,
    45% 50%,
    47.5% 0%,
    50% 50%,
    52.5% 0%,
    55% 50%,
    57.5% 0%,
    60% 50%,
    62.5% 0%,
    65% 50%,
    67.5% 0%,
    70% 50%,
    72.5% 0%,
    75% 50%,
    77.5% 0%,
    80% 50%,
    82.5% 0%,
    85% 50%,
    87.5% 0%,
    90% 50%,
    92.5% 0%,
    95% 50%,
    97.5% 0%,
    100% 50%,
    100% 100%,
    97.5% 100%,
    95% 50%,
    92.5% 100%,
    90% 50%,
    87.5% 100%,
    85% 50%,
    82.5% 100%,
    80% 50%,
    77.5% 100%,
    75% 50%,
    72.5% 100%,
    70% 50%,
    67.5% 100%,
    65% 50%,
    62.5% 100%,
    60% 50%,
    57.5% 100%,
    55% 50%,
    52.5% 100%,
    50% 50%,
    47.5% 100%,
    45% 50%,
    42.5% 100%,
    40% 50%,
    37.5% 100%,
    35% 50%,
    32.5% 100%,
    30% 50%,
    27.5% 100%,
    25% 50%,
    22.5% 100%,
    20% 50%,
    17.5% 100%,
    15% 50%,
    12.5% 100%,
    10% 50%,
    7.5% 100%,
    5% 50%,
    2.5% 100%,
    0% 50%
  );
}

/* Eğik Kenarlı */
.category-ribbon-beveled {
  border-radius: 0;
  clip-path: polygon(
    0% 0%,
    95% 0%,
    100% 15%,
    100% 85%,
    95% 100%,
    5% 100%,
    0% 85%,
    0% 15%
  );
}

/* Çift Kenarlı */
.category-ribbon-double {
  border-radius: 0;
  border: 3px double currentColor;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Gölgeli */
.category-ribbon-shadow {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gradyanlı */
.category-ribbon-gradient {
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.category-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  width: 100%;
}

.menu-item-top {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.menu-item-name-code {
  font-weight: 600;
  flex: 1;
}

.menu-item-name {
  font-weight: 600;
  flex: 1;
}

.menu-item-code {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.menu-item-desc {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 0;
}

.menu-item-price {
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
  min-width: 100px;
  text-align: right;
  flex-shrink: 0;
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  background: transparent !important;
  background-color: transparent !important;
}

.image-overlay .overlay-image {
  position: absolute;
  cursor: move;
  pointer-events: all;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: transparent !important;
  background-color: transparent !important;
}

.image-overlay .overlay-image.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.image-overlay .overlay-image .resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: #3b82f6;
  cursor: nwse-resize;
  border-radius: 0 0 4px 0;
}

.image-overlay .overlay-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  background-color: transparent !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  mix-blend-mode: normal;
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.3;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  display: none;
}

.grid-overlay.active {
  display: block;
}

/* Merkez çizgileri */
.grid-overlay::before,
.grid-overlay::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  z-index: 6;
}

.grid-overlay::before {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(59, 130, 246, 0.4);
}

.grid-overlay::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(59, 130, 246, 0.4);
}

/* Alignment Guides */
.alignment-guides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  display: none;
}

.alignment-guides.active {
  display: block;
}

.alignment-guide {
  position: absolute;
  background: #3b82f6;
  opacity: 0.8;
  z-index: 16;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.6);
}

.alignment-guide.vertical {
  width: 2px;
  height: 100%;
  top: 0;
}

.alignment-guide.horizontal {
  width: 100%;
  height: 2px;
  left: 0;
}

.alignment-guide.center-vertical {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.alignment-guide.center-horizontal {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.image-toolbar {
  position: fixed;
  bottom: 140px; /* Screen tabs'ın üstünde (120px + 20px margin) */
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1002; /* Screen tabs container'dan (1001) daha üstte */
}

.toolbar-btn {
  padding: 8px 12px;
  border: none;
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.toolbar-btn:hover {
  background: var(--border);
}

/* Mobile Styles - PC ile aynı layout, sadece daha kompakt */
@media (max-width: 768px) {
  .business-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .business-type-card {
    padding: 16px;
    min-height: 100px;
  }
  
  .business-type-icon {
    font-size: 40px;
  }
  
  .business-type-name {
    font-size: 14px;
  }

  /* Mobil tab'ları gizle - PC ile aynı layout */
  .mobile-tabs {
    display: none !important;
  }

  /* Editor layout - Mobilde dikey, preview alt kısımda tam ekran */
  .editor-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px) !important;
    margin-top: 60px;
    gap: 0;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Control panel - Mobilde gizle */
  .control-panel {
    display: none !important;
  }

  /* Preview panel - Mobilde tam ekran, alt kısımda */
  .preview-panel {
    flex: 1;
    display: flex;
    padding: 0;
    padding-bottom: 70px; /* Alt butonlar için boşluk */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .top-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #e8f0f5 0%, #d8e8f0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    max-height: 60px;
  }

  .top-bar-left {
    flex: 1;
    min-width: 0;
  }

  .app-name {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-bar-center {
    order: 3;
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .top-bar-center::-webkit-scrollbar {
    height: 4px;
  }

  .top-bar-center::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
  }

  .top-bar-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .controls-row {
    gap: 6px;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .compact-label {
    font-size: 10px;
    min-width: fit-content;
  }

  .size-input.compact {
    width: 50px;
    padding: 4px 5px;
    font-size: 12px;
    min-width: 50px;
  }

  .color-input.compact {
    width: 40px;
    height: 28px;
    min-width: 40px;
    min-height: 28px;
  }

  .theme-select.compact,
  .language-select.compact {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 100px;
  }

  .compact-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }

  .compact-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  .download-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .download-buttons .btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }

  .download-buttons .btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* Arşiv butonu mobilde daha görünür */
  #archiveBtn {
    min-width: 80px;
    font-weight: 600;
  }

  .control-panel {
    padding: 12px;
  }

  /* Modal mobilde tam ekran */
  .modal {
    padding: 12px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    max-width: 100%;
    margin: 0;
    padding: 16px;
    max-height: 90vh;
  }

  /* Arşiv modal mobilde optimize */
  #archiveList {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .archive-item {
    padding: 12px;
  }

  /* Butonlar mobilde daha büyük dokunma alanı */
  .btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }

  .btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* Body ve genel ayarlar - Editor sayfası için */
  body.editor {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Top Bar - Mobilde daha kompakt ve sabit */
  .top-bar {
    padding: 8px 10px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #d8e4ed 0%, #c8d8e5 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 50vh;
    overflow-y: auto;
  }

  .top-bar-left {
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 8px;
  }

  .app-name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }

  .back-btn {
    font-size: 20px;
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
  }

  /* Top Bar Center - Mobilde scroll edilebilir */
  .top-bar-center {
    order: 3;
    width: 100%;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-top: 8px;
  }

  .top-bar-center::-webkit-scrollbar {
    height: 3px;
  }

  .top-bar-center::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
  }

  /* Controls Row - Mobilde yatay scroll */
  .controls-row {
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
    padding-right: 10px;
  }

  .compact-label {
    font-size: 9px;
    min-width: fit-content;
    flex-shrink: 0;
  }

  .compact-label span {
    font-size: 9px;
    line-height: 1.2;
  }

  .size-input.compact {
    width: 45px;
    padding: 4px 4px;
    font-size: 11px;
    min-width: 45px;
  }

  .color-input.compact {
    width: 35px;
    height: 26px;
    min-width: 35px;
    min-height: 26px;
  }

  .theme-select.compact,
  .language-select.compact {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 90px;
  }

  /* Top Bar Right - Mobilde dikey düzen */
  .top-bar-right {
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
  }

  .download-buttons {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
  }

  .download-buttons .btn {
    padding: 6px 12px;
    font-size: 11px;
    min-height: 36px;
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    touch-action: manipulation;
  }

  .compact-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 36px;
    min-width: 70px;
    touch-action: manipulation;
  }

  /* TV Preview Container - Mobilde tam gözüksün, birebir */
  .tv-preview-container {
    width: 100vw !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100% !important;
    min-width: 100vw !important;
    min-height: 100% !important;
    aspect-ratio: auto !important;
    position: relative;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    background: #000;
    left: 0 !important;
    top: 0 !important;
  }

  .tv-preview {
    width: 100vw !important;
    height: auto !important;
    min-width: 100vw !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    display: block;
    transform-origin: top left !important;
    transform: scale(1) !important;
    position: relative;
    left: 0 !important;
    top: 0 !important;
  }
  
  /* Menu content - Mobilde tam gözüksün, birebir */
  .menu-content {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    transform-origin: top left !important;
    transform: scale(1) !important;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    left: 0 !important;
    top: 0 !important;
  }
  
  /* Preview panel mobilde tam ekran */
  .preview-panel {
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  /* Mobil buton çubuğu - Altta sabit */
  .mobile-action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .mobile-action-buttons .btn {
    flex: 1;
    min-height: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  }
  
  .mobile-action-buttons .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  .mobile-action-buttons .btn-edit {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .mobile-action-buttons .btn-publish {
    background: #10b981;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  /* Mobilde fiyat düzenleme */
  .menu-item-price {
    position: relative;
  }
  
  @media (max-width: 768px) {
    .menu-item-price {
      cursor: pointer !important;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    .menu-item-price:active {
      background: rgba(255, 255, 255, 0.2) !important;
    }
  }

  /* Butonlar - Mobilde daha büyük dokunma alanı */
  .btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
  }

  .btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* Modal - Mobilde tam ekran */
  .modal {
    padding: 10px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    max-width: 100%;
    margin: 0;
    padding: 16px;
    max-height: 90vh;
  }

  /* Arşiv List - Mobilde tek sütun */
  #archiveList {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .archive-item {
    padding: 12px;
  }

  /* Panel Section - Mobilde daha kompakt */
  .panel-section {
    margin-bottom: 24px;
  }

  .panel-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* Input alanları - Mobilde daha büyük */
  .input {
    padding: 10px;
    font-size: 14px;
    min-height: 44px;
  }

  /* Categories ve Items List - Mobilde optimize */
  .categories-list,
  .items-list {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Profile Menu - Mobilde optimize */
  .profile-menu-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
  }

  .profile-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Çok küçük ekranlar için (480px ve altı) */
@media (max-width: 480px) {
  .top-bar {
    padding: 6px 8px;
  }

  .app-name {
    font-size: 12px;
    max-width: 150px;
  }

  .back-btn {
    font-size: 18px;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
  }

  .compact-label {
    font-size: 8px;
  }

  .size-input.compact {
    width: 40px;
    font-size: 10px;
  }

  .color-input.compact {
    width: 30px;
    height: 24px;
  }

  .theme-select.compact,
  .language-select.compact {
    font-size: 10px;
    min-width: 80px;
    padding: 3px 5px;
  }

  .download-buttons .btn,
  .compact-btn {
    font-size: 10px;
    padding: 5px 8px;
    min-height: 32px;
  }

  .tv-preview-container {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
  }
  
  .tv-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .preview-panel {
    padding: 5px;
  }
}

/* Print Styles for PDF */
@media print {
  @page {
    size: 16in 9in;
    margin: 0;
  }

  html, body {
    margin: 0;
    padding: 0;
    background: black;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body * {
    visibility: hidden;
  }

  #printCanvas, #printCanvas * {
    visibility: visible;
  }

  #printCanvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
  }

  #printCanvas img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: black;
  }
}

/* Profile Menu */
.profile-menu-container {
  position: relative;
  z-index: 1001;
}

body.theme-selection .profile-menu-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.profile-btn {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  overflow: hidden;
}

.profile-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-btn:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.profile-dropdown a:hover {
  background: var(--surface-dark);
}

.profile-dropdown a:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

/* ==================== GÖRSEL DÜZEN (VISUAL LAYOUT) ==================== */
.category-block-visual {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95%;
  max-width: 1400px;
  left: 50% !important;
  transform: translateX(-50%);
  cursor: move;
  user-select: none;
  overflow: visible;
  box-sizing: border-box;
  padding: 0 30px 0 0;
}

.category-ribbon-visual {
  margin: 20px auto;
  padding: 0;
  text-align: center;
  font-weight: 800;
  color: #111;
  background: #FFD700; /* Altın rengi */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Yırtık kenarlı başlık için görsel düzen */
.category-ribbon-visual.category-ribbon-torn {
  border-radius: 0;
  position: relative;
  clip-path: polygon(
    0% 5%,
    3% 0%,
    6% 4%,
    9% 0%,
    12% 3%,
    15% 0%,
    18% 5%,
    21% 0%,
    24% 4%,
    27% 0%,
    30% 3%,
    33% 0%,
    36% 5%,
    39% 0%,
    42% 4%,
    45% 0%,
    48% 3%,
    51% 0%,
    54% 5%,
    57% 0%,
    60% 4%,
    63% 0%,
    66% 3%,
    69% 0%,
    72% 5%,
    75% 0%,
    78% 4%,
    81% 0%,
    84% 3%,
    87% 0%,
    90% 5%,
    93% 0%,
    96% 4%,
    99% 0%,
    100% 3%,
    100% 97%,
    97% 100%,
    94% 96%,
    91% 100%,
    88% 97%,
    85% 100%,
    82% 96%,
    79% 100%,
    76% 97%,
    73% 100%,
    70% 96%,
    67% 100%,
    64% 97%,
    61% 100%,
    58% 96%,
    55% 100%,
    52% 97%,
    49% 100%,
    46% 96%,
    43% 100%,
    40% 97%,
    37% 100%,
    34% 96%,
    31% 100%,
    28% 97%,
    25% 100%,
    22% 96%,
    19% 100%,
    16% 97%,
    13% 100%,
    10% 96%,
    7% 100%,
    4% 97%,
    0% 100%
  );
}

.category-ribbon-visual.category-ribbon-pill {
  border-radius: 50px;
}

.category-ribbon-visual.category-ribbon-wavy {
  border-radius: 0;
  position: relative;
  clip-path: polygon(
    0% 10%,
    5% 0%,
    10% 10%,
    15% 0%,
    20% 10%,
    25% 0%,
    30% 10%,
    35% 0%,
    40% 10%,
    45% 0%,
    50% 10%,
    55% 0%,
    60% 10%,
    65% 0%,
    70% 10%,
    75% 0%,
    80% 10%,
    85% 0%,
    90% 10%,
    95% 0%,
    100% 10%,
    100% 90%,
    95% 100%,
    90% 90%,
    85% 100%,
    80% 90%,
    75% 100%,
    70% 90%,
    65% 100%,
    60% 90%,
    55% 100%,
    50% 90%,
    45% 100%,
    40% 90%,
    35% 100%,
    30% 90%,
    25% 100%,
    20% 90%,
    15% 100%,
    10% 90%,
    5% 100%,
    0% 90%
  );
}

.category-ribbon-visual.category-ribbon-zigzag {
  border-radius: 0;
  position: relative;
  clip-path: polygon(
    0% 50%,
    2.5% 0%,
    5% 50%,
    7.5% 0%,
    10% 50%,
    12.5% 0%,
    15% 50%,
    17.5% 0%,
    20% 50%,
    22.5% 0%,
    25% 50%,
    27.5% 0%,
    30% 50%,
    32.5% 0%,
    35% 50%,
    37.5% 0%,
    40% 50%,
    42.5% 0%,
    45% 50%,
    47.5% 0%,
    50% 50%,
    52.5% 0%,
    55% 50%,
    57.5% 0%,
    60% 50%,
    62.5% 0%,
    65% 50%,
    67.5% 0%,
    70% 50%,
    72.5% 0%,
    75% 50%,
    77.5% 0%,
    80% 50%,
    82.5% 0%,
    85% 50%,
    87.5% 0%,
    90% 50%,
    92.5% 0%,
    95% 50%,
    97.5% 0%,
    100% 50%,
    100% 100%,
    97.5% 100%,
    95% 50%,
    92.5% 100%,
    90% 50%,
    87.5% 100%,
    85% 50%,
    82.5% 100%,
    80% 50%,
    77.5% 100%,
    75% 50%,
    72.5% 100%,
    70% 50%,
    67.5% 100%,
    65% 50%,
    62.5% 100%,
    60% 50%,
    57.5% 100%,
    55% 50%,
    52.5% 100%,
    50% 50%,
    47.5% 100%,
    45% 50%,
    42.5% 100%,
    40% 50%,
    37.5% 100%,
    35% 50%,
    32.5% 100%,
    30% 50%,
    27.5% 100%,
    25% 50%,
    22.5% 100%,
    20% 50%,
    17.5% 100%,
    15% 50%,
    12.5% 100%,
    10% 50%,
    7.5% 100%,
    5% 50%,
    2.5% 100%,
    0% 50%
  );
}

.category-ribbon-visual.category-ribbon-beveled {
  border-radius: 0;
  clip-path: polygon(
    0% 0%,
    95% 0%,
    100% 15%,
    100% 85%,
    95% 100%,
    5% 100%,
    0% 85%,
    0% 15%
  );
}

.category-ribbon-visual.category-ribbon-double {
  border-radius: 0;
  border: 3px double currentColor;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.category-ribbon-visual.category-ribbon-shadow {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-ribbon-visual.category-ribbon-gradient {
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.category-visual-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr minmax(180px, auto);
  gap: 30px;
  width: 100%;
  margin-top: 20px;
  align-items: start;
  overflow: visible;
  box-sizing: border-box;
  padding-right: 20px;
  grid-auto-rows: max-content;
}

.visual-items-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  overflow: visible;
  flex: 1;
  align-self: start;
}

.visual-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
  min-height: 1.5em;
}

.visual-item-code-name {
  font-weight: 600;
  margin-bottom: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.visual-item-desc {
  font-size: 0.9em;
  opacity: 0.8;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.visual-items-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 180px;
  max-width: none;
  overflow: visible;
  width: auto;
  flex-shrink: 0;
  padding-right: 0;
  box-sizing: border-box;
  align-self: start;
}

.visual-item-price {
  font-weight: 600;
  color: #ffffff; /* Yazı rengi - JavaScript'te dinamik olarak ayarlanacak */
  white-space: nowrap;
  min-height: 1.5em; /* İsim ile hizalama için */
  text-align: right;
  overflow: visible;
  flex-shrink: 0;
  padding-left: 10px;
  margin-right: 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.visual-image-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.visual-image-center img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent !important;
  background-color: transparent !important;
}


/* Responsive ayarlar */
@media (max-width: 1024px) {
  .category-visual-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .visual-items-right {
    align-items: flex-start;
  }
  
  .visual-image-center {
    order: -1; /* Görseli üste al */
    min-height: 150px;
  }
  
  .visual-image-center img {
    max-height: 300px;
  }
}

/* Image Design Panel Styles */
.background-type-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.background-type-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.background-type-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.background-type-card .type-preview {
  width: 100%;
  height: 60px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.background-type-card .type-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* Image Design Wrapper */
.image-design-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Background Layer */
.category-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}

.category-overlay-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.category-design-preview-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-design-wrapper .background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.image-design-wrapper .overlay-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.image-design-wrapper .product-image {
  position: relative;
  z-index: 3;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Paint Splash Background */
/* Stain Background */
.stain-bg {
  background: 
    radial-gradient(ellipse 80% 60% at 40% 50%, 
      var(--primary-color, #8B4513) 0%,
      var(--primary-color, #8B4513) 40%,
      transparent 60%),
    radial-gradient(ellipse 60% 80% at 60% 60%, 
      var(--secondary-color, #A0522D) 0%,
      var(--secondary-color, #A0522D) 50%,
      transparent 70%);
  opacity: 0.6;
}


/* Shadow Only Background */
.shadow-only-bg {
  background: transparent;
}

/* Dots Background */
.dots-bg {
  background-image: 
    radial-gradient(circle at 20% 30%, var(--primary-color, #FFD700) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, var(--secondary-color, #FFA500) 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, var(--primary-color, #FFD700) 1px, transparent 1px);
  background-size: 40px 40px, 50px 50px, 30px 30px;
  background-position: 0 0, 20px 20px, 10px 10px;
  opacity: 0.6;
}

/* Glassmorphism Background */
.glassmorphism-bg {
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.1) 0%, 
      rgba(255, 255, 255, 0.05) 100%
    ),
    radial-gradient(circle at 30% 30%, 
      var(--primary-color, #FFD700) 0%, 
      transparent 50%
    ),
    radial-gradient(circle at 70% 70%, 
      var(--secondary-color, #FFA500) 0%, 
      transparent 50%
    );
  opacity: 0.6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Neumorphism Background */
.neumorphism-bg {
  background: 
    radial-gradient(circle at 50% 50%, 
      var(--primary-color, #FFD700) 0%, 
      var(--secondary-color, #FFA500) 50%, 
      transparent 100%
    );
  opacity: 0.4;
  box-shadow: 
    inset 8px 8px 16px rgba(255, 255, 255, 0.2),
    inset -8px -8px 16px rgba(0, 0, 0, 0.1);
}

/* Liquid Background */
.liquid-bg {
  background: 
    radial-gradient(ellipse at 40% 50%, 
      var(--primary-color, #FFD700) 0%, 
      transparent 50%
    ),
    radial-gradient(ellipse at 60% 50%, 
      var(--secondary-color, #FFA500) 0%, 
      transparent 45%
    ),
    radial-gradient(ellipse at 50% 60%, 
      var(--primary-color, #FFD700) 0%, 
      transparent 40%
    );
  opacity: 0.6;
  background-size: 120% 100%, 110% 95%, 100% 90%;
  background-position: 40% 50%, 60% 50%, 50% 60%;
  filter: blur(3px);
}

/* Holographic Background */
.holographic-bg {
  background: 
    linear-gradient(135deg, 
      var(--primary-color, #FFD700) 0%, 
      var(--secondary-color, #FFA500) 25%, 
      var(--primary-color, #FFD700) 50%, 
      var(--secondary-color, #FFA500) 75%, 
      var(--primary-color, #FFD700) 100%
    );
  opacity: 0.5;
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: holographic-shift 3s ease-in-out infinite;
}

@keyframes holographic-shift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* Metallic Background */
.metallic-bg {
  background: 
    linear-gradient(135deg, 
      var(--primary-color, #FFD700) 0%, 
      var(--secondary-color, #FFA500) 30%, 
      var(--primary-color, #FFD700) 60%, 
      var(--secondary-color, #FFA500) 100%
    ),
    radial-gradient(ellipse at 50% 50%, 
      rgba(255, 255, 255, 0.3) 0%, 
      transparent 50%
    );
  opacity: 0.5;
  background-size: 150% 150%, 100% 100%;
  background-position: 0% 0%, 50% 50%;
}

/* Glitch Background */
.glitch-bg {
  background: 
    linear-gradient(90deg, 
      var(--primary-color, #FFD700) 0%, 
      transparent 8%, 
      var(--secondary-color, #FFA500) 16%, 
      transparent 24%, 
      var(--primary-color, #FFD700) 32%, 
      transparent 40%, 
      var(--secondary-color, #FFA500) 48%, 
      transparent 56%, 
      var(--primary-color, #FFD700) 64%, 
      transparent 72%, 
      var(--secondary-color, #FFA500) 80%, 
      transparent 88%, 
      var(--primary-color, #FFD700) 96%
    );
  opacity: 0.4;
  background-size: 200% 100%;
  background-position: 0% 0%;
}

/* Grid Background */
.grid-bg {
  background-image: 
    repeating-linear-gradient(0deg, 
      transparent, 
      transparent 9px, 
      var(--primary-color, #FFD700) 9px, 
      var(--primary-color, #FFD700) 10px
    ),
    repeating-linear-gradient(90deg, 
      transparent, 
      transparent 9px, 
      var(--secondary-color, #FFA500) 9px, 
      var(--secondary-color, #FFA500) 10px
    );
  opacity: 0.3;
  background-size: 20px 20px;
}

/* Noise Background */
.noise-bg {
  background-image: 
    radial-gradient(circle at 20% 30%, var(--primary-color, #FFD700) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--secondary-color, #FFA500) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--primary-color, #FFD700) 0.5px, transparent 0.5px),
    radial-gradient(circle at 30% 80%, var(--secondary-color, #FFA500) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, var(--primary-color, #FFD700) 0.5px, transparent 0.5px);
  background-size: 30px 30px, 40px 40px, 25px 25px, 35px 35px, 28px 28px;
  background-position: 0 0, 15px 15px, 8px 8px, 20px 20px, 12px 12px;
  opacity: 0.5;
}

/* Watercolor Background */
.watercolor-bg {
  background: 
    radial-gradient(ellipse at 30% 40%, var(--primary-color, #FFD700) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, var(--secondary-color, #FFA500) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--primary-color, #FFD700) 0%, transparent 35%);
  opacity: 0.6;
  background-size: 120% 120%, 100% 100%, 110% 110%;
  background-position: 20% 30%, 70% 50%, 50% 70%;
}

/* Marble Background */
.marble-bg {
  background: 
    linear-gradient(135deg, 
      var(--primary-color, #FFD700) 0%, 
      transparent 30%,
      var(--secondary-color, #FFA500) 50%,
      transparent 70%,
      var(--primary-color, #FFD700) 100%
    ),
    radial-gradient(ellipse at 50% 50%, 
      var(--primary-color, #FFD700) 0%, 
      transparent 60%
    );
  opacity: 0.5;
  background-size: 150% 150%, 100% 100%;
  background-position: 0% 0%, 50% 50%;
}

/* Geometric Background */
.geometric-bg {
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, var(--primary-color, #FFD700) 2px, var(--primary-color, #FFD700) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, var(--secondary-color, #FFA500) 2px, var(--secondary-color, #FFA500) 4px),
    radial-gradient(circle at 50% 50%, var(--primary-color, #FFD700) 0%, transparent 50%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  opacity: 0.4;
}

/* Waves Background */
.waves-bg {
  background: 
    radial-gradient(ellipse at 50% 30%, transparent 0%, var(--primary-color, #FFD700) 20%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, transparent 0%, var(--secondary-color, #FFA500) 25%, transparent 55%);
  opacity: 0.5;
  background-size: 120% 80%, 100% 90%;
  background-position: 50% 30%, 50% 70%;
}

/* Burst Background */
.burst-bg {
  background: conic-gradient(
    from 0deg at 50% 50%,
    var(--primary-color, #FFD700) 0deg,
    var(--secondary-color, #FFA500) 45deg,
    var(--primary-color, #FFD700) 90deg,
    var(--secondary-color, #FFA500) 135deg,
    var(--primary-color, #FFD700) 180deg,
    var(--secondary-color, #FFA500) 225deg,
    var(--primary-color, #FFD700) 270deg,
    var(--secondary-color, #FFA500) 315deg,
    var(--primary-color, #FFD700) 360deg
  );
  opacity: 0.4;
  background-size: 150% 150%;
  background-position: 50% 50%;
}

/* Clouds Background */
.clouds-bg {
  background: 
    radial-gradient(ellipse at 20% 40%, var(--primary-color, #FFD700) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, var(--secondary-color, #FFA500) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, var(--primary-color, #FFD700) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 20%, var(--secondary-color, #FFA500) 0%, transparent 35%);
  opacity: 0.5;
  background-size: 100% 100%, 90% 90%, 110% 110%, 95% 95%;
  background-position: 20% 40%, 80% 60%, 50% 80%, 30% 20%;
}

/* Mesh Background */
.mesh-bg {
  background: 
    linear-gradient(135deg, var(--primary-color, #FFD700) 0%, transparent 50%),
    linear-gradient(225deg, var(--secondary-color, #FFA500) 0%, transparent 50%),
    linear-gradient(45deg, var(--primary-color, #FFD700) 0%, transparent 30%),
    linear-gradient(315deg, var(--secondary-color, #FFA500) 0%, transparent 30%);
  opacity: 0.4;
  background-size: 100% 100%, 100% 100%, 80% 80%, 80% 80%;
  background-position: 0% 0%, 0% 0%, 50% 50%, 50% 50%;
}

/* Ink Bleed Background */
.ink-bleed-bg {
  background: 
    radial-gradient(ellipse at 40% 50%, var(--primary-color, #FFD700) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 50%, var(--secondary-color, #FFA500) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 60%, var(--primary-color, #FFD700) 0%, transparent 35%);
  opacity: 0.6;
  background-size: 120% 100%, 110% 95%, 100% 90%;
  background-position: 40% 50%, 60% 50%, 50% 60%;
}

/* Neon Glow Background */
.neon-glow-bg {
  background: 
    radial-gradient(circle at 50% 50%, var(--primary-color, #FFD700) 0%, var(--secondary-color, #FFA500) 30%, transparent 60%),
    radial-gradient(circle at 30% 40%, var(--primary-color, #FFD700) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, var(--secondary-color, #FFA500) 0%, transparent 35%);
  opacity: 0.7;
  background-size: 150% 150%, 100% 100%, 90% 90%;
  background-position: 50% 50%, 30% 40%, 70% 60%;
  filter: blur(2px);
}

/* Brush Stroke Background */
.brush-stroke-bg {
  background: 
    linear-gradient(45deg, transparent 25%, var(--primary-color, #FFD700) 35%, var(--secondary-color, #FFA500) 45%, transparent 55%),
    linear-gradient(135deg, transparent 30%, var(--primary-color, #FFD700) 40%, transparent 50%),
    linear-gradient(225deg, transparent 35%, var(--secondary-color, #FFA500) 45%, transparent 55%);
  opacity: 0.5;
  background-size: 200% 200%, 150% 150%, 180% 180%;
  background-position: 0% 0%, 50% 50%, 100% 100%;
}

/* Abstract Background */
.abstract-bg {
  background: 
    radial-gradient(ellipse at 30% 40%, var(--primary-color, #FFD700) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, var(--secondary-color, #FFA500) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, var(--primary-color, #FFD700) 0%, transparent 35%),
    radial-gradient(ellipse at 20% 80%, var(--secondary-color, #FFA500) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 30%, var(--primary-color, #FFD700) 0%, transparent 25%);
  opacity: 0.5;
  background-size: 100% 100%, 90% 90%, 110% 110%, 95% 95%, 105% 105%;
  background-position: 30% 40%, 70% 60%, 50% 20%, 20% 80%, 80% 30%;
}

/* Texture Background */
.texture-bg {
  background: 
    repeating-linear-gradient(0deg, var(--primary-color, #FFD700) 0px, var(--primary-color, #FFD700) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, var(--secondary-color, #FFA500) 0px, var(--secondary-color, #FFA500) 1px, transparent 1px, transparent 2px),
    radial-gradient(circle at 50% 50%, var(--primary-color, #FFD700) 0%, transparent 50%);
  opacity: 0.3;
  background-size: 20px 20px, 20px 20px, 100% 100%;
}

/* Ripple Background */
.ripple-bg {
  background: 
    radial-gradient(circle at 50% 50%, transparent 0%, var(--primary-color, #FFD700) 20%, transparent 40%, var(--secondary-color, #FFA500) 50%, transparent 70%),
    radial-gradient(circle at 30% 30%, transparent 0%, var(--primary-color, #FFD700) 15%, transparent 35%),
    radial-gradient(circle at 70% 70%, transparent 0%, var(--secondary-color, #FFA500) 18%, transparent 38%);
  opacity: 0.5;
  background-size: 120% 120%, 100% 100%, 110% 110%;
  background-position: 50% 50%, 30% 30%, 70% 70%;
}

/* Sunset Background */
.sunset-bg {
  background: 
    linear-gradient(180deg, var(--primary-color, #FFD700) 0%, var(--secondary-color, #FFA500) 30%, transparent 70%),
    radial-gradient(ellipse at 50% 0%, var(--primary-color, #FFD700) 0%, transparent 50%);
  opacity: 0.6;
  background-size: 100% 100%, 150% 100%;
  background-position: 0% 0%, 50% 0%;
}

/* Aurora Background */
.aurora-bg {
  background: 
    linear-gradient(135deg, var(--primary-color, #FFD700) 0%, transparent 25%, var(--secondary-color, #FFA500) 50%, transparent 75%, var(--primary-color, #FFD700) 100%),
    linear-gradient(45deg, var(--secondary-color, #FFA500) 0%, transparent 30%, var(--primary-color, #FFD700) 60%, transparent 90%);
  opacity: 0.5;
  background-size: 200% 200%, 150% 150%;
  background-position: 0% 0%, 50% 50%;
}

/* Image with effects */
.image-with-shadow {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.image-with-glow {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
              0 0 60px rgba(255, 215, 0, 0.4),
              0 0 90px rgba(255, 215, 0, 0.2);
}

.image-with-shadow-glow {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
              0 0 60px rgba(255, 215, 0, 0.4);
}

/* Overlay Gallery Item */
.overlay-gallery-item {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: #f0f0f0;
  position: relative;
}

.overlay-gallery-item:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.overlay-gallery-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.overlay-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-gallery-item .remove-overlay {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.overlay-gallery-item:hover .remove-overlay {
  display: flex;
}

/* Image Design Modal */
.image-design-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.design-controls {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.design-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.design-section:last-child {
  border-bottom: none;
}

.design-preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 300px;
}

.design-preview {
  flex: 1;
  min-height: 400px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.background-type-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.color-picker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  transition: background 0.3s;
}

.slider:hover {
  background: var(--primary);
  opacity: 0.7;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overlay-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

/* Galeri layout - drag event'lerini engelle */
.gallery-layout-container,
.gallery-layout-container *,
.gallery-item-card,
.gallery-item-card * {
  -webkit-user-drag: none !important;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.gallery-item-card img {
  pointer-events: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  cursor: default !important;
}
