* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 0 12px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo img {
  width: 150px;
  height: auto;
}

.logo-imgs {
  display: grid;
}

.logo-imgs .logo-img {
  grid-area: 1 / 1;
  max-width: 100%;
  height: auto;
}

/* Light tema: light logo görünür, dark logo gizli */
.logo-imgs.logo-theme-light .logo-img-light {
  opacity: 1 !important;
  z-index: 1;
  pointer-events: auto;
}

.logo-imgs.logo-theme-light .logo-img-dark {
  opacity: 0 !important;
  z-index: 0;
  pointer-events: none;
}

/* Dark tema: light logo gizli, dark logo görünür */
.logo-imgs.logo-theme-dark .logo-img-light {
  opacity: 0 !important;
  z-index: 0;
  pointer-events: none;
}

.logo-imgs.logo-theme-dark .logo-img-dark {
  opacity: 1 !important;
  z-index: 1;
  pointer-events: auto;
}

/* JS yüklenmeden önce veya sınıf yoksa: light varsayılan */
.logo-imgs .logo-img-light {
  opacity: 1;
}

.logo-imgs .logo-img-dark {
  opacity: 0;
}

.logo span {
  font-size: 16px;
  color: #111;
  text-align: center;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  justify-content: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 18px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.nav a::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.nav a.icon-home::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12l9-9 9 9'/%3E%3Cpath d='M9 21V9h6v12'/%3E%3C/svg%3E");
}

.nav a.icon-products::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.nav a.icon-mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

.nav a.icon-cart::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.6 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.5L23 6H6'/%3E%3C/svg%3E");
}

.nav a.icon-orders::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M7 16h6'/%3E%3C/svg%3E");
}

.nav a.icon-store::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1-5h16l1 5'/%3E%3Cpath d='M4 9h16v11H4z'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.nav a.icon-profile::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c2-4 14-4 16 0'/%3E%3C/svg%3E");
}

.nav a.icon-favorites::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.nav a.icon-admin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v6c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V7z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.nav a.icon-settings::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V22a2 2 0 0 1-4 0v-.2a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H2a2 2 0 0 1 0-4h.2a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h0A1.7 1.7 0 0 0 9 3.2V3a2 2 0 0 1 4 0v.2a1.7 1.7 0 0 0 1 1.5h0a1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v0A1.7 1.7 0 0 0 20.8 11H21a2 2 0 0 1 0 4h-.2a1.7 1.7 0 0 0-1.4 1z'/%3E%3C/svg%3E");
}

.nav a.icon-login::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
}

.nav a.icon-register::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h12v12H3z'/%3E%3Cpath d='M16 8h5'/%3E%3Cpath d='M18.5 5.5v5'/%3E%3C/svg%3E");
}

.nav a.icon-logout::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
}

.nav a:hover {
  background: #f2f2f2;
}

.footer {
  background: #0b0d12;
  border-top: 1px solid #111827;
  padding: 28px 0;
  margin-top: 40px;
  color: #f9fafb;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-section {
  font-size: 14px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-title {
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 4px;
}

.footer-text {
  color: #e5e7eb;
  line-height: 1.4;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-social a {
  padding: 6px 10px;
  border: 1px solid #374151;
  border-radius: 16px;
  font-size: 13px;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-payment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
  width: 100%;
  align-self: center;
}

.footer-payment-bottom {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.footer-payment-logo {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}


.footer-copyright {
  margin-top: 10px;
  font-size: 12.5px;
  color: #cbd5f5;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.footer-links a {
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
}

.footer-pre {
  white-space: pre-line;
  line-height: 1.5;
  color: #e5e7eb;
}

.footer a {
  color: #f9fafb;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 32px));
  background: #111827;
  color: #f9fafb;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 999;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .cookie-banner {
  background: #0f172a;
  border-color: #1e293b;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 6px;
  line-height: 1;
}

.messages-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.messages-tabs a {
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.messages-tabs a:hover {
  background: #e5e7eb;
}
.messages-tabs a.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}
.message-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.message-card.unread {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
}
.message-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.message-card-from,
.message-card-to {
  font-weight: 600;
  color: #1f2937;
}
.message-card-date {
  font-size: 13px;
  color: #6b7280;
}
.message-card-subject {
  font-size: 15px;
  margin-bottom: 8px;
  color: #374151;
}
.message-card-preview {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.45;
  max-height: 2.9em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}
.message-batch-recipients {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}
.conversation-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.conversation-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.conversation-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 14px;
  position: relative;
}
.conversation-bubble.sent {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.conversation-bubble.received {
  align-self: flex-start;
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}
.conversation-bubble-meta {
  font-size: 12px;
  margin-bottom: 6px;
  opacity: 0.9;
}
.conversation-bubble-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}
.message-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}
.message-detail-card .message-body-block {
  margin-top: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.6;
}
[data-theme="dark"] .message-card,
[data-theme="dark"] .message-detail-card { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .message-card.unread { background: #111827; border-left-color: #3b82f6; }
[data-theme="dark"] .message-card-from,
[data-theme="dark"] .message-card-to { color: #f3f4f6; }
[data-theme="dark"] .message-card-subject { color: #e5e7eb; }
[data-theme="dark"] .conversation-bubble.received { background: #374151; border-color: #4b5563; color: #e5e7eb; }
[data-theme="dark"] .messages-tabs a { background: #374151; color: #e5e7eb; border-color: #4b5563; }
[data-theme="dark"] .messages-tabs a:hover { background: #4b5563; }
[data-theme="dark"] .messages-tabs a.active { background: #2563eb; color: #fff; }

.message-recipients-list {
  margin: 8px 0 16px;
  padding-left: 24px;
  line-height: 1.6;
}
.message-recipients-list li { margin-bottom: 4px; }

[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: #0f1115;
  color: #e5e7eb;
}

[data-theme="dark"] .header {
  background: #111827;
  border-bottom: 1px solid #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .nav {
  border-top: 1px solid #1f2937;
}

[data-theme="dark"] .nav a {
  color: #e5e7eb;
}

[data-theme="dark"] .nav a:hover {
  background: #1f2937;
}

[data-theme="dark"] .nav a::before {
  filter: invert(1);
}

[data-theme="dark"] .logo span {
  color: #e5e7eb;
}

[data-theme="dark"] .lang-select label {
  color: #9ca3af;
}

[data-theme="dark"] .lang-select select {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

[data-theme="dark"] .theme-toggle {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #1f2937;
}

[data-theme="dark"] .theme-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .card,
[data-theme="dark"] .form,
[data-theme="dark"] .hero {
  background: #111827;
  color: #e5e7eb;
  box-shadow: none;
  border: 1px solid #1f2937;
}

[data-theme="dark"] .form input,
[data-theme="dark"] .form textarea,
[data-theme="dark"] .form select,
[data-theme="dark"] .filter-card select,
[data-theme="dark"] .filter-card input {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #334155;
}

[data-theme="dark"] .footer {
  background: #0b0d12;
  color: #e5e7eb;
}

[data-theme="dark"] .footer-title {
  color: #e5e7eb;
}

[data-theme="dark"] .footer-text,
[data-theme="dark"] .footer-pre,
[data-theme="dark"] .footer-section {
  color: #cbd5f5;
}

[data-theme="dark"] .footer-social a {
  border-color: #374151;
  color: #e5e7eb;
  background: #111827;
}

[data-theme="dark"] .card-logo rect {
  fill: #0f172a;
  stroke: #374151;
}

[data-theme="dark"] .alert-success {
  background: #0f2f1f;
  color: #a7f3d0;
  border-color: #14532d;
}

[data-theme="dark"] .alert-error {
  background: #2b1113;
  color: #fecaca;
  border-color: #7f1d1d;
}

[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .nav a {
  flex-direction: row-reverse;
}

[dir="rtl"] .form label,
[dir="rtl"] .card,
[dir="rtl"] .hero {
  text-align: right;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.lang-select label {
  color: #666;
}

.lang-select select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}

.theme-toggle {
  height: 32px;
  width: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.theme-toggle:hover {
  background: #f2f2f2;
}

.theme-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='M4.93 4.93l1.41 1.41'/%3E%3Cpath d='M17.66 17.66l1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='M4.93 19.07l1.41-1.41'/%3E%3Cpath d='M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.hero {
  background: #ffffff;
  padding: 40px 0;
  margin: 24px 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

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

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  padding: 32px;
  margin: 24px 0;
  border-radius: 20px;
  background: linear-gradient(120deg, #ffffff 0%, #f4f7ff 60%, #edf2ff 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.home-hero-content h1 {
  font-size: 36px;
  margin: 12px 0 10px;
  line-height: 1.2;
  color: #111827;
}

.home-hero-content p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #eef2f7;
  display: grid;
  gap: 4px;
}

.metric-card strong {
  font-size: 18px;
  color: #111827;
}

.metric-card span {
  font-size: 12.5px;
  color: #64748b;
}

.home-hero-panel {
  display: grid;
  gap: 16px;
}

.home-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #eef2f7;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.home-card-header {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.home-quick-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13.5px;
}

.home-hero-graphic {
  position: relative;
  min-height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827 0%, #1d4ed8 55%, #6366f1 100%);
  overflow: hidden;
}

.home-hero-graphic .glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(10px);
  right: -40px;
  top: -40px;
}

.hero-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 12px 0 24px;
}

.feature-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #111827;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.feature-icon.icon-shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234334f6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l8 4v6c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V7z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.feature-icon.icon-spark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234334f6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z'/%3E%3Cpath d='M14 10l2 4 4 2-4 2-2 4-2-4-4-2 4-2z'/%3E%3C/svg%3E");
}

.feature-icon.icon-truck {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234334f6' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpath d='M16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='1.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='1.5'/%3E%3C/svg%3E");
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  margin-bottom: 24px;
}

.home-cta h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.home-cta p {
  margin: 0;
  color: #cbd5f5;
  font-size: 14px;
}

/* Ana sayfa: 3 blok (slider, öne çıkan, indirimli) */
.home-blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 20px 0 32px;
}

/* Anasayfa reklam bloğu (mağaza açılımı) – ışık geçişli / yanıp sönen */
@keyframes home-ad-glow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25),
                0 0 24px rgba(59, 130, 246, 0.15),
                inset 0 0 40px rgba(59, 130, 246, 0.04);
    border-color: #334155;
  }
  50% {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35),
                0 0 48px rgba(59, 130, 246, 0.35),
                0 0 80px rgba(59, 130, 246, 0.12),
                inset 0 0 60px rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
  }
}

@keyframes home-ad-shine {
  0% { transform: translateX(-100%) skewX(-12deg); opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { transform: translateX(200%) skewX(-12deg); opacity: 0.5; }
}

.home-ad-block {
  border-radius: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  border: 1px solid #334155;
  color: #e2e8f0;
  animation: home-ad-glow 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.home-ad-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(59, 130, 246, 0.12),
    rgba(59, 130, 246, 0.25),
    transparent);
  pointer-events: none;
  animation: home-ad-shine 3s ease-in-out infinite;
}
.home-ad-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(59, 130, 246, 0.15) 25%,
    rgba(59, 130, 246, 0.4) 50%,
    rgba(59, 130, 246, 0.15) 75%,
    transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.home-ad-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.home-ad-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.home-ad-subtitle {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.home-ad-note {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #94a3b8;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.home-ad-cta {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  background: #3b82f6;
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.home-ad-cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
}
[data-theme="dark"] .home-ad-block {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}
[data-theme="dark"] .home-ad-block::after {
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(59, 130, 246, 0.2) 25%,
    rgba(59, 130, 246, 0.45) 50%,
    rgba(59, 130, 246, 0.2) 75%,
    transparent 100%);
}

.home-block {
  border-radius: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease;
}

.home-block:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.home-block-slider {
  background: linear-gradient(165deg, #f8faff 0%, #ffffff 45%, #fafbff 100%);
  border-color: #e0e7ff;
}

.home-block-featured {
  background: linear-gradient(165deg, #fffbeb 0%, #ffffff 45%, #fffef8 100%);
  border-color: #fef3c7;
}

.home-block-discounted {
  background: linear-gradient(165deg, #fff5f5 0%, #ffffff 45%, #fffafa 100%);
  border-color: #fecaca;
}

[data-theme="dark"] .home-block {
  background: #111827;
  border-color: #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .home-block:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .home-block-slider {
  background: linear-gradient(165deg, #0f172a 0%, #111827 50%, #0f172a 100%);
  border-color: #1e3a5f;
}

[data-theme="dark"] .home-block-featured {
  background: linear-gradient(165deg, #1c1917 0%, #111827 50%, #1c1917 100%);
  border-color: #422006;
}

[data-theme="dark"] .home-block-discounted {
  background: linear-gradient(165deg, #1c1917 0%, #111827 50%, #1f0f0f 100%);
  border-color: #450a0a;
}

.home-section {
  margin: 0;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.home-block-featured .home-section-header { border-bottom-color: #fef3c7; }
.home-block-discounted .home-section-header { border-bottom-color: #fecaca; }
.home-block-slider .home-section-header { border-bottom-color: #e0e7ff; }

[data-theme="dark"] .home-section-header { border-bottom-color: #1f2937; }

.home-section-header h2 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.home-block .home-section-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.title-icon.icon-star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M12 2l2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.8 6.2 20.2l1.1-6.6L2.5 9l6.6-.9L12 2z'/%3E%3C/svg%3E");
}

.title-icon.icon-discount {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2'%3E%3Cpath d='M12 2l2.6 2.6L18 4l.4 3.4L22 10l-2.6 2.6L22 16l-3.6 2.6L18 22l-3.4-.6L12 24l-2.6-2.6L6 22l-.4-3.4L2 16l2.6-2.6L2 10l3.6-2.6L6 4l3.4.6L12 2z'/%3E%3Cpath d='M8 8l8 8'/%3E%3Ccircle cx='9' cy='15' r='1'/%3E%3Ccircle cx='15' cy='9' r='1'/%3E%3C/svg%3E");
}

.title-icon.icon-new {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

[data-theme="dark"] .title-icon.icon-star {
  filter: brightness(1.1);
}

[data-theme="dark"] .title-icon.icon-discount {
  filter: brightness(1.1);
}

[data-theme="dark"] .title-icon.icon-new {
  filter: brightness(1.1);
}

.btn-link {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
}

/* New products slider (replaces hero + features) */
.home-new-slider {
  margin: 0;
}

.home-slider-wrap {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
}

.home-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  padding: 8px 0 16px;
  scrollbar-width: thin;
}

.home-slider-track::-webkit-scrollbar {
  height: 8px;
}

.home-slider-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.home-slider-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.home-slider-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-slider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.home-slider-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.home-slider-card .product-thumb-wrap {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-slider-card .product-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slider-card .product-no-image {
  font-size: 12px;
  color: #94a3b8;
  padding: 12px;
}

.home-slider-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
}

.home-slider-add-cart {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
}

.home-slider-add-cart .btn-primary {
  flex: 1;
  min-width: 0;
  width: 100%;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.2);
}

.home-slider-card-actions .btn-outline {
  flex: 1;
  min-width: 0;
  text-align: center;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  border-width: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.home-slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin-top: 24px;
}

.home-slider-btn:hover {
  background: #f1f5f9;
  color: #111827;
}

.home-slider-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

[data-theme="dark"] .home-slider-card {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .home-slider-btn {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

[data-theme="dark"] .home-slider-btn:hover {
  background: #374151;
  color: #fff;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #eef2f7;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.home-product-name {
  font-weight: 700;
  color: #111827;
  font-size: 14.5px;
}

.home-product-meta {
  font-size: 12.5px;
  color: #64748b;
}

.home-product-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 12.5px;
}

.price-new {
  font-size: 15px;
  font-weight: 700;
  color: #16a34a;
}

.price-tax-note {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
  margin-left: 4px;
}

.product-price-value {
  color: #16a34a;
  font-weight: 600;
}

.product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-featured {
  background: #111827;
  color: #fff;
}

.badge-discount {
  background: #ef4444;
  color: #fff;
}

.badge-video {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-video::before {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* Video rozeti ürün kartı galerisinde köşede */
.product-card-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.badge-success {
  background: #22c55e;
  color: #fff;
}

.badge-error {
  background: #ef4444;
  color: #fff;
}

[data-theme="dark"] .home-section-header h2,
[data-theme="dark"] .home-product-name {
  color: #e5e7eb;
}

[data-theme="dark"] .home-product-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .home-product-meta {
  color: #cbd5f5;
}

[data-theme="dark"] .price-old {
  color: #94a3b8;
}

[data-theme="dark"] .btn-link {
  color: #93c5fd;
}

[dir="rtl"] .home-section-header {
  flex-direction: row-reverse;
}

[data-theme="dark"] .home-hero {
  background: linear-gradient(120deg, #0f172a 0%, #111827 70%, #0b1220 100%);
  box-shadow: none;
}

[data-theme="dark"] .home-hero-content h1 {
  color: #e5e7eb;
}

[data-theme="dark"] .home-hero-content p {
  color: #cbd5f5;
}

[data-theme="dark"] .hero-pill {
  background: #e5e7eb;
  color: #111827;
}

[data-theme="dark"] .metric-card,
[data-theme="dark"] .home-card,
[data-theme="dark"] .feature-card {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .metric-card strong,
[data-theme="dark"] .home-card-header,
[data-theme="dark"] .feature-card h3 {
  color: #e5e7eb;
}

[data-theme="dark"] .metric-card span,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .home-quick-list {
  color: #cbd5f5;
}

[data-theme="dark"] .feature-icon {
  background-color: #1f2937;
}

[data-theme="dark"] .home-cta {
  background: #0f172a;
}

[dir="rtl"] .home-hero {
  direction: rtl;
}

[dir="rtl"] .home-cta {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) {
  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-blocks {
    gap: 20px;
    margin: 16px 0 24px;
  }
  .home-block {
    padding: 16px;
    border-radius: 16px;
  }
  .home-slider-card {
    flex: 0 0 180px;
  }
}

/* Admin Dashboard Tabs */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.admin-tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}
.admin-tab:hover {
  background: #e2e8f0;
  color: #334155;
}
.admin-tab.is-active {
  background: #3b82f6;
  color: #fff;
}
.admin-section-content h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
}
.admin-section-content .card {
  margin-bottom: 16px;
}
.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.admin-list-item:last-child {
  border-bottom: 0;
}
.admin-list-label {
  font-weight: 600;
  min-width: 120px;
}
.admin-list-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
}
.admin-list-form input[type="text"],
.admin-list-form select {
  min-width: 80px;
}
.admin-list-form input[name^="category_name_"] {
  min-width: 100px;
}
[data-theme="dark"] .admin-tabs { border-bottom-color: #374151; }
[data-theme="dark"] .admin-tab { background: #374151; color: #9ca3af; }
[data-theme="dark"] .admin-tab:hover { background: #4b5563; color: #d1d5db; }
[data-theme="dark"] .admin-tab.is-active { background: #3b82f6; color: #fff; }
[data-theme="dark"] .admin-list-item { border-bottom-color: #374151; }

/* Admin searchable combobox */
.admin-combobox { position: relative; max-width: 400px; }
.admin-combobox-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.admin-combobox-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
.admin-combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
}
.admin-combobox-dropdown.is-open { display: block; }
.admin-combobox-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.admin-combobox-item:last-child { border-bottom: 0; }
.admin-combobox-item:hover {
  background: #f1f5f9;
}
[data-theme="dark"] .admin-combobox-input { background: #1f2937; border-color: #374151; color: #f9fafb; }
[data-theme="dark"] .admin-combobox-dropdown { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .admin-combobox-item { border-bottom-color: #374151; }
[data-theme="dark"] .admin-combobox-item:hover { background: #374151; }
.admin-table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.admin-table th { background: #f9fafb; font-weight: 600; color: #374151; }
.admin-table tbody tr:hover { background: #f9fafb; }
.admin-stores-summary { margin: 0 0 16px; font-size: 1rem; }
.admin-role-user-info { margin-top: 16px; padding: 14px 18px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }
.admin-role-user-info p { margin: 0 0 8px; font-size: 14px; }
.admin-role-user-info p:last-child { margin-bottom: 0; }
[data-theme="dark"] .admin-role-user-info { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .admin-table th { background: #1f2937; color: #e5e7eb; }
[data-theme="dark"] .admin-table td { border-bottom-color: #374151; }
[data-theme="dark"] .admin-table tbody tr:hover { background: #1f2937; }

/* Products page filter combobox (searchable select) */
.filter-combobox { position: relative; width: 100%; max-width: 100%; }
.filter-combobox-select-native {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
}
.filter-combobox-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.filter-combobox-input::placeholder { color: #9ca3af; }
.filter-combobox-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
.filter-combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
}
.filter-combobox-dropdown.is-open { display: block; }
.filter-combobox-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.filter-combobox-item:last-child { border-bottom: 0; }
.filter-combobox-item:hover { background: #f1f5f9; }
.filter-combobox-item.is-selected { background: #eff6ff; font-weight: 500; }
.filter-combobox-item.is-hidden { display: none !important; }
.filter-combobox-item input[type="checkbox"] { margin-right: 8px; vertical-align: middle; }
[data-theme="dark"] .filter-combobox-input { background: #1f2937; border-color: #374151; color: #f9fafb; }
[data-theme="dark"] .filter-combobox-dropdown { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .filter-combobox-item { border-bottom-color: #374151; }
[data-theme="dark"] .filter-combobox-item:hover { background: #374151; }
[data-theme="dark"] .filter-combobox-item.is-selected { background: #1e3a5f; }
.filter-combobox-inline { min-width: 140px; max-width: 200px; }

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer {
  margin-top: 40px;
  padding: 24px 0;
  background: #1d1d1d;
  color: #ffffff;
}

.footer-text {
  font-size: 14px;
}

.form {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

.form-hint {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

.form-hint a {
  color: #2563eb;
}

.form-hint-warning {
  color: #b45309;
  margin-top: 4px;
}

.product-video-ts-notice {
  margin-top: 8px;
  font-size: 13px;
  color: #b45309;
}

.store-logo-preview {
  margin-bottom: 12px;
}

.store-logo-img {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.warranty-duration-wrap {
  margin-top: 8px;
}

.form-sections .form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.form-sections .form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
}

/* Add product steps indicator */
.add-product-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.add-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}
.add-step.active {
  background: #3b82f6;
  color: #fff;
}
.add-step.done {
  background: #dcfce7;
  color: #166534;
}
.add-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  font-size: 13px;
}
.add-step.active .add-step-num {
  background: rgba(255,255,255,0.3);
}
.add-product-step-card {
  max-width: 560px;
}
.add-product-step-desc {
  margin: 0 0 20px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 6px;
  font-weight: 500;
}
.form-check input {
  width: auto;
}

.quick-add-model {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.quick-add-model label {
  margin-top: 0;
  font-size: 13px;
  color: #475569;
}
.quick-add-model-form {
  margin-top: 8px;
}
.quick-add-model-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.quick-add-model-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
}
.quick-add-model-row .btn-outline {
  flex-shrink: 0;
}

[data-theme="dark"] .form-sections .form-section {
  border-color: #374151;
}

[data-theme="dark"] .form-section-title {
  color: #e5e7eb;
}

.form label {
  display: block;
  font-size: 14px;
  margin: 12px 0 6px;
}

.form input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  resize: vertical;
}

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 0 40px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid #eef2f7;
}

.auth-header {
  padding: 26px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.auth-header h1 {
  margin: 12px 0 6px;
  font-size: 22px;
}

.auth-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 3h-4a2 2 0 0 0-2 2v4'/%3E%3Cpath d='M21 21h-4a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

.auth-body {
  padding: 20px 22px 24px;
}

.auth-form {
  background: transparent;
  padding: 0;
}

.user-type-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-left: 0;
}
.user-type-group .radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 500;
}
.user-type-group input[type="radio"] {
  margin: 0;
}
.price-corporate-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
}
[data-theme="dark"] .price-corporate-badge {
  background: #1e3a8a;
  color: #93c5fd;
}

.input-group {
  position: relative;
}

.input-group input {
  padding-left: 36px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.6;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.input-icon.icon-mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
}

.input-icon.icon-lock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.input-icon.icon-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c2-4 14-4 16 0'/%3E%3C/svg%3E");
}

.input-icon.icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 6px;
  font-size: 13px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.auth-link {
  color: #2563eb;
  font-weight: 600;
  font-size: 13px;
}

.auth-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.auth-form .btn-primary {
  width: 100%;
  display: block;
  text-align: center;
  padding: 12px 18px;
  font-size: 15px;
  margin-top: 6px;
}

[data-theme="dark"] .auth-card {
  background: #0f172a;
  border-color: #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .auth-body {
  color: #e5e7eb;
}

[data-theme="dark"] .checkbox {
  color: #cbd5f5;
}

[data-theme="dark"] .auth-footer {
  color: #cbd5f5;
}

[data-theme="dark"] .input-icon {
  filter: invert(1);
}

.captcha-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.captcha-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  min-width: 140px;
}

.captcha-code {
  letter-spacing: 6px;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.captcha-refresh {
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background-color: #2563eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.4'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  cursor: pointer;
}

.captcha-input {
  max-width: 180px;
  text-align: center;
}

.form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[data-theme="dark"] .captcha-box {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .captcha-code {
  color: #e5e7eb;
}

[data-theme="dark"] .captcha-refresh {
  background-color: #3b82f6;
}

.image-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.image-preview-item {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

.image-thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.image-thumb-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  width: 120px;
}

.image-thumb-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.image-thumb-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.image-thumb-actions button {
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.image-thumb-actions form:last-child button {
  background: #b91c1c;
}

.image-cover {
  display: inline-block;
  font-size: 12px;
  color: #0f5132;
  background: #d1e7dd;
  padding: 4px 6px;
  border-radius: 6px;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.alert-success {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.card-passive {
  opacity: 0.6;
  border: 1px dashed #f5c2c7;
}

.status-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.status-passive {
  background: #f8d7da;
  color: #842029;
}

.status-review {
  background: #fff3cd;
  color: #664d03;
}

.status-preparing {
  background: #dbeafe;
  color: #1e3a8a;
}

.status-pending {
  background: #e2e8f0;
  color: #334155;
}

.status-shipped {
  background: #ede9fe;
  color: #5b21b6;
}

.status-delivered {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.table-search {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 220px;
  font-size: 14px;
  background: #fff;
}

.table-wrap {
  padding: 0;
  overflow: auto;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #f3f6ff;
}

.detail-row {
  display: none;
  background: #f9fafb;
}

.detail-card {
  padding: 12px 10px 14px;
}

.detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
}

.detail-items {
  display: grid;
  gap: 10px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.detail-item-name {
  font-weight: 600;
}

.detail-item-meta {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.inline-form {
  display: inline-flex;
}

.data-table tbody tr:nth-child(4n+1):not(.detail-row),
.data-table tbody tr:nth-child(4n+2):not(.detail-row) {
  background: #ffffff;
}

.data-table tbody tr:nth-child(4n+3):not(.detail-row),
.data-table tbody tr:nth-child(4n+4):not(.detail-row) {
  background: #f9fafb;
}

.table-search:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.table-actions .btn-outline,
.table-actions .btn-primary {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
}

.data-table td {
  white-space: nowrap;
}

.data-table td:nth-child(1),
.data-table td:nth-child(2) {
  white-space: nowrap;
}

.col-select {
  width: 36px;
}

.row-select,
.row-select-all {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
}

.table-left,
.table-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.table-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-date {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
}

.table-page-size {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
}

.table-pagination {
  display: inline-flex;
  gap: 6px;
}

.page-btn {
  min-width: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12.5px;
  cursor: pointer;
}

.page-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.data-table th.is-sortable {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}

.data-table th.is-sortable::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23111827' stroke-width='2'%3E%3Cpath d='M6 8l4-4 4 4'/%3E%3Cpath d='M14 12l-4 4-4-4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.data-table th.is-sortable.is-asc::after {
  opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23111827' stroke-width='2'%3E%3Cpath d='M6 12l4-4 4 4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.data-table th.is-sortable.is-desc::after {
  opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23111827' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
}

[data-theme="dark"] .table-wrap {
  background: #0f172a;
  border-color: #1f2937;
}

[data-theme="dark"] .table-search {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

[data-theme="dark"] .data-table thead {
  background: #0f172a;
}

[data-theme="dark"] .data-table th {
  color: #e5e7eb;
}

[data-theme="dark"] .data-table th,
[data-theme="dark"] .data-table td {
  border-color: #1f2937;
}

[data-theme="dark"] .data-table tbody tr:hover {
  background: #111827;
}

[data-theme="dark"] .detail-row {
  background: #0b1220;
}

[data-theme="dark"] .detail-item {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .table-label {
  color: #cbd5f5;
}

[data-theme="dark"] .table-date,
[data-theme="dark"] .table-page-size {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

[data-theme="dark"] .page-btn {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

[data-theme="dark"] .page-btn.is-active {
  background: #e5e7eb;
  color: #111827;
  border-color: #e5e7eb;
}

[data-theme="dark"] .data-table th.is-sortable::after {
  filter: invert(1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stats-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 14px 16px;
}

.stats-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

.stats-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.stats-link {
  display: inline-block;
  font-size: 12px;
  margin-top: 8px;
  color: #2563eb;
}

.stats-card.stats-warning { border-left: 4px solid #f59e0b; }
.stats-card.stats-danger { border-left: 4px solid #dc2626; }
.stats-card.stats-success { border-left: 4px solid #059669; }

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links-list li { margin-bottom: 8px; }
.quick-links-list a { color: #2563eb; }

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

[data-theme="dark"] .stats-card {
  background: #0f172a;
  border-color: #1f2937;
}

[data-theme="dark"] .stats-label {
  color: #cbd5f5;
}

[data-theme="dark"] .stats-value {
  color: #e5e7eb;
}

[data-theme="dark"] .data-table tbody tr:nth-child(4n+1):not(.detail-row),
[data-theme="dark"] .data-table tbody tr:nth-child(4n+2):not(.detail-row) {
  background: #0f172a;
}

[data-theme="dark"] .data-table tbody tr:nth-child(4n+3):not(.detail-row),
[data-theme="dark"] .data-table tbody tr:nth-child(4n+4):not(.detail-row) {
  background: #111827;
}

.store-product-table .col-image {
  width: 58px;
  vertical-align: middle;
  padding: 8px 10px;
}

.store-product-thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.store-product-thumb-link:hover .store-product-thumb {
  box-shadow: 0 0 0 2px #3b82f6;
}
.store-product-name-link {
  font-weight: 600;
}
.store-product-name-link:hover {
  text-decoration: underline;
}

.store-product-thumb-wrap {
  position: relative;
  display: inline-block;
}

.store-product-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.store-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-product-thumb .product-no-image {
  min-height: 0;
  margin-bottom: 0;
  font-size: 9px;
  padding: 2px;
}

.store-product-thumb-preview {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  width: 160px;
  height: 160px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.store-product-thumb-wrap:hover .store-product-thumb-preview {
  opacity: 1;
  visibility: visible;
}

.store-product-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.store-product-table td:nth-child(2) {
  white-space: normal;
  max-width: 220px;
}

.store-product-table .row-passive {
  opacity: 0.85;
}

.store-product-table .row-featured {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, transparent 12%);
}
.store-product-table .row-discounted {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, transparent 12%);
}
.store-product-table .row-featured.row-discounted {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, rgba(34, 197, 94, 0.06) 8%, transparent 18%);
}

.store-product-table .col-featured {
  width: 72px;
  text-align: center;
  vertical-align: middle;
}
.badge-featured {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 14px;
  font-weight: 600;
}

/* Customer product grid: featured & discounted cards */
.product-card-featured {
  border-left: 4px solid #eab308;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.25) 0%, transparent 50%);
}
.product-card-discounted {
  border-left: 4px solid #22c55e;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.3) 0%, transparent 50%);
}
.product-card-featured.product-card-discounted {
  border-left: 4px solid #22c55e;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.15) 0%, rgba(220, 252, 231, 0.2) 40%, transparent 70%);
}
.product-card-out-of-stock {
  border: 2px solid #dc2626;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.25) 0%, transparent 50%);
}
.badge-out-of-stock {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #dc2626;
  border-radius: 6px;
}
[data-theme="dark"] .product-card-out-of-stock {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35) 0%, transparent 50%);
}
[data-theme="dark"] .badge-out-of-stock {
  background: #b91c1c;
  color: #fff;
}

/* Kullanılmış ürün uyarısı */
.product-card-used {
  border-left: 4px solid #ea580c;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.35) 0%, transparent 50%);
}
.badge-used {
  display: inline-block;
  margin-bottom: 6px;
  margin-right: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #ea580c;
  border-radius: 6px;
}
.product-card-used-notice {
  margin: 0 0 10px 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #9a3412;
  background: rgba(234, 88, 12, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(234, 88, 12, 0.3);
}
[data-theme="dark"] .product-card-used {
  border-left-color: #f97316;
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.25) 0%, transparent 50%);
}
[data-theme="dark"] .badge-used {
  background: #c2410c;
  color: #fff;
}
[data-theme="dark"] .product-card-used-notice {
  color: #fed7aa;
  background: rgba(154, 52, 18, 0.35);
  border-color: rgba(249, 115, 22, 0.4);
}

/* Ürün detay – kullanılmış ürün belirgin uyarı */
.product-used-alert {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #ea580c;
  border-radius: 12px;
  color: #9a3412;
}
.product-used-alert strong {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #c2410c;
}
.product-used-alert p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}
[data-theme="dark"] .product-used-alert {
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.3) 0%, rgba(124, 45, 18, 0.4) 100%);
  border-color: #f97316;
  color: #fed7aa;
}
[data-theme="dark"] .product-used-alert strong {
  color: #fdba74;
}

.badge-featured-inline {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
}
.badge-discount-inline {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}
.product-card-price .product-price-value {
  font-size: 1.05em;
}

/* Ürün listesi – kart içi butonlar en altta, yan yana */
.products-main .grid .product-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.products-main .grid .product-card .product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.products-main .grid .product-card .product-card-add-cart {
  display: inline-block;
}
[data-theme="dark"] .products-main .grid .product-card .product-card-actions {
  border-top-color: #374151;
}

/* Store product list – filter panel */
.store-product-filters .store-filters-form {
  padding: 0;
}
.store-product-filters .store-filters-section {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.store-product-filters .store-filters-section:last-of-type {
  border-bottom: 0;
}
.store-product-filters .store-filters-primary {
  background: #f8fafc;
  border-radius: 10px 10px 0 0;
}
.store-product-filters .store-filters-heading {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-product-filters .store-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 20px;
  align-items: end;
}
.store-product-filters .store-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.store-product-filters .store-filter-group label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.store-product-filters .store-filter-group select,
.store-product-filters .store-filter-group input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.store-product-filters .store-filter-group-wide {
  grid-column: 1 / -1;
  max-width: 320px;
}
.store-product-filters .store-filter-actions {
  align-items: flex-end;
}
.store-product-filters .store-filter-actions .btn-primary {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.store-product-table.data-table th,
.store-product-table.data-table td {
  padding: 10px 12px;
}

.store-product-table.data-table th {
  font-size: 12px;
}

.store-product-table.data-table td {
  font-size: 14px;
}

/* Store customers: clickable row + expandable detail */
.store-customers-click-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}
.store-customers-table .store-customer-row {
  cursor: pointer;
}
.store-customers-table .store-customer-row:hover {
  background: #eff6ff !important;
}
.store-customers-table .store-customer-row.is-expanded {
  background: #dbeafe !important;
}
.store-customers-table .store-customer-detail-row td {
  vertical-align: top;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
.store-customer-detail-cell {
  padding: 0 !important;
}
.store-customer-detail-inner {
  padding: 16px 20px;
}
.store-customer-detail-section {
  margin-bottom: 16px;
}
.store-customer-detail-section:last-child {
  margin-bottom: 0;
}
.store-customer-detail-section h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.store-customer-detail-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.store-customer-detail-list li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}
.store-customer-detail-list li:last-child {
  margin-bottom: 0;
}
.store-customers-table .col-name {
  font-weight: 600;
}

/* Store return requests: card layout */
.store-returns-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.store-return-card {
  padding: 20px;
}
.store-return-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.store-return-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  color: #475569;
}
.store-return-meta strong {
  color: #111827;
}
.store-return-section {
  margin-bottom: 20px;
}
.store-return-section:last-of-type {
  margin-bottom: 0;
}
.store-return-section-title {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.store-return-reason {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.store-return-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.store-return-photo-link {
  display: block;
}
.store-return-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.store-return-main-form {
  margin-top: 0;
}
.store-return-note-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 12px;
}
.store-return-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.store-return-note-readonly {
  padding: 12px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #334155;
}
.store-return-note-locked-hint {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

/* Store returns: table + expandable detail (same style as Siparişlerim) */
.store-return-row {
  cursor: pointer;
}
.store-return-row:hover {
  background: #eff6ff !important;
}
.store-return-row.is-expanded {
  background: #eff6ff !important;
}
.store-return-detail-cell {
  padding: 0;
  vertical-align: top;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.store-return-detail-inner {
  padding: 12px 10px 14px;
  background: #f9fafb;
}
.store-return-detail-inner .store-return-section-title {
  margin-top: 0;
}

/* My returns (customer) */
.my-returns-hint {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.my-return-row {
  cursor: pointer;
}
.my-return-row:hover {
  background: #eff6ff !important;
}
.my-return-row.is-expanded {
  background: #dbeafe !important;
}
.my-return-detail {
  padding: 16px 20px;
  background: #f8fafc;
  text-align: left;
}
.my-return-detail-section {
  margin-bottom: 16px;
}
.my-return-detail-section:last-child {
  margin-bottom: 0;
}
.my-return-detail-section h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.my-return-reason,
.my-return-store-note {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.my-return-store-response .my-return-store-note {
  background: #e0f2fe;
  border-color: #bae6fd;
}
.my-return-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.my-return-photo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
#my-returns-table .detail-cell {
  padding: 0;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.form-inline .form-row-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.form-inline .form-row-wrap label {
  margin-bottom: 0;
  margin-right: 4px;
}

.form-inline .form-row-wrap select,
.form-inline .form-row-wrap input[type="text"] {
  width: auto;
  min-width: 100px;
}

.form-inline .form-row-wrap .btn-primary {
  margin-top: 0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-primary.btn-sm {
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.2);
}
.btn-outline.btn-sm {
  border-width: 1.5px;
}

.text-muted { color: #6b7280; }
.text-small { font-size: 12px; }

[data-theme="dark"] .store-product-thumb {
  background: #374151;
}

[data-theme="dark"] .store-product-thumb-preview {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .text-muted {
  color: #9ca3af;
}

.product-gallery {
  position: relative;
  margin-bottom: 8px;
  height: 200px;
}

.product-image-link {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  gap: 8px;
}

.product-image-link:hover .product-image-overlay {
  opacity: 1;
}

.overlay-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.product-gallery-main {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  display: block;
}

.product-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  height: 28px;
}

.product-gallery-thumbs img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  opacity: 0.7;
}

.product-gallery-thumbs img.active {
  opacity: 1;
  border-color: #111;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.filter-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.products-main {
  min-width: 0;
}

.products-sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.products-sort-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.products-sort-bar select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  background: #fff;
  min-width: 180px;
}

.filter-card label {
  font-size: 13px;
  margin-top: 10px;
}

.filter-card select,
.filter-card input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.filter-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-clear {
  background: #e5e7eb;
  color: #111;
  margin-top: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  border-radius: 8px;
  text-decoration: none;
}

/* Ürün detay: üstte kategori breadcrumb (tıklanınca o kategorideki ürünler) */
.product-detail-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.product-detail-categories a {
  color: #4f46e5;
  text-decoration: none;
}
.product-detail-categories a:hover {
  text-decoration: underline;
}
.product-detail-categories-sep {
  color: #94a3b8;
  user-select: none;
}
[data-theme="dark"] .product-detail-categories a {
  color: #818cf8;
}
[data-theme="dark"] .product-detail-categories-sep {
  color: #64748b;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.product-detail-gallery {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.product-detail-media-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.product-detail-media-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.product-detail-media-tab:hover {
  color: #111827;
}

.product-detail-media-tab.active {
  color: #111827;
  border-bottom-color: #111827;
}

.product-detail-media-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.product-detail-media-pane {
  display: none !important;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.product-detail-media-pane.is-active {
  display: flex !important;
}

.product-detail-video-wrap {
  margin-bottom: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  flex: 1;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-video-wrap:not(.product-detail-media-pane) {
  margin-bottom: 16px;
}

.product-detail-video {
  width: 100%;
  height: 100%;
  max-height: 400px;
  min-height: 280px;
  display: block;
  object-fit: contain;
  vertical-align: top;
}

.product-detail-photos-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.product-detail-main-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  min-height: 360px;
  max-height: 420px;
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
}

.product-detail-main {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  object-fit: contain;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.product-detail-placeholder {
  min-height: 360px;
  border-radius: 10px;
}

.product-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-detail-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  opacity: 0.8;
}

.product-detail-thumbs img.active {
  border-color: #111;
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
}

.lightbox-thumbs {
  position: absolute;
  bottom: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #fff;
  opacity: 0.7;
  cursor: pointer;
}

.lightbox-thumbs img.active {
  opacity: 1;
  border-color: #f97316;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.product-detail-info {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.product-detail-info h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.product-meta > div {
  font-size: 14px;
  color: #374151;
}

.product-stats,
.product-card-stats {
  font-size: 13px;
  color: #6b7280;
}

.product-stats-sep {
  margin: 0 6px;
  color: #9ca3af;
}

.home-product-stats {
  margin-top: 4px;
}

/* Product detail page sections: spacing and modern block layout */
.product-detail-section {
  margin-top: 40px;
  scroll-margin-top: 24px;
}

.product-detail-section:first-of-type {
  margin-top: 36px;
}

.product-detail-section .card,
.product-detail-section .product-description-card {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.product-detail-section-description .product-description-card {
  border-left: 4px solid #3b82f6;
}

.product-section-heading {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-section-heading::before {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.product-section-heading-desc::before {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E");
}

.product-section-heading-specs::before {
  background-color: #e0e7ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234f46e5' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.product-section-heading-qa::before {
  background-color: #d1fae5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23059669' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.product-section-heading-reviews::before {
  background-color: #fef3c7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f59e0b' stroke='%23f59e0b' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.product-section-heading-similar::before {
  background-color: #fce7f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23db2777' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Satın alanlardan gelen yorumlar ve fotoğraflar: başlık şekli (ikon) */
.product-section-heading-buyer-reviews::before {
  background-color: #fef3c7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23d97706' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M9 14h6'/%3E%3C/svg%3E");
}

.product-detail-section-buyer-reviews .product-buyer-reviews-block {
  border-left: 4px solid #f59e0b;
}

.product-buyer-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-buyer-review-item {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}
.product-buyer-review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.product-buyer-review-item:first-child {
  padding-top: 4px;
}

.product-buyer-review-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.product-buyer-review-meta {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.product-buyer-review-stars {
  color: #eab308;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.product-buyer-review-date {
  color: #64748b;
  font-size: 0.85rem;
  margin-left: auto;
}

.product-buyer-review-comment {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.product-buyer-review-photos {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-buyer-review-photo-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-buyer-review-photo-link:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.product-buyer-review-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.product-detail-section-similar .product-section-heading {
  margin-bottom: 20px;
}

.product-detail-section-similar {
  margin-top: 48px;
}

[data-theme="dark"] .product-detail-section-description .product-description-card {
  border-left-color: #60a5fa;
}

.product-detail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.favorite-form {
  margin: 0;
}

.favorite-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  font-size: 18px;
  cursor: pointer;
}

.favorite-btn.active {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.product-actions select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.product-detail-payment-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.product-detail-payment-logos .payment-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.btn-primary {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled,
.btn-primary.btn-disabled {
  background: #94a3b8;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  border: 2px solid #f97316;
  color: #ea580c;
  background: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-outline:hover {
  background: #fff7ed;
  color: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.btn-outline:active {
  transform: translateY(0);
}

.product-specs .product-section-heading {
  margin-bottom: 16px;
}

.product-specs table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.product-specs td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.product-specs tr:last-child td {
  border-bottom: none;
}

.product-specs td:first-child {
  color: #6b7280;
  font-weight: 500;
  width: 40%;
}

.product-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  width: 100%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cart-thumb-wrap .product-no-image,
.product-thumb-wrap .product-no-image {
  min-height: 90px;
  margin-bottom: 0;
}

[data-theme="dark"] .product-no-image {
  background: #374151;
  color: #9ca3af;
}

.product-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.product-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card-name a {
  text-decoration: none;
  color: inherit;
}
.product-card-name a:hover {
  text-decoration: underline;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-thumb {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-summary {
  margin-top: 12px;
  text-align: right;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}

.cart-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-left {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.cart-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-thumb {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.cart-info {
  display: grid;
  gap: 8px;
}

.cart-meta {
  display: flex;
  gap: 16px;
  color: #6b7280;
  font-size: 13px;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.qty-input {
  width: 56px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 6px;
}

.cart-subtotal {
  font-weight: 600;
}

.cart-summary {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 16px;
}

.cart-summary-title {
  font-weight: 700;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary-line.total {
  font-size: 16px;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-grid .card h2 {
  margin-top: 0;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .profile-item {
  border-color: #1f2937;
}

.coupon-card form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.coupon-card input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .cart-meta {
  color: #9ca3af;
}

[data-theme="dark"] .cart-thumb {
  border-color: #1f2937;
}

[data-theme="dark"] .cart-actions select {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #334155;
}

[data-theme="dark"] .qty-controls button,
[data-theme="dark"] .qty-input,
[data-theme="dark"] .coupon-card input {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #334155;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .btn-primary:disabled,
[data-theme="dark"] .btn-primary.btn-disabled {
  background: #64748b;
  box-shadow: none;
}

[data-theme="dark"] .btn-outline {
  border-color: #fb923c;
  color: #fb923c;
  background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(251, 146, 60, 0.15);
}

[data-theme="dark"] .favorite-btn {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

[data-theme="dark"] .favorite-btn.active {
  background: #4c1d1d;
  border-color: #7f1d1d;
  color: #fecaca;
}
[data-theme="dark"] .product-detail-gallery {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .product-detail-media-tabs {
  border-bottom-color: #1f2937;
}

[data-theme="dark"] .product-detail-media-tab {
  color: #9ca3af;
}

[data-theme="dark"] .product-detail-media-tab:hover {
  color: #f3f4f6;
}

[data-theme="dark"] .product-detail-media-tab.active {
  color: #f3f4f6;
  border-bottom-color: #818cf8;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.price-current {
  font-size: 24px;
  font-weight: 700;
  color: #16a34a;
}

.price-old {
  text-decoration: line-through;
  color: #6b7280;
}

.price-discount {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.product-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}

.color-chip {
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.product-description-card {
  margin-top: 0;
  padding: 0;
  background: transparent;
}

.product-description-block {
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  border: none;
  border-left: none;
}

.product-description-block .product-section-heading {
  margin-bottom: 16px;
}

.product-description-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.product-description-content {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.product-description-content p {
  margin: 0 0 0.75em 0;
}

.product-description-content p:last-child {
  margin-bottom: 0;
}

.product-description-empty {
  margin: 0;
  color: #64748b;
  font-style: italic;
}

.product-description p {
  margin: 6px 0 0;
}

.product-qa-block,
.product-reviews-block {
  margin-top: 0;
}

.product-qa-block .product-section-heading,
.product-reviews-block .product-section-heading {
  margin-bottom: 20px;
}

.product-qa-title,
.product-reviews-title {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
}

.product-qa-list,
.product-reviews-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.product-qa-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.product-qa-item:last-child {
  border-bottom: none;
}

.product-qa-meta,
.product-review-meta {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-bottom: 4px;
}

.product-qa-question p,
.product-qa-answer p,
.product-review-item p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

.product-qa-answer {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.product-qa-answer-form {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.product-qa-answer-form textarea {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.product-qa-ask-form label,
.product-review-form label {
  display: block;
  margin: 12px 0 4px 0;
  font-size: 13px;
  font-weight: 600;
}

.product-qa-ask-form textarea,
.product-review-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.product-qa-ask-form button,
.product-review-form button {
  margin-top: 12px;
}

.product-review-form select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.product-qa-empty,
.product-qa-login-hint {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 14px;
}

.product-rating-summary {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-rating-avg {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.product-rating-stars {
  color: #f59e0b;
  font-size: 1.125rem;
}

.product-rating-count {
  font-size: 13px;
  color: #6b7280;
}

.product-review-item {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.product-review-item:last-child {
  border-bottom: none;
}

[data-theme="dark"] .product-qa-answer {
  background: #1f2937;
  border-left-color: #60a5fa;
}

[data-theme="dark"] .product-qa-meta,
[data-theme="dark"] .product-review-meta,
[data-theme="dark"] .product-qa-empty,
[data-theme="dark"] .product-qa-login-hint,
[data-theme="dark"] .product-rating-count {
  color: #9ca3af;
}

[data-theme="dark"] .product-rating-avg {
  color: #f3f4f6;
}

@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-detail-main-wrap {
    min-height: 260px;
    max-height: 320px;
  }
  .product-detail-main {
    max-height: 320px;
  }
}

[data-theme="dark"] .product-detail-main-wrap {
  background: #1f2937;
}

[data-theme="dark"] .product-description-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
  border-left-color: #60a5fa;
}

[data-theme="dark"] .product-description-title {
  color: #f1f5f9;
}

[data-theme="dark"] .product-description-content {
  color: #cbd5e1;
}

[data-theme="dark"] .product-description-empty {
  color: #94a3b8;
}

[data-theme="dark"] .product-detail-gallery,
[data-theme="dark"] .product-detail-info {
  background: #111827;
  border-color: #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .product-detail-info h2 {
  color: #f3f4f6;
}

[data-theme="dark"] .product-meta > div {
  color: #d1d5db;
}

[data-theme="dark"] .product-meta {
  border-color: #374151;
}

[data-theme="dark"] .product-detail-section .card,
[data-theme="dark"] .product-detail-section .product-description-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .product-section-heading {
  color: #f3f4f6;
}

[data-theme="dark"] .product-section-heading-desc::before {
  background-color: #1e3a5f;
}

[data-theme="dark"] .product-section-heading-specs::before {
  background-color: #312e81;
}

[data-theme="dark"] .product-section-heading-qa::before {
  background-color: #064e3b;
}

[data-theme="dark"] .product-section-heading-reviews::before {
  background-color: #78350f;
}

[data-theme="dark"] .product-section-heading-similar::before {
  background-color: #831843;
}

[data-theme="dark"] .product-section-heading-buyer-reviews::before {
  background-color: #78350f;
}

[data-theme="dark"] .product-detail-section-buyer-reviews .product-buyer-reviews-block {
  border-left-color: #f59e0b;
}

[data-theme="dark"] .product-buyer-review-item {
  border-bottom-color: #374151;
}

[data-theme="dark"] .product-buyer-review-meta {
  color: #f3f4f6;
}

[data-theme="dark"] .product-buyer-review-date {
  color: #9ca3af;
}

[data-theme="dark"] .product-buyer-review-comment {
  color: #d1d5db;
}

[data-theme="dark"] .product-buyer-review-photo-link {
  border-color: #4b5563;
}
[data-theme="dark"] .product-buyer-review-photo-link:hover {
  border-color: #f59e0b;
}

[data-theme="dark"] .product-specs td:first-child {
  color: #9ca3af;
}

[data-theme="dark"] .product-specs td {
  border-color: #374151;
}

.filter-card button {
  height: 36px;
  border-radius: 8px;
  font-weight: 600;
  background: #111;
}

.filter-card button:hover {
  opacity: 0.9;
}

@media (max-width: 992px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    max-height: none;
  }
}
/* ========== Checkout Page ========== */
.checkout-page {
  padding: 24px 0 48px;
}

.checkout-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.checkout-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-section-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
}

.checkout-section-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.checkout-section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.checkout-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.checkout-muted {
  color: #64748b;
  font-size: 14px;
  padding: 12px 0;
}

.checkout-hint {
  margin: 4px 0 0;
  font-size: 13px;
}

.checkout-hint a {
  color: #2563eb;
  font-weight: 600;
}

.checkout-hint a:hover {
  text-decoration: underline;
}

.checkout-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.checkout-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
}

.checkout-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Payment methods grid */
.checkout-payment-section .payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.payment-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.payment-method-card.is-selected {
  border-color: #f97316;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-icon {
  width: 56px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.payment-method-card.is-selected .payment-method-icon {
  color: #ea580c;
}

.payment-method-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-method-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.payment-method-info strong {
  font-size: 14px;
  color: #111827;
}

.payment-method-card.is-selected .payment-method-info strong {
  color: #c2410c;
}

.payment-method-info small {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.payment-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f0fdf4;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  font-size: 14px;
  color: #166534;
}

.payment-card-badge {
  font-size: 18px;
}

.checkout-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 8px;
}

/* Checkout sidebar / summary */
.checkout-sidebar {
  position: sticky;
  top: 24px;
}

.checkout-summary-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #eef2f7;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.checkout-summary-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.checkout-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
}

.checkout-summary-line strong {
  color: #111827;
}

.checkout-summary-discount strong {
  color: #16a34a;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.checkout-summary-total strong {
  font-size: 22px;
  color: #f97316;
}

.checkout-summary-tax-note {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.checkout-summary-items {
  margin-top: 14px;
  font-size: 13px;
  color: #64748b;
}

/* Responsive checkout */
@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .checkout-payment-section .payment-methods {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .checkout-title {
  color: #e5e7eb;
}

[data-theme="dark"] .checkout-section {
  background: #111827;
  border-color: #1f2937;
  box-shadow: none;
}

[data-theme="dark"] .checkout-section-header h2 {
  color: #e5e7eb;
}

[data-theme="dark"] .checkout-select,
[data-theme="dark"] .checkout-textarea {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #334155;
}

[data-theme="dark"] .checkout-muted {
  color: #94a3b8;
}

[data-theme="dark"] .payment-method-card {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .payment-method-card:hover {
  border-color: #475569;
  background: #1e293b;
}

[data-theme="dark"] .payment-method-card.is-selected {
  border-color: #fb923c;
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
}

[data-theme="dark"] .payment-method-icon {
  color: #94a3b8;
}

[data-theme="dark"] .payment-method-card.is-selected .payment-method-icon {
  color: #fb923c;
}

[data-theme="dark"] .payment-method-info strong {
  color: #e5e7eb;
}

[data-theme="dark"] .payment-method-card.is-selected .payment-method-info strong {
  color: #fdba74;
}

[data-theme="dark"] .payment-method-info small {
  color: #94a3b8;
}

[data-theme="dark"] .payment-card-info {
  background: #0f2f1f;
  border-color: #14532d;
  color: #86efac;
}

[data-theme="dark"] .checkout-summary-card {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .checkout-summary-title {
  color: #e5e7eb;
  border-color: #1f2937;
}

[data-theme="dark"] .checkout-summary-line {
  color: #94a3b8;
}

[data-theme="dark"] .checkout-summary-line strong {
  color: #e5e7eb;
}

[data-theme="dark"] .checkout-summary-total {
  color: #e5e7eb;
  border-color: #334155;
}

[data-theme="dark"] .checkout-summary-total strong {
  color: #fb923c;
}

.form select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}

.form button {
  margin-top: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.form button:hover {
  opacity: 0.9;
}

.form button.captcha-refresh,
.auth-form button.captcha-refresh {
  margin-top: 0;
  padding: 0;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #2563eb !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.4'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px !important;
}

.form button.captcha-refresh:hover,
.auth-form button.captcha-refresh:hover {
  opacity: 0.9;
}

[data-theme="dark"] .form button.captcha-refresh,
[data-theme="dark"] .auth-form button.captcha-refresh {
  background-color: #3b82f6 !important;
}

/* Contact page */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

.contact-intro {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-alert {
  margin-bottom: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

.contact-section-icon {
  font-size: 22px;
}

.contact-map-section {
  margin-bottom: 24px;
}

.contact-map-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.contact-map-iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.contact-map-link {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 600;
}

.contact-map-link:hover {
  background: #f1f5f9;
  color: #4f46e5;
}

.contact-company-section {
  margin-bottom: 24px;
}

.contact-company-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact-company-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  align-items: start;
}

.contact-company-row:last-child {
  border-bottom: none;
}

.contact-company-bank {
  grid-template-columns: 1fr;
}

.contact-company-bank .contact-company-value {
  white-space: pre-line;
  font-size: 13px;
}

.contact-company-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-company-value {
  font-size: 14px;
  color: #0f172a;
}

.contact-company-link {
  color: #6366f1;
  text-decoration: none;
}

.contact-company-link:hover {
  text-decoration: underline;
  color: #4f46e5;
}

.contact-company-empty {
  margin: 0;
  padding: 18px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.contact-form-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-form .form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
}

.contact-form .form label:first-of-type {
  margin-top: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form .captcha-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form .captcha-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #334155;
}

.contact-form .captcha-input {
  flex: 1;
  min-width: 120px;
  max-width: 140px;
}

.contact-submit {
  margin-top: 24px;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[data-theme="dark"] .contact-title,
[data-theme="dark"] .contact-section-title { color: #f1f5f9; }
[data-theme="dark"] .contact-intro { color: #94a3b8; }
[data-theme="dark"] .contact-map-wrap,
[data-theme="dark"] .contact-company-card,
[data-theme="dark"] .contact-form-section {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .contact-company-row { border-color: #334155; }
[data-theme="dark"] .contact-company-label { color: #94a3b8; }
[data-theme="dark"] .contact-company-value { color: #e2e8f0; }
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

/* Contact page v2 – professional layout */
.contact-page-v2 {
  min-height: 60vh;
  padding-bottom: 48px;
}

.contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #fff;
  padding: 48px 24px 56px;
  text-align: center;
  margin-bottom: 0;
}

.contact-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-hero-intro {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

.contact-flash-wrap {
  padding-top: 20px;
  padding-bottom: 0;
}

.contact-alert-v2 {
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 500;
  max-width: 100%;
}

.contact-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 0;
  min-height: 0;
}

.contact-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-main-v2 {
  min-width: 0;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: 24px;
  }
  .contact-aside {
    order: 2;
  }
  .contact-main-v2 {
    order: 1;
  }
}

/* Kampanya katılım sayfası: sadece form, tek sütun, bloklar alt alta düzgün */
.campaign-page .contact-flash-wrap {
  margin-bottom: 0;
}
.campaign-page .campaign-form-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  position: relative;
  z-index: 1;
}
.campaign-page .contact-card-form {
  margin: 0;
}
.campaign-page .contact-card-desc {
  margin-left: 0;
  margin-top: 4px;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.contact-card-head {
  padding: 24px 24px 0;
  margin-bottom: 20px;
}

.contact-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.contact-card-icon {
  font-size: 1.5rem;
  opacity: 0.9;
}

.contact-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 0 2.25rem;
  line-height: 1.4;
}

.contact-card-map .contact-card-head,
.contact-card-form .contact-card-head {
  padding-bottom: 16px;
}

.contact-map-wrapper {
  border-top: 1px solid #f1f5f9;
}

.contact-map-iframe-v2 {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.contact-map-cta {
  display: block;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.contact-map-cta:hover {
  background: #eef2ff;
  color: #4f46e5;
}

.contact-card-info .contact-card-head {
  padding-bottom: 12px;
}

.contact-info-list {
  padding: 0 24px 24px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: start;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item-block {
  grid-template-columns: 1fr;
}

.contact-info-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0 8px;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info-label-section {
  text-transform: none;
  font-size: 0.875rem;
  color: #475569;
  margin-top: 8px;
}

.contact-info-value {
  font-size: 0.9375rem;
  color: #0f172a;
  line-height: 1.5;
}

.contact-info-value-pre {
  white-space: pre-line;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.contact-info-link {
  color: #6366f1;
  text-decoration: none;
}

.contact-info-link:hover {
  text-decoration: underline;
  color: #4f46e5;
}

.contact-empty-note {
  padding: 24px;
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
  text-align: center;
}

.contact-card-form {
  padding: 0 0 32px;
}

.contact-form-v2 {
  padding: 0 24px;
}

.contact-field {
  margin-bottom: 20px;
}

.contact-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.contact-required {
  color: #dc2626;
}

.contact-form-v2 input[type="text"],
.contact-form-v2 input[type="email"],
.contact-form-v2 input[type="tel"],
.contact-form-v2 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-v2 input:focus,
.contact-form-v2 textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.contact-form-v2 input:invalid:not(:placeholder-shown):not(:focus),
.contact-form-v2 textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #f87171;
}

.contact-form-v2 textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-field-captcha {
  margin-bottom: 24px;
}

.contact-captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-captcha-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: #334155;
}

.contact-captcha-refresh {
  margin-left: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/%3E%3C/svg%3E") center/18px no-repeat;
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.8;
}

.contact-captcha-refresh:hover {
  opacity: 1;
  background-color: rgba(0,0,0,0.05);
}

.contact-captcha-input {
  flex: 1;
  min-width: 120px;
  max-width: 150px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.125rem;
  letter-spacing: 4px;
  text-align: center;
}

.contact-submit-v2 {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.0625rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.contact-submit-v2:not(:disabled):hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.contact-submit-v2:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

[data-theme="dark"] .contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .contact-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

[data-theme="dark"] .contact-card-title { color: #f1f5f9; }
[data-theme="dark"] .contact-card-desc { color: #94a3b8; }
[data-theme="dark"] .contact-map-wrapper,
[data-theme="dark"] .contact-info-item { border-color: #334155; }
[data-theme="dark"] .contact-info-label { color: #94a3b8; }
[data-theme="dark"] .contact-info-value { color: #e2e8f0; }
[data-theme="dark"] .contact-info-link { color: #818cf8; }
[data-theme="dark"] .contact-map-cta {
  background: #334155;
  border-color: #475569;
  color: #a5b4fc;
}
[data-theme="dark"] .contact-form-v2 input,
[data-theme="dark"] .contact-form-v2 textarea,
[data-theme="dark"] .contact-captcha-input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .contact-captcha-box {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  color: #e2e8f0;
}

@media (max-width: 992px) {
  .header-top {
    align-items: center;
    text-align: center;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-top {
    flex-direction: column;
    align-items: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* SMS Logs – store-product-table ile aynı döküm listesi; sadece SMS’e özel ekler */
.sms-logs-table .col-date {
  white-space: nowrap;
}
.sms-logs-table .col-content {
  white-space: normal;
  max-width: 320px;
}
.mail-logs-table .col-date { white-space: nowrap; }
.mail-logs-table .col-subject { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.mail-log-details summary { cursor: pointer; font-size: 0.9em; color: var(--color-primary, #2563eb); }
.mail-log-detail-content { margin-top: 8px; padding: 12px; background: #f8fafc; border-radius: 8px; font-size: 0.9em; }
.mail-log-pre { margin: 4px 0; padding: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; overflow-x: auto; font-size: 0.85em; white-space: pre-wrap; word-break: break-all; }
.mail-log-body { max-height: 200px; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 0.85em; }

.sms-logs-table .col-content code,
.sms-logs-table td code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.sms-log-details {
  margin-top: 6px;
  font-size: 12px;
}
.sms-log-details summary {
  cursor: pointer;
  color: #6366f1;
  font-weight: 600;
}
.sms-log-pre {
  margin: 6px 0 0;
  padding: 8px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 11px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #e2e8f0;
}
.sms-logs-table tbody tr.row-success td:first-child {
  border-left: 3px solid #22c55e;
}
.sms-logs-table tbody tr.row-error td:first-child {
  border-left: 3px solid #ef4444;
}
.table-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.table-pagination a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}
.table-pagination a:hover {
  text-decoration: underline;
}

.sms-history-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

[data-theme="dark"] .sms-logs-table .col-content code,
[data-theme="dark"] .sms-logs-table td code {
  background: #374151;
  color: #e5e7eb;
}
[data-theme="dark"] .sms-log-pre {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

/* İş başvuruları tablosu - bloğa sığdırma ve taşmayı önleme */
.job-applications-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.job-applications-table-wrap .data-table {
  min-width: 980px;
  table-layout: fixed;
}
.job-applications-table-wrap .data-table th,
.job-applications-table-wrap .data-table td {
  white-space: normal;
  word-break: break-word;
}
.job-applications-table-wrap .data-table th:nth-child(1),
.job-applications-table-wrap .data-table td:nth-child(1) { width: 3%; min-width: 40px; }
.job-applications-table-wrap .data-table th:nth-child(2),
.job-applications-table-wrap .data-table td:nth-child(2) { width: 14%; min-width: 140px; }
.job-applications-table-wrap .data-table th:nth-child(3),
.job-applications-table-wrap .data-table td:nth-child(3) { width: 10%; min-width: 100px; }
.job-applications-table-wrap .data-table th:nth-child(4),
.job-applications-table-wrap .data-table td:nth-child(4) { width: 10%; min-width: 90px; }
.job-applications-table-wrap .data-table th:nth-child(5),
.job-applications-table-wrap .data-table td:nth-child(5) { width: 8%; min-width: 80px; }
.job-applications-table-wrap .data-table th:nth-child(6),
.job-applications-table-wrap .data-table td:nth-child(6) { width: 12%; max-width: 180px; }
.job-applications-table-wrap .data-table th:nth-child(7),
.job-applications-table-wrap .data-table td:nth-child(7) { width: 6%; min-width: 60px; }
.job-applications-table-wrap .data-table th:nth-child(8),
.job-applications-table-wrap .data-table td:nth-child(8) { width: 10%; min-width: 100px; }
.job-applications-table-wrap .data-table th:nth-child(9),
.job-applications-table-wrap .data-table td:nth-child(9) { width: 8%; min-width: 80px; }
.job-applications-table-wrap .data-table th:nth-child(10),
.job-applications-table-wrap .data-table td:nth-child(10) { width: 10%; min-width: 100px; }
.job-applications-table-wrap .data-table th:nth-child(11),
.job-applications-table-wrap .data-table td:nth-child(11) { width: 180px; min-width: 180px; max-width: 180px; }

.job-app-shop-photos-cell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.job-app-shop-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 80px;
  overflow: hidden;
}
.job-app-photo-link {
  display: block;
  flex-shrink: 0;
}
.job-app-photo-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  vertical-align: middle;
  display: block;
}
.job-app-photo-thumb:hover {
  border-color: #6366f1;
  opacity: 0.9;
}
.job-applications-table-wrap .table-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.job-applications-table-wrap .table-actions .inline-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.job-applications-table-wrap .table-actions .input-sm {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  width: 80px;
}
.job-applications-table-wrap .table-actions .btn-outline {
  flex-shrink: 0;
}

/* İş ilanları sayfası - liste + filtre (ürünler gibi) */
.job-listings-page {
  padding-bottom: 2rem;
}
.job-listings-hero {
  margin-bottom: 1.5rem;
  padding: 1.25rem 0;
}
.job-listings-hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}
.job-listings-intro {
  margin: 0;
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
  max-width: 640px;
}
.job-listings-cta {
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.job-listings-cta .btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}
.job-listings-main .job-listings-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}
.job-listings-count {
  font-weight: 600;
}
.job-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.job-listings-grid .job-listing-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.job-listings-grid .job-listing-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.job-listing-card-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  box-sizing: border-box;
}
.job-listing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.job-listing-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 6px;
}
.job-listing-date {
  font-size: 0.8rem;
  color: #64748b;
}
.job-listing-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-listing-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  flex: 1;
  min-height: 0;
}
.job-listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #64748b;
}
.job-listing-card-city {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.job-listing-card-city::before {
  content: "📍";
  font-style: normal;
}
.job-listing-card-author a {
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
}
.job-listing-card-author a:hover {
  text-decoration: underline;
}
.job-listing-card-contact {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.85rem;
  color: #475569;
  word-break: break-word;
}
.job-listing-contact-label {
  font-weight: 600;
  color: #374151;
}
.job-listings-empty {
  padding: 2rem;
  text-align: center;
  color: #64748b;
}
.job-listings-empty a {
  color: #6366f1;
  font-weight: 500;
}
[data-theme="dark"] .job-listings-hero h1 {
  color: #f3f4f6;
}
[data-theme="dark"] .job-listings-intro {
  color: #9ca3af;
}
[data-theme="dark"] .job-listing-badge {
  background: #3730a3;
  color: #c7d2fe;
}
[data-theme="dark"] .job-listing-card-title {
  color: #f3f4f6;
}
[data-theme="dark"] .job-listing-card-desc,
[data-theme="dark"] .job-listing-card-contact {
  color: #9ca3af;
}
[data-theme="dark"] .job-listing-card-contact {
  border-top-color: #374151;
}
[data-theme="dark"] .job-listing-contact-label {
  color: #d1d5db;
}
@media (max-width: 900px) {
  .job-listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
@media (max-width: 600px) {
  .job-listings-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Mobil / Responsive genel iyileştirmeler ========== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  min-width: 0;
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-top {
    padding: 14px 0 10px;
  }

  .logo img,
  .logo-imgs .logo-img {
    max-width: 88px !important;
    width: auto !important;
    height: auto;
  }
  .logo-imgs {
    max-width: 88px;
    margin-left: auto;
    margin-right: auto;
  }
  .logo span {
    font-size: 14px;
  }

  .nav {
    gap: 8px;
    padding: 8px 0 10px;
    padding-top: 8px;
  }
  .nav a {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 44px;
    align-items: center;
  }
  .nav a::before {
    width: 14px;
    height: 14px;
  }

  .home-hero-content h1 {
    font-size: 26px;
  }
  .home-hero-content p {
    font-size: 14px;
  }
  .home-cta h2 {
    font-size: 18px;
  }

  .footer {
    padding: 20px 0;
    margin-top: 24px;
  }
  .footer-content {
    padding: 0;
  }
  .footer-grid {
    gap: 20px;
  }
  .footer-links {
    gap: 12px;
  }
  .footer-links a {
    font-size: 13px;
  }
  .footer-social {
    gap: 10px;
  }
  .footer-social a {
    padding: 8px 12px;
    min-height: 44px;
  }
  .footer-payment-logo {
    max-width: 100%;
    padding: 0 12px;
  }
  .footer-copyright {
    font-size: 12px;
    word-break: break-word;
  }
  .cookie-banner {
    left: 0;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    padding: 12px 12px;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }
  .cookie-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .cookie-banner-actions .btn-primary,
  .cookie-banner-actions .btn-outline {
    min-width: 120px;
  }
  /* Ürün kartı butonları: mobilde eşit genişlik */
  .products-main .grid .product-card .product-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .products-main .grid .product-card .product-card-add-cart {
    flex: 1;
    min-width: 0;
    display: flex;
  }
  .products-main .grid .product-card .product-card-add-cart .btn-primary {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  .products-main .grid .product-card .product-card-actions .btn-outline {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  /* Ana sayfa slider kart butonları: mobilde dengeli */
  .home-slider-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .home-slider-add-cart {
    flex: 1;
    min-width: 0;
    display: flex;
  }
  .home-slider-add-cart .btn-primary {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  .home-slider-card-actions .btn-outline {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  /* Ürünler sayfası: sıralama çubuğu ve grid mobil */
  .products-sort-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .products-sort-bar select {
    min-width: 0;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .products-main .grid {
    gap: 12px;
  }
  .products-main .grid .product-card {
    padding: 12px;
  }
  main.container {
    min-width: 0;
  }

  .form input[type="text"],
  .form input[type="email"],
  .form input[type="password"],
  .form input[type="number"],
  .form input[type="search"],
  .form select,
  .form textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .card {
    padding: 14px;
  }

  .btn-primary,
  .btn-outline,
  .btn-cancel {
    min-height: 44px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo img,
  .logo-imgs .logo-img {
    max-width: 64px !important;
    width: auto !important;
  }
  .logo-imgs {
    max-width: 64px;
  }

  .nav {
    gap: 6px;
  }
  .nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .home-hero {
    padding: 16px;
  }
  .home-hero-content h1 {
    font-size: 22px;
  }

  .grid {
    gap: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  .data-table th {
    white-space: normal;
    word-break: break-word;
  }

  .table-wrap {
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }

  .footer {
    padding: 16px 0;
  }
  .footer-section {
    font-size: 13px;
  }
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-payment-bottom {
    margin-top: 16px;
  }
  .footer-payment-logo {
    padding: 0 10px;
  }
}

/* Tablolar: mobilde yatay kaydırma alanı */
.table-wrap,
.overflow-x-auto,
[style*="overflow"] table {
  -webkit-overflow-scrolling: touch;
}
.data-table {
  min-width: 1px;
}

/* DataTables ve site_stats tabloları için wrapper */
.site-stats-page .site-stats-table-card table,
.site-stats-page .card table {
  width: 100%;
}
.site-stats-table-card,
.site-stats-page .site-stats-table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ürün kartları ve grid: küçük ekranda taşmayı önle */
.product-card,
.job-listing-card,
.card {
  min-width: 0;
}
.grid .product-card img,
.grid .job-listing-card,
.products-main .grid {
  min-width: 0;
}
.products-main,
.job-listings-main,
.products-layout {
  min-width: 0;
}

/* Başlık ve metin taşmasını önle */
@media (max-width: 768px) {
  .product-card .product-title,
  .product-card h3,
  .job-listing-card-title,
  .card h1,
  .card h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* Dil seçici ve formlar: mobilde tam genişlik */
@media (max-width: 640px) {
  .lang-select {
    width: 100%;
    max-width: 100%;
  }
  .lang-select select {
    max-width: 100%;
  }
}

/* ========== Tüm sayfalar: ana içerik ve footer tam responsive ========== */
main.container,
main .container {
  min-width: 0;
  overflow-x: hidden;
}

.footer .container {
  min-width: 0;
  overflow-x: hidden;
}

.footer-content,
.footer-grid,
.footer-section {
  min-width: 0;
}

@media (max-width: 768px) {
  .page-title,
  h1.page-title,
  .card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .footer-payment-bottom {
    padding: 0 10px;
  }
}
