/* Product Section Layout */
.product-section {
display: flex;
    gap: 56px;
    align-items: flex-start;
    max-width: 1200px;

    padding: 20px;
}

/* Breadcrumb Styling with Box Shadow */
.breadcrumb {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.breadcrumb-item a {
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #007bff !important;
}

/* Product Images Column - Left Side */
.product-images {
  flex: 0 0 55%;
  display: flex;
  gap: 15px;
  flex-direction: row; /* Changed to row for horizontal layout */
}

/* Thumbnail Images Container - Left Side Vertical */
.product-thumbs-container {
  display: flex;
  flex-direction: column; /* Vertical stack */
  gap: 10px;
  width: 100px; /* Fixed width for thumbnails column */
  flex-shrink: 0;
}

/* Individual Thumbnail - Vertical Stack */
.product-thumb {
  width: 90px;
  height: 90px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-thumb.active {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transform: translateX(3px);
}

.product-thumb:hover {
  border-color: #007bff;
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 5px;
}

/* Main Product Image Container - Right Side of Thumbnails */
.main-image-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Main Product Image Container with Full Cover */
.zoom-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  margin-bottom: 5px; /* Small gap from offer section */
}

.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  padding: 10px;
}

/* NEW: Offer Section - Below Main Image */
.offer-section {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.offer-section h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-section p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.offer-section .offer-badge {
  position: absolute;
  top: -5px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 0 0 8px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Product Status Badge - Below Offer Section */
.product-status {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.status-in-stock {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-out-of-stock {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-locked {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

/* Product Info Column - Right Side - UPDATED FOR BETTER ALIGNMENT */
.product-info {
  flex: 0 0 42%;
  padding: 0 0 0 20px; /* Removed right padding, kept left for gap from images */
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Move content slightly to the left to align better with breadcrumb */
  margin-left: -15px;
}

/* Product Title with Wishlist Button Container */
.product-title-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.product-info h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0;
  flex: 1; /* Allow title to take available space */
}

/* Wishlist Button Styling */
.wishlist-btn {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevent shrinking */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.wishlist-btn.active {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.wishlist-btn i {
  font-size: 18px;
  color: #999;
  transition: color 0.3s ease;
}

.wishlist-btn:hover i,
.wishlist-btn.active i {
  color: #dc3545;
}

.wishlist-btn.active i {
  color: #fff;
}

/* Rating Section */
.rating-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffc107;
  font-size: 16px;
}

.rating span {
  color: #666;
  font-size: 14px;
  margin-left: 5px;
}

/* Price Section */
.price-section {
  margin: 15px 0;
}

.price-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.price-section .d-flex {
  gap: 15px;
}

.old-price {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
}

.discount {
  background-color: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* Product Description */
.product-description {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-description p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Specifications Section */
.specs-section {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.specs-section h6 {
  margin-bottom: 8px;
  color: #444;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.specs-section h6:last-child {
  margin-bottom: 0;
}

/* Quantity and Action Buttons */
.quantity-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-quantity {
  background-color: #f8f9fa;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-quantity:hover:not(:disabled) {
  background-color: #e9ecef;
}

.btn-quantity:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  font-weight: 600;
}

.quantity-input:focus {
  outline: none;
  background-color: #f8f9fa;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-cart, .btn-buy-now {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cart {
  background-color: #fff;
  color: #333;
  border: 2px solid #333;
}

.btn-cart:hover:not(:disabled) {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-buy-now {
  background-color: #dc3545;
  color: #fff;
  border: 2px solid #dc3545;
}

.btn-buy-now:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-cart:disabled, .btn-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Zoom Functionality */
.zoom-lens {
  position: absolute;
  border: 2px solid #007bff;
  border-radius: 50%;
  cursor: crosshair;
  width: 150px;
  height: 150px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.2);
}

.zoom-container:hover .zoom-lens {
  opacity: 1;
}

/* Similar Products Section - Enhanced */
.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;
}

.product-card .rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #ffc107;
  font-size: 14px;
  margin-bottom: 12px;
}

.product-card .rating span {
  color: #666;
  font-size: 12px;
}

.product-card .d-flex {
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.product-card h5:last-of-type {
  font-size: 1.3rem;
  color: #007bff;
  font-weight: 700;
  margin: 0;
}

.product-card .old-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.product-card .discount {
  background-color: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Newsletter Section */
.newsletter-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 40px 20px;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

.newsletter-box h3 {
  margin-bottom: 20px;
}

/* Tab Styling */
.nav-tabs {
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 20px;
}

.nav-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 600;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
  color: #007bff;
  border-bottom: 3px solid #007bff;
  background: none;
}

.nav-tabs .nav-link:hover {
  color: #007bff;
  border-color: transparent;
}

/* Review Cards */
.review-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.verified-user {
  color: #28a745;
}

/* Responsive Design */
@media (max-width: 991px) {
  .product-section {
    flex-direction: column;
    gap: 30px;
  }
  
  .product-images {
    flex: none;
    width: 100%;
    flex-direction: column; /* Stack vertically on mobile */
  }
  
  .product-thumbs-container {
    flex-direction: row; /* Horizontal on mobile */
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
  }
  
  .product-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
  
  .product-thumb.active,
  .product-thumb:hover {
    transform: translateY(-3px); /* Change to vertical transform on mobile */
  }
  
  .main-image-section {
    order: -1; /* Put main image above thumbnails on mobile */
  }
  
  .product-info {
    flex: none;
    width: 100%;
    padding: 0;
    margin-left: 0; /* Reset margin on mobile */
  }
  
  .zoom-container {
    height: 400px;
  }

  .product-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wishlist-btn {
    align-self: flex-end;
  }
}

@media (max-width: 767px) {
  .zoom-container {
    height: 350px;
  }
  
  .zoom-lens {
    display: none !important;
  }
  
  .product-info h1 {
    font-size: 1.8rem;
  }
  
  .price-section h2 {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .quantity-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .product-card img {
    height: 180px;
  }
  
  .breadcrumb {
    padding: 10px 15px;
  }
  
  .offer-section {
    padding: 12px 15px;
  }
  
  .offer-section h4 {
    font-size: 1rem;
  }

  .product-title-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .product-info h1 {
    flex: 1;
    margin-right: 10px;
  }

  .wishlist-btn {
    width: 45px;
    height: 45px;
  }

  .wishlist-btn i {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .product-section {
    gap: 20px;
    padding: 15px;
  }
  
  .product-info {
    gap: 15px;
  }
  
  .zoom-container {
    height: 300px;
  }
  
  .product-card img {
    height: 150px;
  }
  
  .product-card h5 {
    font-size: 1rem;
  }
  
  .product-card {
    padding: 15px;
  }
  
  .newsletter-box {
    padding: 30px 15px;
  }
  
  .product-thumbs-container {
    gap: 8px;
  }
  
  .product-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }

  .wishlist-btn {
    width: 40px;
    height: 40px;
  }

  .wishlist-btn i {
    font-size: 14px;
  }
}