/* ========================================
   Product Template Specific Styles
   ======================================== */

/* Ensure all product grid items stretch to full height */
.shein-grid > *,
.trend-grid > *,
.premium-display-grid > *,
.premium-display-row-2 > *,
.deal-products > *,
.collection-3-products > * {
  height: 100%;
}

/* Premium Detail Template */
.template-premium-detail {
  padding: 40px 24px;
}

.premium-detail-container {
  display: flex;
  gap: 40px;
  background: white;
}

.premium-detail-image {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  min-height: 400px;
}

.premium-detail-image .image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.premium-detail-content {
  flex: 1;
  padding: 20px 0;
}

.premium-detail-content .product-name {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.premium-detail-content .product-price {
  font-size: 24px;
  font-weight: 600;
  color: #0891b2;
  margin: 0 0 16px 0;
}

.premium-detail-content .product-description {
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.detail-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-buttons .btn-primary {
  padding: 12px 24px;
  background: #0891b2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  flex-shrink: 0;
}

.detail-buttons .btn-outline {
  padding: 12px 24px;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .detail-buttons .btn-primary,
  .detail-buttons .btn-outline {
    font-size: 13px;
    padding: 10px 18px;
  }
}

.key-features h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.key-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-features li {
  color: #6b7280;
  font-size: 14px;
}

/* Shein Display Template */
.template-shein-display {
  padding: 40px 24px;
}

.shein-grid {
  display: grid;
  align-items: stretch;
}

.shein-grid > * {
  height: 100%;
}

/* Premium Tabs Template */
.template-premium-tabs {
  padding: 40px 24px;
}

.premium-tabs-container {
  display: flex;
  gap: 24px;
  background: white;
  align-items: stretch;
}

.featured-image-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Variants inside featured image section */
.featured-image-section .product-variants {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 12px 12px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.featured-image-section .product-variants::-webkit-scrollbar {
  height: 4px;
}

.featured-image-section .product-variants::-webkit-scrollbar-track {
  background: transparent;
}

.featured-image-section .product-variants::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.featured-image-section .variant-chip {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.featured-image-section .variant-chip:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.featured-image-section .variant-chip.active {
  background: #0891b2;
  border-color: #0891b2;
  color: white;
}

.featured-image-section .variant-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.featured-image-section .variant-color-dot:hover {
  transform: scale(1.15);
}

.featured-image-section .variant-color-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #0891b2, 0 2px 6px rgba(0, 0, 0, 0.2);
}

.featured-image {
  width: 100%;
  flex: 1;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.featured-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
}

.featured-label .label-title {
  display: block;
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.featured-label .label-subtitle {
  display: block;
  color: #0891b2;
  font-weight: 600;
  font-size: 18px;
}

.products-list-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.product-list-item .product-thumb {
  width: 70px;
  height: 70px;
  background: #e5e7eb;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.product-list-item .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-item .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-list-item .product-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-list-item .product-price {
  font-size: 14px;
  font-weight: 600;
  color: #0891b2;
}

.product-list-item .product-variants {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-list-item .product-variants::-webkit-scrollbar {
  display: none;
}

.product-list-item .product-add-btn-small {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* Featured image section add to cart button */
.featured-image-section .featured-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  background: var(--primary-color, #0891b2);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s;
}

.featured-image-section .featured-add-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .featured-image-section .featured-add-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* Trend Products Template */
.template-trend-products {
  padding: 40px 24px;
  background: #f9fafb;
}

.trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.trend-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.trend-dots {
  display: flex;
  gap: 8px;
}

.trend-dots .dot {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
}

.trend-dots .dot.active {
  background: #0891b2;
  width: 24px;
  border-radius: 4px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Premium Display Template */
.template-premium-display {
  padding: 40px 24px;
}

.premium-display-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.premium-product-item {
  display: flex;
  flex-direction: column;
}

.color-variants {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding: 0 12px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
}

.premium-display-row-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Deal of the Day Template */
.template-deal-of-day {
  padding: 0;
}

.deal-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-info {
  color: white;
}

.deal-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.deal-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.deal-subtitle {
  margin: 0;
  opacity: 0.8;
}

.countdown-timer {
  display: flex;
  gap: 16px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  background: #0891b2;
  color: white;
  font-size: 24px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
}

.countdown-label {
  color: white;
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.8;
}

.deal-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
  align-items: stretch;
  background: white;
}

/* Collection 2 Template */
.template-collection-2 {
  padding: 40px 24px;
}

.collection-container {
  display: flex;
  gap: 40px;
}

.collection-image {
  flex: 1;
  min-height: 500px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.collection-overlay-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 500;
  color: #1f2937;
  font-size: 14px;
}

.collection-products {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.collection-products-list {
  display: flex;
  flex-direction: column;
}

.collection-label {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.collection-description {
  color: #6b7280;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.collection-product-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.collection-product-item .product-thumb {
  width: 100px;
  height: 100px;
  background: #e5e7eb;
  border-radius: 8px;
  flex-shrink: 0;
}

.collection-product-item .product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-product-item .product-name {
  font-weight: 500;
  color: #1f2937;
}

.collection-product-item .product-price {
  font-weight: 600;
  color: #0891b2;
  font-size: 18px;
}

/* Collection 3 Template */
.template-collection-3 {
  padding: 40px 24px;
}

.collection-3-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.collection-3-top {
  text-align: center;
  padding: 0 40px;
}

.collection-3-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.collection-product-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.collection-product-card .product-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
}

.collection-product-card .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.collection-product-card .product-name {
  font-weight: 500;
  color: #1f2937;
  font-size: 14px;
  flex: 1;
}

.collection-product-card .product-price {
  font-weight: 600;
  color: #0891b2;
  margin-top: auto;
}

.collection-3-image {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.collection-3-image .collection-overlay-text {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  text-align: center;
  max-width: 80%;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Featured add to cart button in collection-3 */
.collection-3-image .featured-add-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.collection-3-image .featured-add-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Collection card image */
.collection-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  flex: 1;
}

/* ========================================
   Variants Styling for Templates
   ======================================== */

/* Variants container in templates */
.collection-product-item .product-variants,
.collection-product-card .product-variants {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.collection-product-card .product-variants {
  justify-content: flex-end;
}

[dir="rtl"] .collection-product-card .product-variants {
  justify-content: flex-start;
}

.collection-product-item .product-variants::-webkit-scrollbar,
.collection-product-card .product-variants::-webkit-scrollbar {
  height: 4px;
}

.collection-product-item .product-variants::-webkit-scrollbar-track,
.collection-product-card .product-variants::-webkit-scrollbar-track {
  background: transparent;
}

.collection-product-item .product-variants::-webkit-scrollbar-thumb,
.collection-product-card .product-variants::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

/* Variant chip styling */
.product-list-item .variant-chip,
.collection-product-item .variant-chip,
.collection-product-card .variant-chip {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-list-item .variant-chip:hover,
.collection-product-item .variant-chip:hover,
.collection-product-card .variant-chip:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.product-list-item .variant-chip.active,
.collection-product-item .variant-chip.active,
.collection-product-card .variant-chip.active {
  background: #0891b2;
  border-color: #0891b2;
  color: white;
}

/* Variant color dots */
.product-list-item .variant-color-dot,
.collection-product-item .variant-color-dot,
.collection-product-card .variant-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-list-item .variant-color-dot:hover,
.collection-product-item .variant-color-dot:hover,
.collection-product-card .variant-color-dot:hover {
  transform: scale(1.15);
}

.product-list-item .variant-color-dot.active,
.collection-product-item .variant-color-dot.active,
.collection-product-card .variant-color-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #0891b2, 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Add to Cart Button for Templates
   ======================================== */

/* Generic add to cart button */
.product-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
  width: 100%;
}

.product-add-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Small add to cart button (icon only) for list items */
.product-add-btn-small {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  margin-top: 8px;
  margin-left: auto;
}

/* Product info layout adjustment for button */
.product-list-item .product-info,
.collection-product-item .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ========================================
   Responsive - Media Queries (Storefront)
   ======================================== */

/* Basic Product Grid */
.preview-product-grid {
  padding: 40px 24px;
}

.preview-product-grid .section-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #1f2937;
}

.product-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.product-grid > * {
  height: 100%;
}

/* Mobile horizontal scroll mode */
.preview-product-grid.mobile-scroll .product-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.preview-product-grid.mobile-scroll .product-grid > * {
  flex: 0 0 70%;
  scroll-snap-align: start;
}

/* Tablet responsive - 768px */
@media (max-width: 768px) {
  .preview-product-grid {
    padding: 30px 16px;
  }

  .preview-product-grid .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  /* Default 3 columns on tablet */
  .preview-product-grid .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
  }

  /* Support data attributes for responsive columns */
  .preview-product-grid[data-tablet-columns="2"] .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .preview-product-grid[data-tablet-columns="3"] .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .preview-product-grid[data-tablet-columns="4"] .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .premium-detail-container,
  .collection-container {
    flex-direction: column;
  }
  
  .premium-tabs-container {
    flex-direction: column;
  }
  
  .premium-tabs-container .featured-image-section {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  
  .premium-tabs-container .featured-image {
    min-height: 200px;
    aspect-ratio: 16/9;
  }
  
  .premium-tabs-container .products-list-section {
    width: 100%;
  }
  
  .trend-grid,
  .deal-products {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .premium-display-grid,
  .premium-display-row-2,
  .collection-3-products {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .deal-banner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .premium-tabs-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .tabs-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile responsive - 480px */
@media (max-width: 480px) {
  .preview-product-grid {
    padding: 20px 12px;
  }

  .preview-product-grid .section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  /* Default 2 columns on mobile */
  .preview-product-grid .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  /* Support data attributes for responsive columns */
  .preview-product-grid[data-mobile-columns="1"] .product-grid {
    grid-template-columns: 1fr !important;
  }

  .preview-product-grid[data-mobile-columns="2"] .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .preview-product-grid[data-mobile-columns="3"] .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Enable horizontal scroll mode on mobile when specified */
  .preview-product-grid.mobile-scroll .product-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
  }

  .preview-product-grid.mobile-scroll .product-grid > * {
    flex: 0 0 70%;
    min-width: 140px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .template-premium-detail,
  .template-shein-inspired,
  .template-trend-showcase,
  .template-premium-display,
  .template-flash-deals,
  .template-premium-tabs,
  .template-collection-1,
  .template-collection-2,
  .template-collection-3 {
    padding: 20px 12px;
  }

  .premium-detail-info h2 {
    font-size: 20px;
  }

  .trend-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .countdown-item {
    padding: 8px 12px;
  }

  .countdown-item .value {
    font-size: 18px;
  }

  .collection-hero h2 {
    font-size: 18px;
  }

  /* Collection 3 - Mobile storefront */
  .collection-3-container {
    gap: 12px;
  }

  .collection-3-top {
    padding: 0;
  }

  .collection-3-top .section-title {
    font-size: 16px;
  }

  .collection-3-top .collection-description {
    font-size: 11px;
    line-height: 1.3;
  }

  .collection-3-products {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .collection-product-card {
    flex: 0 0 140px;
    min-width: 140px;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 180px;
  }

  .collection-product-card .product-thumb {
    margin-bottom: 6px;
  }

  .collection-product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .collection-product-card .product-name {
    font-size: 10px;
    flex: 1;
  }

  .collection-product-card .product-price {
    font-size: 11px;
  }
  
  .collection-product-card .product-variants {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  
  .collection-product-card .product-add-btn {
    width: 100%;
    margin-top: auto;
    padding: 8px;
    font-size: 11px;
  }

  .collection-3-image {
    height: 150px;
    border-radius: 8px;
  }

  .collection-3-image .collection-overlay-text {
    font-size: 11px;
    bottom: 50px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    max-width: 85%;
    line-height: 1.3;
  }
  
  .collection-3-image .featured-add-btn {
    padding: 8px 16px;
    font-size: 12px;
    bottom: 10px;
  }
}

/* ========================================
   Product Grid Tabs
   ======================================== */

.product-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

/* Filled variant (default) */
.product-tabs-bar.variant-filled {
  padding: 6px;
  background: #f3f4f6;
  border-radius: 10px;
}

/* Underlined variant */
.product-tabs-bar.variant-underlined {
  padding: 0;
  background: transparent;
  border-bottom: 2px solid #e5e7eb;
  border-radius: 0;
  gap: 0;
}

/* Outlined variant */
.product-tabs-bar.variant-outlined {
  padding: 0;
  background: transparent;
  gap: 10px;
}

.product-tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-tab-btn:hover {
  opacity: 0.85;
}

/* Filled variant buttons */
.variant-filled .product-tab-btn {
  box-shadow: none;
}

.variant-filled .product-tab-btn.active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Underlined variant buttons */
.variant-underlined .product-tab-btn {
  padding: 12px 24px;
  margin-bottom: -2px;
  background: transparent !important;
}

.variant-underlined .product-tab-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.03) !important;
}

/* Outlined variant buttons */
.variant-outlined .product-tab-btn {
  background: transparent;
}

.variant-outlined .product-tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variant-outlined .product-tab-btn.active {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive tabs */
@media (max-width: 768px) {
  .product-tabs-bar {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .product-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .product-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .product-tabs-bar {
    gap: 4px;
    margin-bottom: 16px;
  }

  .product-tabs-bar.variant-underlined {
    border-bottom: none;
  }

  .product-tab-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Mobile font size for add to cart button */
@media (max-width: 768px) {
  .product-add-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}

