/* ==========================================================================
   COMPONENTS: PRODUCT CARDS, MODALS, CART DRAWER, TOASTS & COMPARISON
   ========================================================================== */

/* -------------------------------------------------------------
   1. PRODUCT CARD
   ------------------------------------------------------------- */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-xl);
}

/* Card Top & Badges */
.product-card-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
}

.badge-custom {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
}

.badge-success {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.95);
  color: #ffffff;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

.card-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.action-circle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.1);
}

.action-circle-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Product Image Box */
.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 85%; /* Aspect Ratio */
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

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

.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transform: translateY(10px);
  transition: transform var(--transition-fast);
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

/* Card Body */
.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-category-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-code-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  transition: color var(--transition-fast);
}

.product-title:hover {
  color: var(--primary);
}

.product-short-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

/* Micro Specs Box */
.card-specs-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 12px;
}

.spec-micro-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  padding: 2px 0;
  border-bottom: 1px dashed var(--border-color);
}

.spec-micro-row:last-child {
  border-bottom: none;
}

.spec-micro-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-micro-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: 14px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* Card Footer */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.price-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

/* -------------------------------------------------------------
   2. BUTTONS & UTILITIES
   ------------------------------------------------------------- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary-custom:hover {
  color: #ffffff;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* -------------------------------------------------------------
   3. CART DRAWER (OFFCANVAS)
   ------------------------------------------------------------- */
.cart-drawer {
  width: 440px !important;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-left: 1px solid var(--border-color);
}

.cart-item-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 4px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-cat {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  color: var(--text-primary);
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.qty-val {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-subtotal {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.cart-remove-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* -------------------------------------------------------------
   4. MODALS & TECHNICAL PASSPORT
   ------------------------------------------------------------- */
.modal-content-custom {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-product-img-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.modal-product-img {
  max-width: 100%;
  height: 260px;
  object-fit: contain;
}

.modal-price-tag {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.specs-table {
  font-size: 0.88rem;
}

.specs-table .spec-name {
  font-weight: 600;
  color: var(--text-secondary);
  width: 40%;
  background: var(--bg-surface-subtle);
}

.specs-table .spec-value {
  color: var(--text-primary);
  font-weight: 500;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
}

.app-list li, .feature-list li {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   5. COMPARISON MATRIX
   ------------------------------------------------------------- */
.compare-table-wrapper {
  overflow-x: auto;
}

.compare-table {
  font-size: 0.88rem;
  vertical-align: middle;
}

.compare-table .spec-label-col {
  width: 220px;
  background: var(--bg-surface-subtle);
  font-weight: 700;
}

.compare-product-header {
  position: relative;
  text-align: center;
  padding: 10px;
}

.btn-close-compare {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-rose);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.compare-thumb {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 8px;
}

.compare-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.compare-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

/* -------------------------------------------------------------
   6. CUSTOM TOAST NOTIFICATIONS
   ------------------------------------------------------------- */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast-success {
  border-left: 4px solid var(--accent-emerald);
}
.toast-success .toast-icon {
  color: var(--accent-emerald);
  font-size: 1.2rem;
}

.toast-info {
  border-left: 4px solid var(--primary);
}
.toast-info .toast-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

.toast-warning {
  border-left: 4px solid var(--accent-amber);
}
.toast-warning .toast-icon {
  color: var(--accent-amber);
  font-size: 1.2rem;
}

/* -------------------------------------------------------------
   7. OFFICIAL B2B TIJORAT KELISHUVI & SPECIFICATION (A4 SHEET)
   ------------------------------------------------------------- */
.commercial-doc-sheet {
  background: #ffffff;
  color: #1a202c;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.35;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.commercial-doc-sheet.pdf-rendering-active {
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
}

.doc-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

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

.doc-company-requisites {
  text-align: right;
  font-size: 0.72rem;
  color: #4a5568;
  line-height: 1.25;
}

.doc-company-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0a2540;
  margin-bottom: 1px;
}

.doc-title-box {
  text-align: center;
  margin-bottom: 10px;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.doc-main-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.doc-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.doc-parties-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  background: #fdfdfd;
  border: 1px solid #edf2f7;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.doc-parties-grid > div {
  width: 48%;
  line-height: 1.3;
}

.party-box-title {
  font-weight: 700;
  color: #0a2540;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-bottom: 8px;
  page-break-inside: auto;
}

.doc-table tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

.doc-table th {
  background-color: #0a2540;
  color: #ffffff;
  padding: 5px 8px;
  font-weight: 700;
  border: 1px solid #0a2540;
  text-align: center;
}

.doc-table td {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  color: #2d3748;
}

.doc-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.doc-total-box {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.doc-total-sum {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0284c7;
}

.doc-words-sum {
  font-size: 0.74rem;
  font-style: italic;
  color: #475569;
}

.doc-terms-box {
  font-size: 0.72rem;
  color: #4a5568;
  margin-bottom: 8px;
  background: #fafafa;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #0284c7;
  page-break-inside: avoid;
  break-inside: avoid;
  line-height: 1.3;
}

.doc-terms-title {
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 3px;
}

.doc-terms-box ol {
  padding-left: 16px;
  margin-bottom: 0;
}

.doc-terms-box li {
  margin-bottom: 2px;
}

.doc-signatures-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.75rem;
  position: relative;
  page-break-inside: avoid;
  break-inside: avoid;
}

.doc-sign-box {
  width: 48%;
  position: relative;
}

.doc-stamp-container {
  position: absolute;
  top: -12px;
  right: 20px;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.doc-blue-seal {
  width: 100px;
  height: 100px;
  border: 2.5px double #1e40af;
  border-radius: 50%;
  color: #1e40af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-10deg);
  padding: 4px;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.15;
  background: rgba(30, 64, 175, 0.04);
  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.15);
}

.doc-blue-seal .seal-star {
  font-size: 9px;
  color: #1e40af;
  margin: 1px 0;
}

.doc-sign-line {
  position: relative;
  margin-top: 22px;
  border-bottom: 1px solid #2d3748;
  width: 85%;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #718096;
}

.doc-director-signature-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  height: 44px;
  width: auto;
  pointer-events: none;
  z-index: 2;
}

.doc-eimzo-qr-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3.5px solid #0284c7;
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
}

.doc-eimzo-qr-code {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.doc-eimzo-qr-text {
  font-size: 7.5px;
  line-height: 1.3;
  color: #334155;
}

.doc-eimzo-title {
  font-weight: 800;
  color: #0369a1;
  font-size: 8px;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.doc-eimzo-ok {
  color: #16a34a;
  font-weight: 800;
  margin-top: 2px;
}

.animate-slide-in {
  animation: slideInRight 0.3s ease forwards;
}

.animate-slide-out {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* -------------------------------------------------------------
   18. CATEGORIES SHOWCASE CARDS (ASOSIY EKRAN KATEGORIYALAR)
   ------------------------------------------------------------- */
.category-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.category-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-accent, var(--primary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.category-showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--cat-accent, var(--primary));
  box-shadow: var(--shadow-xl);
}

.category-showcase-card:hover::before {
  opacity: 1;
}

.cat-icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: var(--cat-bg, var(--primary-light));
  color: var(--cat-color, var(--primary));
  transition: transform var(--transition-fast);
}

.category-showcase-card:hover .cat-icon-bubble {
  transform: scale(1.1) rotate(5deg);
}

.cat-showcase-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cat-showcase-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
}

.cat-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.cat-count-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cat-color, var(--primary));
  background: var(--cat-bg, var(--primary-light));
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.cat-explore-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.category-showcase-card:hover .cat-explore-link {
  gap: 10px;
  color: var(--primary-dark);
}

/* -------------------------------------------------------------
   19. DISCOUNTED PRODUCTS CARDS (CHEGIRMADAGI MAHSULOTLAR)
   ------------------------------------------------------------- */
.discount-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.discount-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.12);
}

.discount-badge-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}

.discount-img-wrap {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.discount-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--transition-normal);
}

.discount-product-card:hover .discount-img-wrap img {
  transform: scale(1.08);
}

.discount-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.discount-price-box {
  background: rgba(239, 68, 68, 0.04);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 12px 0 16px;
}

.old-price-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.new-price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1.1;
}

.savings-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 4px;
}

/* -------------------------------------------------------------
   20. LANGUAGE SWITCHER (UZ / RU)
   ------------------------------------------------------------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.site-navbar .lang-switcher {
  background: var(--bg-surface-subtle);
  border-color: var(--border-color);
}

.lang-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.top-bar .lang-btn {
  color: rgba(255, 255, 255, 0.8);
}

.site-navbar .lang-btn {
  color: var(--text-secondary);
}

.lang-btn:hover {
  color: #ffffff;
}

.site-navbar .lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   Buyurtma asosidagi mahsulotlar (js/products-order.js, js/order-request.js)
   ========================================================================== */
.badge-order {
  background: rgba(15, 118, 110, 0.92);
  color: #ffffff;
}

.product-card--order .stock-dot {
  background: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.product-card--order .stock-text {
  color: #0f766e;
}

.product-card--order .price-val {
  font-size: 0.95rem;
  color: #0f766e;
}

.btn-order-request {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #ffffff !important;
}

.btn-order-request:hover {
  background: #115e59 !important;
}

.order-note {
  background: #ccfbf1;
  color: #115e59;
  border-radius: 10px;
  padding: 10px 12px;
}

.order-req-product {
  background: var(--bs-light, #f8f9fa);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.order-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-fact {
  display: inline-flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.order-fact small {
  font-size: 0.7rem;
  font-weight: 400;
  color: #6b7280;
}

[data-theme="dark"] .order-req-product,
[data-theme="dark"] .order-fact {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .order-note {
  background: rgba(15, 118, 110, 0.25);
  color: #99f6e4;
}
