/* =========================================================
   EMILSE MODAS - PRODUCT DETAIL STYLES
   ========================================================= */

/* Breadcrumb */
.breadcrumb {
  background: var(--surface-2);
  padding: var(--space-3) 0;
  font-size: var(--fs-sm);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Product Detail Section */
.product-detail {
  padding: var(--space-6) 0;
}

/* Loading State */
.product-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: var(--space-4);
}

.loading__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.product-error {
  text-align: center;
  padding: var(--space-8);
}

.product-error__icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

.product-error h2 {
  margin-bottom: var(--space-2);
}

.product-error p {
  color: var(--muted);
  margin-bottom: var(--space-5);
}

/* Product Grid */
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

/* ==========================================
   PRODUCT GALLERY
   ========================================== */

.product-gallery {
  position: sticky;
  top: 120px;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: var(--space-4);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--error);
  color: white;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-xl);
}

.product-gallery__thumbs-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: hidden;
  padding-bottom: var(--space-2);
  flex: 1;
}

.product-gallery__main {
  position: relative;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-dark);
  font-size: 1.4rem;
  transition: all var(--duration);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-gallery__arrow--prev {
  left: 10px;
}

.product-gallery__arrow--next {
  right: 10px;
}

.product-gallery__arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(230, 54, 131, 0.3);
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--duration);
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

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

/* ==========================================
   PRODUCT INFO
   ========================================== */

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.product-info__header {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-4);
}

.product-info__category {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.product-info__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

.product-info__sku {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Precio */
.product-info__price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-info__current-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary);
}

.product-info__old-price {
  font-size: var(--fs-lg);
  color: var(--muted);
  text-decoration: line-through;
}

.product-info__discount {
  background: var(--error);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.product-info__description {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--gray-dark);
}

.product-info__fabric {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

/* ==========================================
   PRODUCT OPTIONS
   ========================================== */

.product-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-option__label {
  font-weight: 600;
  font-size: var(--fs-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-option__guide {
  font-weight: 400;
  color: var(--primary);
  font-size: var(--fs-xs);
}

.product-option__selected {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Colores */
.product-option__colors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--duration);
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.color-option::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid white;
}

/* =============================================
   ESTAMPADOS / PATTERNS
   ============================================= */

.product-option--patterns {
  margin-bottom: var(--space-5);
}

.product-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.pattern-option {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--duration);
  background: var(--surface-2);
}

.pattern-option:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.pattern-option.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 140, 166, 0.3);
}

.pattern-option__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pattern-option__name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--space-4) var(--space-2) var(--space-2);
  text-align: center;
  text-transform: capitalize;
}

.pattern-option__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--duration);
}

.pattern-option.active .pattern-option__check {
  opacity: 1;
  transform: scale(1);
}

#selectedPatternName {
  display: block;
  margin-top: var(--space-2);
  font-weight: 500;
  color: var(--primary);
}

/* Responsive patterns */
@media (max-width: 480px) {
  .product-patterns-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }
  
  .pattern-option__name {
    font-size: 10px;
    padding: var(--space-3) var(--space-1) var(--space-1);
  }
}

/* Estampados en tabla mayorista */
.grid-pattern-header {
  text-align: center;
  padding: var(--space-2) !important;
  min-width: 80px;
}

.grid-pattern-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto var(--space-1);
  border: 2px solid var(--border);
}

.grid-pattern-name {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  text-transform: capitalize;
  max-width: 70px;
  margin: 0 auto;
  word-break: break-word;
}

@media (max-width: 768px) {
  .grid-pattern-thumb {
    width: 40px;
    height: 40px;
  }
  
  .grid-pattern-name {
    font-size: 9px;
    max-width: 50px;
  }
}

/* Talles */
.product-option__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.size-option {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration);
  background: var(--surface);
}

.size-option:hover:not(.disabled) {
  border-color: var(--primary);
}

.size-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.size-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Cantidad */
.product-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration);
}

.quantity-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.product-quantity input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-md);
  font-weight: 600;
  -moz-appearance: textfield;
}

.product-quantity input::-webkit-outer-spin-button,
.product-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================
   PRODUCT ACTIONS
   ========================================== */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-actions__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.btn--whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
}

/* ==========================================
   PRODUCT BENEFITS
   ========================================== */

.product-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

.product-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.product-benefit__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.product-benefit strong {
  display: block;
  font-size: var(--fs-sm);
}

.product-benefit p {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */

.related-products {
  padding: var(--space-8) 0;
  background: var(--surface-2);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .product-gallery {
    position: static;
    max-width: 100%;
  }
  
  .product-gallery__main {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .product-info__title {
    font-size: var(--fs-lg);
  }
  
  .product-info__current-price {
    font-size: var(--fs-xl);
  }
  
  /* Gallery thumbs hidden on mobile, arrows visible over main image */
  .product-gallery__thumbs-wrapper {
    display: none;
  }
  
  .product-gallery__arrow {
    width: 36px;
    height: 36px;
  }
  
  .product-gallery__thumb {
    width: 60px;
    height: 80px;
  }
  
  /* Wholesale quick actions - column layout */
  .wholesale-quick-actions {
    flex-direction: column;
  }
  
  .quick-action-btn {
    justify-content: center;
    width: 100%;
  }
  
  /* Hide tooltips on mobile (use hint text instead) */
  .quick-action-btn::after,
  .quick-action-btn::before {
    display: none !important;
  }
  
  .product-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--space-4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    flex-direction: row;
  }
  
  .product-actions .btn {
    flex: 1;
    padding: var(--space-3);
    font-size: var(--fs-sm);
  }
  
  main {
    padding-bottom: 100px;
  }
  
  /* Wholesale grid mobile - keep table structure with scroll */
  .wholesale-grid {
    position: relative;
  }
  
  .wholesale-grid table {
    min-width: 350px;
  }
  
  .wholesale-grid th,
  .wholesale-grid td {
    padding: var(--space-2);
    font-size: 12px;
  }
  
  .grid-qty-input {
    width: 40px;
    height: 32px;
    font-size: 12px;
  }
  
  .grid-color-swatch {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   FULLSCREEN TABLE MODE
   ========================================== */

.grid-expand-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-expand-btn:hover {
  background: var(--secondary-dark);
}

@media (max-width: 768px) {
  .grid-expand-btn {
    display: flex;
  }
}

/* Fullscreen overlay */
.wholesale-grid-fullscreen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 9999;
  padding: 0;
  overflow: auto;
}

.wholesale-grid-fullscreen.active {
  display: flex;
  flex-direction: column;
}

.fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--secondary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.fullscreen-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.fullscreen-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.fullscreen-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.fullscreen-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.fullscreen-body table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.fullscreen-body th,
.fullscreen-body td {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 14px;
}

.fullscreen-body th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.fullscreen-body th:first-child {
  background: var(--secondary-light);
  position: sticky;
  left: 0;
  z-index: 2;
}

.fullscreen-body td:first-child {
  background: var(--surface-2);
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 1;
}

.fullscreen-body .grid-qty-input {
  width: 50px;
  height: 40px;
  font-size: 16px;
}

.fullscreen-body .grid-color-swatch {
  width: 24px;
  height: 24px;
}

.fullscreen-hint {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
}

.fullscreen-hint span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Landscape optimization */
@media (orientation: landscape) and (max-height: 500px) {
  .fullscreen-header {
    padding: 8px 16px;
  }
  
  .fullscreen-body {
    padding: 8px;
  }
  
  .fullscreen-body th,
  .fullscreen-body td {
    padding: 8px 6px;
  }
  
  .fullscreen-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .size-option {
    min-width: 44px;
    height: 44px;
    font-size: var(--fs-sm);
  }
  
  .color-option {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   WHOLESALE / MAYORISTA STYLES
   ========================================================= */

/* Badge Mayorista */
.wholesale-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--secondary), var(--accent-blue));
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.wholesale-badge__icon {
  font-size: 1.1em;
}

/* Mode Selector */
.wholesale-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.wholesale-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-3);
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.wholesale-mode-btn:hover {
  border-color: var(--secondary);
  background: white;
}

.wholesale-mode-btn.active {
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 4px 12px rgba(1, 30, 72, 0.15);
}

.wholesale-mode-btn__title {
  font-weight: 600;
  color: var(--secondary);
  font-size: var(--fs-base);
}

.wholesale-mode-btn__desc {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 2px;
}

/* Wholesale Prices */
.wholesale-prices {
  margin-bottom: var(--space-4);
}

.wholesale-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.wholesale-price__label {
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.wholesale-price__value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--secondary);
}

.wholesale-price__unit {
  font-size: var(--fs-sm);
  color: var(--muted);
}


/* Wholesale Grid Section */
.wholesale-grid-section {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.wholesale-grid__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--secondary);
  margin: 0 0 var(--space-2);
}

.wholesale-grid__subtitle {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

/* Wholesale Grid Table */
.wholesale-grid {
  overflow-x: auto;
  margin-bottom: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.wholesale-grid table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.wholesale-grid th,
.wholesale-grid td {
  padding: var(--space-3);
  text-align: center;
  border: 1px solid var(--border);
}

.wholesale-grid th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
  font-size: var(--fs-sm);
  position: sticky;
  top: 0;
}

.wholesale-grid th:first-child {
  background: var(--secondary-light);
  position: sticky;
  left: 0;
  z-index: 2;
}

.wholesale-grid td:first-child {
  background: var(--surface-2);
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 1;
}

.wholesale-grid__cell {
  position: relative;
}

/* Quantity Input in Grid */
.grid-qty-input {
  width: 60px;
  height: 36px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  transition: all var(--duration) var(--ease);
}

.grid-qty-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 54, 131, 0.15);
}

.grid-qty-input:not(:placeholder-shown):not([value="0"]) {
  border-color: var(--secondary);
  background: rgba(1, 30, 72, 0.05);
}

/* Color swatch in grid header */
.grid-color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Wholesale Summary */
.wholesale-summary {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.wholesale-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}

.wholesale-summary__row:last-of-type {
  border-bottom: none;
}

.wholesale-summary__row--total {
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 2px solid var(--secondary);
  font-size: var(--fs-lg);
}

.wholesale-summary__row--total strong {
  color: var(--secondary);
  font-size: var(--fs-xl);
}

.wholesale-summary__minimum {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 92, 5, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--accent-orange);
}

.wholesale-summary__minimum.hidden {
  display: none;
}

.wholesale-summary__minimum.success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.wholesale-summary__minimum.success .warning-icon::before {
  content: '✓';
}

/* Curva mode - lock certain cells */
.wholesale-grid.curva-mode .grid-qty-input {
  max-width: 50px;
}

.wholesale-grid.curva-mode .grid-qty-input[data-locked="true"] {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

/* ==========================================
   WHOLESALE MINIMUM INFO (simple text)
   ========================================== */

.wholesale-minimum-info {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: var(--space-2) 0 var(--space-4);
}

.wholesale-minimum-info strong {
  color: var(--text);
}

/* ==========================================
   WHOLESALE QUICK ACTIONS (compact buttons)
   ========================================== */

.quick-actions-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.quick-actions-hint strong {
  color: var(--text);
}

/* Hide hint on desktop (tooltips work there) */
@media (min-width: 769px) {
  .quick-actions-hint {
    display: none;
  }
}

.wholesale-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.quick-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Tooltip styles */
.quick-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #1a1a2e;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 200px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

/* Tooltip arrow */
.quick-action-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: #1a1a2e;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 100;
}

/* Show tooltip on hover */
.quick-action-btn:hover::after,
.quick-action-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


.quick-action-btn__price {
  font-weight: 600;
  opacity: 0.9;
}

/* Add button (primary) */
.quick-action-btn--add {
  background: linear-gradient(135deg, #e63683 0%, #d32f6a 100%);
  color: white;
}

.quick-action-btn--add:hover {
  background: linear-gradient(135deg, #d32f6a 0%, #c12860 100%);
}

/* Remove button */
.quick-action-btn--remove {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
}

.quick-action-btn--remove:hover {
  background: linear-gradient(135deg, #ee5a5a 0%, #dd4a4a 100%);
}

/* Mix button */
.quick-action-btn--mix {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
  color: white;
}

.quick-action-btn--mix:hover {
  background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
}

/* Clear button */
.quick-action-btn--clear {
  background: linear-gradient(135deg, #78909c 0%, #607d8b 100%);
  color: white;
}

.quick-action-btn--clear:hover {
  background: linear-gradient(135deg, #607d8b 0%, #546e7a 100%);
}


/* ==========================================
   WHOLESALE PROGRESS BAR (Bottom fixed)
   ========================================== */

.wholesale-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #0a192f 100%);
  color: white;
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.wholesale-progress-bar.hidden {
  transform: translateY(100%);
}

.wholesale-progress-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.wholesale-progress-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.wholesale-progress-bar__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  opacity: 0.8;
}

.wholesale-progress-bar__icon {
  font-size: 1.2em;
}

.wholesale-progress-bar__amount {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.wholesale-progress-bar__progress-section {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wholesale-progress-bar__track {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: visible;
}

.wholesale-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.wholesale-progress-bar__fill.complete {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.wholesale-progress-bar__marker {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  transform: translateX(50%);
}

.wholesale-progress-bar__status {
  font-size: var(--fs-xs);
}

.wholesale-progress-bar__status .status-warning {
  color: #FFD700;
}

.wholesale-progress-bar__status .status-success {
  color: #8BC34A;
}

.wholesale-progress-bar__status .status-info {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.wholesale-progress-bar__actions {
  display: flex;
  gap: var(--space-2);
}

.wholesale-progress-bar__actions .btn {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .wholesale-mode-selector {
    grid-template-columns: 1fr;
  }
  
  .wholesale-mode-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
    text-align: left;
  }
  
  .wholesale-grid {
    font-size: var(--fs-sm);
  }
  
  .grid-qty-input {
    width: 50px;
    height: 32px;
  }
  
  
  .wholesale-quick-btn {
    flex-direction: row;
    text-align: left;
    gap: var(--space-3);
  }
  
  .wholesale-quick-btn__icon {
    font-size: 1.5rem;
  }
  
  .wholesale-quick-btn__price {
    margin-left: auto;
    margin-top: 0;
  }
  
  .wholesale-progress-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  
  .wholesale-progress-bar__info {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .wholesale-progress-bar__actions {
    justify-content: stretch;
  }
  
  .wholesale-progress-bar__actions .btn {
    flex: 1;
  }
}

/* Add bottom padding when progress bar is visible */
body.has-wholesale-bar main {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  body.has-wholesale-bar main {
    padding-bottom: 160px;
  }
}

