:root {
  --primary: #0d6efd;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --background: #f8f9fa;
  --border: #dee2e6;
  --text: #212529;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left h1 {
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap; /* Prevent wrapping of buttons */
}

/* Header Button Styles */
.btn-vendor {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  white-space: nowrap;
}

.btn-view {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  white-space: nowrap;
}

.notification {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  min-width: 20px;
  text-align: center;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

/* Button Styles */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  color: white;
  font-weight: 500;
}

/* Gradient background buttons */
.btn-section {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-category {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-brand {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.btn-size {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-unit {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Hover effects */
.btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Quick Actions container */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.order-form {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 4fr;
  gap: 1rem;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.left-side {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
}
.left-side .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.order-info {
  display: flex;
  gap: 2rem;
  color: var(--text);
  font-size: 0.875rem;
}

.product-type {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.search-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.form-select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
}

.totals-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  color: #666;
}

.tax-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.grand-total {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.description-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
}

.tool-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  border-radius: 4px;
}

.tool-btn:hover {
  background: #e9ecef;
}

.description-editor {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  resize: vertical;
}

.remove-btn {
  background: #ef4444;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
}

/* Add Button Styles */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #2563eb; /* Primary blue color */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 200px;
}

.add-btn i {
  font-size: 0.875rem;
}

.add-btn:hover {
  background-color: #1d4ed8; /* Darker blue on hover */
}

.add-btn:active {
  background-color: #1e40af; /* Even darker when clicked */
  transform: translateY(1px);
}

/* Disabled state */
.add-btn:disabled {
  background-color: #93c5fd;
  cursor: not-allowed;
  opacity: 0.7;
}
.product-size-color {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .order-form {
    grid-template-columns: 1fr;
  }
  .page-header {
    padding: 1rem;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .header-right::-webkit-scrollbar {
    height: 4px;
  }

  .header-right::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
  }

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

  .totals-section {
    grid-template-columns: 1fr;
  }

  .tax-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .grand-total {
    margin-left: 0;
    width: 100%;
  }

  .add-btn {
    padding: 0.75rem 1rem; /* Larger touch target on mobile */
    width: 100%; /* Full width on mobile */
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header-left h1 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.813rem;
  }

  .add-btn {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }

  .add-btn i {
    font-size: 0.8125rem;
  }
}

/* Button container/wrapper if needed */
.button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  gap: 0.75rem;
}

/* Loading state */
.add-btn.loading {
  position: relative;
  color: transparent;
}

.add-btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 0.75s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

.product-variants {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.variant-header {
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.variant-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}
.remove-variant-btn {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}
.remove-variant-btn button {
  background: #fee2e2;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: red;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.size-group {
  background: #fee2e2;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.size-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e5e7eb;
}

.size-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.color-variants {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
}

.color-select-group {
  display: grid;
  grid-template-columns: 5fr 5fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.price-group {
  display: grid;
  grid-template-columns: 5fr 5fr 1fr;
  gap: 1rem;
}

/* Buttons */
.add-size-btn,
.add-color-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.add-size-btn {
  background: #2563eb;
  color: white;
  border: none;
}

.add-color-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-color-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.add-color-btn i {
  font-size: 0.875rem;
}

/* .remove-color-btn {
        background: #fee2e2;
        color: #dc2626;
        border: none;
        border-radius: 6px;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
      } */

/* Form Elements */
.form-select,
.form-input {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

.form-input:read-only {
  background: #f3f4f6;
}

/* Hover States */
.add-size-btn:hover {
  background: #1d4ed8;
}

.add-color-btn:hover {
  background: #e5e7eb;
}

.remove-color-btn:hover {
  background: #fecaca;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .size-header {
    grid-template-columns: 1fr;
  }

  .color-select-group {
    grid-template-columns: 1fr auto;
  }

  .remove-color-btn {
    height: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.color-item {
  animation: fadeIn 0.3s ease;
}

/* Color Picker Styles */
.color-picker-wrapper {
  position: relative;
  flex: 1;
}

.color-select {
  width: 100%;
  padding-right: 2.5rem; /* Space for color preview */
}

.color-preview {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* Color Item Animation */
.color-item {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.totals-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.totals-container {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.total-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.total-item label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.total-item input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background: white;
  transition: all 0.2s;
}

.total-item.highlight input {
  background: #f8fafc;
  border-color: #2563eb;
  font-weight: 600;
  color: #1f2937;
}

/* Tax Section Styles */
.tax-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tax-options {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem;
  background: #f3f4f6;
  border-radius: 8px;
}

.tax-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.tax-toggle input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  cursor: pointer;
}

.tax-toggle input[type="radio"]:checked {
  border-color: #2563eb;
  background: #2563eb;
}

.tax-toggle input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4b5563;
}

.tax-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Read-only inputs */
input[readonly] {
  background: #f3f4f6;
  cursor: default;
}

/* Hover & Focus states */
input:not([readonly]):hover {
  border-color: #9ca3af;
}

input:not([readonly]):focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .totals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .totals-section {
    padding: 1rem;
  }

  .totals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tax-amounts {
    grid-template-columns: 1fr;
  }

  .tax-options {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Animation for updates */
@keyframes highlight {
  0% {
    background-color: #dbeafe;
  }
  100% {
    background-color: #f8fafc;
  }
}

.highlight input.updated {
  animation: highlight 1s ease;
}

.variants-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.variant-section {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  animation: slideDown 0.3s ease;
}

.variant-header {
  margin-bottom: 1.25rem;
}

.variant-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.colors-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-row {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.color-controls {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.add-size-btn,
.add-color-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.add-size-btn {
  background: #2563eb;
  color: white;
  border: none;
  width: 100%;
  margin-top: 1rem;
}

.add-color-btn {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px dashed #d1d5db;
  margin-top: 0.5rem;
}

.remove-color-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

/* Form Elements */
.form-select,
.form-input {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Hover States */
.add-size-btn:hover {
  background: #1d4ed8;
}

.add-color-btn:hover {
  background: #e5e7eb;
}

.remove-color-btn:hover {
  background: #fecaca;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .variant-controls {
    grid-template-columns: 1fr;
  }

  .color-controls {
    grid-template-columns: 1fr;
  }

  .remove-variant-btn,
  .remove-color-btn {
    width: 100%;
    height: 38px;
  }
}

/* First Variant Styles */
.first-variant .variant-controls {
  grid-template-columns: repeat(3, 1fr); /* No space for delete button */
}

.first-color .color-controls {
  grid-template-columns: 2fr 1fr; /* No space for delete button */
}

.variant-section:not(.first-variant) .variant-controls {
  grid-template-columns: repeat(3, 1fr) auto; /* Space for delete button */
}

.color-row:not(.first-color) .color-controls {
  grid-template-columns: 2fr 1fr auto; /* Space for delete button */
}

/* Animation for new elements */
.variant-section:not(.first-variant),
.color-row:not(.first-color) {
  animation: slideDown 0.3s ease;
}

.select-filter-container {
  position: relative;
  width: 100%;
}

.select-wrapper {
  position: relative;
}

.search-trigger {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.search-trigger i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: all 0.2s ease;
}

.supplier-search {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  background: white;
}

.supplier-search.active {
  cursor: text;
}

/* Animation for icon rotation */
.toggle-icon.rotate {
  transform: translateY(-50%) rotate(180deg);
}

.supplier-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.supplier-list {
  max-height: 250px;
  overflow-y: auto;
}

.supplier-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.supplier-item:hover {
  background-color: #f8f9fa;
}

.supplier-name {
  font-size: 14px;
  color: #333;
}

.add-new-btn {
  padding: 8px;
  border-top: 1px solid #eee;
}

.add-new-btn button {
  width: 100%;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.add-new-btn button:hover {
  background: #e9ecef;
}

/* Scrollbar styling */
.supplier-list::-webkit-scrollbar {
  width: 6px;
}

.supplier-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.supplier-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}

@media (max-width: 1800px) {
  .form-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
input[readonly] {
  background: #ffffff;
}

.remove-color-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-color-btn:hover {
  color: #c82333;
}

.color-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* First color row shouldn't show delete button */
.color-row:first-child .remove-color-btn {
  display: none;
}

.variant-section {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.remove-variant-btn {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.remove-variant-btn button {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.remove-variant-btn button:hover {
  color: #c82333;
}

.variant-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Left Side Sticky Container */
.left-side {
  position: sticky;
  top: 1.5rem;
  height: fit-content;
  padding-right: 1rem;
  z-index: 100;
}

/* Filters Container */
.filters-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

/* Ensure dropdowns appear above other elements */
.supplier-dropdown {
  z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .left-side {
    position: relative;
    top: 0;
    padding-right: 0;
    margin-bottom: 1rem;
  }
}
