/* Product Container */
.product-container {
  min-height: 100vh;
  background-color: #fff;
  padding: 30px 25px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 30px 0;
  font-size: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #000;
}

.breadcrumb-separator {
  margin: 0 15px;
  color: #999;
  font-weight: 300;
}

.breadcrumb-current {
  color: #000;
  font-weight: 600;
}

/* Product Details */
.product-details {
  padding: 60px 0;
  border-bottom: 1px solid #e5e5e5;
}

/* Product Layout */
.product-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* Product Gallery */
.product-gallery {
  flex: 1;
  max-width: 600px;
}

.main-image-container {
  position: relative;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f8f9fa;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: #000;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.thumbnail-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  flex-shrink: 0;
}

.thumbnail:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: #000;
  transform: translateY(-2px);
}

/* Product Info */
.product-info {
  flex: 1;
  padding-top: 20px;
}

.product-category {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #000;
  letter-spacing: -0.02em;
}

.product-brand {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.stars {
  display: flex;
  gap: 3px;
  color: #ffc107;
  margin-right: 15px;
  font-size: 1.1rem;
}

.rating-count {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.no-rating {
  font-style: italic;
  color: #999;
  font-size: 1rem;
}

/* Product Price */
.product-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: #000;
  letter-spacing: -0.01em;
}

/* Product Description */
.product-description {
  color: #555;
  line-height: 1.8;
  margin-bottom: 35px;
  font-size: 1.1rem;
  max-width: 90%;
}

/* Size Selection */
.product-size-selection {
  margin-bottom: 35px;
  padding: 25px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.product-size-selection h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.size-option {
  padding: 15px 20px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 90px;
  background: #fff;
}

.size-option:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.size-option.active {
  border-color: #000;
  background-color: #000;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.size-option.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.size-name {
  font-weight: 600;
  font-size: 1rem;
}

.stock-status {
  display: block;
  font-size: 0.75rem;
  margin-top: 8px;
  font-weight: 500;
}

.stock-status.low-stock {
  color: #ff6b6b;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 500;
}

/* Product Actions */
.product-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.quantity-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: #f8f9fa;
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #e9ecef;
  color: #000;
}

.quantity-btn:first-child {
  border-right: 2px solid #e5e5e5;
}

.quantity-btn:last-child {
  border-left: 2px solid #e5e5e5;
}

#productQuantity {
  width: 60px;
  height: 50px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  background: #fff;
}

.add-to-cart-btn {
  flex: 1;
  padding: 15px 25px;
  background: #000;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
}

.add-to-cart-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.wishlist-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wishlist-btn:hover {
  border-color: #000;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.active {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: #fff5f5;
}

/* Product Meta */
.product-meta {
  padding: 30px 0;
  border-top: 1px solid #f0f0f0;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.meta-item i {
  margin-right: 15px;
  color: #000;
  font-size: 1.1rem;
}

/* Product Tabs */
.product-tabs {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 40px;
  gap: 10px;
}

.tab-btn {
  padding: 18px 30px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: 1.1rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
  color: #000;
  border-bottom-color: #000;
  background: #fff;
}

.tabs-content {
  min-height: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-description {
  line-height: 1.9;
  color: #555;
  font-size: 1.1rem;
}

/* Reviews Section */
.reviews-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.average-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 16px;
  min-width: 150px;
}

.rating-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #000;
}

.rating-stars {
  font-size: 1.8rem;
  color: #ffc107;
  margin: 15px 0;
}

.total-reviews {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.write-review-btn,
.login-to-review {
  padding: 15px 25px;
  background: #000;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.write-review-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.login-to-review {
  background: #f8f9fa;
  border: 2px solid #e5e5e5;
  color: #666;
}

.login-to-review a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.login-to-review a:hover {
  text-decoration: underline;
}

/* Review Form */
.review-form {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  border: 2px solid #f0f0f0;
}

.review-form h3 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #000;
}

.rating-input {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.rating-star {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-star:hover,
.rating-star.bi-star-fill {
  color: #ffc107;
  transform: scale(1.1);
}

.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 120px;
  transition: border-color 0.3s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #000;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e5e5e5;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #000;
  color: #000;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.review-item {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
}

.review-date {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
}

.review-rating {
  display: flex;
  gap: 2px;
  color: #ffc107;
  font-size: 1.1rem;
}

.review-comment {
  line-height: 1.7;
  color: #555;
  font-size: 1rem;
}

.no-reviews {
  text-align: center;
  padding: 60px;
  color: #666;
  background: white;
  border-radius: 16px;
  border: 2px dashed #e5e5e5;
}

.no-reviews p {
  font-size: 1.1rem;
  margin: 0;
}

/* Shipping Info */
.shipping-info {
  line-height: 1.8;
  color: #555;
  font-size: 1rem;
}

.shipping-info h3 {
  margin-bottom: 20px;
  color: #000;
  font-size: 1.4rem;
  font-weight: 700;
}

.shipping-info h4 {
  margin: 30px 0 15px;
  color: #000;
  font-size: 1.2rem;
  font-weight: 600;
}

.shipping-info ul,
.shipping-info ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.shipping-info li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Related Products */
.related-products {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: #000;
  letter-spacing: -0.02em;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.related-product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.related-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.related-product-image {
  height: 280px;
  overflow: hidden;
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.05);
}

.related-product-info {
  padding: 25px;
}

.related-product-category {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.related-product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.related-product-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-product-name a:hover {
  color: #000;
}

.related-product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #000;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1000;
  border: 1px solid #f0f0f0;
}

.notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 20px 25px;
}

.toast-icon {
  margin-right: 15px;
  color: #28a745;
  font-size: 1.5rem;
}

.toast-message {
  font-weight: 600;
  font-size: 1rem;
  color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-layout {
    gap: 50px;
  }

  .product-gallery {
    max-width: 500px;
  }

  .product-name {
    font-size: 2.2rem;
  }

  .product-price {
    font-size: 2rem;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-layout {
    flex-direction: column;
    gap: 40px;
  }

  .product-gallery {
    max-width: 100%;
  }

  .product-name {
    font-size: 2rem;
  }

  .product-price {
    font-size: 1.8rem;
  }

  .product-actions {
    flex-wrap: wrap;
    gap: 15px;
  }

  .add-to-cart-btn {
    width: 100%;
    order: 3;
  }

  .tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
  }

  .tab-btn {
    padding: 15px 20px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .tabs-content {
    padding: 25px;
  }

  .reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .average-rating {
    align-self: center;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .notification-toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
  }

  .product-details {
    padding: 40px 0;
  }

  .product-name {
    font-size: 1.8rem;
  }

  .product-price {
    font-size: 1.6rem;
  }

  .product-description {
    font-size: 1rem;
  }

  .size-options {
    gap: 10px;
  }

  .size-option {
    min-width: 70px;
    padding: 12px 15px;
  }

  .quantity-selector {
    width: 100%;
    margin-bottom: 15px;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .tabs-content {
    padding: 20px;
  }

  .review-form {
    padding: 20px;
  }

  .review-item {
    padding: 20px;
  }
}
