/* Enhanced Variables for modern design */
:root {
  --product-detail-bg: #f8f9fa;
  --product-card-bg: #ffffff;
  --product-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --product-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
  --product-border-radius: 20px;
  --product-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-effect: blur(10px);
  --gradient-primary: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Modern Breadcrumb */
.breadcrumb-section {
  background: var(--gradient-primary);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.breadcrumb-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--glass-effect);
  transition: var(--product-transition);
}

.breadcrumb a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Enhanced Product Layout */
.product-detail-section {
  padding: 4rem 0;
  background: var(--product-detail-bg);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--product-card-bg);
  border-radius: var(--product-border-radius);
  padding: 3rem;
  box-shadow: var(--product-shadow);
  position: relative;
  overflow: hidden;
}

.product-detail-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Modern Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image-container {
  position: relative;
  border-radius: var(--product-border-radius);
  overflow: hidden;
  background: linear-gradient(45deg, #f8f9fa, #ffffff);
  aspect-ratio: 1;
}

#main-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-image-container:hover #main-product-image {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  animation: pulse 2s infinite;
}

.thumbnail-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--product-transition);
  opacity: 0.7;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* Enhanced Product Info */
.product-title-detail {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-rating-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stars {
  display: flex;
  gap: 2px;
  color: #ffd700;
  font-size: 1.2rem;
}

.product-price-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.current-price-detail {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.old-price-detail {
  font-size: 1.25rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-short-description {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.05), rgba(230, 126, 34, 0.05));
  padding: 1.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
}

.product-short-description::before {
  content: "💡";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Modern Quantity Selector */
.quantity-selector-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--product-transition);
}

.quantity-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

#quantity-input {
  width: 60px;
  height: 40px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  background: white;
}

/* Enhanced Action Buttons */
.product-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.add-to-cart-detail,
.buy-now-detail {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--product-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart-detail {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.add-to-cart-detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.buy-now-detail {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.buy-now-detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* Modern Tabs */
.product-tabs-section {
  background: var(--product-card-bg);
  border-radius: var(--product-border-radius);
  box-shadow: var(--product-shadow);
  overflow: hidden;
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
}

.tab-btn {
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--product-transition);
  position: relative;
  flex: 1;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(243, 156, 18, 0.05);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  padding: 2.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .product-title-detail {
    font-size: 2rem;
  }
  
  .current-price-detail {
    font-size: 1.8rem;
  }
  
  .product-buttons {
    flex-direction: column;
  }
  
  .tab-buttons {
    overflow-x: auto;
  }
  
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Modern Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active {
  animation: fadeInUp 0.5s ease;
}

/* Enhanced Notification */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #27ae60;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #27ae60;
  font-weight: 600;
}

/* Variables for consistent theming */
:root {
  --product-detail-bg: #f8f9fa;
  --product-card-bg: #ffffff;
  --product-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  --product-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --product-border-radius: 20px;
  --product-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
}

/* Dark theme variables */
body.dark-theme {
  --product-detail-bg: #1a1a1a;
  --product-card-bg: #2c2c2c;
  --product-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  --product-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Enhanced breadcrumb section */
.breadcrumb-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 25px 0;
  position: relative;
}

.breadcrumb-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/honey-drip.png") center / 300px repeat;
  opacity: 0.1;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--product-transition);
  padding: 5px 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.breadcrumb a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.breadcrumb .current {
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 15px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

/* Enhanced product detail section */
.product-detail-section {
  padding: 60px 0 80px;
  background: var(--product-detail-bg);
  min-height: 100vh;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  background: var(--product-card-bg);
  border-radius: var(--product-border-radius);
  padding: 50px;
  box-shadow: var(--product-shadow);
  transition: var(--product-transition);
  position: relative;
  overflow: hidden;
}

.product-detail-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--product-border-radius) var(--product-border-radius) 0 0;
}

.product-detail-layout:hover {
  box-shadow: var(--product-shadow-hover);
  transform: translateY(-5px);
}

/* Enhanced product gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}

.main-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(45deg, #f8f9fa, #ffffff);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: var(--product-transition);
}

.main-image-container:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

#main-product-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: var(--product-transition);
  display: block;
}

.main-image-container:hover #main-product-image {
  transform: scale(1.1);
}

.discount-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  animation: pulse 2s infinite;
  z-index: 10;
}

.thumbnail-images {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: 85px;
  height: 85px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--product-transition);
  opacity: 0.7;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: relative;
}

.thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(228, 168, 28, 0.1));
  opacity: 0;
  transition: var(--product-transition);
}

.thumbnail:hover::before {
  opacity: 1;
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
  border-color: var(--primary-color);
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(228, 168, 28, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--product-transition);
}

/* Enhanced product info */
.product-info-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}

.product-title-detail {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 20px;
}

body.dark-theme .product-title-detail {
  color: var(--dark-text-color);
}

.product-title-detail::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  animation: slideInLeft 0.8s ease;
}

.product-rating-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  gap: 3px;
  color: #ffd700;
  font-size: 1.2rem;
}

.rating-count-detail {
  color: var(--text-light);
  font-size: 0.95rem;
}

body.dark-theme .rating-count-detail {
  color: var(--dark-text-light);
}

.write-review-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--product-transition);
}

.write-review-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

body.dark-theme .write-review-link {
  color: var(--accent-color);
}

.product-price-detail {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.current-price-detail {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(228, 168, 28, 0.2);
}

body.dark-theme .current-price-detail {
  color: var(--accent-color);
}

.old-price-detail {
  font-size: 1.5rem;
  text-decoration: line-through;
  color: var(--text-light);
  opacity: 0.8;
}

body.dark-theme .old-price-detail {
  color: var(--dark-text-light);
}

.product-short-description {
  background: linear-gradient(135deg, rgba(228, 168, 28, 0.05), rgba(214, 136, 11, 0.05));
  padding: 25px;
  border-radius: 20px;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

body.dark-theme .product-short-description {
  background: linear-gradient(135deg, rgba(228, 168, 28, 0.1), rgba(214, 136, 11, 0.1));
}

.product-short-description::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(228, 168, 28, 0.1), transparent);
  border-radius: 50%;
}

.product-short-description p {
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1.05rem;
  margin: 0;
}

body.dark-theme .product-short-description p {
  color: var(--dark-text-color);
}

.product-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stock-status.in-stock {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.stock-status.out-of-stock {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.stock-status.low-stock {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* Enhanced product actions */
.product-actions-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.quantity-selector-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid #e9ecef;
  transition: var(--product-transition);
}

body.dark-theme .quantity-selector-detail {
  background: #333;
  border-color: #444;
}

.quantity-selector-detail:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(228, 168, 28, 0.1);
}

.quantity-selector-detail label {
  font-weight: 600;
  color: var(--text-color);
  min-width: 80px;
}

body.dark-theme .quantity-selector-detail label {
  color: var(--dark-text-color);
}

.quantity-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--product-transition);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.quantity-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(228, 168, 28, 0.4);
}

.quantity-btn:active {
  transform: translateY(-1px) scale(1.02);
}

#quantity-input {
  width: 80px;
  height: 45px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: white;
  color: var(--text-color);
  transition: var(--product-transition);
}

body.dark-theme #quantity-input {
  background: #444;
  border-color: #555;
  color: var(--dark-text-color);
}

#quantity-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(228, 168, 28, 0.1);
}

.product-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.add-to-cart-detail,
.buy-now-detail {
  flex: 1;
  min-width: 200px;
  padding: 18px 30px;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--product-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.add-to-cart-detail::before,
.buy-now-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.add-to-cart-detail:hover::before,
.buy-now-detail:hover::before {
  left: 100%;
}

.add-to-cart-detail {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 10px 30px rgba(228, 168, 28, 0.4);
}

.add-to-cart-detail:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(228, 168, 28, 0.5);
}

.buy-now-detail {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

.buy-now-detail:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.5);
}

/* Enhanced product meta */
.product-meta-detail {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid #e9ecef;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

body.dark-theme .product-meta-detail {
  background: #333;
  border-color: #444;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark-theme .meta-label {
  color: var(--dark-text-light);
}

.meta-value {
  color: var(--text-color);
  font-weight: 600;
}

body.dark-theme .meta-value {
  color: var(--dark-text-color);
}

.meta-value a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--product-transition);
}

.meta-value a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

body.dark-theme .meta-value a {
  color: var(--accent-color);
}

/* Enhanced wishlist and compare section */
.product-wishlist-compare {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.wishlist-btn,
.compare-btn {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--product-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wishlist-btn:hover,
.compare-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(228, 168, 28, 0.3);
}

body.dark-theme .wishlist-btn,
body.dark-theme .compare-btn {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

body.dark-theme .wishlist-btn:hover,
body.dark-theme .compare-btn:hover {
  background: var(--accent-color);
  color: #111;
}

/* Enhanced social share */
.social-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(228, 168, 28, 0.05), rgba(214, 136, 11, 0.05));
  border-radius: 15px;
}

body.dark-theme .social-share {
  background: linear-gradient(135deg, rgba(228, 168, 28, 0.1), rgba(214, 136, 11, 0.1));
}

.social-share span {
  font-weight: 600;
  color: var(--text-color);
}

body.dark-theme .social-share span {
  color: var(--dark-text-color);
}

.social-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--product-transition);
  font-size: 1.1rem;
}

.social-share a[href*="facebook"] {
  background: linear-gradient(135deg, #3b5998, #2d4373);
}

.social-share a[href*="twitter"] {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-share a[href*="pinterest"] {
  background: linear-gradient(135deg, #bd081c, #8c0613);
}

.social-share a[href*="mailto"] {
  background: linear-gradient(135deg, #ea4335, #c23321);
}

.social-share a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced product tabs */
.product-tabs-section {
  background: var(--product-card-bg);
  border-radius: var(--product-border-radius);
  box-shadow: var(--product-shadow);
  overflow: hidden;
  margin-bottom: 60px;
}

.tab-buttons {
  display: flex;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.dark-theme .tab-buttons {
  background: linear-gradient(135deg, #333, #444);
  border-bottom-color: #555;
}

.tab-btn {
  padding: 25px 35px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--product-transition);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

body.dark-theme .tab-btn {
  color: var(--dark-text-light);
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary-color);
  background: rgba(228, 168, 28, 0.05);
}

body.dark-theme .tab-btn:hover,
body.dark-theme .tab-btn.active {
  color: var(--accent-color);
  background: rgba(228, 168, 28, 0.1);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  padding: 40px 50px;
  display: none;
  animation: fadeInUp 0.5s ease when appearing;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

body.dark-theme .tab-content h3 {
  color: var(--dark-text-color);
}

.tab-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Enhanced specifications */
.product-specification {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 20px 25px;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
  transition: var(--product-transition);
}

body.dark-theme .spec-item {
  background: #333;
}

.spec-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.spec-label {
  font-weight: 600;
  min-width: 150px;
  color: var(--text-color);
  margin-right: 15px;
}

body.dark-theme .spec-label {
  color: var(--dark-text-color);
}

.spec-value {
  color: var(--primary-color);
  font-weight: 600;
}

body.dark-theme .spec-value {
  color: var(--accent-color);
}

/* Enhanced reviews section */
.add-review-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 20px;
  margin-top: 30px;
  border: 1px solid #e9ecef;
}

body.dark-theme .add-review-form {
  background: #333;
  border-color: #444;
}

.add-review-form h4 {
  color: var(--text-color);
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 700;
}

body.dark-theme .add-review-form h4 {
  color: var(--dark-text-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

body.dark-theme .form-group label {
  color: var(--dark-text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--product-transition);
  background: white;
  color: var(--text-color);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: #444;
  border-color: #555;
  color: var(--dark-text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(228, 168, 28, 0.1);
}

.star-rating-input {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.star-rating-input i {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: var(--product-transition);
}

.star-rating-input i:hover,
.star-rating-input i.active {
  color: #ffd700;
  transform: scale(1.1);
}

/* Enhanced related products */
.related-products-section {
  padding: 60px 0;
  background: var(--product-detail-bg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  text-align: center;
  color: var(--text-color);
  position: relative;
  padding-bottom: 20px;
}

body.dark-theme .section-title {
  color: var(--dark-text-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

/* Responsive Design Enhancements */
@media (max-width: 1200px) {
  .product-detail-layout {
    padding: 40px;
    gap: 50px;
  }
  
  .product-title-detail {
    font-size: 2.4rem;
  }
  
  .current-price-detail {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }
  
  .product-gallery {
    order: -1;
  }
  
  #main-product-image {
    height: 400px;
  }
  
  .product-meta-detail {
    grid-template-columns: 1fr;
  }
  
  .product-specification {
    grid-template-columns: 1fr;
  }
  
  .product-buttons {
    flex-direction: column;
  }
  
  .add-to-cart-detail,
  .buy-now-detail {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 40px 0 60px;
  }
  
  .breadcrumb-section {
    padding: 20px 0;
  }
  
  .breadcrumb {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  
  .product-detail-layout {
    padding: 25px;
    gap: 30px;
    margin-bottom: 60px;
  }
  
  .product-title-detail {
    font-size: 2rem;
  }
  
  .current-price-detail {
    font-size: 1.8rem;
  }
  
  .product-price-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .tab-content {
    padding: 30px 25px;
  }
  
  .tab-btn {
    padding: 20px 25px;
    font-size: 1rem;
  }
  
  .thumbnail {
    width: 70px;
    height: 70px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .product-detail-layout {
    padding: 20px;
  }
  
  .product-title-detail {
    font-size: 1.7rem;
  }
  
  .current-price-detail {
    font-size: 1.6rem;
  }
  
  .thumbnail-images {
    gap: 10px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .product-wishlist-compare {
    flex-direction: column;
  }
  
  .quantity-selector-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .quantity-selector-detail > div {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .tab-content {
    padding: 25px 20px;
  }
  
  .add-review-form {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  #main-product-image {
    height: 300px;
  }
  
  .product-title-detail {
    font-size: 1.5rem;
  }
  
  .current-price-detail {
    font-size: 1.4rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .social-share {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    width: 0;
  }
  to {
    width: 100px;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus improvements */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .product-detail-section {
    background: white !important;
    box-shadow: none !important;
  }
  
  .social-share,
  .product-actions-detail,
  .add-review-form {
    display: none !important;
  }
}
