/* Product Details Page Styles */

/* Main Product Details Section */
.product-details-section {
  padding: 2rem 0;
  min-height: 100vh;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
}

.breadcrumb-link {
  color: rgba(235, 229, 218, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #FF6D2F;
}

.breadcrumb-separator {
  color: rgba(235, 229, 218, 0.5);
  font-size: 0.875rem;
}

.breadcrumb-current {
  color: #EBE5DA;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Product Detail Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Product Images */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
}

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

.main-product-image:hover {
  transform: scale(1.02);
}

.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #FF6D2F;
  color: #101010;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-thumbnail {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: rgba(235, 229, 218, 0.05);
}

.gallery-thumbnail:hover {
  border-color: rgba(255, 109, 47, 0.5);
  transform: translateY(-2px);
}

.gallery-thumbnail.active {
  border-color: #FF6D2F;
  transform: translateY(-2px);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #EBE5DA;
  line-height: 1.2;
  margin: 0;
}

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

.stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 1.25rem;
  color: rgba(235, 229, 218, 0.3);
}

.star.filled {
  color: #FFD700;
}

.rating-count {
  color: rgba(235, 229, 218, 0.7);
  font-size: 0.875rem;
}

/* Product Pricing */
.product-pricing {
  padding: 1.5rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
}

.current-price {
  font-size: 3rem;
  font-weight: 700;
  color: #FF6D2F;
  margin-bottom: 0.5rem;
}

.price-note {
  color: rgba(235, 229, 218, 0.7);
  font-size: 0.875rem;
}

/* Product Description */
.product-description {
  color: rgba(235, 229, 218, 0.8);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* What's Included */
.whats-included {
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.whats-included h3 {
  color: #EBE5DA;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.whats-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whats-included li {
  color: rgba(235, 229, 218, 0.8);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.whats-included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* Product Features */
.product-features h3 {
  color: #EBE5DA;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 109, 47, 0.1);
  border-color: rgba(255, 109, 47, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text {
  color: #EBE5DA;
  font-weight: 500;
}

/* Purchase Section */
.purchase-section {
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-selector label {
  color: #EBE5DA;
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(235, 229, 218, 0.03);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.quantity-btn {
  background: transparent;
  border: none;
  color: #EBE5DA;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: rgba(255, 109, 47, 0.1);
  color: #FF6D2F;
}

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

.quantity-btn:disabled:hover {
  background: transparent;
  color: #EBE5DA;
}

.quantity-controls input {
  background: transparent;
  border: none;
  color: #EBE5DA;
  text-align: center;
  width: 3rem;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  /* Force English numerals and hide spinner arrows */
  font-feature-settings: "lnum" 1;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  direction: ltr;
  unicode-bidi: embed;
}

/* Hide Chrome spinner arrows */
.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide Firefox spinner arrows */
.quantity-controls input[type=number] {
  -moz-appearance: textfield;
}

.quantity-controls input:focus {
  outline: none;
  background: rgba(255, 109, 47, 0.1);
}

/* Purchase Buttons */
.purchase-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.add-to-cart-main,
.buy-now-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.add-to-cart-main:disabled,
.buy-now-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.add-to-cart-main {
  background: #FF6D2F;
  border: 2px solid #FF6D2F;
  color: #101010;
}

.add-to-cart-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.add-to-cart-main:hover::before {
  left: 100%;
}

.add-to-cart-main:hover {
  background: transparent;
  color: #FF6D2F;
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.5rem rgba(255, 109, 47, 0.4);
}

.add-to-cart-main:active {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(255, 109, 47, 0.4);
}

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

.buy-now-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #EBE5DA;
  transition: width 0.3s ease;
  z-index: -1;
}

.buy-now-btn:hover::after {
  width: 100%;
}

.buy-now-btn:hover {
  color: #101010;
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.5rem rgba(235, 229, 218, 0.4);
}

.buy-now-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(235, 229, 218, 0.4);
}

/* Button Loading Animation */
.button-loading {
  position: relative;
  color: transparent !important;
}

.button-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: buttonSpin 1s linear infinite;
  color: #101010;
}

.buy-now-btn.button-loading::after {
  color: #EBE5DA;
}

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

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  text-align: center;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  color: #EBE5DA;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.trust-text span {
  color: rgba(235, 229, 218, 0.7);
  font-size: 0.875rem;
}

/* Product Tabs */
.product-tabs {
  margin-top: 4rem;
}

.tab-navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
  padding-bottom: 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(235, 229, 218, 0.7);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: #FF6D2F;
  background: rgba(255, 109, 47, 0.1);
}

.tab-btn.active {
  color: #FF6D2F;
  background: rgba(255, 109, 47, 0.1);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #FF6D2F;
}

.tab-content {
  min-height: 400px;
}

.tab-panel {
  display: none;
  padding: 2rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
}

.tab-panel.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

.tab-panel h3 {
  color: #EBE5DA;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.tab-panel h4 {
  color: #EBE5DA;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.tab-panel p {
  color: rgba(235, 229, 218, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tab-panel ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.tab-panel li {
  color: rgba(235, 229, 218, 0.8);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.tab-panel li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #FF6D2F;
  font-weight: bold;
}

/* Specifications Grid */
.specs-grid {
  display: grid;
  gap: 1rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.5rem;
}

.spec-label {
  color: rgba(235, 229, 218, 0.7);
  font-weight: 500;
}

.spec-value {
  color: #EBE5DA;
  font-weight: 600;
}

/* Reviews */
.reviews-summary {
  margin-bottom: 2rem;
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: #FFD700;
}

.rating-stars {
  font-size: 1.5rem;
  color: #FFD700;
}

.rating-text {
  color: rgba(235, 229, 218, 0.7);
  font-size: 0.875rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-item {
  padding: 1.5rem;
  background: rgba(235, 229, 218, 0.05);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-name {
  color: #EBE5DA;
  font-weight: 600;
}

.review-rating {
  color: #FFD700;
}

.review-text {
  color: rgba(235, 229, 218, 0.8);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.review-date {
  color: rgba(235, 229, 218, 0.5);
  font-size: 0.875rem;
}

/* License Info */
.license-info {
  color: rgba(235, 229, 218, 0.8);
  line-height: 1.6;
}

/* Related Products */
.related-products {
  margin-top: 4rem;
}

.related-products h3 {
  color: #EBE5DA;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .current-price {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 767px) {
  .breadcrumb {
    flex-wrap: wrap;
  }
  
  .product-title {
    font-size: 1.75rem;
  }
  
  .current-price {
    font-size: 2rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .purchase-buttons {
    flex-direction: column;
  }
  
  .add-to-cart-main,
  .buy-now-btn {
    min-width: auto;
    width: 100%;
  }
  
  .tab-panel {
    padding: 1.5rem;
  }
  
  .overall-rating {
    padding: 1.5rem;
  }
  
  .rating-number {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 479px) {
  .product-detail-layout {
    gap: 1.5rem;
  }
  
  .product-info {
    gap: 1.5rem;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .current-price {
    font-size: 1.75rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .purchase-section {
    padding: 1.5rem;
  }
  
  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .tab-navigation {
    justify-content: center;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }
} 