/*
 * Pixron B2B Portal — Stylesheet
 * Developed by Pixron Digital — https://www.pixron.com
 */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Farro:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #2F3234;
  --primary-hover: #1F2122;
  --primary-light: rgba(47, 50, 52, 0.08);
  --primary-gradient: linear-gradient(135deg, #2F3234, #1F2122);

  --accent: #d4af37;
  --accent-hover: #b28d24;
  --accent-light: rgba(212, 175, 55, 0.15);
  --accent-gradient: linear-gradient(135deg, #d4af37, #b28d24);
  
  --dark-bg: #161819;
  --dark-sidebar: #2F3234;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-text: #f8fafc;
  --dark-text-muted: #94a3b8;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: rgba(226, 232, 240, 0.8);
  --border-focus: #4b4e50;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --info: #2F3234;
  
  /* Layout sizes */
  --sidebar-width: 300px;
  --header-height: 70px;
  
  /* Styling details */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

/* ============ DARK MODE THEME ============ */
[data-theme="dark"] {
  --bg-main: #161819;
  --bg-card: #222425;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: #5b5e60;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --primary-light: rgba(47, 50, 52, 0.15);

  --success-light: rgba(16, 185, 129, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger-light: rgba(239, 68, 68, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
}

/* Dark mode specific overrides */
[data-theme="dark"] .app-header {
  background-color: var(--dark-sidebar);
  border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .header-btn {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--dark-text);
}
[data-theme="dark"] .header-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .header-user-menu.is-open,
[data-theme="dark"] .header-user-menu:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .header-user-dropdown__menu {
  background: var(--dark-sidebar);
  border-color: var(--dark-border);
}

[data-theme="dark"] .header-user-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .header-user-dropdown__item--danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

[data-theme="dark"] .header-badge {
  border-color: var(--dark-sidebar);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-select,
[data-theme="dark"] .textarea-note,
[data-theme="dark"] .cart-note-input,
[data-theme="dark"] .product-detail-search__input {
  background-color: rgba(15, 23, 42, 0.5);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .filter-input:focus,
[data-theme="dark"] .filter-select:focus,
[data-theme="dark"] .product-detail-search__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 50, 52, 0.2);
}

[data-theme="dark"] .category-tab {
  background-color: var(--bg-card);
  border-color: var(--dark-border);
  color: var(--dark-text-muted);
}
[data-theme="dark"] .category-tab:hover {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .product-img-box {
  background-color: #ffffff;
}

[data-theme="dark"] .product-detail-btn {
  background-color: var(--primary-light);
  border-color: rgba(47, 50, 52, 0.2);
}

[data-theme="dark"] .color-pill {
  background-color: rgba(26, 28, 29, 0.5);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

[data-theme="dark"] .fabric-card {
  background-color: rgba(26, 28, 29, 0.5);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

[data-theme="dark"] .qty-btn {
  background-color: rgba(26, 28, 29, 0.5);
  color: var(--dark-text-muted);
}
[data-theme="dark"] .qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text);
}

[data-theme="dark"] .action-icon-btn {
  background-color: rgba(47, 50, 52, 0.1);
}

[data-theme="dark"] .credit-card-preview {
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .payment-type-tab {
  color: var(--dark-text-muted);
}

[data-theme="dark"] .cart-item-img {
  background-color: #ffffff;
  border-color: var(--dark-border);
}

[data-theme="dark"] footer {
  background-color: var(--dark-sidebar) !important;
  border-top-color: var(--dark-border) !important;
  color: var(--dark-text-muted) !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Dark mode logo inversion for sidebar (dark bg already) - no change needed */
/* Dark mode logo for main content area */
[data-theme="dark"] .header-logo-img {
  filter: brightness(0) invert(1);
}

/* ============ LOGO STYLES ============ */
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  margin-bottom: 30px;
}

.logo-img {
  height: 20px;
  max-width: 180px;
  width: auto;
  filter: none; /* Naturally white SVG fits sidebar dark background */
}

.logo-b2b-badge {
  font-family: 'Farro', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  line-height: 1;
}

/* ============ COMBINED BRAND (Savilva + Pixron B2B) ============ */
.combined-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.combined-brand__savilva {
  display: block;
  height: 20px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  flex: 1 1 auto;
  min-width: 0;
  filter: brightness(0) invert(1);
}

.combined-brand__pixron {
  flex-shrink: 0;
}

.combined-brand--login {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  margin-bottom: 16px;
  padding-left: 0;
  text-align: left;
}

.combined-brand--login .combined-brand__savilva {
  height: 22px;
  align-self: center;
}

.combined-brand--login .combined-brand__pixron {
  display: flex;
  align-items: center;
  align-self: center;
}

.combined-brand--login .pixron-b2b-brand {
  align-items: center;
}

.combined-brand--login .pixron-b2b-brand--login {
  margin-bottom: 0;
  justify-content: flex-start;
}

.combined-brand--login .combined-brand__pixron .pixron-b2b-brand__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 5px 10px;
  line-height: 1;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.combined-brand--login .pixron-b2b-brand__suffix--vertical {
  height: 34px;
  align-self: center;
  margin-left: 6px;
  padding-left: 8px;
  color: #f8fafc;
  opacity: 0.78;
}

.combined-brand--sidebar {
  width: 100%;
}

.combined-brand--sidebar .combined-brand__pixron .pixron-b2b-brand__badge {
  font-size: 10px;
}

[data-theme="light"] .pixron-b2b-brand--footer .pixron-b2b-brand__badge {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .pixron-b2b-brand--footer .pixron-b2b-brand__badge {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.18);
}

/* ============ PIXRON B2B BRAND ============ */
.pixron-b2b-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.pixron-b2b-brand__badge {
  font-family: 'Farro', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.pixron-b2b-brand__suffix--vertical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 30px;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.78;
  line-height: 1;
}

.pixron-b2b-brand--login:not(.combined-brand__pixron) {
  justify-content: center;
  margin-bottom: 16px;
}

.pixron-b2b-brand--footer .pixron-b2b-brand__badge {
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .pixron-b2b-brand--footer .pixron-b2b-brand__badge {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.18);
}

.login-logo-img {
  height: 28px;
  max-width: 100%;
  width: auto;
  filter: none; /* Always white to fit the dark navy login card background */
  margin-bottom: 12px;
}

/* ============ THEME TOGGLE & LANG SWITCH ============ */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
  position: relative;
}
[data-theme="dark"] .theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--dark-text);
}
.theme-toggle-btn:hover {
  background-color: #e2e8f0;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.lang-switch-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  border: 1px solid var(--border-light);
}
[data-theme="dark"] .lang-switch-btn {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--dark-text);
  border-color: var(--dark-border);
}
.lang-switch-btn:hover {
  background-color: #e2e8f0;
}
[data-theme="dark"] .lang-switch-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ============ TOAST NOTIFICATION SYSTEM ============ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  min-width: 320px;
  max-width: 420px;
  animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.info {
  border-left: 4px solid var(--accent);
}

.toast.toast-exit {
  opacity: 0;
  transform: translateX(30px);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background-color: var(--success-light);
  color: var(--success);
}
.toast.error .toast-icon {
  background-color: var(--danger-light);
  color: var(--danger);
}
.toast.warning .toast-icon {
  background-color: var(--warning-light);
  color: var(--warning);
}
.toast.info .toast-icon {
  background-color: var(--primary-light);
  color: var(--primary);
}

.toast-body {
  flex: 1;
}
.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.toast-message {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast-close {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.toast-close:hover {
  background-color: var(--bg-main);
  color: var(--text-main);
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation-name: toastProgressShrink;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.toast.success .toast-progress {
  background: var(--success);
}

.toast.error .toast-progress {
  background: var(--danger);
}

.toast.warning .toast-progress {
  background: var(--warning);
}

.toast.info .toast-progress {
  background: var(--accent);
}

@keyframes toastProgressShrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============ ANNOUNCEMENTS PAGE ============ */
.announcements-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.announcement-page-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
}

.announcement-page-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 50, 52, 0.2);
}

.announcement-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.announcement-page-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-page-tag.system {
  background-color: var(--primary-light);
  color: var(--primary);
}
.announcement-page-tag.logistics {
  background-color: var(--warning-light);
  color: var(--warning);
}
.announcement-page-tag.product {
  background-color: var(--success-light);
  color: var(--success);
}
.announcement-page-tag.urgent {
  background-color: var(--danger-light);
  color: var(--danger);
}

.announcement-page-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.announcement-page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.announcement-page-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.announcement-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.announcement-page-author {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-page-readmore {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ RESPONSIVE: TOAST ============ */
@media (max-width: 576px) {
  .toast-container {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Farro', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Farro', sans-serif;
  font-weight: 600;
  color: var(--text-main);
}

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

button, input, select, textarea {
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* App Wrapper and Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Login View Styling */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background-color: #121314;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, #1c1e1f 0%, #0e0f10 100%);
  background-size: 24px 24px, auto;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.guest-top-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 50, 52, 0.92);
  border: 1px solid var(--dark-border);
  color: var(--dark-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
}

.guest-lang-switch-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.login-bg-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 50, 52, 0.45) 0%, rgba(47, 50, 52, 0) 70%);
  top: -150px;
  left: -150px;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: float-slow-1 15s ease-in-out infinite;
}

.login-bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 70%);
  bottom: -200px;
  right: -150px;
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
  animation: float-slow-2 18s ease-in-out infinite;
}

@keyframes float-slow-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
}

@keyframes float-slow-2 {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-50px, 50px) scale(0.9); }
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(47, 50, 52, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--dark-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.5s ease-out;
}

.login-logo {
  font-family: 'Farro', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.login-logo span {
  color: var(--primary);
}

.login-subtitle {
  color: var(--dark-text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.guest-auth-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 0 24px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}

.guest-auth-flash i {
  margin-top: 2px;
  font-size: 16px;
  flex-shrink: 0;
}

.guest-auth-flash--success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.guest-auth-flash--info {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f8edd0;
}

.guest-auth-flash--error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-text-muted);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--dark-text-muted);
  font-size: 16px;
}

.input-currency-symbol {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  pointer-events: none;
  user-select: none;
}

.form-input {
  width: 100%;
  height: 48px;
  background: rgb(28 28 28 / 60%);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 0 16px 0 42px;
  color: var(--dark-text);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 50, 52, 0.25);
}

.login-container .form-input {
  background: rgb(28 28 28 / 60%) !important;
}

/* Portal panel inputs (card/main background — not login dark theme) */
.form-input-portal {
  background: var(--bg-main) !important;
  color: var(--text-main) !important;
  border-color: var(--border-light);
  padding: 0 16px;
}

[data-theme="dark"] .form-input-portal {
  background: rgba(15, 23, 42, 0.5) !important;
  color: var(--text-main) !important;
  border-color: var(--dark-border);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-text-muted);
  cursor: pointer;
}

.remember-me input {
  cursor: pointer;
}

.forgot-password {
  color: var(--primary);
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--accent-gradient);
  color: var(--text-white);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

a.login-btn {
  color: var(--text-white);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
  color: var(--text-white);
}

.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--dark-text-muted);
}

.login-footer__copy {
  margin: 0 0 10px;
  line-height: 1.5;
}

.login-footer__pixron {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-footer__pixron .pixron-brand {
  margin: 0;
  flex-direction: row;
}

.login-footer__pixron .pixron-brand span {
  display: none;
}

.pixron-brand--guest-login i {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.login-footer__pixron .pixron-brand:hover i {
  opacity: 0.85;
}

/* B2B Registration Wizard Styling */
.register-wizard-card {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Location Segmented Control Toggle */
.location-toggle-group {
  display: flex;
  background-color: rgb(28 28 28 / 60%);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}

.location-toggle-btn {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--dark-text-muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-toggle-btn:hover {
  color: var(--dark-text);
}

.location-toggle-btn.active {
  background: var(--accent-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.15);
}

/* Wizard Progress Bar */
.wizard-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 32px 0;
  padding: 0 10px;
}

.progress-line {
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: var(--dark-border);
  z-index: 1;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
}

.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  cursor: default;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--dark-sidebar);
  border: 2px solid var(--dark-border);
  color: var(--dark-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Farro', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
}

.step-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.progress-step.active .step-num {
  background-color: #1c1e1f;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.progress-step.active .step-label {
  color: var(--dark-text);
  font-weight: 700;
}

.progress-step.completed .step-num {
  background: var(--accent-gradient);
  border-color: var(--accent-hover);
  color: #1F2122;
}

.progress-step.completed .step-label {
  color: var(--accent);
}

/* Form Layout Grid */
.form-row {
  margin-bottom: 16px;
}

/* File Upload Zone */
.file-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--accent);
  background-color: rgba(212, 175, 55, 0.03);
}

.file-upload-icon {
  font-size: 32px;
  color: var(--dark-text-muted);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.file-upload-zone:hover .file-upload-icon {
  color: var(--accent);
  transform: translateY(-2px);
}

.file-upload-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.file-upload-subtext {
  font-size: 11px;
  color: var(--dark-text-muted);
}

/* Dropdown Select customization */
.select-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.select-input option {
  background-color: #2F3234;
  color: var(--dark-text);
}

/* Product Checkboxes */
.product-group-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--dark-text-muted);
  transition: all var(--transition-fast);
  user-select: none;
}

.checkbox-pill:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text);
}

.checkbox-pill input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.checkbox-pill input[type="checkbox"]:checked + span {
  color: var(--dark-text);
  font-weight: 600;
}

.checkbox-pill:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background-color: rgba(212, 175, 55, 0.05);
}

/* Wizard Action Buttons */
.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.wizard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wizard-btn.primary-btn {
  background: var(--accent-gradient);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.wizard-btn.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.wizard-btn.secondary-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.wizard-btn.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.15);
}

.wizard-btn.submit-btn {
  background: var(--accent-gradient);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.wizard-btn.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

/* Success Card details */
.register-success-card {
  max-width: 440px;
  text-align: center;
  padding: 40px;
}

.register-success-card .success-title {
  color: var(--dark-text);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.register-success-card .success-desc {
  color: var(--dark-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 30px;
}

.register-success-card .login-btn {
  max-width: 100%;
}

.success-checkmark-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background-color: rgba(212, 175, 55, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Back Link styling */
.back-to-login {
  transition: color var(--transition-fast);
}

.back-to-login:hover {
  color: var(--accent) !important;
}

/* Sidebar Styling */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--dark-sidebar);
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  padding: 24px 16px;
  color: var(--dark-text);
  overflow-y: auto;
}

.sidebar-logo {
  font-family: 'Farro', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--dark-text);
  margin-bottom: 30px;
  padding-left: 8px;
}

.sidebar-logo span {
  color: var(--primary);
}

.user-profile-card {
  background: rgba(26, 28, 29, 0.4);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.dealer-avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.dealer-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-color: var(--primary);
  color: var(--text-white);
}

.dealer-avatar--sidebar,
.dealer-avatar--sidebar.dealer-avatar--initial {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.dealer-avatar--header,
.dealer-avatar--header.dealer-avatar--initial {
  width: 32px;
  height: 32px;
  font-size: 13px;
  background-color: var(--primary-light);
  color: var(--primary);
}

.profile-photo-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-main);
}

.profile-photo-card__preview {
  flex-shrink: 0;
}

.profile-photo-card__image,
.profile-photo-card__placeholder {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.profile-photo-card__image {
  object-fit: cover;
  display: block;
}

.profile-photo-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: var(--text-white);
  font-size: 32px;
  font-weight: 800;
}

.profile-photo-card__body {
  flex: 1;
  min-width: 0;
}

.profile-photo-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-photo-card__help,
.profile-photo-card__readonly {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.profile-photo-card__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-photo-card__upload {
  cursor: pointer;
}

.profile-photo-card__input {
  display: none;
}

.profile-photo-card__submit {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.profile-photo-card__error {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--danger);
}

.profile-photo-card__remove-form {
  margin-top: 10px;
}

.profile-photo-card__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.profile-photo-card__remove:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .profile-photo-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.profile-logo-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-main);
}

.profile-logo-card__preview {
  flex-shrink: 0;
}

.profile-logo-card__image,
.profile-logo-card__placeholder {
  width: 140px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.profile-logo-card__image {
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 6px;
}

.profile-logo-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 24px;
}

.profile-logo-card__body {
  flex: 1;
  min-width: 0;
}

.profile-logo-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-logo-card__help,
.profile-logo-card__readonly {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.profile-logo-card__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-logo-card__upload {
  cursor: pointer;
}

.profile-logo-card__input {
  display: none;
}

.profile-logo-card__submit {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.profile-logo-card__error {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--danger);
}

.profile-logo-card__remove-form {
  margin-top: 10px;
}

.profile-logo-card__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.profile-logo-card__remove:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .profile-logo-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.user-profile-info {
  overflow: hidden;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-profile-title {
  font-size: 10px;
  color: var(--dark-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.sidebar-menu-group {
  margin-bottom: 24px;
}

.sidebar-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-left: 8px;
}

.sidebar-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text-muted);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.sidebar-menu-item a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-menu-item a:hover {
  color: var(--dark-text);
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu-item.active a {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-bottom-actions {
  margin-top: auto;
  border-top: 1px solid var(--dark-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: 'Farro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-action-btn i {
  font-size: 14px;
  transition: transform var(--transition-fast);
}

/* Specific icon accent colors */
.sidebar-action-btn i.fa-map-marker-alt {
  color: var(--accent); /* Premium Gold marker */
}

.sidebar-action-btn i.fa-shopping-cart {
  color: var(--accent); /* Premium Gold cart */
}

.sidebar-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-action-btn:hover i {
  transform: scale(1.1);
}

.sidebar-action-btn.logout {
  color: #ff7676;
  border-color: rgba(239, 68, 68, 0.2);
  background-color: rgba(239, 68, 68, 0.08);
}

.sidebar-action-btn.logout i {
  color: #ff7676;
}

.sidebar-action-btn.logout:hover {
  background-color: #ef4444;
  color: var(--text-white);
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.sidebar-action-btn.logout:hover i {
  color: var(--text-white);
}

/* Sidebar Cart Badge */
.sidebar-cart-badge {
  margin-left: auto;
  background: var(--accent-gradient);
  color: #1F2122; /* dark charcoal */
  font-size: 10px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 6px;
  height: 18px;
  min-width: 18px;
  display: none; /* managed by JS */
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

/* Main Content Layout */
.app-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styling */
.app-header {
  height: var(--header-height);
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title-wrapper {
  display: flex;
  flex-direction: column;
}

.header-breadcrumbs {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: var(--transition-fast);
}

.header-btn:hover {
  background-color: #e2e8f0;
}

.header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background-color: var(--danger);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
}

.header-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: none;
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  text-align: left;
  font-family: inherit;
  line-height: inherit;
  flex-shrink: 0;
}

.header-user-menu.is-open,
.header-user-menu:hover {
  background-color: var(--bg-main);
}

.header-user-menu__chevron--open {
  transform: rotate(180deg);
}

.header-user-dropdown {
  position: relative;
  flex-shrink: 0;
}

.header-user-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.header-user-dropdown__form {
  margin: 0;
}

.header-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-user-dropdown__item:hover {
  background: var(--bg-main);
}

.header-user-dropdown__item i {
  width: 16px;
  color: var(--text-muted);
  text-align: center;
}

.header-user-dropdown__item--danger {
  color: var(--danger);
}

.header-user-dropdown__item--danger i {
  color: var(--danger);
}

.header-user-dropdown__item--danger:hover {
  background: var(--danger-light);
}

.header-user-dropdown__transition-enter,
.header-user-dropdown__transition-leave {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.header-user-dropdown__transition-enter-start,
.header-user-dropdown__transition-leave-end {
  opacity: 0;
  transform: translateY(-6px);
}

.header-user-dropdown__transition-enter-end,
.header-user-dropdown__transition-leave-start {
  opacity: 1;
  transform: translateY(0);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.header-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.header-user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.header-user-role {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

/* Page View Switching */
.view-section {
  display: none;
  padding: 32px;
  animation: viewFadeIn 0.3s ease-out;
}

.view-section.active-view {
  display: block;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard View Styling */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Welcome Card */
.welcome-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 4px;
  align-items: center;
}

.welcome-banner-bg {
  position: absolute;
  right: -2%;
  bottom: -45%;
  font-size: 130px;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.welcome-title {
  color: var(--text-white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.welcome-subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  max-width: 520px;
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
}

.welcome-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  z-index: 1;
}

.welcome-stat-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.welcome-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.welcome-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.welcome-stat-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.welcome-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
  line-height: 1.2;
}

/* Info Announcement Card */
.info-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.info-card.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.info-card-content {
  max-width: 75%;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.info-card-title {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.info-card-btn {
  background-color: var(--text-white);
  color: #d97706;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

/* Quick Navigation Links */
.quick-nav-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.quick-nav-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.quick-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 50, 52, 0.3);
}

.quick-nav-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-white);
}

.quick-nav-card.products .quick-nav-icon-wrapper {
  background: var(--primary-gradient);
}
.quick-nav-card.cart .quick-nav-icon-wrapper {
  background: linear-gradient(135deg, #10b981, #059669);
}
.quick-nav-card.orders .quick-nav-icon-wrapper {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.quick-nav-card.profile .quick-nav-icon-wrapper {
  background: linear-gradient(135deg, #64748b, #475569);
}

.quick-nav-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.quick-nav-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Side Column: Announcements & Carousel */
.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Main Campaigns Slider */
.campaign-slider {
  /* Yükseklik serbest: görsel %100 genişlikte durur, alan görselin boyuna uyar. */
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Aktif slide akışta durur, yüksekliği görselden gelir. */
.slide.active {
  position: relative;
  height: auto;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px 30px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
  color: var(--text-white);
  text-align: left;
  z-index: 3;
}

.slide-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-gradient);
  color: var(--text-white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.slide-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  font-family: 'Farro', sans-serif;
}

/* Uzun kampanya metni görselin yarısını kaplamasın. */
.slide-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  max-width: 80%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--bg-card);
  color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev-slide {
  left: 16px;
}

.slider-arrow.next-slide {
  right: 16px;
}

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

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-normal);
}

.slider-dot.active {
  width: 20px;
  background-color: var(--text-white);
}

/* Announcements Box */
.announcements-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  min-height: 760px;
  height: 760px;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.announcements-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.announcement-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}

.announcement-item.announcement-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.announcement-page-card.announcement-trigger {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card.announcement-trigger {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.announcement-item.announcement-trigger:hover,
.info-card.announcement-trigger:hover {
  opacity: 0.92;
}

.announcement-page-card.announcement-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.announcements-view-all {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.announcements-view-all:hover {
  text-decoration: underline;
}

.announcements-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.announcement-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
}

.announcement-tag {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-date {
  color: var(--text-muted);
}

.announcement-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.announcement-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Catalog Page */
.catalog-filters {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

.filter-grid--with-sort {
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(180px, 220px) auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-select, .filter-input {
  height: 40px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-main);
}

.filter-select:focus, .filter-input:focus {
  border-color: var(--border-focus);
}

.filter-btn {
  height: 40px;
  padding: 0 24px;
  background: var(--accent-gradient);
  color: var(--text-white);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.category-tab {
  height: 36px;
  padding: 0 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.category-tab:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
}

.category-tab.active {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* Product Grid */
.catalog-category-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.catalog-category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.catalog-category-heading__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.catalog-category-heading__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.catalog-category-heading__link:hover {
  text-decoration: underline;
}

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

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--danger);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  z-index: 10;
}

.product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid var(--border-light);
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 6px;
}

.product-categories .product-category {
  margin-bottom: 0;
}

.configurator-categories {
  margin-top: 8px;
}

.product-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-bottom: 16px;
}

.product-price-stack,
.quick-order-price-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-vat-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.product-price {
  font-family: 'Farro', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.product-detail-btn {
  width: 100%;
  height: 38px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(47, 50, 52, 0.15);
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.product-detail-btn:hover {
  background: var(--accent-gradient);
  color: var(--text-white);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* Product Configurator View */
.configurator-form {
  display: block;
}

.configurator-form__fields {
  display: none;
}

/* Product detail — catalog search shortcut */
.product-detail-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-detail-search__field {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.product-detail-search__field > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
}

.product-detail-search__input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 13px;
}

.product-detail-search__input:focus {
  border-color: var(--border-focus);
  outline: none;
}

.product-detail-search__btn {
  flex-shrink: 0;
}

.configurator-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr) minmax(300px, 340px);
  gap: 28px;
  align-items: start;
}

.configurator-grid--per-unit {
  align-items: start;
}

.configurator-grid--per-unit > .configurator-gallery,
.configurator-grid--per-unit > .configurator-options,
.configurator-grid--per-unit > .configurator-pricing {
  min-height: 0;
}

.configurator-grid--per-unit > .configurator-gallery {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
}

.configurator-grid--per-unit > .configurator-pricing {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
  z-index: 1;
}

.configurator-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
}

.product-technical-info {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  max-height: min(40vh, 320px);
  overflow-y: auto;
}

.product-technical-info__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.product-technical-info__body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.product-technical-info__body p {
  margin: 0 0 0.55em;
}

.product-technical-info__body p:last-child {
  margin-bottom: 0;
}

.product-technical-info__body ul,
.product-technical-info__body ol {
  margin: 0 0 0.55em 1.1em;
  padding: 0;
}

.product-technical-info__body li {
  margin-bottom: 0.25em;
}

.configurator-preview-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.configurator-preview-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.configurator-preview-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.configurator-preview-stage.is-hover-zoom img {
  transition: transform 0.05s linear;
}

.configurator-preview-stage.is-zoomed img {
  transition: transform 0.08s ease-out;
}

.configurator-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.configurator-gallery-toolbar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  backdrop-filter: blur(8px);
}

.configurator-gallery-tool {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.configurator-gallery-tool:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.configurator-gallery-tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.configurator-gallery-zoom-label {
  min-width: 52px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.88);
}

.product-lightbox__dialog {
  position: relative;
  width: fit-content;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.product-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  max-width: min(1200px, calc(100vw - 80px));
  max-height: calc(100vh - 160px);
}

.product-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1140px, calc(100vw - 96px));
  max-height: calc(100vh - 176px);
  object-fit: contain;
  transition: transform 0.08s ease-out;
  user-select: none;
}

.product-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-lightbox__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.85);
}

.product-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-lightbox__nav:hover {
  background: rgba(15, 23, 42, 0.85);
}

.product-lightbox__nav.prev {
  left: -56px;
}

.product-lightbox__nav.next {
  right: -56px;
}

body.product-lightbox-open {
  overflow: hidden;
}

[x-cloak] {
  display: none !important;
}

@media (hover: none), (pointer: coarse) {
  .configurator-preview-stage {
    cursor: zoom-in;
  }
}

@media (max-width: 767px) {
  .configurator-gallery-toolbar {
    bottom: 12px;
    padding: 6px 10px;
    gap: 6px;
  }

  .configurator-gallery-tool {
    width: 32px;
    height: 32px;
  }

  .product-lightbox {
    padding: 12px;
  }

  .product-lightbox__nav.prev {
    left: 8px;
  }

  .product-lightbox__nav.next {
    right: 8px;
  }

  .product-lightbox__close {
    top: 4px;
    right: 4px;
  }

  .product-lightbox__nav {
    width: 38px;
    height: 38px;
  }
}

.pricing-mode-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-mode-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.pricing-mode-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.pricing-mode-btn.active {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.product-set-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.product-parts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-part-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  overflow: hidden;
}

.product-part-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.product-part-row--listing {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.product-part-row__fabric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
  border-top: 1px dashed var(--border-light);
  margin-top: 0;
  padding-top: 14px;
}

.product-part-row__fabric .option-label {
  margin-top: 0;
}

.product-part-row__fabric .fabric-code-listbox {
  min-height: 132px;
}

.product-part-row__media {
  flex-shrink: 0;
}

.product-part-row__image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.product-part-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.product-part-row__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.product-part-row__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.configurator-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 4;
}

.configurator-gallery-nav:hover {
  background-color: var(--bg-main);
}

.configurator-gallery-nav.prev { left: 16px; }
.configurator-gallery-nav.next { right: 16px; }

.configurator-options {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  align-self: start;
}

.configurator-options--per-unit {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  align-self: start;
}

.configurator-options__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.configurator-options--per-unit .configurator-options__head {
  padding: 0;
  border-bottom: none;
}

.configurator-options__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.configurator-options--per-unit .configurator-options__body {
  gap: 20px;
}

.configurator-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.configurator-section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-group--dependent {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border-light);
}

.option-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.config-select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
}

.config-select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.config-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.unit-config-panel {
  margin-top: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.unit-config-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--bg-card) 90%, var(--bg-main));
}

.unit-config-panel__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.unit-config-panel__expand {
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.unit-config-panel__expand:hover {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--text-main);
}

.unit-config-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.unit-config-card {
  position: relative;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.unit-config-card[open] {
  z-index: 2;
  background: var(--bg-card);
}

.unit-config-card:last-child {
  border-bottom: none;
}

.unit-config-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.unit-config-card__title::-webkit-details-marker {
  display: none;
}

.unit-config-card__title::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
  color: var(--text-muted);
}

.unit-config-card[open] .unit-config-card__title::before {
  transform: rotate(90deg);
}

.unit-config-card__body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unit-config-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.unit-config-fabric-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px dashed var(--border-light);
}

.fabric-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.fabric-search-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  padding: 0 14px;
}

.fabric-search-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.fabric-code-listbox {
  height: auto;
  min-height: 160px;
  padding: 8px;
}

.fabric-code-listbox option {
  padding: 8px 10px;
  border-radius: 6px;
}

/* Configurator Pricing Widget */
.configurator-pricing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
  z-index: 4;
}

.color-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-pill {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-main);
  transition: var(--transition-fast);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-pill.active {
  border-color: var(--border-focus);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fabric-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  background-color: var(--bg-main);
  transition: var(--transition-fast);
}

.fabric-card:hover {
  border-color: #cbd5e1;
}

.fabric-card.active {
  border-color: var(--border-focus);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.fabric-code {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.fabric-price-mod {
  font-size: 11px;
  color: var(--text-muted);
}

.fabric-card.active .fabric-price-mod {
  color: var(--primary);
}

.qty-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: fit-content;
  overflow: hidden;
  height: 40px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: #cbd5e1;
  color: var(--text-main);
}

.qty-input {
  width: 56px;
  min-width: 56px;
  height: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  background: var(--bg-main);
  border: none;
}

.qty-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--border-focus);
}

.textarea-note {
  width: 100%;
  height: 80px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  resize: none;
}

.textarea-note:focus {
  border-color: var(--border-focus);
}

.pricing-widget-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-widget-card__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-header-badge {
  background-color: var(--success-light);
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.price-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.price-item-label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

.price-item-value {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.price-item-row.total {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-main);
  font-weight: 700;
  align-items: center;
}

.price-item-row.total .price-item-label {
  font-weight: 700;
  color: var(--text-main);
}

.price-item-value.total-val {
  font-family: 'Farro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.add-to-cart-btn {
  width: 100%;
  height: 46px;
  background: var(--accent-gradient);
  color: var(--text-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
  transition: var(--transition-normal);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.portal-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  text-decoration: none;
}

.portal-widget-btn--muted {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.portal-widget-btn--muted:hover {
  background: var(--bg-main);
  color: var(--text-main);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Shopping Cart View */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.cart-main-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

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

.cart-items-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-row {
  border-bottom: 1px solid var(--border-light);
}

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

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--border-light);
}

.cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
}

.cart-item-row td {
  vertical-align: middle;
}

.cart-item-row td:first-child {
  width: 45%;
}

.cart-qty-counter {
  height: 32px;
  width: fit-content;
}

.cart-qty-counter .qty-input {
  width: 44px;
  min-width: 44px;
}

.cart-checkout-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
  margin-top: 8px;
}

.cart-checkout-btn:hover {
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28) !important;
}

.cart-checkout-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}

.cart-payment-methods {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-payment-methods__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-payment-option.is-active,
.cart-payment-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(47, 50, 52, 0.08);
}

.cart-payment-option input {
  margin-top: 3px;
}

.cart-payment-option__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-payment-option__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-payment-option__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.cart-credit-status {
  margin: -2px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-credit-status__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-credit-status__row strong {
  color: var(--text-main);
  font-weight: 600;
}

.cart-credit-status__row strong.is-danger {
  color: var(--danger);
}

.cart-credit-status__row--highlight {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--border-light);
}

.cart-credit-status__alert {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.45;
}

.cart-credit-status__alert p,
.cart-credit-status__alert strong {
  margin: 0;
}

.cart-credit-status__alert p {
  margin-top: 4px;
}

.cart-credit-status__alert--ok {
  background: var(--success-light);
  color: var(--success);
}

.cart-credit-status__alert--warn {
  background: var(--warning-light);
  color: var(--text-main);
}

.cart-credit-status__alert--neutral {
  background: var(--bg-main);
  color: var(--text-muted);
}

.cart-credit-status__note {
  margin-top: 6px !important;
  font-style: italic;
}

.cart-credit-topup-link,
.cart-credit-topup-return {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.cart-credit-topup-link:hover,
.cart-credit-topup-return:hover {
  text-decoration: underline;
}

.cart-bank-account {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
  color: var(--text-muted);
}

.cart-bank-account strong {
  color: var(--text-main);
  font-size: 14px;
}

.cart-bank-account code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text-main);
  word-break: break-all;
}

.cart-credit-topup-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--warning);
  background: var(--warning-light);
  font-size: 13px;
  color: var(--text-main);
}

.cart-credit-topup-banner p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-config,
.cart-item-spec {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.configuration-details {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Shared with partials/configuration-display.blade.php */
.config-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.config-display__chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--primary-light, #eef1f0);
  border: 1px solid var(--border-light, #d8dfdc);
  color: var(--text-main, #2F3234);
  font-size: 11px;
  font-weight: 700;
}

.config-display__unit {
  padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-main, #f8faf9);
  border: 1px solid var(--border-light, #e2e8e6);
  border-left: 3px solid var(--primary, #2F3234);
}

.config-display__unit-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}

.config-display__label {
  font-weight: 700;
  color: var(--text-main, #2F3234);
  font-size: 11px;
}

.config-display__value {
  color: var(--text-muted, #64748b);
  font-weight: 600;
  font-size: 12px;
}

.configuration-details__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.configuration-details__label {
  font-weight: 600;
  color: var(--text-main);
}

.configuration-details__value {
  color: var(--text-muted);
}

.configuration-details__unit {
  margin-top: 2px;
}

.configuration-details__unit-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.configuration-details__unit-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-price-unit {
  font-size: 14px;
  font-weight: 500;
  padding: 20px 0;
}

.cart-item-qty {
  padding: 20px 0;
}

.cart-item-total {
  font-family: 'Farro', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 20px 0;
}

.cart-item-remove {
  padding: 20px 0;
  text-align: right;
}

.cart-item-remove-btn {
  color: var(--danger);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cart-item-remove-btn:hover {
  background-color: var(--danger-light);
}

.cart-empty-message {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

/* Shipping / Address block */
.cart-meta-group {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cart-meta-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--bg-main);
}

.cart-meta-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-meta-card .filter-input {
  width: 100%;
}

.cart-meta-card .cart-meta-inline-label {
  display: block;
  margin-bottom: 8px;
}

.cart-address-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  cursor: pointer;
}

.cart-address-text {
  font-weight: 500;
  line-height: 1.4;
}

.cart-meta-inline-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-delivery-pickup {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.cart-pickup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-pickup-fields .cart-note-input {
  width: 100%;
}

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

@media (max-width: 640px) {
  .cart-pickup-fields {
    grid-template-columns: 1fr;
  }
}

.cart-logistics-summary {
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
}

.cart-logistics-summary__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-logistics-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 4px;
}

.product-logistics-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin: 6px 0 10px;
}

.product-logistics-meta span {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 2px 8px;
}

.product-fulfillment-badge,
.order-fulfillment-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.product-fulfillment-badge--stock,
.order-fulfillment-badge--stock {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.product-fulfillment-badge--made_to_order,
.order-fulfillment-badge--made_to_order {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.order-detail-fulfillment-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-note-input {
  width: 100%;
  height: 60px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
  resize: none;
}

/* Orders Page Table */
.orders-table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.b2b-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.b2b-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.b2b-table td {
  padding: 16px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

.b2b-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-badge.approved {
  background-color: var(--success-light);
  color: var(--success);
}

.status-badge.pending {
  background-color: var(--warning-light);
  color: var(--warning);
}

.status-badge.processing {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

/* Order status badges (portal) */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.order-status-badge i {
  font-size: 12px;
}

.order-status-badge--pending {
  background-color: var(--warning-light);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.order-status-badge--approved {
  background-color: var(--success-light);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.order-status-badge--processing {
  background-color: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.25);
}

.order-status-badge--partially-shipped {
  background-color: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
}

.order-status-badge--shipped {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.22));
  color: #047857;
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.12);
}

.order-status-badge--shipped i {
  color: #059669;
}

.order-status-badge--completed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(4, 120, 87, 0.28));
  color: #065f46;
  border-color: rgba(4, 120, 87, 0.4);
  box-shadow: 0 1px 4px rgba(4, 120, 87, 0.14);
}

.order-status-badge--completed i {
  color: #047857;
}

.order-status-badge--cancelled {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.25);
}

.order-status-badge--in-warehouse {
  background-color: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.25);
}

.order-status-badge--warning {
  background-color: var(--warning-light);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.orders-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: flex-end;
}

.orders-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.orders-location-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.orders-shipment-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.orders-shipment-empty {
  color: var(--text-muted);
  font-size: 12px;
}

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

.orders-quick-pay-form {
  display: inline;
  margin: 0;
}

.orders-mobile-list {
  display: none;
}

.orders-mobile-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-main);
}

.orders-mobile-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.orders-mobile-card__header strong {
  font-size: 14px;
  color: var(--text-main);
}

.orders-mobile-card__header span {
  font-size: 12px;
  color: var(--text-muted);
}

.orders-mobile-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.orders-mobile-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.orders-mobile-card__shipment {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.orders-mobile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.orders-page-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.orders-page-title i {
  color: var(--primary);
}

.orders-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-toolbar-btn {
  height: 38px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.portal-toolbar-btn--primary {
  background: var(--accent-gradient);
  color: var(--text-white);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
}

.portal-toolbar-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.portal-toolbar-btn--excel {
  background: #fff;
  color: #166534;
  border-color: #bbf7d0;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.08);
}

.portal-toolbar-btn--excel i {
  color: #1d6f42;
}

.portal-toolbar-btn--excel:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateY(-1px);
}

.portal-toolbar-btn--sm {
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
  background: var(--bg-main);
  color: var(--primary);
  border-color: var(--border-light);
}

.portal-toolbar-btn--sm:hover {
  background: var(--primary-light);
  border-color: rgba(212, 175, 55, 0.35);
}

.orders-empty-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
}

.orders-pagination {
  margin-top: 20px;
}

/* Invoices Page */
.invoice-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.invoice-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.invoice-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.invoice-stat-card__icon--total {
  background: rgba(47, 50, 52, 0.08);
  color: var(--primary);
}

.invoice-stat-card__icon--sales {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.invoice-stat-card__icon--receipt {
  background: var(--success-light);
  color: var(--success);
}

.invoice-stat-card__icon--credit {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.invoice-stat-card__icon--active {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.invoice-stat-card__icon--attention {
  background: var(--warning-light);
  color: #b45309;
}

.invoice-stat-card__icon--fulfillment {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.invoice-stat-card__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.invoice-stat-card__value {
  font-size: 22px;
  line-height: 1.1;
  color: var(--text-main);
}

.invoice-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.invoice-filter-tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.invoice-filter-tab:hover {
  color: var(--primary);
  border-color: rgba(212, 175, 55, 0.35);
  background: var(--primary-light);
}

.invoice-filter-tab.is-active {
  background: var(--accent-gradient);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

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

.invoice-table .invoice-number {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.invoice-date-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invoice-date-cell small {
  font-size: 11px;
  color: var(--text-muted);
}

.invoice-order-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.invoice-order-link:hover {
  text-decoration: underline;
}

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

.invoice-amount {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.invoice-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.invoice-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.invoice-type-badge i {
  font-size: 12px;
}

.invoice-type-badge--sales {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.22);
}

.invoice-type-badge--payment_receipt {
  background: var(--success-light);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.invoice-type-badge--credit_note {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.22);
}

.invoice-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.invoice-empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.invoice-empty-state strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.invoice-empty-state p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 992px) {
  .invoice-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .invoice-stats-grid {
    grid-template-columns: 1fr;
  }

  .invoice-row-actions {
    justify-content: flex-start;
  }
}

/* Invoice detail */
.invoice-detail-card {
  padding: 28px 30px 30px;
}

.invoice-detail-header {
  margin-bottom: 24px;
}

.invoice-detail-header__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.invoice-detail-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.invoice-detail-header__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.invoice-detail-header__actions {
  flex-shrink: 0;
}

.invoice-detail-header__actions .order-detail-back-btn,
.invoice-detail-header__actions .portal-toolbar-btn {
  height: 38px;
}

.invoice-document-panel {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (max-width: 768px) {
  .invoice-detail-header {
    flex-direction: column;
    align-items: stretch;
  }

  .invoice-detail-header__actions {
    width: 100%;
    justify-content: stretch;
  }

  .invoice-detail-header__actions .order-detail-back-btn,
  .invoice-detail-header__actions .portal-toolbar-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.action-icon-btn:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

/* SSH Claims Page */
.ssh-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 28px;
  align-items: start;
}

.ssh-history-card,
.ssh-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.ssh-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.ssh-section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.ssh-claims-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ssh-claim-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.ssh-claim-card:hover {
  border-color: rgba(47, 50, 52, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ssh-claim-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ssh-claim-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ssh-claim-card__status.is-open {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.ssh-claim-card__status.is-resolved {
  background: var(--success-light);
  color: var(--success);
}

.ssh-claim-card__status.is-rejected {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
}

.ssh-claim-card__date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ssh-claim-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.ssh-claim-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ssh-claim-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ssh-claim-card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ssh-claim-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.ssh-claim-card__number {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.ssh-claim-card__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.ssh-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  text-align: center;
}

.ssh-empty-state__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
}

.ssh-form-card {
  position: sticky;
  top: 24px;
}

.ssh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ssh-form-grid .full-width {
  grid-column: span 2;
}

.ssh-field .filter-input,
.ssh-field .filter-select,
.ssh-field .textarea-note {
  width: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  border-color: var(--border-light);
}

.ssh-field .filter-input:focus,
.ssh-field .filter-select:focus,
.ssh-field .textarea-note:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.ssh-field .textarea-note {
  min-height: 110px;
  resize: vertical;
}

.ssh-submit-btn {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.ssh-order-picker {
  position: relative;
}

.ssh-order-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.ssh-order-picker__trigger-text.is-placeholder {
  color: var(--text-muted);
}

.ssh-order-picker__chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.16s ease;
}

.ssh-order-picker__chevron.is-open {
  transform: rotate(180deg);
}

.ssh-order-picker__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ssh-order-picker__search-wrap {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
}

.ssh-order-picker__search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.ssh-order-picker__search {
  width: 100%;
  padding-left: 34px !important;
}

.ssh-order-picker__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.ssh-order-picker__option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.ssh-order-picker__option:hover,
.ssh-order-picker__option:focus-visible {
  background: var(--bg-main);
  outline: none;
}

.ssh-order-picker__option.is-selected {
  background: var(--primary-light);
}

.ssh-order-picker__option-title {
  font-size: 13px;
  font-weight: 700;
}

.ssh-order-picker__option-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.ssh-order-picker__empty,
.ssh-order-picker__hint {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.ssh-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ssh-upload {
  position: relative;
}

.ssh-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 22px 18px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ssh-upload__zone:hover,
.ssh-upload__zone:focus-visible,
.ssh-upload__zone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  outline: none;
}

.ssh-upload__zone.is-busy {
  pointer-events: none;
  opacity: 0.85;
}

.ssh-upload__zone-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--primary);
  font-size: 20px;
}

.ssh-upload__zone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.ssh-upload__zone-hint {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
}

.ssh-upload__browse {
  margin-top: 4px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ssh-upload__processing {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.ssh-upload__processing.is-active {
  display: inline-flex;
}

.ssh-upload__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.ssh-upload__list.is-active {
  display: flex;
}

.ssh-upload__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.ssh-upload__item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  color: var(--danger);
}

.ssh-upload__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssh-upload__item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ssh-upload__item-meta strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssh-upload__item-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.ssh-upload__item-remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-main);
  color: var(--text-muted);
  cursor: pointer;
}

.ssh-upload__item-remove:hover {
  color: var(--danger);
  background: var(--danger-light);
}

.ssh-upload__hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.ssh-upload__error {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--danger);
}

.ssh-ticket-wrapper .cart-main-box {
  width: 100%;
}

.ssh-ticket-thread {
  margin-top: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  overflow: hidden;
}

.ssh-ticket-thread__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}

.ssh-ticket-thread__header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.ssh-ticket-thread__header span {
  font-size: 12px;
  color: var(--text-muted);
}

.ssh-ticket-message {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}

.ssh-ticket-message:last-child {
  border-bottom: none;
}

.ssh-ticket-message.is-support {
  background: linear-gradient(180deg, rgba(47, 50, 52, 0.04) 0%, var(--bg-main) 100%);
}

.ssh-ticket-message.is-dealer {
  background: var(--bg-card);
}

.ssh-ticket-message__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

.ssh-ticket-message__head strong {
  font-size: 13px;
  color: var(--text-main);
}

.ssh-ticket-message__head time {
  color: var(--text-muted);
  white-space: nowrap;
}

.ssh-ticket-message__body {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--text-main);
}

.ssh-ticket-message__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ssh-ticket-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.ssh-ticket-attachment:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ssh-ticket-empty {
  padding: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.ssh-ticket-reply {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.ssh-ticket-reply h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ssh-ticket-closed {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ssh-ticket-history {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.ssh-ticket-history h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ssh-ticket-history__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.ssh-ticket-history__item span {
  color: var(--text-muted);
  margin-left: 8px;
}

.ssh-ticket-history__item p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

/* PayTR Payment Page */
.payment-wrapper {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 32px;
  align-items: start;
}

.payment-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.payment-wrapper .configurator-pricing {
  min-width: 0;
}

.payment-wrapper .configurator-pricing .pricing-widget-card {
  position: sticky;
  top: 24px;
}

.payment-balance-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
  text-align: center;
}

.payment-balance-highlight__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.payment-balance-highlight__amount {
  font-family: 'Farro', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

.payment-balance-highlight--debt {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, var(--danger-light) 0%, var(--bg-card) 100%);
}

.payment-balance-highlight--debt .payment-balance-highlight__label {
  color: var(--danger);
}

.payment-balance-highlight--debt .payment-balance-highlight__amount {
  color: var(--danger);
}

.payment-balance-highlight--clear .payment-balance-highlight__amount {
  color: var(--success);
}

.payment-balance-highlight--prepaid {
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(180deg, var(--success-light) 0%, var(--bg-card) 100%);
}

.payment-balance-highlight--prepaid .payment-balance-highlight__label {
  color: var(--success);
}

.payment-balance-highlight--prepaid .payment-balance-highlight__amount {
  color: var(--success);
}

.payment-balance-highlight__hint {
  font-size: 12px;
  color: var(--text-muted);
}

.dealer-balance-value--debt {
  color: var(--danger);
}

.dealer-balance-value--prepaid {
  color: var(--success);
}

.dealer-balance-value--clear {
  color: var(--text-main);
}

.payment-types {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.payment-type-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.payment-type-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

/* Premium Credit Card Mock Visual */
.credit-card-preview {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.credit-card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius-sm);
}

.credit-card-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.credit-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.credit-card-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 2px;
}

.credit-card-val {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.paytr-secure-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
}

.paytr-logos {
  display: flex;
  gap: 12px;
  font-size: 20px;
}

/* Bank Transfer Tab */
.bank-transfer-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bank-transfer-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.bank-transfer-intro__currency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--text-main) !important;
  font-size: 12px !important;
  font-weight: 600;
}

.bank-transfer-intro__currency i {
  color: var(--accent);
}

.bank-transfer-steps {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.bank-transfer-steps__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.bank-transfer-steps__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.bank-transfer-steps__list li + li {
  margin-top: 6px;
}

.bank-transfer-reference {
  padding: 14px 16px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-md);
  background: var(--accent-light);
}

.bank-transfer-reference__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bank-transfer-reference__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bank-transfer-reference__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.bank-transfer-reference__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.bank-account-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg-main);
  box-shadow: var(--shadow-sm);
}

.bank-account-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.bank-account-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.bank-account-card__titles {
  flex: 1;
  min-width: 0;
}

.bank-account-card__bank {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.bank-account-card__branch {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.bank-account-card__currency {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bank-account-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bank-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bank-field__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.bank-field__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.bank-field__copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.bank-field__iban {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-main);
  word-break: break-all;
}

.bank-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.bank-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.bank-copy-btn--primary {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.bank-copy-btn--primary:hover {
  color: var(--text-white);
  transform: translateY(-1px);
}

.bank-account-card__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bank-account-card__note i {
  color: var(--accent);
  margin-top: 2px;
}

.bank-transfer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
}

.bank-transfer-empty i {
  font-size: 24px;
  opacity: 0.6;
}

.bank-transfer-form {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.bank-transfer-form__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.bank-transfer-form__desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bank-transfer-form__submit {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 576px) {
  .bank-field__copy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bank-copy-btn,
  .bank-copy-btn--primary {
    justify-content: center;
    width: 100%;
  }
}

/* Order Detail & Profile Wrapper Overrides */
.order-detail-wrapper {
  max-width: 100%;
  grid-template-columns: 1fr 340px;
}

.order-detail-meta-grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.order-detail-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-edit-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.order-edit-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-edit-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
}

.order-edit-item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.order-edit-item__fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-edit-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.order-edit-banner--catalog {
  justify-content: space-between;
  background: var(--primary-light);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--primary);
}

.order-edit-banner--catalog div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.order-edit-banner--catalog span {
  font-weight: 500;
  color: var(--text-muted);
}

.order-edit-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.order-edit-item__config {
  color: var(--text-muted);
}

.order-edit-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.order-edit-item__remove {
  color: var(--danger, #dc2626);
  border-color: rgba(220, 38, 38, 0.35);
}

.order-edit-hidden-form {
  display: none;
}

@media (max-width: 768px) {
  .order-edit-item {
    grid-template-columns: 1fr;
  }
}

.order-detail-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.order-detail-number {
  color: var(--primary);
}

.order-detail-back-btn {
  height: 34px;
  font-size: 12px;
  padding: 0 16px;
  background-color: #64748b;
  text-decoration: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 1px 3px rgba(100, 116, 139, 0.25);
}

.order-detail-back-btn:hover {
  background-color: #475569;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(71, 85, 105, 0.28);
}

.order-detail-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.order-detail-meta-value {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.order-detail-section {
  margin-bottom: 24px;
}

.order-detail-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.order-detail-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-detail-products {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-main);
}

.order-detail-product-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.order-detail-product-row:last-child {
  border-bottom: none;
}

.order-detail-product-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

.order-detail-product-spec {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.order-detail-product-total {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
  font-family: 'Farro', sans-serif;
}

.order-detail-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  background-color: var(--bg-main);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin: 0;
  line-height: 1.6;
}

.order-detail-invoice-info {
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.order-detail-invoice-info strong {
  color: var(--text-main);
}

.order-detail-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px;
  margin: 0;
}

.order-detail-wrapper .configurator-pricing .pricing-widget-card {
  position: sticky;
  top: 24px;
}

.profile-wrapper {
  max-width: 100%;
  grid-template-columns: 1fr 340px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.profile-address-card__inner {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--bg-card);
}

.profile-address-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.profile-address-card__body {
  flex: 1;
  min-width: 0;
}

.profile-address-card__edit-btn {
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: #64748b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-address-card__edit-btn:hover {
  background: #475569;
}

.profile-address-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

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

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

.profile-address-form-field--checkbox {
  display: flex;
  align-items: flex-end;
}

.profile-address-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-address-form .form-input-portal {
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
}

.profile-address-form-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.profile-address-form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
}

.profile-address-form-checkbox input {
  margin: 0;
}

.profile-address-form-help {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.profile-address-form__submit {
  margin-top: 16px;
}

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

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

.profile-password-form__submit {
  margin-top: 4px;
}

.portal-password-field {
  position: relative;
}

.portal-password-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.portal-password-field__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 44px 10px 42px !important;
}

.portal-password-field__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.portal-password-field__toggle:hover {
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.12);
}

.profile-address-new {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.profile-address-new__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}

.profile-address-new__toggle:hover {
  color: var(--primary);
}

.profile-address-new__toggle i {
  color: var(--accent);
}

.profile-address-new .profile-address-form {
  margin-top: 16px;
}

.profile-address-new__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-address-new__title i {
  color: var(--accent);
}

.profile-address-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.profile-address-status--approved {
  background: var(--success-light);
  color: var(--success);
}

.profile-address-status--pending {
  background: var(--warning-light);
  color: #d97706;
}

.profile-address-status--rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.profile-address-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
}

.profile-address-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-address-card__title {
  font-size: 13px;
  color: var(--text-main);
}

.profile-address-card__text {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RESPONSIVE DESIGN - MOBILE-FIRST OVERHAUL
   Developed by Nurettin Özen
   ============================================================ */

/* Mobile Toggle Helper Elements */
.mobile-only {
  display: none !important;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Utility: make tables horizontally scrollable */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ====== BREAKPOINT: 1400px (Large Desktops) ====== */
@media (max-width: 1400px) {
  .configurator-grid {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(300px, 320px);
    gap: 20px;
  }
}

/* ====== BREAKPOINT: 1200px (Tablets Landscape / Small Desktops) ====== */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .configurator-grid {
    grid-template-columns: 1fr;
  }
  .configurator-grid--per-unit {
    align-items: start;
  }
  .configurator-grid--per-unit > .configurator-gallery {
    position: static;
  }
  .configurator-grid--per-unit > .configurator-options {
    height: auto;
    max-height: none;
  }
  .configurator-grid--per-unit > .configurator-pricing {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 6;
  }
  .configurator-gallery {
    position: static;
  }
  .configurator-options--per-unit {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px;
    gap: 24px;
  }
  .configurator-options--per-unit .configurator-options__head,
  .configurator-options--per-unit .configurator-options__body {
    padding: 0;
    border-bottom: none;
    overflow: visible;
  }
  .configurator-options--per-unit .configurator-options__body {
    max-height: none;
    overflow: visible;
  }
  .configurator-pricing {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 6;
  }
  .configurator-preview-box {
    height: 300px;
  }

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

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

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

  .contact-page__main,
  .cf-shell {
    order: -1;
    position: static;
  }

  .cf-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cf-shell__header,
  .cf-form__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-spec__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cf-fields--split {
    grid-template-columns: 1fr;
  }

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

  .ssh-form-card {
    position: static;
    order: -1;
  }

  .payment-wrapper {
    grid-template-columns: 1fr;
    max-width: 100% !important;
  }

  /* Profile and Order Detail */
  .order-detail-wrapper,
  .profile-wrapper {
    grid-template-columns: 1fr;
  }

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

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

  .profile-address-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-password-form-grid {
    grid-template-columns: 1fr;
  }

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

/* ====== BREAKPOINT: 992px (Tablets / Mobile Sidebar) ====== */
@media (max-width: 992px) {
  .mobile-only {
    display: flex !important;
  }

  /* Sidebar: off-canvas on mobile */
  .app-sidebar {
    left: calc(-1 * var(--sidebar-width));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .app-sidebar.show-sidebar {
    left: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
  }

  .app-content {
    margin-left: 0;
    width: 100%;
  }

  .app-header {
    padding: 0 16px;
  }

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

  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Welcome stats — tablet */
  .welcome-banner {
    grid-template-columns: 1fr;
  }

  .welcome-stats {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Orders / B2B table: horizontal scroll */
  .orders-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .b2b-table {
    min-width: 700px;
  }
  .orders-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Configurator options form */
  .fabric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Payment two-col grid inside form */
  #paytr-form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr 1fr;
  }

  /* SSH form */
  .ssh-form-grid {
    grid-template-columns: 1fr;
  }
  .ssh-form-grid .full-width {
    grid-column: span 1;
  }

  /* Footer padding */
  footer {
    padding: 0 16px;
    text-align: center;
  }
}

/* ====== BREAKPOINT: 768px (Mobile / Tablets Portrait) ====== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .view-section {
    padding: 20px 14px;
  }

  /* Header adjustments */
  .header-title {
    font-size: 15px;
  }
  .header-breadcrumbs {
    font-size: 10px;
  }

  /* Login card for smaller screens */
  .login-card {
    padding: 28px 24px;
    border-radius: 18px;
  }
  .login-logo {
    font-size: 26px;
  }

  /* Welcome banner */
  .welcome-banner {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 16px;
  }
  .welcome-title {
    font-size: 18px;
  }
  .welcome-subtitle {
    font-size: 12px;
    max-width: 100%;
  }
  .welcome-stats {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .welcome-stat-card {
    padding: 10px 12px;
  }
  .welcome-stat-value {
    font-size: 16px;
  }
  .welcome-banner-bg {
    font-size: 100px;
  }

  /* Campaign slider */
  .slide-content {
    padding: 24px 20px 20px 20px;
  }
  .slide-title {
    font-size: 16px;
  }
  .slide-desc {
    font-size: 11px;
    max-width: 100%;
  }
  .slide-tag {
    font-size: 9px;
    padding: 3px 6px;
  }
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .slider-arrow.prev-slide {
    left: 10px;
  }
  .slider-arrow.next-slide {
    right: 10px;
  }

  /* Announcements */
  .announcements-box {
    min-height: 640px;
    height: auto;
    max-height: none;
  }

  /* Info card */
  .info-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .info-card-content {
    max-width: 100%;
  }
  .info-card-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .info-card-title {
    font-size: 16px;
  }

  /* Filters */
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  .catalog-filters {
    padding: 16px;
  }

  .product-detail-search {
    padding: 12px;
    gap: 10px;
  }

  .product-detail-search__btn {
    width: 100%;
    justify-content: center;
  }

  /* Category tabs */
  .category-tabs {
    gap: 6px;
  }
  .category-tab {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
  }

  /* Product cards */
  .product-img-box {
    height: auto;
    padding: 0;
  }
  .product-info {
    padding: 14px;
  }
  .product-name {
    font-size: 14px;
  }
  .product-price {
    font-size: 15px;
  }

  /* Mobile-friendly Shopping Cart - Card layout */
  .cart-main-box {
    padding: 20px 14px;
  }
  .cart-items-table,
  .cart-items-table thead,
  .cart-items-table tbody,
  .cart-items-table th,
  .cart-items-table td,
  .cart-items-table tr {
    display: block;
  }
  .cart-items-table thead {
    display: none;
  }
  .cart-item-row {
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    position: relative;
  }
  .cart-item-row td {
    border: none;
    padding: 4px 0;
  }
  .cart-item-product {
    padding: 0 0 8px 0;
  }
  .cart-item-price-unit {
    display: inline-block;
    padding: 4px 0;
    font-size: 13px;
  }
  .cart-item-price-unit::before {
    content: "Birim Fiyat: ";
    font-weight: 600;
    color: var(--text-muted);
  }
  .cart-item-qty {
    display: flex;
    align-items: center;
    padding: 4px 0;
  }
  .cart-item-qty::before {
    content: "Miktar: ";
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 13px;
  }
  .cart-item-total {
    display: block;
    padding: 4px 0;
    font-size: 14px;
  }
  .cart-item-total::before {
    content: "Toplam Tutar: ";
    font-weight: 600;
    color: var(--text-muted);
  }
  .cart-item-remove {
    position: absolute;
    top: 16px;
    right: 0;
    padding: 0;
  }
  .cart-meta-group {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Configurator */
  .configurator-options {
    padding: 20px;
  }
  .configurator-section-title {
    font-size: 16px;
  }
  .configurator-preview-box {
    height: 250px;
    padding: 20px;
  }

  /* Pricing widget */
  .pricing-widget-card {
    padding: 18px;
  }
  .price-item-row.total .price-item-label {
    font-size: 14px;
  }
  .price-item-value.total-val {
    font-size: 18px;
  }

  /* Payment */
  .credit-card-preview {
    height: 160px;
    padding: 18px;
  }
  .credit-card-num {
    font-size: 17px;
    letter-spacing: 1.5px;
  }
  .credit-card-val {
    font-size: 12px;
  }

  /* Profile */
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  /* Order detail meta */
  .order-detail-meta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Quick nav */
  .quick-nav-card {
    padding: 18px;
  }
  .quick-nav-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-bottom: 12px;
  }
  .quick-nav-name {
    font-size: 13px;
  }
  .quick-nav-desc {
    font-size: 10px;
  }
}

/* ====== BREAKPOINT: 576px (Small Mobile / Phones) ====== */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Header: hide user details */
  .header-user-name,
  .header-user-role {
    display: none;
  }
  .header-user-menu > .fa-chevron-down {
    display: none !important;
  }
  .header-user-menu {
    padding: 0;
  }
  .header-actions {
    gap: 10px;
  }
  .header-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .header-badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  /* Sidebar width shrink for small phones */
  :root {
    --sidebar-width: 270px;
  }

  /* View section padding */
  .view-section {
    padding: 16px 12px;
  }

  /* Welcome banner */
  .welcome-title {
    font-size: 16px;
  }
  .welcome-subtitle {
    font-size: 12px;
  }

  /* Campaign slider */
  .campaign-slider {
    border-radius: var(--radius-md);
  }
  .slide-content {
    padding: 16px 14px 14px 14px;
  }
  .slide-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .slide-desc {
    display: none;
  }
  .slider-dots {
    bottom: 10px;
  }
  .slider-dot {
    width: 6px;
    height: 6px;
  }
  .slider-dot.active {
    width: 16px;
  }

  /* Info card */
  .info-card {
    padding: 16px;
  }
  .info-card-title {
    font-size: 14px;
  }
  .info-card-desc {
    font-size: 12px;
  }

  /* Orders table */
  .orders-table-card {
    padding: 16px;
  }
  .orders-table-card > div:first-child {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start !important;
  }
  .orders-filter-grid {
    grid-template-columns: 1fr;
  }
  .orders-desktop-table {
    display: none;
  }
  .orders-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* SSH grid */
  .ssh-form-card {
    padding: 20px 16px;
  }

  /* Payment: card number */
  .credit-card-num {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .credit-card-preview {
    height: 150px;
    padding: 16px;
  }

  /* Fabric grid on small mobile */
  .fabric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .fabric-card {
    padding: 10px;
  }
  .fabric-code {
    font-size: 12px;
  }

  /* Color pills wrap */
  .color-pills {
    gap: 8px;
  }
  .color-pill {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* Qty counter */
  .qty-counter {
    height: 36px;
  }
  .qty-btn {
    width: 36px;
  }

  /* Buttons */
  .add-to-cart-btn {
    height: 42px;
    font-size: 13px;
  }
  .product-detail-btn {
    height: 34px;
    font-size: 11px;
  }

  /* Paytr secure footer */
  .paytr-secure-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Footer */
  footer {
    height: auto !important;
    padding: 14px 12px !important;
    font-size: 11px !important;
  }
}

/* ====== BREAKPOINT: 420px (Extra Small) ====== */
@media (max-width: 420px) {
  :root {
    --sidebar-width: 260px;
  }

  .login-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .login-logo {
    font-size: 22px;
  }
  .login-subtitle {
    font-size: 12px;
  }
  .form-input {
    height: 42px;
    font-size: 13px;
  }
  .login-btn {
    height: 42px;
    font-size: 14px;
  }

  .quick-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-nav-card {
    padding: 14px;
  }
  .quick-nav-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 10px;
  }
  .quick-nav-name {
    font-size: 12px;
  }

  .slider-arrow {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .slider-arrow.prev-slide {
    left: 8px;
  }
  .slider-arrow.next-slide {
    right: 8px;
  }

  .announcements-box {
    padding: 16px;
  }
  .announcements-header {
    font-size: 13px;
  }
  .announcement-title {
    font-size: 12px;
  }
  .announcement-desc {
    font-size: 11px;
  }

  /* Cart item image smaller */
  .cart-item-img {
    width: 48px;
    height: 48px;
  }
  .cart-item-name {
    font-size: 13px;
  }
  .cart-item-spec {
    font-size: 10px;
  }

  /* Price text */
  .price-item-value.total-val {
    font-size: 17px;
  }

  /* Configurator preview */
  .configurator-preview-box {
    height: 200px;
    padding: 16px;
  }

  /* Credit card */
  .credit-card-preview {
    height: 140px;
    padding: 14px;
    border-radius: var(--radius-md);
  }
  .credit-card-num {
    font-size: 14px;
  }
  .credit-card-chip {
    width: 30px;
    height: 22px;
  }
}

/* ====== TOUCH DEVICE OPTIMIZATIONS ====== */
@media (hover: none) and (pointer: coarse) {
  /* Bigger touch targets */
  .sidebar-menu-item a {
    padding: 12px 14px;
    min-height: 44px;
  }
  .category-tab {
    min-height: 40px;
  }
  .filter-btn,
  .add-to-cart-btn,
  .login-btn {
    min-height: 44px;
  }
  .header-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .slider-arrow {
    min-width: 36px;
    min-height: 36px;
  }

  /* Disable hover effects on touch */
  .product-card:hover {
    transform: none;
  }
  .quick-nav-card:hover {
    transform: none;
  }
  .login-btn:hover {
    transform: none;
  }
  .add-to-cart-btn:hover {
    transform: none;
  }
}

/* ====== SAFE AREA INSETS (Notched phones) ====== */
@supports (padding: env(safe-area-inset-bottom)) {
  .app-sidebar {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .app-header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  footer {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

/* ====== PRINT STYLES ====== */
@media print {
  .app-sidebar,
  .app-header,
  .sidebar-backdrop,
  .mobile-only,
  footer {
    display: none !important;
  }
  .app-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .view-section {
    padding: 0 !important;
  }
}

/* ============ ANNOUNCEMENT MODAL ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-premium);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition-fast);
  margin-top: -4px;
}

.modal-close-btn:hover {
  color: var(--danger);
}

.modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 24px;
  max-height: 50vh;
  overflow-y: auto;
  white-space: pre-line;
  padding-right: 8px;
}

.announcement-detail-content {
  white-space: normal;
}

.announcement-detail-content p {
  margin: 0 0 0.75em;
}

.announcement-detail-content p:last-child {
  margin-bottom: 0;
}

.announcement-detail-content ul,
.announcement-detail-content ol {
  margin: 0 0 0.75em 1.25em;
  padding: 0;
}

.announcement-detail-content a {
  color: var(--primary);
  text-decoration: underline;
}

.announcement-detail-page {
  padding: 24px;
}

/* Custom scrollbar for modal content */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 3px;
}

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

.modal-footer .announcement-page-author {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive adjustment for modal */
@media (max-width: 576px) {
  .modal-content {
    padding: 24px;
  }
  .modal-header h3 {
    font-size: 18px;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 16px;
    align-items: stretch;
    text-align: center;
  }
  .modal-footer .announcement-page-author {
    justify-content: center;
  }
}

/* ====== B2B CATEGORY HIERARCHY ====== */
.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.category-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.category-breadcrumb-link:hover {
  color: var(--accent);
}

.category-breadcrumb-current {
  color: var(--text-main);
  font-weight: 700;
}

.b2b-category-strip {
  margin-bottom: 28px;
  width: 100%;
  overflow: hidden;
}

.b2b-category-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px 24px;
  align-items: flex-start;
}

.b2b-category-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  width: 88px;
  flex-shrink: 0;
}

.b2b-category-strip__item:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

.b2b-category-strip__item.is-active {
  color: var(--accent);
}

.b2b-category-strip__item.is-active .b2b-category-strip__circle {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
}

.b2b-category-strip__item--back .b2b-category-strip__circle {
  border-style: dashed;
  background: var(--bg-main);
}

.b2b-category-strip__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.b2b-category-strip__item:hover .b2b-category-strip__circle {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-light));
}

.b2b-category-strip__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.b2b-category-strip__circle .fas,
.b2b-category-strip__circle .fa {
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
}

.b2b-category-strip__item.is-active .b2b-category-strip__circle .fas,
.b2b-category-strip__item.is-active .b2b-category-strip__circle .fa {
  color: var(--accent);
}

.b2b-category-strip__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
  max-width: 88px;
}

[data-theme="dark"] .b2b-category-strip__circle {
  background: var(--bg-main);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .b2b-category-strip__item.is-active .b2b-category-strip__circle {
  background: rgba(212, 175, 55, 0.12);
}

@media (max-width: 767px) {
  .b2b-category-strip {
    margin-left: -4px;
    margin-right: -4px;
  }

  .b2b-category-strip__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .b2b-category-strip__item {
    width: 76px;
  }

  .b2b-category-strip__circle {
    width: 56px;
    height: 56px;
  }

  .b2b-category-strip__label {
    font-size: 11px;
    max-width: 76px;
  }
}

.configurator-meta-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.configurator-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.configurator-thumb {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: var(--bg-main);
  cursor: pointer;
}

.configurator-thumb.active {
  border-color: var(--accent);
}

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

.product-description-block {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.product-description-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-main);
}

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

.product-manual-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.product-manual-link:hover {
  color: var(--accent);
}

.portal-mode-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-card));
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}

.portal-mode-banner i {
  color: var(--primary);
}

.product-price-listing {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.listing-mode-card {
  border-style: dashed;
}

.portal-pagination-wrap {
  margin-top: 24px;
}

.portal-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.portal-pagination__summary {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.portal-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-pagination__item {
  display: flex;
}

.portal-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.portal-pagination__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portal-pagination__item.is-active .portal-pagination__link {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.portal-pagination__item.is-disabled .portal-pagination__link {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.portal-pagination__item.is-ellipsis .portal-pagination__link {
  min-width: 32px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
}

@media (max-width: 640px) {
  .portal-pagination__link span {
    display: none;
  }

  .portal-pagination__item:not(.is-ellipsis) .portal-pagination__link {
    min-width: 40px;
    padding: 0;
  }
}

/* Pixron Digital — developer signature */
.portal-footer {
  margin-top: auto;
  min-height: 50px;
  padding: 0 16px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.portal-footer__sep {
  opacity: 0.45;
}

.portal-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-footer-brand__b2b {
  flex-shrink: 0;
}

.portal-footer-brand .pixron-brand--portal-footer {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 0;
}

.portal-footer-brand .pixron-brand--portal-footer span {
  display: none;
}

.portal-footer-brand .pixron-brand--portal-footer i {
  width: 16px;
  height: 16px;
  opacity: 0.62;
  transition: opacity 0.15s ease;
}

.portal-footer-brand .pixron-brand--portal-footer:hover i {
  opacity: 0.88;
}

[data-theme="dark"] .portal-footer-brand .pixron-brand--portal-footer i {
  filter: invert(1) brightness(1.55);
  opacity: 0.72;
}

.portal-footer .pixron-brand {
  margin-right: 0;
}

.pixron-brand--portal,
.pixron-brand--portal span {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .pixron-brand--portal,
[data-theme="dark"] .pixron-brand--portal span {
  color: var(--dark-text-muted) !important;
}

[data-theme="dark"] .pixron-brand--portal i {
  filter: invert(1) brightness(1.6);
}

/* Cart VAT + legal agreements */
.cart-item-vat-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.cart-item-vat-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.cart-legal-agreements {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.cart-legal-agreements__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-legal-agreements__item input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cart-legal-agreements__item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cart-legal-agreements__links {
  margin: 0;
  font-size: 11px;
}

.cart-legal-agreements__links a {
  color: var(--text-muted);
  text-decoration: underline;
}

.legal-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.legal-page-card__header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-page-card__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.legal-page-card__header p {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.legal-page-card__body {
  padding: 1.5rem;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.7;
}

.legal-page-card__body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 15px;
  font-weight: 700;
}

.legal-page-card__body h3:first-child {
  margin-top: 0;
}

.legal-page-card__body p,
.legal-page-card__body ul {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.legal-page-card__body ul {
  padding-left: 1.2rem;
}

.legal-page-card__body li + li {
  margin-top: 0.35rem;
}

/* ── İletişim sayfası ── */
.login-card--wide {
  max-width: 560px;
}

.login-card--contact {
  max-width: 1180px;
  width: min(100%, 1180px);
}

/* ── İletişim sayfası (premium) ── */
.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 28px;
  align-items: start;
}

.contact-page__main {
  position: relative;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--border-light);
  background: var(--primary-gradient);
  box-shadow: var(--shadow-premium);
}

.contact-hero__glow {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 68%);
  pointer-events: none;
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  padding: 28px 30px 30px;
  color: var(--text-white);
}

.contact-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.contact-hero__title {
  margin: 0 0 10px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

a.contact-channel:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.contact-channel__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-channel--phone .contact-channel__icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.contact-channel--email .contact-channel__icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.contact-channel--web .contact-channel__icon {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}

.contact-channel--location .contact-channel__icon {
  background: rgba(212, 175, 55, 0.14);
  color: var(--accent);
}

.contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.contact-channel__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-channel__value {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  word-break: break-word;
}

a.contact-channel .contact-channel__value {
  color: var(--text-main);
}

.contact-channel__arrow {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

a.contact-channel:hover .contact-channel__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

.contact-spec {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-spec--empty {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
}

.contact-spec__section {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.contact-spec__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.contact-spec__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 14px;
}

.contact-spec__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.contact-spec__list {
  margin: 0;
}

.contact-spec__item {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 12px 18px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}

.contact-spec__item:first-child {
  border-top: 0;
}

.contact-spec__item--address {
  display: block;
  padding: 18px 20px;
}

.contact-spec__key {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-spec__value {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.contact-spec__item--address .contact-spec__value {
  font-size: 15px;
  line-height: 1.7;
}

.contact-spec__link {
  color: var(--accent);
  text-decoration: none;
}

.contact-spec__link:hover {
  text-decoration: underline;
}

.contact-legal {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.contact-legal__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.contact-legal__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 50, 52, 0.08);
  color: var(--text-main);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-legal__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.contact-legal__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-legal__grid {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-legal__item {
  min-width: 0;
}

.contact-legal__card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.contact-legal__card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.contact-legal__doc-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}

.contact-legal__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.contact-legal__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.contact-legal__meta {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-muted);
}

.contact-legal__arrow {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.contact-legal__card:hover .contact-legal__arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.cf-shell {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-premium);
}

.cf-shell__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--border-light);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.cf-shell__header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28);
  flex-shrink: 0;
}

.cf-shell__title {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.cf-shell__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.cf-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 24px 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
}

.cf-alert--success {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #047857;
}

.cf-form {
  padding: 8px 0 0;
}

.cf-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-section {
  padding: 22px 28px 8px;
}

.cf-section + .cf-section {
  border-top: 1px solid var(--border-light);
}

.cf-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.cf-section__step {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.cf-section__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.cf-section__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.cf-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cf-field--half {
  width: 100%;
}

.cf-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cf-label__req {
  color: var(--danger);
}

.cf-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.cf-control:focus-within {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  background: var(--bg-card);
}

.cf-control.is-invalid {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.cf-control__icon {
  width: 46px;
  flex-shrink: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.cf-input,
.cf-select {
  height: 52px;
  padding-right: 16px;
}

.cf-control--select .cf-select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.cf-control__chevron {
  position: absolute;
  right: 16px;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 12px;
}

.cf-control--textarea {
  align-items: stretch;
  min-height: 160px;
  padding: 14px 16px;
}

.cf-textarea {
  min-height: 132px;
  resize: vertical;
  padding: 0;
}

.cf-field__meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.cf-error {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--danger);
}

.cf-form__footer {
  padding: 18px 28px 28px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.04) 100%);
}

.cf-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.cf-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.34);
  filter: brightness(1.03);
}

.cf-submit__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
}

.cf-form__note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-guest-intro {
  margin: 0 0 1.25rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-text-muted);
  text-align: left;
}

.contact-guest-body {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-guest-actions {
  margin-bottom: 0.5rem;
}

.login-footer__links {
  margin: 0 0 0.75rem;
  font-size: 13px;
}

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

.login-footer__links a:hover {
  text-decoration: underline;
}

.quick-nav-card.contact .quick-nav-icon-wrapper {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

/* ── HTTP Error Pages ── */
.error-page-body {
  min-height: 100vh;
  background: var(--bg-main);
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 24px;
  position: relative;
  overflow: hidden;
}

.error-page__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.error-page__glow--1 {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: -80px;
  right: -60px;
}

.error-page__glow--2 {
  width: 280px;
  height: 280px;
  background: #6366f1;
  bottom: -60px;
  left: -40px;
}

.error-page__card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 40px 32px 32px;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-light);
  background: var(--bg-card, #fff);
  box-shadow: var(--shadow-md, 0 12px 40px rgba(15, 23, 42, 0.08));
  text-align: center;
}

.error-page__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.error-page__icon--403 { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.error-page__icon--404 { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.error-page__icon--419 { background: rgba(168, 85, 247, 0.15); color: #9333ea; }
.error-page__icon--429 { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.error-page__icon--500 { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.error-page__icon--503 { background: rgba(107, 114, 128, 0.15); color: #4b5563; }

.error-page__code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.error-page__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.error-page__message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.error-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  text-decoration: none;
}

a.error-page__btn--secondary {
  text-decoration: none;
}

.error-page__btn--secondary {
  appearance: none;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-main);
  border-radius: var(--radius-md, 10px);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.error-page__btn--secondary:hover {
  background: var(--bg-main);
  border-color: var(--primary);
  color: var(--primary);
}

.error-page__footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .error-page__card {
    padding: 32px 20px 24px;
  }

  .error-page__actions {
    flex-direction: column;
  }

  .error-page__btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============ QUICK ORDER ============ */
.view-section.active-view.quick-order-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quick-order-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quick-order-search__field {
  position: relative;
  flex: 1 1 280px;
}

.quick-order-search__field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.quick-order-search__field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
}

.quick-order-page .category-breadcrumb {
  margin: 0;
}

.quick-order-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.quick-order-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow: auto;
  padding: 28px 24px 32px;
}

.quick-order-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.quick-order-sidebar__head h3,
.quick-order-main__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.quick-order-tree__all {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.quick-order-tree__all.is-active,
.quick-order-tree__all:hover {
  color: var(--primary);
}

.quick-order-tree {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.quick-order-tree .quick-order-tree {
  margin-top: 4px;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid var(--border-light);
}

.quick-order-tree__item + .quick-order-tree__item {
  margin-top: 4px;
}

.quick-order-tree__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.quick-order-tree__link:hover,
.quick-order-tree__link.is-active {
  background: var(--bg-main);
  color: var(--primary);
}

.quick-order-tree__link.is-active {
  font-weight: 700;
}

.quick-order-tree__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  color: var(--text-muted);
}

.quick-order-tree__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-order-main {
  padding: 28px 24px 32px;
  min-width: 0;
}

.quick-order-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.quick-order-empty {
  padding: 56px 24px 48px;
  text-align: center;
  color: var(--text-muted);
}

.quick-order-empty i {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.quick-order-table-wrap {
  overflow-x: auto;
}

.quick-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.quick-order-table th,
.quick-order-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  text-align: left;
}

.quick-order-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.quick-order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.quick-order-product__image-btn {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  line-height: 0;
}

.quick-order-product__image-btn:hover .quick-order-product__image,
.quick-order-product__image-btn:focus-visible .quick-order-product__image {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 50, 52, 0.12);
}

.quick-order-product__image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  flex-shrink: 0;
}

.quick-order-product__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.quick-order-product__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
}

.quick-order-sku {
  font-weight: 600;
  color: var(--text-main);
}

.quick-order-barcode {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.quick-order-price {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.quick-order-qty-counter {
  height: 32px;
}

.quick-order-qty-counter .qty-input {
  width: 36px;
  min-width: 36px;
}

.pricing-mode-active-label {
  font-weight: 600;
  color: var(--primary);
}

.quick-order-actions {
  white-space: nowrap;
}

.quick-order-muted {
  color: var(--text-muted);
}

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

.quick-order-config-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.quick-order-config-modal__dialog {
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.quick-order-config-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.quick-order-config-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  min-height: 0;
}

.quick-order-config-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.quick-order-config-modal__product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.quick-order-config-modal__thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fff;
  flex-shrink: 0;
}

.quick-order-config-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.quick-order-config-modal__close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-order-config-modal__close:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.quick-order-config-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px 16px;
}

.quick-order-config-modal__body .configurator-options {
  border: none;
  box-shadow: none;
  padding: 20px 0 0;
  background: transparent;
}

.quick-order-config-modal__body .configurator-options--per-unit {
  max-height: none;
  height: auto;
  overflow: visible;
  padding: 0;
}

.quick-order-config-modal__body .configurator-options--per-unit .configurator-options__body {
  max-height: min(55vh, 480px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.quick-order-config-modal__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
  flex-shrink: 0;
}

.quick-order-config-modal__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.quick-order-config-modal__summary-row,
.quick-order-config-modal__summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quick-order-config-modal__summary-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-order-config-modal__summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.quick-order-config-modal__summary-total {
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.quick-order-config-modal__summary-total-value {
  font-family: 'Farro', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}

.quick-order-config-modal__submit {
  width: auto;
  min-width: 210px;
  height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: var(--text-white);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.quick-order-config-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.32);
}

.quick-order-config-modal__submit:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .quick-order-config-modal__footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-order-config-modal__submit {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .quick-order-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-order-sidebar {
    position: static;
    max-height: none;
    padding: 24px 20px 28px;
  }

  .quick-order-main {
    padding: 24px 20px 28px;
  }
}

