/* DESIGN SYSTEM COLORS */
:root {
  --primary-green: #1a5f1a;
  --primary-dark: #0d3a0d;
  --primary-light: #2d8c2d;
  --accent-green: #57d163;
  --secondary-blue: #08558b;
  --gray-dark: #2c3e50;
  --gray-medium: #7f8c8d;
  --gray-light: #ecf0f1;
  --white: #ffffff;
  --success: #27ae60;
  --warning: #f39c12;
}

/* CONTAINER */
.container-product-page-new {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;

  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* background: #f8faf8; */
  color: #2c3e50;
  line-height: 1.6;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--gray-light);
}

.breadcrumb a:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* MAIN LAYOUT */
.product-container-product-page-new {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2rem;
  margin-bottom: 4rem;
  justify-content: center;
  align-items: start;
}

@media (max-width: 768px) {
  .product-container-product-page-new {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }
}

/* ==================== LEFT SIDE: GALLERY ==================== */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 2rem;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .product-gallery {
    position: static;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .product-gallery {
    max-width: 400px;
  }
}

@media (max-width: 425px) {
  .product-gallery {
    max-width: 400px;
  }
}

@media (min-width: 1441px) {
  .product-gallery {
    max-width: 480px;
  }
}

/* Main Image Container */
.main-image-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8faf8 0%, #ecf0f1 100%);
  cursor: zoom-in;
  margin: 0 auto;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--gray-dark);
  font-size: 1rem;
}

.nav-arrow:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--primary-green);
}

.nav-arrow:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

.nav-arrow-left {
  left: 8px;
}

.nav-arrow-right {
  right: 8px;
}

/* Image Counter */
.image-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.main-image-container img.fade-out {
  opacity: 0;
}

.main-image-container img.fade-in {
  opacity: 1;
}

.main-image-container:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .main-image-container {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .main-image-container {
    max-width: 300px;
  }
}

@media (min-width: 1441px) {
  .main-image-container {
    max-width: 360px;
  }
}

/* Zoom Hint */
.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26, 95, 26, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-image-container:hover .zoom-hint {
  opacity: 1;
}

/* Thumbnails */
.thumbnails-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnails-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: var(--gray-light);
  border-radius: 3px;
}

.thumbnail-btn {
  width: 80px;
  height: 80px;
  padding: 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: none;
  overflow: hidden;
  position: relative;
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.thumbnail-btn:hover img,
.thumbnail-btn.active img {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(26, 95, 26, 0.2);
}

.thumbnail-btn:focus {
  outline: none;
}

.thumbnail-btn:focus img {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(26, 95, 26, 0.2);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

.share-btn:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

.share-btn:active {
  transform: translateY(0);
}

/* ==================== RIGHT SIDE: INFO ==================== */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 500px;
}

/* Product Header */
.product-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 3px solid var(--primary-green);
  padding-bottom: 1.5rem;
}

.product-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.2;
}

.product-code {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

.product-code strong {
  color: var(--primary-green);
  font-weight: 600;
}

/* Rating + Badges */
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.rating i {
  color: var(--warning);
}

.rating-text {
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-left: 0.5rem;
}

.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-stock {
  background: #d5f4e6;
  color: var(--success);
}

.badge-original {
  background: #fef5e7;
  color: var(--warning);
}

/* Price Section */
.price-section {
  background: linear-gradient(135deg, #f8faf8 0%, var(--gray-light) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
}

.price-section .label {
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
}

.info-text {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-medium);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Specs Card */
.specs-card {
  background: linear-gradient(180deg, white 0%, #f8faf8 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
}

.specs-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-light);
  align-items: flex-start;
  gap: 1rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.spec-value {
  color: var(--gray-medium);
  text-align: right;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 280px;
  line-height: 1.4;
  font-size: 0.9rem;
}

/* Description */
.description-section {
  padding: 1rem 0;
}

.description-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.description-section p {
  color: var(--gray-medium);
  line-height: 1.7;
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #d5f4e6 0%, #c8ede0 100%);
  border-radius: 12px;
  border: 2px solid var(--primary-green);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #25d366 0%, #1bc05a 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

@media (max-width: 640px) {
  .btn-whatsapp {
    width: 100%;
  }
}

.cta-help-text {
  font-size: 0.875rem;
  color: var(--gray-dark);
  text-align: center;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.trust-item i {
  font-size: 1.25rem;
  color: var(--primary-green);
}

/* ==================== RELATED PRODUCTS ==================== */
.related-section {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.related-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  text-align: center;
}

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

@media (max-width: 1440px) and (min-width: 1025px) {
  .related-products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .related-products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .related-section {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
  }

  .related-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .related-products {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .product-card-content {
    padding: 1rem;
  }

  .product-card-title {
    font-size: 0.95rem;
    min-height: auto;
  }

  .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
  }
}

.product-card-product-page-new,
.related-products .product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-light);
}

.product-card-product-page-new:hover,
.related-products .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-green);
}

.product-card-product-page-new img,
.related-products .product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card-product-page-new:hover img,
.related-products .product-card:hover img {
  transform: scale(1.05);
}

.product-card-content {
  padding: 1.5rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 2.8rem;
}

.product-card-meta {
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.product-card-button {
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-green);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  z-index: 10000;
  animation: slideInUp 0.3s ease, slideOutDown 0.3s ease 2.7s;
}

.toast-notification i {
  font-size: 1.25rem;
}

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

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

@media (max-width: 768px) {
  .toast-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    font-size: 0.9rem;
  }
}