:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-strong: #eef1f4;
  --text: #202733;
  --muted: #6b7280;
  --line: #e2e6eb;
  --accent: #c9202f;
  --accent-dark: #941825;
  --ink: #111827;
  --dark: #242a33;
  --whatsapp: #1f9d55;
  --warning-bg: #fff7ed;
  --warning-text: #9a3412;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
  --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

button.secondary,
.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
}

button.secondary:hover,
.button.secondary:hover {
  border-color: #cbd1d8;
  background: var(--surface-strong);
  color: var(--ink);
}

.whatsapp-button {
  background: var(--whatsapp);
}

.whatsapp-button:hover {
  background: #147a40;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 21;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-announcement {
  overflow: hidden;
  border-top: 1px solid #f2d7db;
  border-bottom: 1px solid #f2d7db;
  background: #fff7f8;
}

.header-announcement-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  min-height: 32px;
  white-space: nowrap;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: header-announcement-scroll 18s linear infinite;
}

.header-announcement-group {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4rem;
  padding-inline: 24px;
}

.header-announcement-item,
.header-announcement-separator {
  flex: 0 0 auto;
}

@keyframes header-announcement-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .header-announcement-track {
    animation-duration: 28s;
  }
}

/* ── Category navigation bar ── */
.cat-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 18;
}

/* Outer scroll wrapper: handles horizontal scroll on mobile */
.cat-nav-scroll {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav-scroll::-webkit-scrollbar { display: none; }

/* Inner flex row: overflow must stay VISIBLE so dropdowns aren't clipped */
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  overflow: visible;
}

.cat-nav-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  border-right: 1px solid #e5e7eb;
  margin-right: 4px;
  flex-shrink: 0;
  transition: background .12s;
}
.cat-nav-all:hover { background: #fef2f2; }
.cat-nav-icon { font-size: 12px; }

.cat-nav-group {
  position: relative;
  flex-shrink: 0;
}

.cat-nav-group.has-children {
  cursor: default;
}

.cat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.cat-nav-link:hover { background: #f3f4f6; color: #111827; }
.cat-nav-arrow { font-size: 12px; color: #9ca3af; transition: transform .15s; }
.cat-nav-group:hover .cat-nav-arrow,
.cat-nav-group:focus-within .cat-nav-arrow {
  transform: rotate(90deg);
}

/* Dropdown */
.cat-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.cat-nav-group:hover .cat-nav-dropdown,
.cat-nav-group:focus-within .cat-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cat-nav-drop-list { display: grid; gap: 2px; }
.cat-nav-drop-list a {
  display: block;
  padding: 7px 10px;
  font-size: 12px;
  color: #374151;
  text-decoration: none;
  border-radius: 7px;
  transition: background .1s, color .1s;
}
.cat-nav-drop-list a:hover { background: #f3f4f6; color: #111827; }
.cat-nav-sub-header {
  display: block;
  margin: 4px 0 2px;
  padding: 5px 10px 5px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  border-left: 3px solid #dc2626;
}
.cat-nav-sub-header a {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  padding: 0;
  transition: color .1s;
}
.cat-nav-sub-header a:hover { background: transparent; color: #dc2626; }
.cat-nav-sub-indent {
  padding-left: 18px !important;
  font-size: 11px !important;
  color: #6b7280 !important;
  border-left: 2px solid #e5e7eb !important;
  border-radius: 0 6px 6px 0 !important;
  margin-left: 6px !important;
  transition: background .1s, color .1s, border-color .1s, transform .1s !important;
}
.cat-nav-sub-indent:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #dc2626 !important;
  transform: translateX(3px) !important;
}

@media (max-width: 760px) {
  .cat-nav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .cat-nav-dropdown {
    display: none !important;
  }
}

/* ────────────────────────────── */

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  grid-template-areas:
    "brand cart user menu"
    "search search search search";
  position: relative;
  gap: 12px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0;
}

.brand            { grid-area: brand; }
.site-search      { grid-area: search; }
.cart-header-link { grid-area: cart; }
.header-user-area { grid-area: user; }
.mobile-menu      { grid-area: menu; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #5f1218);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(201, 32, 47, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.site-search {
  display: flex;
  gap: 8px;
  width: 100%;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  padding: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(201, 32, 47, 0.14);
  border-color: rgba(201, 32, 47, 0.55);
}

.site-search input {
  min-width: 0;
  font-size: 12px;
}

.site-search button {
  flex: 0 0 auto;
  font-size: 12px;
}

.mobile-menu {
  position: relative;
}

.mobile-menu > summary,
.category-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.mobile-menu > summary::-webkit-details-marker,
.category-menu > summary::-webkit-details-marker {
  display: none;
}

.header-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 8px;
}

.header-actions a,
.header-actions form,
.login-button {
  width: 100%;
}

.header-actions a,
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.category-menu {
  position: relative;
}

.category-menu-panel {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.cart-button {
  gap: 8px;
}

.cart-button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.cart-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.cart-header-link:hover {
  border-color: rgba(201, 32, 47, 0.45);
  background: #fff5f6;
  color: var(--text);
}

.cart-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.whatsapp-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0 !important;
  border-radius: 999px;
  border-color: rgba(31, 157, 85, 0.28) !important;
  color: #13733e !important;
}

.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.wa-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

/* ── User profile dropdown in header ── */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  white-space: nowrap;
}

.user-menu-btn::-webkit-details-marker { display: none; }
.user-menu-btn::marker { display: none; }

.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

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

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 2px;
}

.user-menu:not([open]) .user-menu-panel { display: none; }

.user-menu-panel a,
.user-menu-logout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.user-menu-panel a:hover,
.user-menu-logout:hover {
  background: var(--surface-soft);
  color: var(--ink);
  transform: none;
}

.user-menu-panel form { margin: 0; }

.user-menu-logout {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 819px) {
  .user-menu-btn {
    width: 42px;
    justify-content: center;
  }

  .user-menu-panel {
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 4px 0;
    margin-top: 4px;
    background: transparent;
  }

  .user-menu-panel a,
  .user-menu-logout {
    padding-left: 20px;
  }
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.hero-section {
  display: grid;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 246, 248, 0.94)),
    radial-gradient(circle at 92% 10%, rgba(201, 32, 47, 0.13), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow);
}

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

.hero-section h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(34px, 9vw, 64px);
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.hero-actions,
.b2b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2px;
}

.hero-metrics span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.hero-metrics strong {
  color: var(--accent);
  font-size: 18px;
}

.hero-visual {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, #2b313a, #111827 62%),
    var(--dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.label-roll {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 22%, #d7dce2 23% 31%, transparent 32%),
    repeating-radial-gradient(circle at center, #ffffff 0 11px, #eef1f4 12px 21px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.roll-one {
  width: 160px;
  height: 160px;
  top: 26px;
  right: 26px;
}

.roll-two {
  width: 106px;
  height: 106px;
  bottom: 24px;
  left: 24px;
  opacity: 0.9;
}

.print-strip {
  position: absolute;
  right: 18px;
  bottom: 28px;
  left: 82px;
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
  transform: rotate(-5deg);
}

.print-strip span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px dashed rgba(17, 24, 39, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-weight: 900;
}

.features-section,
.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.features-section,
.category-showcase,
.popular-section,
.b2b-cta-section {
  margin-top: 28px;
}

.feature-card,
.category-card,
.product-card,
.sidebar,
.order-summary,
.checkout-form,
.cart-table,
.product-image-panel,
.product-info-panel,
.description-box,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff1f2;
  color: var(--accent);
  font-weight: 900;
}

.feature-card h2,
.feature-card p {
  margin: 0;
}

.feature-card h2 {
  color: var(--ink);
  font-size: 18px;
}

.feature-card p {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.category-card {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  min-height: 148px;
  padding: 18px;
  color: #fff;
  background: var(--dark);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 132px;
  height: 132px;
  border: 16px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 1;
}

.category-card span {
  align-self: end;
  font-size: 20px;
  font-weight: 900;
}

.category-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.category-kuşe {
  background: linear-gradient(135deg, #343b46, #c9202f);
}

.category-opak {
  background: linear-gradient(135deg, #1f2937, #59616d);
}

.category-seffaf {
  background: linear-gradient(135deg, #2f3844, #8f98a5);
}

.category-termal {
  background: linear-gradient(135deg, #4a2027, #c9202f);
}

.category-ozel {
  background: linear-gradient(135deg, #111827, #3f4855);
}

.layout,
.checkout-layout,
.product-detail {
  display: grid;
  gap: 18px;
}

.sidebar,
.order-summary,
.checkout-form,
.product-info-panel,
.empty-state {
  padding: 18px;
}

.sidebar h2,
.order-summary h2,
.description-box h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
}

.sidebar ul {
  display: flex;
  gap: 8px;
  padding: 0 0 2px;
  margin: 0;
  overflow-x: auto;
  list-style: none;
}

.sidebar a {
  display: block;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-card-media {
  display: block;
  position: relative;
  overflow: visible;
}

.product-card img,
.product-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.product-card-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: none !important;
}

.product-card-media .image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.product-card-body {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
  padding: 12px;
  min-height: 0;
}

.product-card h2,
.product-card p {
  margin: 0;
}

.product-card h2 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.24;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.discount-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .24);
}

.discount-badge-detail {
  position: static;
  justify-self: start;
}

.price-block--discount,
.price-block--foreign {
  display: grid;
  gap: 3px;
}

.price-original--discounted {
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-discounted {
  color: #dc2626;
  font-weight: 900;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.stock-pill.out {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.product-card .muted {
  font-size: 12px;
  line-height: 1.25;
}

.product-card .price-block {
  gap: 2px;
}

.product-card .price,
.product-card .price-foreign,
.product-card .price-try {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.product-card .price-foreign {
  color: var(--ink);
  margin: 0;
}

.product-card .price-foreign.price-discounted {
  color: #dc2626;
}

.product-card .price-original {
  font-size: 12px;
}

.product-card .price-source {
  font-size: 10px;
}

.product-card .stock-pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.product-button {
  width: 100%;
}

.product-card .product-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.image-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(201, 32, 47, 0.08), rgba(17, 24, 39, 0.05)),
    repeating-linear-gradient(90deg, #f4f6f8 0 18px, #ffffff 19px 38px);
  color: var(--muted);
  font-weight: 900;
}

.image-placeholder.large {
  aspect-ratio: 1 / 1;
  min-height: 320px;
}

.b2b-cta-section {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-radius: 8px;
  padding: 24px 18px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(36, 42, 51, 0.95)),
    var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.b2b-cta-section h2,
.b2b-cta-section p {
  margin: 0;
}

.b2b-cta-section h2 {
  max-width: 720px;
  font-size: clamp(25px, 7vw, 42px);
  line-height: 1.12;
}

.b2b-cta-section div:first-child {
  display: grid;
  gap: 10px;
}

.b2b-cta-section p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.product-detail {
  align-items: start;
}

.product-image-panel {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-info-panel {
  display: grid;
  gap: 16px;
}

.product-info-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.stock-line {
  margin: 0;
  color: var(--muted);
}

.stock-line strong {
  color: var(--text);
}

.description-box {
  padding: 16px;
  background: var(--surface-soft);
}

.description-box p {
  margin: 0;
  color: var(--muted);
}

.add-cart,
.quantity-form {
  display: grid;
  gap: 10px;
}

.add-cart label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.add-cart input,
.quantity-form input {
  width: 110px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cart-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.messages {
  margin-bottom: 18px;
}

.message {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
}

.message.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.empty-state {
  display: grid;
  gap: 8px;
  min-height: 220px;
  place-content: center;
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-contact,
.footer-links,
.footer-tags {
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-links a {
  color: var(--text);
  font-weight: 800;
}

.footer-links a {
  font-size: 13px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
}

.footer-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  min-height: 62px;
  border-radius: 999px;
  padding: 0;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 32px rgba(20, 122, 64, 0.3);
}

.legal-page {
  display: grid;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.legal-page-header {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-page-header h1,
.legal-page-header p {
  margin: 0;
}

.legal-page-header h1 {
  color: var(--ink);
  font-size: 32px;
  line-height: 1.12;
}

.legal-page-header > p:last-child {
  color: #4b5563;
  font-size: 16px;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.legal-content h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.legal-content p {
  margin: 0;
  color: #374151;
}

.legal-content p + p {
  margin-top: 10px;
}

.floating-whatsapp .wa-icon {
  width: 36px;
  height: 36px;
}

.floating-whatsapp:hover {
  background: #147a40;
  color: #fff;
}

.quote-hero {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.94)),
    radial-gradient(circle at 100% 0, rgba(201, 32, 47, 0.16), transparent 36%);
  box-shadow: var(--shadow);
}

.quote-hero h1,
.success-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 8vw, 54px);
  line-height: 1.06;
}

.quote-hero p:not(.eyebrow),
.success-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.quote-hero-panel {
  display: grid;
  gap: 10px;
}

.quote-hero-panel span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--dark);
  font-weight: 900;
}

.quote-layout {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.quote-form,
.quote-aside,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.form-section {
  display: grid;
  gap: 14px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading.compact h2 {
  font-size: 15px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--dark);
  font-weight: 900;
}

.form-field small {
  color: var(--muted);
}

.errorlist {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.quote-form-actions {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.quote-aside {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
}

.quote-aside h2,
.quote-aside p {
  margin: 0;
}

.quote-aside h2 {
  color: var(--ink);
  font-size: 15px;
}

.quote-aside ol {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.quote-contact-box {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-soft);
}

.quote-contact-box strong {
  color: var(--ink);
}

.success-panel {
  display: grid;
  gap: 16px;
  min-height: 420px;
  place-content: center;
  padding: 30px 18px;
  text-align: center;
}

.success-panel .hero-actions {
  justify-content: center;
}

.management-hero {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 18px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.97), rgba(36, 42, 51, 0.94)),
    var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.management-hero h1,
.management-hero p {
  margin: 0;
}

.management-hero h1 {
  font-size: 20px;
  line-height: 1.25;
}

.management-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.management-actions {
  display: grid;
  gap: 10px;
}

.management-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.kpi-card,
.management-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.kpi-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.kpi-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.kpi-card small {
  color: var(--muted);
  font-weight: 700;
}

.kpi-card.accent {
  border-color: rgba(201, 32, 47, 0.24);
  background: #fff5f6;
}

.kpi-card.warning {
  border-color: rgba(154, 52, 18, 0.2);
  background: var(--warning-bg);
}

.management-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.management-panel {
  overflow: hidden;
}

.panel-heading {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.panel-heading h2,
.panel-heading p {
  margin: 0;
}

.panel-heading h2 {
  color: var(--ink);
  font-size: 15px;
}

.panel-heading a {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--dark);
  font-weight: 900;
}

.management-table-wrap {
  overflow-x: auto;
}

.management-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.management-table th,
.management-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.management-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.management-table td strong,
.management-table td small {
  display: block;
}

.management-table td strong {
  color: var(--ink);
}

.management-table td small {
  margin-top: 2px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-strong);
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-new,
.status-yeni,
.status-pending {
  background: #fff1f2;
  color: var(--accent);
}

.status-reviewing,
.status-inceleniyor,
.status-hazirlaniyor,
.status-paid {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-quoted,
.status-fiyat_verildi,
.status-kargoya_hazir,
.status-shipped,
.status-won,
.status-onaylandi {
  background: #ecfdf5;
  color: #047857;
}

.status-onay_bekliyor,
.status-kargoda {
  background: #fffbeb;
  color: #b45309;
}

.status-lost,
.status-cancelled,
.status-reddedildi,
.status-iptal {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.status-tamamlandi {
  background: #eef2ff;
  color: #4338ca;
}

.status-active {
  background: #ecfdf5;
  color: #047857;
}

.status-passive {
  background: var(--surface-strong);
  color: var(--muted);
}

.stock-list {
  display: grid;
}

.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.stock-row strong,
.stock-row small {
  display: block;
}

.stock-row strong {
  color: var(--ink);
}

.stock-row small {
  color: var(--muted);
}

.stock-row span {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 900;
  white-space: nowrap;
}

.quote-filter-panel {
  margin-top: 24px;
  padding: 16px;
}

.quote-filter-form {
  display: grid;
  gap: 14px;
}

.order-filter-form {
  grid-template-columns: 1fr;
}

.quote-filter-actions {
  display: grid;
  gap: 10px;
}

.panel-count {
  align-self: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface-strong);
  color: var(--dark);
  font-weight: 900;
}

.reference-link {
  color: var(--accent);
  font-weight: 900;
}

.quote-table {
  min-width: 980px;
}

.quote-detail-layout {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.detail-block-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.detail-block {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: #fff;
}

.detail-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-block strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.detail-block p {
  margin: 0;
  color: var(--text);
}

.quote-update-panel {
  align-self: start;
}

.quote-management-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.product-management-table {
  min-width: 1320px;
}

.management-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.readonly-field {
  display: grid;
  gap: 4px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.readonly-field strong {
  color: var(--ink);
}

.management-price-block .price,
.management-price-block .price-original,
.management-price-block .price-try {
  margin: 0;
  font-size: 16px;
}

.mobile-product-cards {
  display: none;
}

.order-management-table {
  min-width: 1180px;
}

.order-items-section {
  border-top: 1px solid var(--line);
}

.compact-panel-heading {
  border-bottom: 1px solid var(--line);
}

.order-items-table {
  min-width: 620px;
}

.order-items-table tfoot th {
  background: var(--surface-soft);
  color: var(--ink);
}

button:disabled,
.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.category-management-table {
  min-width: 720px;
}

.category-filter-form {
  display: grid;
  gap: 14px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--dark);
  font-weight: 900;
}

.mobile-order-cards {
  display: none;
}

.mobile-order-card {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
}

.mobile-order-card-head,
.mobile-order-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-order-card strong,
.mobile-order-card small {
  display: block;
}

.mobile-order-card small,
.mobile-order-fields span {
  color: var(--muted);
}

.mobile-order-fields {
  display: grid;
  gap: 10px;
}

.mobile-order-fields span,
.mobile-product-fields span,
.form-section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-section-label {
  margin-top: 4px;
  color: var(--muted);
}

.mobile-product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
}

.mobile-product-card-media img,
.mobile-product-card-media span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.mobile-product-card-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mobile-product-card-head,
.mobile-product-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-product-card strong,
.mobile-product-card small {
  display: block;
}

.mobile-product-card small,
.mobile-product-fields span {
  color: var(--muted);
}

.mobile-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-shell {
  display: grid;
  justify-items: center;
  margin-top: 24px;
}

.account-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-card.wide {
  width: min(100%, 820px);
}

.account-hero {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 32, 47, 0.16);
  border-radius: 8px;
  padding: 24px 18px;
  background:
    linear-gradient(135deg, #fff, #fff7f8 56%, #f8fafc),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-hero h1,
.account-hero p {
  margin: 0;
}

.account-hero h1 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.account-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.account-hero-actions,
.account-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-hero-actions {
  align-items: center;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.account-summary-card {
  display: grid;
  gap: 5px;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.account-summary-card:hover {
  border-color: rgba(201, 32, 47, 0.35);
  background: #fffafa;
  color: var(--text);
}

.account-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.account-summary-card small {
  color: var(--muted);
  font-weight: 700;
}

.account-dashboard-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.account-main-stack,
.account-side-stack,
.account-profile-sections {
  display: grid;
  gap: 18px;
  align-content: start;
}

.account-panel {
  align-self: start;
}

.account-profile-sections {
  padding: 16px;
}

.account-info-group {
  display: grid;
  gap: 10px;
}

.account-info-group h3,
.account-form-heading h2,
.account-form-heading p {
  margin: 0;
}

.account-info-group h3 {
  color: var(--ink);
  font-size: 15px;
}

.account-detail-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

.account-order-list {
  display: grid;
}

.account-order-card {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}

.account-order-card:first-child {
  border-top: 0;
}

.account-order-head,
.account-order-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-order-head strong,
.account-order-head small {
  display: block;
}

.account-order-head small,
.account-order-grid span {
  color: var(--muted);
}

.account-order-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.account-order-grid span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-empty {
  padding: 16px;
}

.account-edit-shell {
  padding: 0 0 48px;
}

.account-form-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-soft);
}

.account-form-heading {
  display: grid;
  gap: 4px;
}

.account-form-heading h2 {
  color: var(--ink);
  font-size: 16px;
}

.account-form-heading p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-form-section .form-grid {
  gap: 12px;
}

.account-settings-list {
  display: grid;
}

.account-settings-list a {
  display: grid;
  gap: 3px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.account-settings-list a:first-child {
  border-top: 0;
}

.account-settings-list a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.account-settings-list strong,
.account-settings-list small {
  display: block;
}

.account-settings-list strong {
  color: var(--ink);
}

.account-settings-list small {
  color: var(--muted);
  font-weight: 700;
}

.account-settings-list a.danger strong {
  color: #b91c1c;
}

.low-stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.product-management-detail {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.product-preview-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-bottom: 16px;
}

.product-preview-panel img,
.product-preview-panel .image-placeholder {
  width: calc(100% - 32px);
  margin: 0 16px;
}

.product-preview-panel .button {
  width: calc(100% - 32px);
  margin: 0 16px;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 900;
}

.toggle-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (min-width: 560px) {
  .hero-actions,
  .b2b-actions,
  .cart-actions,
  .add-cart {
    display: flex;
    align-items: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .cart-actions {
    justify-content: flex-end;
  }

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

  .form-field.full {
    grid-column: 1 / -1;
  }

  .quote-form-actions {
    display: flex;
  }

  .management-actions {
    display: flex;
  }

  .quote-filter-form {
    grid-template-columns: minmax(0, 1fr) 240px auto;
    align-items: end;
  }

  .order-filter-form {
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  }

  .product-filter-form {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .category-filter-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .quote-filter-actions {
    display: flex;
  }

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

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

  .detail-block.full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 820px) {
  .header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
  }

  .brand, .site-search, .cart-header-link, .header-user-area, .mobile-menu {
    grid-area: auto;
  }

  .brand {
    flex: 1 1 360px;
    min-width: 0;
  }

  .brand > span {
    min-width: 0;
  }

  .site-search {
    flex: 0 1 560px;
    justify-self: center;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .cart-header-link,
  .header-user-area,
  .mobile-menu {
    flex: 0 0 auto;
  }

  .mobile-menu > summary {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0;
  }

  .mobile-menu:not([open]) .header-actions {
    display: flex;
  }

  .header-actions a,
  .header-actions form,
  .login-button {
    width: auto;
    white-space: nowrap;
  }

  .category-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 25;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .category-menu:not([open]) .category-menu-panel {
    display: none;
  }

  .category-menu-panel a {
    justify-content: flex-start;
    border: 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    padding: 42px;
  }

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

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

  .section-heading.split {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .b2b-cta-section {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 34px;
  }

  .b2b-actions {
    justify-content: end;
  }

  .layout {
    grid-template-columns: 250px 1fr;
    gap: 24px;
  }

  .checkout-layout,
  .product-detail {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
  }

  .sidebar {
    position: sticky;
    top: 100px;
  }

  .sidebar ul {
    display: grid;
    overflow: visible;
  }

  .sidebar a {
    border-radius: 8px;
  }

  .site-footer {
    grid-template-columns: 1.2fr 0.7fr 1fr 0.8fr;
    align-items: start;
  }

  .quote-hero {
    grid-template-columns: 1fr 320px;
    align-items: center;
    padding: 36px;
  }

  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
  }

  .quote-form,
  .quote-aside {
    padding: 24px;
  }

  .management-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 36px;
  }

  .management-actions {
    justify-content: end;
  }

  .management-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .management-panel.span-two {
    grid-column: 1 / -1;
  }

  .panel-heading {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .quote-detail-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 24px;
  }

  .product-management-detail {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .detail-block-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 819px) {
  .header-actions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-menu[open] .header-actions {
    display: grid;
  }
}

@media (max-width: 760px) {
  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .order-management-table {
    display: none;
  }

  .product-management-table {
    display: none;
  }

  .order-management-table + .mobile-order-cards,
  .mobile-order-cards {
    display: grid;
  }

  .product-management-table + .mobile-product-cards,
  .mobile-product-cards {
    display: grid;
  }

  .order-detail-layout {
    grid-template-columns: 1fr;
  }

  .quote-management-form {
    padding: 12px;
  }
}

/* ── Marketplace platform cards ─────────────────────────────────────────── */
.marketplace-platform-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: 1fr;
}

.platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-card-header h2 {
  margin: 0;
  font-size: 20px;
}

.platform-description {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.platform-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.platform-status.connected {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.platform-status.disconnected {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--line);
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.platform-stats dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.platform-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.platform-card-actions {
  display: flex;
  gap: 10px;
}

/* Platform accent colours */
.platform-trendyol { border-top: 3px solid #f27a1a; }
.platform-hepsiburada { border-top: 3px solid #ff6000; }
.platform-n11 { border-top: 3px solid #6e2bb5; }
.platform-amazon { border-top: 3px solid #ff9900; }

/* Marketplace action sidebar */
.marketplace-actions-panel { align-self: start; }

.marketplace-action-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.marketplace-action-btn {
  display: grid;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.marketplace-action-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: #fff5f6;
}

.marketplace-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.marketplace-action-btn strong {
  font-size: 14px;
  color: var(--ink);
}

.marketplace-action-btn small {
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .marketplace-platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .marketplace-platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Site Settings ───────────────────────────────────────────────────────── */
.settings-layout {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.settings-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.current-image-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.settings-preview-img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: #fff;
}

.settings-preview-favicon {
  max-height: 32px;
  max-width: 32px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

.category-image-manager {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 8px;
  max-width: 720px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-image-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.category-image-preview img,
.category-image-preview [data-category-image-selected] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(220,38,38,.08), rgba(17,24,39,.04)),
    #f9fafb;
}

.category-image-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.category-image-empty span {
  max-width: 190px;
  font-size: 12px;
  line-height: 1.4;
}

.category-image-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.category-image-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.category-image-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.category-image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.category-image-actions .button,
.category-image-actions .category-image-file {
  min-height: 38px;
}

.category-image-delete {
  display: grid;
  place-items: center;
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.category-image-delete-state {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: none;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(220,38,38,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.category-image-undo {
  display: none;
}

.category-image-manager.is-delete-marked .category-image-preview img {
  filter: grayscale(1);
  opacity: .45;
}

.category-image-manager.is-delete-marked .category-image-delete-state {
  display: block;
}

.category-image-manager.is-delete-marked .category-image-delete {
  display: none;
}

.category-image-manager.is-delete-marked .category-image-undo {
  display: inline-flex;
}

.category-image-clear-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-image-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.category-image-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .category-image-manager {
    grid-template-columns: 1fr;
  }

  .category-image-actions {
    align-items: stretch;
  }

  .category-image-actions .button,
  .category-image-actions .category-image-file {
    width: 100%;
  }
}

.brand-logo {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}

/* ── Pricing Settings ────────────────────────────────────────────────────── */
.tolerance-explainer .explainer-body {
  gap: 20px;
}

.explainer-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.explainer-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.explainer-step p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.explainer-example {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg);
}

.example-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin-top: 10px;
  font-size: 13px;
}

.example-grid span:nth-child(odd) {
  color: var(--muted);
  font-weight: 700;
}

/* ── Price Updates ───────────────────────────────────────────────────────── */
.price-filter-panel {
  padding: 16px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.price-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  flex: 1;
}

.price-filter-actions {
  display: flex;
  gap: 8px;
}

.price-recalc-form {
  display: flex;
  align-items: flex-end;
}

.price-recalc-form button {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 14px;
}

.price-recalc-form small {
  font-size: 11px;
  opacity: 0.8;
}

.price-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 0;
}

.price-update-table .num-col {
  text-align: right;
  white-space: nowrap;
}

.price-update-table .reason-text {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.row-update-required td {
  background: #fffbeb;
}

.row-approval-pending td {
  background: #f0f9ff;
}

.diff-positive { color: #c2410c; font-weight: 600; }
.diff-negative { color: #15803d; font-weight: 600; }

.sync-update-required {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.sync-within-tolerance {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sync-approval-pending {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.currency-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  background: var(--bg);
  border: 1px solid var(--line);
}

.currency-try { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.currency-eur { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.currency-usd { background: #fef9c3; border-color: #fef08a; color: #854d0e; }

.price-action-cell {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.inline-form { display: inline; }

.action-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
}

.action-approve {
  border-color: #16a34a;
  color: #16a34a;
}

.action-approve:hover {
  background: #dcfce7;
}

.action-reject {
  border-color: #dc2626;
  color: #dc2626;
}

.action-reject:hover {
  background: #fee2e2;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state h2 { margin: 8px 0; }

.empty-state p {
  color: var(--muted);
  margin: 8px 0 16px;
}

.form-help-text {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 4px;
}

/* ── Storefront price block ──────────────────────────────────────────────── */
.price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.price-original {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.price-try {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.price-with-vat {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.price-vat-note {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.price-try--unavailable {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.price-source {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.price-login-notice {
  display: grid;
  gap: 6px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.price-login-notice a {
  color: var(--brand);
  font-weight: 900;
}

.price-login-inline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* product-detail gets slightly larger price */
.product-detail-price .price-original { font-size: 17px; }
.product-detail-price .price-try      { font-size: 28px; }
.product-detail-price .price-source   { font-size: 12px; }

/* Product gallery and variations */

.product-gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.gallery-main img,
.gallery-main .image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 8px;
}

.gallery-thumb {
  min-height: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #fff;
  box-shadow: none;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--accent);
  background: #fff5f6;
  transform: none;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: var(--surface-soft);
}

.option-group {
  display: grid;
  gap: 8px;
}

.option-group-label {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.required-mark {
  margin-left: 3px;
  color: var(--accent);
}

.option-radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.option-radio-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.option-radio-card::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 13px;
  width: 14px;
  height: 14px;
  border: 2px solid #cbd1d8;
  border-radius: 999px;
  background: #fff;
}

.option-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-radio-card:has(input:checked) {
  border-color: rgba(201, 32, 47, 0.55);
  background: #fff5f6;
  box-shadow: 0 0 0 3px rgba(201, 32, 47, 0.1);
}

.option-radio-card:has(input:checked)::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--accent);
}

.option-radio-card:hover {
  border-color: rgba(201, 32, 47, 0.45);
}

.option-label {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.option-delta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.option-select {
  max-width: 360px;
  border-width: 2px;
  font-weight: 800;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.qty-row label {
  margin: 0;
}

/* Product management media and option cards */

.management-panels-col {
  display: grid;
  gap: 24px;
}

.mgmt-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
}

.mgmt-image-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mgmt-image-card.is-cover {
  border-color: rgba(201, 32, 47, 0.62);
  box-shadow: 0 0 0 3px rgba(201, 32, 47, 0.1);
}

.mgmt-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: var(--surface-soft);
}

.cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mgmt-image-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--line);
}

.mgmt-image-actions form,
.mgmt-image-actions button {
  width: 100%;
}

.img-alt-text {
  min-width: 0;
  margin: 0;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-upload-form,
.option-group-add-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: var(--surface-soft);
}

.form-row {
  display: grid;
  gap: 12px;
}

.form-row.compact {
  align-items: end;
}

.form-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 900;
}

.form-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.panel-footer {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.option-workspace {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.option-group-create {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.option-group-create strong,
.option-value-add-form strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.option-group-create small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.option-create-fields,
.option-add-fields {
  display: grid;
  gap: 10px;
  align-items: end;
}

.option-required-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-required-choice legend {
  width: 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.option-required-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
}

.option-required-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.option-required-choice--compact {
  align-self: end;
  flex-wrap: nowrap;
}

.option-required-choice--compact label {
  min-height: 40px;
  padding: 0 10px;
  white-space: nowrap;
}

.option-group-card {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.option-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.option-group-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 88px auto auto auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.option-group-edit-form .form-field {
  margin: 0;
  min-width: 0;
}

.option-group-edit-form input[type="text"],
.option-group-edit-form input[type="number"] {
  min-height: 40px;
}

.option-group-value-count {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.option-group-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.option-group-title strong {
  color: var(--ink);
  font-size: 17px;
}

.option-group-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.option-group-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-values-list {
  display: grid;
  gap: 0;
  overflow-x: auto;
}

.option-values-head {
  display: none;
  grid-template-columns:
    minmax(150px, 1.2fr)
    minmax(150px, 1.1fr)
    minmax(86px, 0.7fr)
    minmax(78px, 0.55fr)
    minmax(140px, 1fr)
    minmax(108px, 0.75fr)
    minmax(64px, 0.45fr)
    minmax(82px, 0.55fr)
    minmax(126px, 0.95fr)
    minmax(86px, 0.6fr)
    minmax(70px, 0.45fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 9px 14px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.option-value-row {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.option-value-row:last-child {
  border-bottom: 0;
}

.option-value-row.editable {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.option-value-edit-form {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  min-width: 0;
}

.option-value-edit-form .form-field {
  margin: 0;
}

.option-value-edit-form input,
.option-value-edit-form select,
.option-add-fields input,
.option-add-fields select,
.option-create-fields input {
  min-height: 40px;
}

.option-price-preview {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.option-price-preview small {
  color: var(--muted);
}

.option-active-toggle {
  align-self: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface-soft);
}

.option-value-delete-form {
  justify-self: stretch;
  padding: 0 14px 12px;
  min-width: 0;
}

.option-value-delete-form .button {
  width: 100%;
}

.option-value-row.inactive {
  background: #f9fafb;
}

.option-value-row.inactive .option-value-edit-form {
  opacity: 0.68;
}

.option-value-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.option-value-add-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: var(--surface-soft);
}

.management-mini-gallery {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.management-mini-gallery h3 {
  margin: 0;
  color: var(--ink);
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.mini-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: var(--surface-soft);
}

.inline-form {
  display: inline;
}

/* Cart and checkout option summaries */

.cart-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.cart-items,
.cart-summary .management-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.cart-item-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item-row:last-child {
  border-bottom: 0;
}

.cart-item-media img,
.cart-item-media .image-placeholder.small {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: var(--surface-soft);
}

.cart-item-media .image-placeholder.small {
  min-height: 72px;
  font-size: 11px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info a {
  color: var(--ink);
}

.cart-item-price {
  margin: 4px 0 0;
}

.cart-item-qty,
.cart-item-total,
.cart-item-remove {
  grid-column: 2;
}

.cart-item-qty .quantity-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cart-item-qty input {
  width: 72px;
  text-align: center;
}

.cart-item-total strong {
  color: var(--ink);
  font-size: 18px;
}

.cart-total-line,
.checkout-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--line);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 18px;
}

.cart-summary .button {
  width: calc(100% - 32px);
  margin: 0 16px 10px;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-item-info {
  min-width: 0;
}

.option-summary {
  display: grid;
  gap: 3px;
  padding: 0;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.option-summary li {
  overflow-wrap: anywhere;
}

.option-key {
  color: var(--dark);
  font-weight: 900;
}

.thanks-heading {
  text-align: center;
}

.thanks-heading h1 {
  color: var(--accent);
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .form-row.compact {
    grid-template-columns: minmax(160px, 1fr) 120px 100px auto;
  }

  .image-upload-form .button,
  .option-group-add-form .button,
  .option-value-add-form .button {
    justify-self: start;
  }

  .option-create-fields {
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }

  .option-add-fields {
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) 110px 90px minmax(180px, 1fr) auto auto;
  }
}

@media (min-width: 820px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .cart-item-row {
    grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
    align-items: center;
  }

  .cart-item-qty,
  .cart-item-total,
  .cart-item-remove {
    grid-column: auto;
  }
}

@media (min-width: 960px) {
  .option-values-head {
    display: grid;
    min-width: 1310px;
  }

  .option-value-row.editable {
    grid-template-columns:
      minmax(150px, 1.2fr)
      minmax(150px, 1.1fr)
      minmax(86px, 0.7fr)
      minmax(78px, 0.55fr)
      minmax(140px, 1fr)
      minmax(108px, 0.75fr)
      minmax(64px, 0.45fr)
      minmax(82px, 0.55fr)
      minmax(126px, 0.95fr)
      minmax(86px, 0.6fr)
      minmax(70px, 0.45fr);
    gap: 10px;
    align-items: end;
    min-width: 1310px;
    padding: 12px 14px;
  }

  .option-value-edit-form {
    display: contents;
  }

  .option-value-edit-form label:not(.toggle-field) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .option-value-edit-form .form-field {
    min-width: 0;
  }

  .option-value-edit-form input,
  .option-value-edit-form select {
    width: 100%;
    min-width: 0;
  }

  .option-price-preview {
    min-height: 40px;
    align-self: stretch;
    padding: 7px 9px;
  }

  .option-price-preview small {
    font-size: 11px;
    line-height: 1.25;
  }

  .option-value-actions {
    align-self: end;
    min-width: 0;
  }

  .option-value-actions .button {
    width: 100%;
  }

  .option-value-delete-form {
    display: flex;
    align-items: end;
    padding: 0;
  }

  .option-value-delete-form .button {
    width: 100%;
  }
}

@media (min-width: 820px) and (max-width: 959px) {
  .option-value-edit-form {
    grid-template-columns: minmax(180px, 1fr) 110px 96px minmax(180px, 1fr);
    align-items: end;
  }

  .option-active-toggle,
  .option-price-preview,
  .option-value-actions {
    align-self: stretch;
  }
}

@media (max-width: 819px) {
  .checkout-layout .order-summary {
    position: static;
  }
}

@media (max-width: 559px) {
  .option-radio-cards {
    grid-template-columns: 1fr;
  }

  .option-workspace {
    padding: 12px;
  }

  .option-group-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .option-group-edit-form {
    grid-template-columns: 1fr;
  }

  .option-required-choice--compact {
    flex-wrap: wrap;
  }

  .option-group-edit-form .button {
    width: 100%;
  }

  .option-group-header .inline-form .button {
    width: 100%;
  }

  .option-value-actions {
    justify-content: stretch;
  }

  .option-value-actions form,
  .option-value-actions button,
  .option-group-header .inline-form,
  .option-group-header .inline-form button {
    width: 100%;
  }
}

/* ── Favori / Wishlist ────────────────────────────────────────────────────── */
.product-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.wishlist-form {
  margin: 0;
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  padding: 0;
  flex-shrink: 0;
}

.wishlist-btn:hover,
.wishlist-btn.is-favorite {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fff1f2;
}

/* Product detail wishlist button */
.pd-wishlist-form {
  display: contents;
}

.pd-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  width: auto;
}

.pd-wishlist-btn .wishlist-icon {
  font-size: 18px;
}

.pd-wishlist-btn:hover,
.pd-wishlist-btn.is-favorite {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fff1f2;
}

/* Account tools grid */
.account-tools-grid {
  display: grid;
  gap: 0;
  padding: 0;
}

.account-tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: #111827;
  transition: border-color .15s, background .15s;
}

.account-tool-card:first-child {
  border-top: 0;
}

.account-tool-card:hover {
  background: #fffafa;
}

.account-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff1f2;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.account-tool-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.account-tool-card small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

@media (min-width: 720px) {
  .account-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 30px;
  }

  .account-hero-actions {
    justify-content: end;
  }

  .account-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-form-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 980px) {
  .account-dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
  }

  .account-main-stack,
  .account-side-stack,
  .account-profile-sections {
    gap: 24px;
  }
}

.payment-method-label {
  margin: 0 0 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  cursor: pointer;
}

.payment-method-option input {
  flex: 0 0 auto;
  margin: 0;
}

.checkout-layout {
  align-items: start;
}

.checkout-layout .checkout-form.management-panel,
.checkout-layout .order-summary.management-panel {
  padding: 0;
}

.checkout-layout .checkout-form.management-panel > .form-field,
.checkout-layout .checkout-form.management-panel > button {
  margin-right: 16px;
  margin-left: 16px;
}

.checkout-layout .checkout-form.management-panel > .form-field {
  margin-bottom: 14px;
}

.checkout-layout .checkout-form.management-panel > button {
  width: calc(100% - 32px);
  margin-bottom: 16px;
}

.checkout-layout .panel-heading {
  margin-bottom: 16px;
}

.checkout-layout .order-summary {
  position: sticky;
  top: 122px;
}

.footer-small-links {
  font-size: 12px;
}

.rich-description {
  color: #4b5563;
  line-height: 1.65;
}

.rich-description > *:first-child {
  margin-top: 0;
}

.rich-description > *:last-child {
  margin-bottom: 0;
}

.rich-description h2,
.rich-description h3,
.rich-description h4 {
  color: #111827;
  line-height: 1.25;
  margin: 0 0 10px;
}

.rich-description h2 { font-size: 18px; }
.rich-description h3 { font-size: 16px; }
.rich-description h4 { font-size: 14px; }

.rich-description p,
.rich-description div,
.rich-description ul,
.rich-description ol,
.rich-description blockquote {
  margin: 0 0 12px;
}

.rich-description ul,
.rich-description ol {
  padding-left: 22px;
}

.rich-description blockquote {
  padding-left: 12px;
  border-left: 3px solid #d1d5db;
  color: #374151;
}

.pf-rich-editor {
  display: grid;
  gap: 8px;
}

.pf-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.pf-rich-toolbar button,
.pf-rich-toolbar select,
.pf-rich-color {
  min-height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.pf-rich-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
  cursor: pointer;
  transform: none;
}

.pf-rich-toolbar select {
  padding: 0 8px;
}

.pf-rich-color {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  cursor: pointer;
}

.pf-rich-color input {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pf-rich-toolbar button:hover,
.pf-rich-toolbar select:hover,
.pf-rich-color:hover {
  background: #f3f4f6;
  transform: none;
}

.pf-rich-editable {
  min-height: 180px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1.65;
  outline: none;
}

.pf-rich-editable:focus,
.pf-rich-source-visible:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}

.pf-rich-editable p,
.pf-rich-editable ul,
.pf-rich-editable ol,
.pf-rich-editable blockquote {
  margin: 0 0 10px;
}

.pf-rich-editable h2,
.pf-rich-editable h3,
.pf-rich-editable h4 {
  margin: 0 0 10px;
  color: #111827;
  line-height: 1.25;
}

.pf-rich-editable h2 { font-size: 18px; }
.pf-rich-editable h3 { font-size: 15px; }
.pf-rich-editable h4 { font-size: 14px; }

.pf-rich-editable ul,
.pf-rich-editable ol {
  padding-left: 22px;
}

.pf-rich-editable blockquote {
  padding-left: 12px;
  border-left: 3px solid #d1d5db;
  color: #4b5563;
}

.pf-rich-source {
  display: none;
}

.pf-rich-source-visible {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 13px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.cookie-accept {
  min-height: auto;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-accept:hover {
  background: #f3f4f6;
  color: #111827;
  transform: none;
}

/* Product listing images should render at their own ratio, without a fixed media box. */
.pl-results .product-card-media,
.product-card-media {
  display: block !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.pl-results .product-card-media img,
.product-card-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}
