.ea .ea-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* Sidebar fixed positioning */
html.ea,
body.ea {
  display: flex;
}

.ea .wrapper {
  width: 100%;
  display: flex;
}

.ea .sidebar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1030;
  overflow: hidden;
  width: var(--sidebar-width, 256px);
}

.ea .sidebar {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.ea .main-content {
  margin-left: var(--sidebar-width, 256px);
  flex: 1;
}

/* Column width optimization */
.ea table td[data-column="createdAt"],
.ea table td[data-column="updatedAt"],
.ea table td[data-column="addedAt"],
.ea table td[data-column="publishedAt"],
.ea table td[data-column="slug"],
.ea table td[data-column="sku"],
.ea table td[data-column="price"],
.ea table td[data-column="basePrice"],
.ea table td[data-column="stockQuantity"],
.ea table td[data-column="reserved"],
.ea table td[data-column="position"],
.ea table td[data-column="isPrimary"] {
  white-space: nowrap;
  width: auto;
}

.ea table td[data-column="title"],
.ea table td[data-column="subtitle"],
.ea table td[data-column="name"] {
  max-width: 300px;
  white-space: normal;
}

.ea table td[data-column="categories"],
.ea table td[data-column="variants"],
.ea table td[data-column="productCategories"] {
  max-width: 250px;
  white-space: normal;
}

/* Product Preview Styles */
.product-preview-wrapper {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  margin: 1.5rem 0;
}

.preview-container {
  padding: 1.5rem;
  background: white;
  border-radius: 0.25rem;
}

.preview-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.75rem;
}

.preview-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.preview-content {
  margin-bottom: 1rem;
}

.product-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem 0;
}

.product-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin: 0 0 1rem 0;
}

.product-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.price-section,
.stock-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-label,
.stock-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #28a745;
}

.stock-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.stock-value.in-stock {
  color: #28a745;
}

.stock-value.out-of-stock {
  color: #dc3545;
}

.text-muted {
  color: #6c757d !important;
}

/* Gallery Section */
.preview-gallery-section {
  margin-bottom: 2rem;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.gallery-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  min-height: 200px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #f8f9fa;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay .btn {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  min-width: 45px;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #6c757d;
}

.gallery-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Description, Categories, Variants, Reviews Sections */
.preview-description-section,
.preview-categories-section,
.preview-variants-section,
.preview-reviews-section {
  margin-bottom: 2rem;
}

.preview-description-section h3,
.preview-categories-section h3,
.preview-variants-section h3,
.preview-reviews-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

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

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-secondary {
  background-color: #6c757d;
}

.variants-list {
  display: grid;
  gap: 0.75rem;
}

.variant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.variant-name {
  font-weight: 600;
  color: #333;
}

.variant-options {
  color: #6c757d;
  font-size: 0.85rem;
}

.variant-stock {
  color: #495057;
  font-weight: 600;
}

/* Reviews */
.reviews-list {
  display: grid;
  gap: 1.5rem;
}

.review-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.25rem;
  border-left: 3px solid #007bff;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-rating i {
  color: #ffc107;
}

.review-rating i.fa-star:not(.filled) {
  color: #dee2e6;
}

.rating-value {
  font-size: 0.85rem;
  color: #6c757d;
}

.review-title {
  margin: 0.5rem 0;
  font-weight: 600;
  color: #333;
}

.review-content {
  margin: 0.5rem 0;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
}

.review-meta {
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .preview-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .product-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Media Upload Section */
.media-upload-section {
  margin: 1.5rem 0;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
}

.upload-zone {
  border: 2px dashed #007bff;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.upload-zone:hover {
  border-color: #0056b3;
  background-color: #f0f7ff;
}

.upload-zone.drag-over {
  border-color: #0056b3;
  background-color: #e7f1ff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.upload-zone i {
  font-size: 2.5rem;
  color: #007bff;
  display: block;
  margin-bottom: 0.5rem;
}

.upload-zone p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

#upload-progress {
  margin-top: 1rem;
}

.progress {
  height: 1.5rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #28a745;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}
/* Image Zoom Modal */
.image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.image-zoom-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.image-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10000;
}

.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.4);
}