/* CSS Variables matching current design */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #e67e22;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --light-bg: #ecf0f1;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #2c3e50;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Navigation */
.navbar-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #d35400;
  border-color: #d35400;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  font-weight: 600;
}

.btn-success:hover {
  background-color: #229954;
  border-color: #229954;
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

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

/* Product Cards */
#productsGrid {
  align-items: stretch;
}

#productsGrid>.col {
  display: flex;
  margin-bottom: 1rem;
}

.product-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.product-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.badge-custom {
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 8px;
  font-size: 0.75rem;
}

.badge-in-stock {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-low-stock {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.badge-out-of-stock {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.badge-category {
  background-color: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  border: 1px solid #dee2e6;
  backdrop-filter: blur(10px);
}

.product-promo-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
}

.product-favorite-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.product-favorite-btn:hover {
  background: #ffffff;
  color: #dc3545;
  transform: scale(1.05);
}

.btn-favorite-toggle.is-favorite {
  color: #dc3545;
}

.badge-new-arrival {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: #ffffff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.badge-city-choice {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #2c3e50;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.badge-discount {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.bg-accent-custom {
  background-color: var(--accent-color) !important;
}

.text-accent-custom {
  color: var(--accent-color) !important;
}

/* Product Card Body */
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.product-info .mt-auto {
  margin-top: 0.5rem !important;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}

.product-sku {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 3em;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.product-price-unit {
  font-size: 0.85rem;
  color: #6c757d;
  margin-left: 0.25rem;
}

.product-min-order {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Product Actions */
.product-actions {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-view-details {
  flex: 1;
}

.btn-add-to-cart {
  flex: 1;
}

.product-actions.single-action .btn-view-details {
  width: 100%;
  flex: 1 1 100%;
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

/* Modal */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.product-detail-page-card {
  border-radius: 16px;
}

.product-detail-page-card .card-body {
  padding: 1.5rem;
}

.related-products-preview-card {
  border-radius: 16px;
  margin-top: 1rem;
}

.related-products-preview-card .card-body {
  padding: 1.25rem;
}

.related-products-preview {
  --related-columns: 6;
}

.related-products-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.related-products-preview-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.related-products-preview-title {
  font-size: 1.6rem;
  color: var(--primary-color);
}

.related-products-preview-pagination {
  color: #343a40;
  font-size: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.related-products-preview-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 0.75rem;
  align-items: center;
}

.related-carousel-control {
  width: 52px;
  height: 52px;
  border: 1px solid #adb5bd;
  border-radius: 14px;
  background: #ffffff;
  color: #495057;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.related-carousel-control:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.related-carousel-control:disabled,
.related-carousel-control.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.related-products-preview-track {
  display: grid;
  grid-template-columns: repeat(var(--related-columns, 6), minmax(0, 1fr));
  gap: 1rem;
  overflow: hidden;
  padding-bottom: 0;
  min-width: 0;
}

.related-product-preview-item {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.related-product-preview-image-link {
  display: block;
  background: #f8f9fa;
}

.related-product-preview-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 0.5rem;
}

.related-product-preview-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 110px;
}

.related-product-preview-name {
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.related-product-preview-name:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.related-product-preview-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.related-product-preview-price-current {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.related-product-preview-price-original {
  color: #8f8f8f;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.related-product-preview-members-only {
  color: var(--danger-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Product Detail Modal */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-detail-image-container {
  position: relative;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f8f9fa;
  margin-bottom: 15px;
}

.product-detail-promo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-item:hover {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}

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

.product-detail-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-detail-favorite-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #f8f9fa;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.product-detail-favorite-btn:hover {
  background: #ffffff;
  color: #dc3545;
  transform: scale(1.05);
}

.signin-prompt-modal {
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.signin-prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 560px;
  position: relative;
}

.signin-prompt-visual {
  background: linear-gradient(155deg, #ff6a00 0%, #ff9a45 58%, #ffc48c 100%);
  color: #ffffff;
  padding: 1.8rem 2rem 1.9rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.2rem;
}

.signin-prompt-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.signin-prompt-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
}

.signin-prompt-visual-surface {
  flex: 1 1 auto;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.signin-prompt-illustration {
  width: 350px;
  max-width: 100%;
  max-height: 310px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(31, 41, 55, 0.22));
}

.signin-prompt-tagline {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
  max-width: 440px;
}

.signin-prompt-panel {
  position: relative;
  padding: 2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.signin-prompt-context {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid #ffd7bc;
  background: #fff5ed;
  color: #b45309;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.95rem;
}

.signin-prompt-context-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff6a00;
  color: #ffffff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signin-prompt-context-label {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.signin-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #dbe3ec;
  background: #ffffff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
}

.signin-prompt-close:hover,
.signin-prompt-close:focus {
  border-color: #ffb281;
  color: #ff6a00;
  background: #fff7f2;
}

.signin-prompt-title {
  color: #111827;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.signin-prompt-subtitle {
  color: #6b7280;
  margin-bottom: 1rem;
  max-width: 520px;
  line-height: 1.55;
}

.signin-prompt-benefits {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.signin-prompt-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.45;
}

.signin-prompt-benefits i {
  color: #ff6a00;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.signin-prompt-actions {
  display: grid;
  gap: 0.6rem;
}

.signin-prompt-btn {
  border-radius: 11px;
  font-weight: 700;
  padding: 0.72rem 1rem;
}

.signin-prompt-btn-primary {
  background: #ff6a00;
  border: 1px solid #ff6a00;
  color: #ffffff;
}

.signin-prompt-btn-primary:hover,
.signin-prompt-btn-primary:focus {
  background: #e55d00;
  border-color: #e55d00;
  color: #ffffff;
}

.signin-prompt-btn-secondary {
  background: #ffffff;
  border: 1px solid #d4dde7;
  color: #374151;
}

.signin-prompt-btn-secondary:hover,
.signin-prompt-btn-secondary:focus {
  background: #f9fafb;
  border-color: #bec9d8;
  color: #111827;
}

.signin-prompt-note {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-detail-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 1rem 0;
}

.price-tiers {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.price-tier {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.price-tier:last-child {
  border-bottom: none;
}

.price-tier.active-tier {
  background: #e8f4f8;
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
  font-weight: 600;
}

/* Variants List */
.variants-list {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.variant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.variant-item:hover {
  background: #e9ecef;
}

.variant-item.active {
  background: #e8f4f8;
  border-left: 4px solid var(--accent-color);
}

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

.variant-info {
  flex: 1;
}

.variant-price {
  text-align: right;
}

.specifications-list {
  list-style: none;
  padding: 0;
}

.specifications-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
}

.specifications-list li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.specifications-list li:last-child {
  border-bottom: none;
}

.specifications-container {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #dee2e6;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #f8f9fa;
  border-color: var(--accent-color);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-display {
  min-width: 60px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Cart Items */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 2px solid #f8f9fa;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.cart-item:hover {
  border-color: #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8f9fa;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #2c3e50;
}

.cart-item-sku {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #dee2e6;
  background: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cart-qty-btn:hover {
  background: #f8f9fa;
  border-color: var(--accent-color);
}

.cart-qty-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-remove-item {
  padding: 0.25rem 0.75rem;
  background: #f8d7da;
  color: #721c24;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.btn-remove-item:hover {
  background: #f5c6cb;
}

/* Empty State */
.justify-center {
  justify-content: center;
}

/* Offcanvas */
.offcanvas {
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
  .related-products-preview {
    --related-columns: 4;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .related-products-preview {
    --related-columns: 2;
  }

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

  .offcanvas-end {
    width: 100% !important;
  }

  .product-detail-info h2 {
    font-size: 1.5rem;
  }

  .product-detail-price {
    font-size: 2rem;
  }

  .related-products-preview-title {
    font-size: 1.3rem;
  }

  .related-products-preview-pagination {
    font-size: 1rem;
  }

  .related-products-preview-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 0.5rem;
  }

  .related-carousel-control {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .related-product-preview-item {
    width: 100%;
  }

  .related-product-preview-image {
    height: 130px;
  }

  .related-product-preview-body {
    min-height: 100px;
    padding: 0.65rem;
  }

  .related-product-preview-price-current {
    font-size: 1rem;
  }

  .signin-prompt-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .signin-prompt-visual {
    padding: 1rem;
    gap: 0.85rem;
  }

  .signin-prompt-brand {
    font-size: 1.2rem;
  }

  .signin-prompt-logo {
    width: 38px;
    height: 38px;
  }

  .signin-prompt-visual-surface {
    min-height: 190px;
    padding: 0.7rem;
  }

  .signin-prompt-illustration {
    width: 220px;
    max-height: 170px;
  }

  .signin-prompt-tagline {
    font-size: 1.12rem;
    margin-top: 0;
    max-width: none;
  }

  .signin-prompt-panel {
    padding: 1.15rem 1rem;
  }

  .signin-prompt-close {
    top: 8px;
    right: 8px;
  }

  .signin-prompt-title {
    font-size: 1.35rem;
    padding-right: 2.4rem;
  }

  .signin-prompt-subtitle {
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
  }

  .signin-prompt-benefits {
    margin-bottom: 0.85rem;
    gap: 0.45rem;
  }

  .signin-prompt-benefits li {
    font-size: 0.9rem;
  }

  .signin-prompt-btn {
    padding: 0.65rem 0.85rem;
  }
}

/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item {
  animation: slideInRight 0.3s ease;
}

/* Loading State */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

/* Toast */
.toast {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Toast title colors by status */
#toast-container .toast.danger .toast-header .mr-auto,
#toast-container .toast.danger .toast-header strong,
#toast-container .toast.bg-danger .toast-header .mr-auto,
#toast-container .toast.bg-danger .toast-header strong {
  color: var(--danger-color) !important;
}

#toast-container .toast.success .toast-header .mr-auto,
#toast-container .toast.success .toast-header strong,
#toast-container .toast.bg-success .toast-header .mr-auto,
#toast-container .toast.bg-success .toast-header strong {
  color: var(--success-color) !important;
}

/* Product card styling */
.product-image {
  cursor: pointer;
}

/* Toast container */
#toast-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 9999;
}

/* Alibaba-style Header Styles */
body.layout-top-nav .wrapper .content-wrapper {
  background: #f5f5f5;
  min-height: calc(100vh - 60px);
}

nav.main-header {
  background: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.alibaba-header {
  padding: 10px 0;
}

.alibaba-header .container {
  max-width: 1400px;
}

.alibaba-header .logo-link {
  color: #FF6A00;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.alibaba-header .search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 20px;
}

.alibaba-header .search-wrapper {
  position: relative;
  display: flex;
}

.alibaba-header .search-input {
  border: 2px solid #ddd;
  border-radius: 4px 0 0 4px;
  border-right: none;
  padding: 8px 15px;
  height: 38px;
  width: 100%;
}

.alibaba-header .search-input:focus {
  outline: none;
  border-color: #FF6A00;
}

.alibaba-header .camera-btn {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.alibaba-header .search-btn {
  background: #FF6A00;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 20px;
  height: 38px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.alibaba-header .search-btn:hover {
  background: #E55D00;
}

.alibaba-header .right-section {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.alibaba-header .header-item {
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.alibaba-header .header-item:hover {
  color: #FF6A00;
}

.alibaba-header .language-switcher .language-toggle {
  color: #333;
  text-decoration: none;
  border: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.2;
  box-shadow: none !important;
}

.alibaba-header .language-switcher .language-toggle:hover,
.alibaba-header .language-switcher .language-toggle:focus {
  color: #FF6A00;
  text-decoration: none;
}

.alibaba-header .language-switcher .dropdown-menu {
  min-width: 140px;
}

.alibaba-header .cart-btn {
  position: relative;
  color: #333;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 5px 10px;
}

.alibaba-header .cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.alibaba-header .sign-in-link {
  color: #1890ff;
  text-decoration: none;
  font-size: 0.875rem;
}

.alibaba-header .sign-in-link:hover {
  text-decoration: underline;
}

.alibaba-header .create-btn {
  background: #FF6A00;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.alibaba-header .create-btn:hover {
  background: #E55D00;
}

/* Promotional Sections Styles */
.savings-booster-card {
  background: linear-gradient(135deg, #FFE5E5 0%, #FFB8B8 100%);
  border-radius: 15px;
}

.promo-title-accent {
  color: #fff1d6;
}

.explore-btn {
  border-radius: 20px;
  padding: 8px 24px;
}

.featured-item {
  min-width: 120px;
  cursor: pointer;
}

.product-detail-trigger {
  cursor: pointer;
}

.product-detail-trigger:focus {
  outline: 2px solid #ff6a00;
  outline-offset: 2px;
}

.featured-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.featured-item-price {
  font-size: 1.1rem;
  color: #333;
}

.featured-item-moq {
  font-size: 0.85rem;
}

.guaranteed-card {
  background: linear-gradient(135deg, #b56a14 0%, #d88925 55%, #8b4e12 100%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.customization-card {
  background: linear-gradient(135deg, #1f5c3f 0%, #2d7a4f 55%, #1a4a34 100%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.explore-light-btn {
  border-radius: 20px;
  padding: 8px 24px;
  opacity: 0.9;
}

.promo-item-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.guaranteed-card .promo-item-box {
  background: rgba(60, 31, 8, 0.22);
  border: 1px solid rgba(255, 219, 178, 0.25);
}

.customization-card .promo-item-box {
  background: rgba(7, 41, 26, 0.2);
  border: 1px solid rgba(176, 234, 197, 0.25);
}

.promo-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.promo-item-note {
  font-size: 0.8rem;
}

/* Layout Styles */
.logo-image {
  width: 34px;
  height: 34px;
  object-fit: cover;
  margin-right: 5px;
}

.location-icon {
  color: #FF6A00;
}

.content-padding {
  padding: 20px 0;
}

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

/* Cart Modal Styles - Redesigned */
.cart-modal-header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.cart-modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
}

.cart-badge {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.cart-modal-body {
  padding: 2rem 1.5rem;
  min-height: 400px;
}

/* Empty Cart State */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  text-align: center;
}

.cart-empty-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cart-empty-icon i {
  font-size: 3rem;
  color: #fff;
}

.cart-empty-title {
  font-size: 1.25rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cart-empty-btn {
  padding: 0.5rem 2rem;
  border-radius: 25px;
  font-weight: 500;
}

/* Cart Items Container */
.cart-items-container {
  display: block;
}

/* Cart Modal Footer */
.cart-modal-footer {
  background-color: #fff;
  border-top: 1px solid #dee2e6;
  padding: 1.5rem;
}

.cart-checkout-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1aa97e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Toast Container */
#toast-container {
  top: 70px;
  right: 20px;
  z-index: 9999;
}

/* Variant Dropdown and Add to Cart Button - Matching Styles */
.variant-dropdown-selector {
  height: 50px !important;
  font-size: 16px !important;
  padding: 8px 12px !important;
  border: 1px solid #ced4da !important;
  border-radius: 4px !important;
  line-height: 1.5 !important;
}

.variant-dropdown-selector:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
}

.btn-add-from-modal-dropdown {
  height: 50px !important;
  font-size: 16px !important;
  padding: 8px 24px !important;
  line-height: 1.5 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

.btn-add-from-modal-dropdown i {
  margin-right: 8px;
}

/* Member Only Text Styles */
.member-only-text {
  font-size: 0.9rem;
}

.member-only-text-small {
  font-size: 0.75rem;
}

.variant-price .member-only-text-small {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Customer Profile Modals */
.customer-profile-modal,
.customer-profile-edit-modal {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

#editProfileModal .modal-dialog {
  margin: 1rem auto;
  max-height: calc(100vh - 2rem);
}

#editProfileModal .modal-content {
  max-height: calc(100vh - 2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.customer-profile-edit-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.customer-profile-modal-header {
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
  padding: 1rem 1.25rem;
}

.customer-profile-modal-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}

.customer-profile-modal-close {
  color: #6b7280;
  opacity: 1;
  text-shadow: none;
  transition: color 0.2s ease;
}

.customer-profile-modal-close:hover,
.customer-profile-modal-close:focus {
  color: #FF6A00;
}

.customer-profile-modal-body,
.customer-profile-edit-body {
  padding: 1.25rem;
  background: linear-gradient(160deg, #fffaf6 0%, #ffffff 38%, #f8fafc 100%);
}

.customer-profile-edit-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.customer-profile-edit-form .customer-profile-modal-header,
.customer-profile-edit-form .customer-profile-modal-footer {
  flex-shrink: 0;
}

.customer-profile-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #f8dbc5;
  background: linear-gradient(130deg, #fff3e7 0%, #fffaf4 100%);
}

.customer-profile-avatar-wrapper {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.22);
  overflow: hidden;
  background: #fde7d8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customer-profile-avatar-edit {
  width: 108px;
  height: 108px;
}

.customer-profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-profile-avatar-placeholder {
  font-size: 2.3rem;
  color: #FF6A00;
  opacity: 0.75;
}

.customer-profile-summary-content {
  min-width: 0;
  flex: 1;
}

.customer-profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
}

.customer-profile-name {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #111827;
  font-weight: 700;
}

.customer-profile-name-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.customer-profile-shop {
  margin: 0.35rem 0 0.6rem;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 500;
}

.customer-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.customer-profile-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #9f4a00;
  background: #ffffff;
  border: 1px solid #ffddc5;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.customer-profile-meta-badge-success {
  border-color: #ccead9;
  color: #1f7a45;
}

.customer-profile-meta-badge-pending {
  border-color: #f3ddb5;
  color: #8a5a00;
}

.customer-profile-status-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.customer-profile-data-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.customer-profile-data-item {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.customer-profile-data-label {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.customer-profile-data-value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2937;
  font-weight: 600;
  word-break: break-word;
}

.customer-profile-edit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid #fee1cb;
  background: #fff7f1;
}

.customer-profile-upload-stack {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.customer-profile-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.customer-profile-upload-btn {
  border: 1px solid #FF6A00;
  background: #ffffff;
  color: #FF6A00;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
}

.customer-profile-upload-btn:hover,
.customer-profile-upload-btn:focus {
  background: #FF6A00;
  color: #ffffff;
}

.customer-profile-upload-note {
  margin: 0;
  font-size: 0.76rem;
  color: #6b7280;
}

.customer-profile-edit-intro {
  margin: 0;
  max-width: 360px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.customer-profile-form-section + .customer-profile-form-section {
  margin-top: 1rem;
}

.customer-profile-section-divider {
  border-top: 1px dashed #e5e7eb;
  margin: 1rem 0;
}

.customer-profile-section-title {
  margin: 0 0 0.75rem;
  color: #FF6A00;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.customer-profile-field {
  margin-bottom: 0;
}

.customer-profile-current-password {
  grid-column: 1 / -1;
}

.customer-profile-label {
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
}

.customer-profile-field .input-group-text {
  border-right: 0;
  background: #ffffff;
  border-color: #dbe3ea;
  color: #9aa1ac;
}

.customer-profile-field .form-control {
  border-left: 0;
  border-color: #dbe3ea;
  height: 44px;
  font-size: 0.92rem;
  color: #1f2937;
}

.customer-profile-field .form-control:focus {
  border-color: #FF6A00;
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.16);
}

.customer-profile-field .input-group:focus-within .input-group-text {
  border-color: #FF6A00;
  color: #FF6A00;
}

.customer-profile-field .form-control[readonly] {
  background: #f3f4f6;
  color: #6b7280;
}

.customer-profile-readonly-note,
.customer-profile-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #6b7280;
}

.customer-profile-alert {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.customer-profile-modal-footer {
  border-top: 1px solid #edf1f5;
  background: #ffffff;
  padding: 0.9rem 1.25rem;
}

.customer-profile-primary-btn,
.customer-profile-secondary-btn {
  border-radius: 10px;
  font-weight: 600;
  min-width: 138px;
}

.customer-profile-primary-btn {
  background: #FF6A00;
  border-color: #FF6A00;
  color: #ffffff;
}

.customer-profile-primary-btn:hover,
.customer-profile-primary-btn:focus {
  background: #E55D00;
  border-color: #E55D00;
  color: #ffffff;
}

.customer-profile-secondary-btn {
  background: #ffffff;
  border-color: #cfd6de;
  color: #374151;
}

.customer-profile-secondary-btn:hover,
.customer-profile-secondary-btn:focus {
  background: #f8fafc;
  border-color: #b8c2cc;
}

/* ===== Inline CSS Refactored Classes ===== */

/* Table column widths */
.table-col-id {
  width: 10px;
}

.table-col-actions {
  width: 200px;
}

.table-col-actions-sm {
  width: 150px;
}

.table-col-name {
  width: 200px;
}

/* Cart modal initial state */
.cart-items-container-hidden {
  display: none;
}

.cart-modal-footer-hidden {
  display: none;
}

/* Product variant fields */
.variant-fields-container {
  background-color: #f8f9fa;
}

/* Variants display in modal */
.variants-display-container {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
}

.variants-display-heading {
  color: #dc3545;
}

.variant-item-selectable {
  cursor: pointer;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s;
}

/* Variant selector layout */
.variant-selector-container {
  gap: 0;
}

.variant-dropdown {
  flex: 1;
  height: 50px;
  font-size: 16px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px 0 0 4px;
}

.variant-add-button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 24px !important;
  height: 50px !important;
  font-size: 16px;
  line-height: 1;
  border-radius: 0 4px 4px 0;
}

.variant-add-button-icon {
  margin-right: 8px;
}

/* ===== Promotional Pricing Styles ===== */

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card .price-container {
  row-gap: 0;
}

.price-original {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.price-discount {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.product-tax-indicator {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.product-tax-indicator-below {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  font-style: italic;
  color: #6b7280;
  font-weight: 600;
}

.featured-item-tax-indicator,
.promo-item-tax-indicator,
.related-product-preview-tax-indicator,
.product-detail-tax-indicator {
  display: inline-block;
  /* margin-left: 0.4rem; */
  font-size: 0.60rem;
  font-weight: 600;
  color: #6b7280;
}

.product-detail-tax-indicator {
  margin-left: 0.6rem;
  font-size: 0.94rem;
}

.promo-item-tax-indicator {
  display: block;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.88);
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.product-detail-price-original {
  font-size: 1.25rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 12px;
}

.product-detail-price-discount {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
}

.product-detail-discount-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  margin-left: 12px;
}

/* ===== Industry Standard Refresh: Home + Product Detail ===== */
.online-home-shell {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.home-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem;
  background: radial-gradient(circle at 10% 0%, #fff4e8 0%, #ffffff 55%, #f5f8ff 100%);
  border: 1px solid #e8edf4;
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
}

.home-hero-panel:before {
  content: "";
  position: absolute;
  right: -84px;
  top: -84px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.09);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero-eyebrow {
  margin: 0;
  color: #FF6A00;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.home-hero-title {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  line-height: 1.18;
  color: #111827;
  font-weight: 800;
}

.home-hero-subtitle {
  margin: 0;
  max-width: 560px;
  color: #4b5563;
  line-height: 1.55;
  font-size: 0.98rem;
}

.home-hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero-primary,
.home-hero-secondary {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.56rem 0.95rem;
}

.home-hero-primary {
  background: #FF6A00;
  color: #fff;
  border: 1px solid #FF6A00;
}

.home-hero-primary:hover,
.home-hero-primary:focus {
  background: #e55d00;
  border-color: #e55d00;
  color: #fff;
}

.home-hero-secondary {
  background: #fff;
  color: #1f2937;
  border: 1px solid #d4dce6;
}

.home-hero-secondary:hover,
.home-hero-secondary:focus {
  background: #f9fafb;
  border-color: #bcc8d6;
  color: #1f2937;
}

.home-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.home-hero-stat {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
}

.home-hero-stat-value {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #111827;
  font-weight: 700;
}

.home-hero-stat-label {
  margin: 0.2rem 0 0;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
}

.catalog-header {
  margin-top: 0.15rem;
}

.catalog-header-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  color: #111827;
}

.catalog-header-subtitle {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-size: 0.93rem;
}

.catalog-toolbar-card {
  border: 1px solid #e7edf4;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.catalog-toolbar-card:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.catalog-toolbar-card .card-body {
  padding: 1rem 1.05rem;
}

.catalog-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.catalog-filter-field {
  min-width: 0;
}

.catalog-filter-label {
  display: block;
  margin: 0 0 0.35rem;
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-filter-grid .input-group-text {
  border-right: 0;
  background: #fff;
  color: #9aa3af;
  border-color: #d8e0ea;
}

.catalog-filter-grid .form-control {
  height: 42px;
  border-color: #d8e0ea;
}

.catalog-filter-grid .input-group .form-control {
  border-left: 0;
}

.catalog-clear-btn {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d3dce7;
  background: #fff;
  color: #374151;
  font-weight: 600;
  min-width: 140px;
}

.catalog-clear-btn:hover,
.catalog-clear-btn:focus {
  border-color: #FF6A00;
  color: #FF6A00;
  background: #fff7f1;
}

.catalog-results-shell {
  margin-top: 0.35rem;
}

.catalog-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.catalog-results-count {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.catalog-empty-state {
  border: 1px dashed #d5dde7;
  border-radius: 14px;
  padding: 2rem 1rem;
  background: #fff;
}

.catalog-empty-state i {
  font-size: 1.4rem;
  color: #9ca3af;
}

#productsGrid {
  row-gap: 0.15rem;
}

#productsGrid>.col {
  margin-bottom: 0.15rem;
}

.product-card {
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.product-image-container {
  border-radius: 16px 16px 0 0;
  background: linear-gradient(170deg, #f9fbff 0%, #f2f5fa 100%);
  padding-top: 84%;
}

.product-favorite-btn {
  width: 38px;
  height: 38px;
}

.product-info {
  padding: 0.9rem 0.95rem 0.75rem;
}

.product-name {
  color: #111827;
  font-size: 1.04rem;
  font-weight: 650;
}

.product-sku {
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.product-description {
  color: #6b7280;
}

.product-price {
  font-size: 1.62rem;
  margin-bottom: 0.15rem;
}

.product-actions {
  padding: 0 0.95rem 0.95rem;
}

.product-actions .btn-view-details {
  border-radius: 10px;
  font-weight: 600;
  border-color: #cfd7e2;
  color: #374151;
}

.product-actions .btn-view-details:hover,
.product-actions .btn-view-details:focus {
  background: #FF6A00;
  border-color: #FF6A00;
  color: #fff;
}

.new-arrival-section .savings-booster-card {
  border: 1px solid #fde0c8;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff9f3 0%, #fff4ea 55%, #fffdf9 100%);
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.08);
}

.new-arrival-content .new-arrival-title {
  color: #374151;
}

.new-arrival-content .new-arrival-line {
  color: #1f2937;
}

.new-arrival-content .new-arrival-explore {
  border-radius: 10px;
  background: #FF6A00;
  border-color: #FF6A00;
}

.new-arrival-products .featured-item {
  min-width: 124px;
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  border: 1px solid #ebeff4;
  background: #fff;
}

.new-arrival-products .featured-item img {
  width: 94px;
  height: 94px;
  border-radius: 10px;
}

.guaranteed-card,
.customization-card {
  border-radius: 18px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

.promo-item-box {
  border-radius: 10px;
}

.promo-price-original {
  font-size: 0.73rem;
}

.promo-price-discount {
  font-size: 1.06rem;
  color: #ff6a00;
}

.online-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.detail-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.detail-back-link {
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-weight: 600;
}

.detail-back-link:hover,
.detail-back-link:focus {
  border-color: #FF6A00;
  color: #FF6A00;
  background: #fff8f2;
}

.detail-page-toolbar-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.detail-toolbar-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: #fff7f0;
  border: 1px solid #ffd6bb;
  color: #9f4a00;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-toolbar-chip-muted {
  border-color: #dbe3ed;
  background: #f8fafd;
  color: #4b5563;
}

.detail-main-card,
.detail-related-card {
  border: 1px solid #e7edf4;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.detail-main-card:hover,
.detail-related-card:hover {
  transform: none;
}

.product-detail-page-card .card-body {
  padding: 1.35rem;
}

.product-detail-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.product-detail-image-container {
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

.product-detail-image {
  border-radius: 16px;
  border: 1px solid #e5ebf2;
  background: #fff;
}

.product-detail-promo-badges {
  margin-bottom: 0.75rem;
}

.product-detail-info h2 {
  margin-top: 0.1rem;
  color: #111827;
  font-size: 2rem;
  line-height: 1.22;
}

.product-detail-summary-line {
  margin: 0.55rem 0 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.product-detail-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffd9bf;
  background: #fff7f0;
  color: #9f4a00;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-detail-chip-muted {
  border-color: #d9e2ec;
  background: #f8fafd;
  color: #4b5563;
}

.product-detail-price-block {
  margin: 0.95rem 0;
}

.product-detail-info-alert {
  border: 1px solid #cddcfe;
  border-radius: 12px;
  background: #edf4ff;
  color: #1e3a8a;
  margin-top: 0.95rem;
  margin-bottom: 0.95rem;
}

.product-detail-stock-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 1rem;
}

.product-detail-section {
  border: 1px solid #e6ecf3;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 0.95rem;
  margin-bottom: 0.9rem;
}

.product-detail-section-title {
  margin: 0 0 0.5rem;
  color: #FF6A00;
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-detail-description {
  color: #374151;
  line-height: 1.6;
}

.variants-display-container {
  border: 1px solid #e6ecf3;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  padding: 0.9rem 0.95rem;
}

.variants-display-heading {
  color: #1f2937;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.variants-list {
  background: #fff;
  border: 1px solid #e6ecf3;
  border-radius: 12px;
}

.variant-item {
  padding: 0.8rem 0.85rem;
}

.variant-item.active {
  border-left: 3px solid #FF6A00;
  background: #fff8f2;
}

.price-tiers {
  border: 1px solid #e6ecf3;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  padding: 0.9rem 0.95rem;
  margin: 0 0 0.9rem;
}

.price-tier {
  padding: 0.6rem 0;
}

.price-tier.active-tier {
  border-left: 3px solid #FF6A00;
  background: #fff8f2;
  padding-left: 0.65rem;
}

.specifications-container {
  border: 1px solid #e6ecf3;
  border-radius: 12px;
  background: #fff;
}

.product-detail-meta-list p {
  margin-bottom: 0.35rem !important;
}

.product-detail-minimum-note {
  margin-bottom: 0;
}

.related-products-preview-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.related-products-preview-pagination {
  font-size: 0.9rem;
  color: #6b7280;
}

.related-carousel-control {
  border-color: #d3dce7;
}

.related-product-preview-item {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #e6ecf3;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

/* ===== Responsive layout fixes for mobile/tablet ===== */
.alibaba-header .container.alibaba-header-container {
  gap: 12px;
}

.alibaba-header .auth-link {
  white-space: nowrap;
}

.alibaba-header .user-menu-toggle {
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
}

.alibaba-header .user-menu-toggle:hover,
.alibaba-header .user-menu-toggle:focus {
  color: #FF6A00;
  text-decoration: none;
}

.alibaba-header .user-name {
  display: inline-block;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 991.98px) {
  .alibaba-header .container.alibaba-header-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .alibaba-header .logo-link {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.2rem;
  }

  .alibaba-header .logo-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .alibaba-header .right-section {
    order: 2;
    margin-left: auto;
    gap: 10px;
  }

  .alibaba-header .header-meta {
    display: none;
  }

  .alibaba-header .search-container {
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
    margin: 6px 0 0;
  }

  .alibaba-header .dropdown-menu {
    right: 0;
    left: auto;
  }

  .product-info {
    padding: 0.85rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .price-discount {
    font-size: 1.35rem;
  }

  .product-actions {
    padding: 0.6rem 0.85rem 0.85rem;
    gap: 0.4rem;
  }

  .product-actions .btn {
    padding: 0.45rem 0.4rem;
    font-size: 0.95rem;
  }

  .badge-custom {
    font-size: 0.68rem;
    padding: 0.25em 0.55em;
  }

  .home-hero-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .catalog-filter-action {
    grid-column: 1 / -1;
  }

  .detail-page-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .product-detail-image-container {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .content-padding {
    padding: 12px 0;
  }

  .container-max {
    padding-left: 10px;
    padding-right: 10px;
  }

  .online-home-shell {
    gap: 0.95rem;
  }

  .home-hero-panel {
    border-radius: 16px;
    padding: 1rem;
  }

  .home-hero-title {
    font-size: 1.5rem;
  }

  .home-hero-subtitle {
    font-size: 0.9rem;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-primary,
  .home-hero-secondary {
    width: 100%;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
  }

  .catalog-header-title {
    font-size: 1.2rem;
  }

  .catalog-header-subtitle {
    font-size: 0.85rem;
  }

  .filter-bar-card .card-body {
    padding: 0.85rem;
  }

  .filter-bar-card .mb-3 {
    margin-bottom: 0.65rem !important;
  }

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

  .catalog-clear-btn {
    width: 100%;
  }

  .catalog-results-head {
    margin-bottom: 0.5rem;
  }

  .new-arrival-section .savings-booster-card .card-body.py-4 {
    padding: 1rem 0.85rem !important;
  }

  .new-arrival-content .new-arrival-title {
    font-size: 1.55rem;
    margin-bottom: 0.4rem;
  }

  .new-arrival-content .new-arrival-line {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 0.2rem;
  }

  .new-arrival-content .new-arrival-explore {
    margin-top: 0.55rem !important;
    padding: 0.6rem 1.15rem;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 600;
  }

  .new-arrival-products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: stretch !important;
    margin-top: 0.75rem;
  }

  .new-arrival-products .new-arrival-item {
    margin: 0 !important;
    min-width: 0;
  }

  .new-arrival-products .new-arrival-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
  }

  .new-arrival-products .featured-item-price {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .new-arrival-products .featured-item-moq {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .new-arrival-products .new-arrival-item:nth-child(n+7) {
    display: none;
  }

  .product-category-badge,
  .product-badges {
    top: 10px;
  }

  .product-category-badge {
    display: flex;
    align-items: flex-start;
  }

  .product-category-badge .badge-custom,
  .product-badges .badge-custom {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
    margin: 0;
  }

  .product-name,
  .product-sku,
  .product-description {
    min-height: 0;
  }

  .product-sku {
    -webkit-line-clamp: 1;
  }

  .product-description {
    -webkit-line-clamp: 2;
    margin-bottom: 0.6rem;
  }

  .product-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-actions .btn {
    width: 100%;
  }

  .detail-main-card .card-body,
  .detail-related-card .card-body {
    padding: 1rem;
  }

  .detail-toolbar-chip {
    font-size: 0.74rem;
  }

  .promo-item-image {
    width: 64px;
    height: 64px;
  }

  .guaranteed-card .card-body,
  .customization-card .card-body {
    padding: 1rem;
  }

  .customer-profile-modal-body,
  .customer-profile-edit-body {
    padding: 1rem;
  }

  .customer-profile-summary {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  .customer-profile-meta {
    justify-content: center;
  }

  .customer-profile-name-row {
    justify-content: center;
  }

  .customer-profile-data-grid,
  .customer-profile-form-grid {
    grid-template-columns: 1fr;
  }

  .customer-profile-edit-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-profile-upload-stack {
    width: 100%;
  }

  .customer-profile-edit-intro {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .new-arrival-content .new-arrival-title {
    font-size: 1.35rem;
  }

  .new-arrival-content .new-arrival-line {
    font-size: 1.65rem;
  }

  .new-arrival-content .new-arrival-explore {
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
  }

  .alibaba-header {
    padding: 8px 0;
  }

  .logo-image {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }

  .alibaba-header .logo-link {
    font-size: 1rem;
  }

  .alibaba-header .logo-text {
    max-width: 165px;
  }

  .alibaba-header .right-section {
    gap: 6px;
  }

  .alibaba-header .search-input {
    height: 36px;
    padding: 7px 12px;
    font-size: 0.9rem;
  }

  .alibaba-header .search-btn {
    height: 36px;
    min-width: 40px;
    padding: 0 11px;
    font-size: 0;
  }

  .alibaba-header .search-btn i {
    margin-right: 0 !important;
    font-size: 0.95rem;
  }

  .alibaba-header .cart-btn {
    font-size: 1.2rem;
    padding: 4px 6px;
  }

  .alibaba-header .sign-in-link {
    font-size: 0.8rem;
  }

  .alibaba-header .create-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 12px;
  }

  .alibaba-header .user-name {
    display: none;
  }

  .alibaba-header .user-menu-toggle .fa-user {
    margin-right: 0 !important;
  }

  .alibaba-header .language-switcher .language-label {
    display: none;
  }

  .alibaba-header .language-switcher .language-toggle {
    font-size: 0.95rem;
  }

  .alibaba-header .language-switcher .language-toggle .fa-globe {
    margin-right: 0 !important;
  }

  .home-hero-panel {
    padding: 0.9rem;
  }

  .home-hero-title {
    font-size: 1.28rem;
  }

  .home-hero-eyebrow {
    font-size: 0.72rem;
  }

  .catalog-toolbar-card .card-body {
    padding: 0.75rem;
  }

  .catalog-filter-label {
    font-size: 0.72rem;
  }

  .catalog-filter-grid .form-control,
  .catalog-clear-btn {
    height: 40px;
  }

  .product-info {
    padding: 0.8rem 0.8rem 0.65rem;
  }

  .product-actions {
    padding: 0 0.8rem 0.8rem;
  }

  .product-detail-info h2 {
    font-size: 1.45rem;
  }

  .product-detail-section {
    padding: 0.75rem 0.8rem;
  }

  .customer-profile-modal-header {
    padding: 0.85rem 1rem;
  }

  #editProfileModal .modal-dialog {
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
  }

  #editProfileModal .modal-content {
    max-height: calc(100vh - 1rem);
  }

  .customer-profile-modal-footer {
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .customer-profile-primary-btn,
  .customer-profile-secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .customer-profile-upload-stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .customer-profile-upload-controls {
    align-items: center;
  }

  .customer-profile-modal-title {
    font-size: 0.95rem;
  }
}

@supports (height: 100dvh) {
  #editProfileModal .modal-dialog {
    max-height: calc(100dvh - 2rem);
  }

  #editProfileModal .modal-content {
    max-height: calc(100dvh - 2rem);
  }

  @media (max-width: 575.98px) {
    #editProfileModal .modal-dialog {
      max-height: calc(100dvh - 1rem);
    }

    #editProfileModal .modal-content {
      max-height: calc(100dvh - 1rem);
    }
  }
}
