.product-addon-module {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  padding: 10px;
  box-shadow: unset;
}

.product-addon-module .nav-tabs {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tabs-nav-wrapper {
  flex: 1;
  display: flex;
}

.product-addon-module .nav-tabs .nav-link {
  color: #666;
  font-weight: 500;
  padding: 12px 24px;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.product-addon-module .nav-tabs .nav-link:hover {
  color: #0d6efd;
  border-color: transparent;
}

.product-addon-module .nav-tabs .nav-link.active {
  color: #0d6efd;
  background-color: transparent;
  border-color: transparent transparent #0d6efd transparent;
}

.products-scroll-container {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 18px;
  flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #0d6efd;
  color: #0d6efd;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.products-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.products-wrapper.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.products-wrapper.dragging .product-card {
  pointer-events: none;
}

.products-wrapper::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 320px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #f5f5f5;
  aspect-ratio: 1 / 1;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
}

.discount-ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
  min-width: 80px;
  text-align: center;
}

.discount-ribbon::before {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #c44556 transparent transparent;
}

.options-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #fff;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.options-ribbon svg {
  flex-shrink: 0;
}

.product-info {
  padding: 16px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #0d6efd;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.btn-add-to-cart {
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-add-to-cart svg {
  flex-shrink: 0;
}

.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.quick-view-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.quick-view-body {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 40px;
  padding: 40px;
}

.quick-view-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.gallery-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.gallery-thumbnail {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
  border-color: #ccc;
}

.gallery-thumbnail.active {
  border-color: #000;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-view-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-view-details h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.quick-view-price {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-price-main {
  font-size: 32px;
  font-weight: 700;
  color: #0d6efd;
}

.modal-price-old {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.quick-view-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #333;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}

.option-btn:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.option-btn.active {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-add-to-cart-modal {
  width: 100%;
  padding: 16px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: auto;
}

.btn-add-to-cart-modal:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-add-to-cart-modal svg {
  flex-shrink: 0;
}


@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #f8f9fa;
  }
}

@media (max-width: 768px) {
  .product-addon-module {
    padding: 16px;
  }

  .product-card {
    flex: 0 0 280px;
  }

  .product-image {
    height: 280px;
  }

  .quick-view-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .quick-view-details h2 {
    font-size: 24px;
  }

  .modal-price-main {
    font-size: 28px;
  }
}
