/* Product Page Styles - Mobile First */

/* Product page main wrapper */
.product-page {
  padding-top: 10px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.breadcrumbs a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: #999;
}

.breadcrumbs .current {
  color: #666;
}

/* Product Detail Section */
.product-detail {
  padding: 20px 0;
}

.product-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Image Gallery */
.product-gallery {
  width: 100%;
}

.gallery-main {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-images {
  position: relative;
  aspect-ratio: 1/1;
  background: #f5f5f5;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
}

.gallery-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-indicator.active {
  background: var(--accent-color);
}

/* Product Info */
.product-info {
  padding: 0;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-color);
}

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

/* Quantity Selector */
.quantity-section {
  margin-bottom: 20px;
}

.quantity-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to Cart Button */
.btn-add-to-cart {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s ease;
  margin-bottom: 15px;
}

.btn-add-to-cart:hover {
  background: var(--accent-hover);
}

.btn-add-to-cart .cart-icon {
  font-size: 1.2rem;
}

/* Stock Status */
.stock-status {
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.stock-available {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a7d2e;
  font-size: 0.9rem;
}

.stock-icon {
  font-size: 1.2rem;
}

.stock-unavailable {
  color: #d32f2f;
  font-size: 0.9rem;
}

/* Product Specifications Section (Expanded) */
.product-specifications {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.specs-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.specs-table th {
  font-weight: 600;
  color: #333;
  width: 40%;
}

.specs-table td {
  color: #666;
}

/* Product Description Section (Expanded) */
.product-description-section {
  padding: 30px 0;
  background: #fff;
}

.product-description-content {
  padding: 0;
}

.description-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

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

/* Dark Mode */
[data-theme="dark"] .specs-header,
[data-theme="dark"] .description-header {
  color: #ffffff;
}

[data-theme="dark"] .specs-table th {
  color: #ffffff;
}

[data-theme="dark"] .specs-table td,
[data-theme="dark"] .product-description-content p {
  color: #dddddd;
}

[data-theme="dark"] .product-specifications,
[data-theme="dark"] .product-description-section {
  background: #000000;
}

[data-theme="dark"] .product-specifications {
  border-top-color: #333333;
}

[data-theme="dark"] .specs-table th,
[data-theme="dark"] .specs-table td {
  border-bottom-color: #333333;
}

/* Accordion Section (Legacy - kept for reference) */
.product-accordion-section {
  padding: 20px 0;
  background: #fff;
}

.accordion {
  border-top: 1px solid #e0e0e0;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: left;
}

.accordion-header:hover {
  color: var(--accent-color);
}

.accordion-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 0 20px 0;
  color: #666;
  line-height: 1.6;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.specs-table th {
  font-weight: 500;
  color: #333;
  width: 40%;
}

.specs-table td {
  color: #666;
}

/* Product Sections (Similar Products, You May Also Like) */
.product-section {
  padding: 30px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ffc107;
  margin-top: 5px;
}

/* Products Carousel */
.products-carousel {
  position: relative;
}

.products-carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 5px 0;
}

.products-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-nav-btn:hover {
  background: #f5f5f5;
}

.carousel-nav-prev {
  left: -20px;
}

.carousel-nav-next {
  right: -20px;
}

/* Product Card */
.product-card {
  flex: 0 0 160px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1/1;
  background: #f5f5f5;
  flex-shrink: 0;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.save-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: #e91e63;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}

.product-card-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.3;
  height: 2.6em;
  min-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex-shrink: 0;
}

.product-card-title a {
  color: #333;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--accent-color);
}

.product-card-price {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 24px;
}

.product-card-price .price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
}

.product-card-price .original-price {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
  white-space: nowrap;
}

.btn-add-to-cart-small {
  width: 100%;
  padding: 10px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s ease;
}

.btn-add-to-cart-small:hover {
  background: var(--accent-hover);
}

.btn-add-to-cart-small .cart-icon {
  font-size: 0.9rem;
}

/* Trustpilot Section */
.trustpilot-section {
  padding: 30px 0;
  background: #f8f8f8;
}

.trustpilot-widget {
  text-align: center;
  padding: 20px;
}

.trustpilot-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trustpilot-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #00b67a;
}

.trustpilot-stars {
  display: flex;
  gap: 3px;
}

.trustpilot-stars .star {
  font-size: 1.5rem;
  color: #ddd;
}

.trustpilot-stars .star.filled {
  color: #00b67a;
}

.trustpilot-stars .star.half {
  background: linear-gradient(90deg, #00b67a 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trustpilot-score {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.trustpilot-text {
  margin: 10px 0 0 0;
  color: #666;
  font-size: 0.875rem;
}

/* Tablet Styles (768px+) */
@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .product-detail-grid {
    flex-direction: row;
    gap: 40px;
  }
  
  .product-gallery {
    flex: 0 0 50%;
  }
  
  .product-info {
    flex: 1;
  }
  
  .product-title {
    font-size: 1.75rem;
  }
  
  .product-price {
    font-size: 2rem;
  }
  
  .btn-add-to-cart {
    max-width: 350px;
  }
  
  .carousel-nav-btn {
    display: flex;
  }
  
  .product-card {
    flex: 0 0 180px;
  }
  
  .trustpilot-header {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
}

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
  .container {
    padding: 20px 0px;
  }
  
  .product-detail-grid {
    gap: 60px;
  }
  
  .product-gallery {
    flex: 0 0 45%;
  }
  
  .gallery-nav {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .product-price {
    font-size: 2.25rem;
  }
  
  .product-card {
    flex: 0 0 200px;
  }
  
  .product-card-title {
    font-size: 0.9rem;
  }
  
  .product-card-price .price {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .product-detail-grid {
    gap: 80px;
  }
  
  .product-gallery {
    flex: 0 0 40%;
  }
  
  .product-card {
    flex: 0 0 220px;
  }
}
