@import "./acrticle.css";
body {
  background: #f5f5f5;
}
.product-detail-container {
  max-width: 85rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  padding-bottom: 10rem;
}
.product-wrapper {
  display: flex;
  gap: 3rem;
  background: white;
  /* border-radius: 0.75rem; */
  padding: 2rem;
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
}
.don-vi {
  margin-left: 0.375rem;
  color: #667085;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}
.product-price {
  color: #006fb9;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.panel-wrapper {
  width: 50rem;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all ease 0.3s;
}
.product-detail {
  margin-top: 2rem;
  padding: 2rem;
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
}
.panel-wrapper.is-active {
  position: relative;
  opacity: 1;
  z-index: 1;
}
/* Gallery Section */
.product-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 50rem;
}
.product-detail {
}

.gallery-swiper {
  flex: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f5f5f5;
  height: 30rem;
  margin-bottom: 2rem;
}

.image-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30rem;
  background: #f5f5f5;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbs-swiper {
  height: 5rem;
}

.gallery-thumbs-swiper .swiper-slide {
  min-height: auto;
  height: 100%;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #667eea;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #667eea;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.product-sku {
  font-size: 0.875rem;
  color: #666;
}

.product-sku span {
  font-weight: 600;
  color: #667eea;
}

.product-short-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Options */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
}

.option-buttons {
  display: flex;
  gap: 0.75rem;
}

.option-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.option-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.option-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Quantity */
.quantity-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  min-width: 4rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
}

.qty-btn {
  display: block;
  background: #f5f5f5;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #667eea;
  font-weight: bold;
}

.qty-btn:hover {
  background: #e8e8e8;
}

.qty-input {
  border: none;
  width: 3rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.qty-input:focus {
  outline: none;
}

.stock-info {
  font-size: 0.85rem;
  color: #999;
  margin-left: auto;
}

/* Sticky Bottom Bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.bottom-bar-content {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #667eea;
}

.shipping-section {
  flex: 1;
}

.shipping-info {
  font-size: 0.85rem;
  color: #999;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-radius: 0.375rem;
}

.btn-add-to-cart {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-add-to-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-add-to-cart:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 639px) {
  .don-vi {
    margin-left: 0.25rem;
    font-size: 0.875rem;
  }
  .product-price {
    margin-top: 0.75rem;
    font-size: 1.5rem;
  }
  .gallery-thumbs-swiper {
    padding: 0 0.75rem;
  }
  .product-detail-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
  .product-info {
    padding: 0 0.75rem;
  }
  .panel-wrapper {
    width: 100%;
  }
  .product-gallery {
    width: 100%;
  }
  .product-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    padding: 0;
  }
  .gallery-swiper {
    margin-bottom: 1rem;
    border-radius: 0;
    height: 25rem;
  }
  .product-title {
    font-size: 1.5rem;
  }

  .option-buttons {
    gap: 0.5rem;
  }

  .option-btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }

  .bottom-bar-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .btn-add-to-cart {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}
