/* Product Detail Page (SCSS source)
   Compiled into: new/assets/css/product-detail.css */
/* ==========================================================================
  Tokens (product detail)
  ========================================================================== */
/* ==========================================================================
  Design Tokens (global + page)
  ========================================================================== */
/* ==========================================================================
   Product Detail Page
   ========================================================================== */
/* Breadcrumb Section */
.product-detail-breadcrumb {
  position: relative;
  background: #054c73;
  padding: 25px 0;
  margin-top: 90px;
}
@media (max-width: 576px) {
  .product-detail-breadcrumb {
    margin-top: 70px;
    padding: 20px 0;
  }
}
@media (max-width: 420px) {
  .product-detail-breadcrumb {
    padding: 16px 0;
  }
}
@media (min-width: 992px) {
  .product-detail-breadcrumb .banner-search {
    top: 50%;
    transform: translateY(-50%);
  }
}
.product-detail-section {
  padding: 60px 0 80px;
}
@media (max-width: 576px) {
  .product-detail-section {
    padding: 40px 0 40px;
  }
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 1200px) {
  .product-detail-grid {
    gap: 60px;
  }
}
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 576px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.product-detail-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.product-detail-name {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #054c73;
  margin-bottom: 8px;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .product-detail-name {
    font-size: 32px;
  }
}
@media (max-width: 576px) {
  .product-detail-name {
    font-size: 28px;
  }
}
.product-detail-category {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #054c73;
  border-bottom: 1.5px solid #e0e0e0;
  padding-bottom: 24px;
}
@media (max-width: 768px) {
  .product-detail-category {
    font-size: 20px;
    padding-bottom: 18px;
  }
}
@media (max-width: 576px) {
  .product-detail-category {
    font-size: 18px;
    margin-bottom: 30px;
  }
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #fff;
}
@media (max-width: 576px) {
  .breadcrumb-content {
    font-size: 12px;
    gap: 3px;
  }
}
.breadcrumb-link {
  color: #fff;
  transition: opacity 0.3s ease;
}
.breadcrumb-link:hover {
  opacity: 0.8;
}
.breadcrumb-separator {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.product-preview-image {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.product-preview-image:hover {
  transform: scale(1.02);
}
.product-preview-image.is-transitioning img {
  transform: scale(0.95);
}
.product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  transition: transform 0.35s ease;
  transform: scale(1);
}
@media (max-width: 768px) {
  .product-preview-image img {
    padding: 28px;
  }
}

.product-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) {
  .product-thumbnail-grid {
    gap: 14px;
  }
}
@media (max-width: 576px) {
  .product-thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
.product-thumbnail {
  aspect-ratio: 1/1;
  border: 0.5px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumbnail:hover, .product-thumbnail.active {
  transform: translateY(-2px) scale(1.01);
  border-color: #d9d9d9;
  border-width: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Accordion Sections */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.accordion-item {
  border-bottom: 1.5px solid #e0e0e0;
}
.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding-bottom: 24px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-header {
  padding: 24px 0;
  cursor: pointer;
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.accordion-header h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #53585f;
  margin: 0;
  line-height: 1.6;
}
.accordion-header .accordion-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #53585f;
  flex: 0 0 auto;
  transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}
.accordion-header .accordion-icon svg {
  display: block;
}
.accordion-header:hover h3 {
  color: #054c73;
}
.accordion-header:hover .accordion-icon {
  border-color: #054c73;
  color: #054c73;
}
@media (max-width: 768px) {
  .accordion-header {
    padding: 20px 0;
  }
  .accordion-header h3 {
    font-size: 16px;
  }
}
@media (max-width: 576px) {
  .accordion-header {
    padding: 20px 0;
  }
  .accordion-header .accordion-icon {
    width: 40px;
    height: 40px;
  }
  .accordion-header h3 {
    font-size: 16px;
  }
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #666;
}
@media (max-width: 768px) {
  .accordion-body {
    font-size: 15px;
    line-height: 1.4;
  }
}
@media (max-width: 576px) {
  .accordion-body {
    font-size: 14px;
  }
}

/* Recommendations Section */
.recommendation {
  padding: 80px 0;
}
@media (max-width: 576px) {
  .recommendation {
    padding: 40px 0;
  }
}
.recommendation-title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #054c73;
  text-align: center;
  margin-bottom: 60px;
}
@media (max-width: 576px) {
  .recommendation-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
}
.recommendation-slider {
  position: relative;
}
@media (max-width: 576px) {
  .recommendation-slider {
    padding: 0 44px;
  }
}
.recommendation-swiper {
  overflow: hidden;
  padding: 10px;
}
.recommendation-swiper .swiper-slide {
  height: auto;
}
.recommendation-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #666;
  border: 1px solid #d9d9d9;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.recommendation-arrow:hover:not(.swiper-button-disabled) {
  border-color: #054c73;
  color: #054c73;
}
.recommendation-arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.recommendation-arrow.swiper-button-lock {
  display: none;
}
.recommendation-arrow-prev {
  left: 0;
}
.recommendation-arrow-next {
  right: 0;
}
@media (max-width: 1200px) {
  .recommendation-arrow {
    width: 36px;
    height: 36px;
  }
  .recommendation-arrow-prev {
    left: -15px;
  }
  .recommendation-arrow-next {
    right: -15px;
  }
}
@media (max-width: 992px) {
  .recommendation-arrow {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 768px) {
  .recommendation-arrow {
    width: 32px;
    height: 32px;
  }
}
.recommendation-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d9d9d9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
}
.recommendation-card-img {
  aspect-ratio: 218/234;
  border-radius: 10px 10px 0 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.recommendation-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.recommendation-card-label {
  background: #d9d9d9;
  padding: 16px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #054c73;
  transition: background 0.3s ease;
}
@media (max-width: 576px) {
  .recommendation-card-label {
    font-size: 18px;
  }
}
.recommendation-card:hover, .recommendation-card.active {
  transform: translateY(-1px) scale(1.01);
  border-color: #d9d9d9;
  border-width: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.recommendation-card:hover .recommendation-card-label, .recommendation-card.active .recommendation-card-label {
  background: #dfe9f4;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}
.image-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoomIn 0.3s ease;
}
.image-modal-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 10000;
}
.image-modal-close:hover, .image-modal-close:focus {
  color: #d9d9d9;
}
@media (max-width: 576px) {
  .image-modal-close {
    top: 20px;
    right: 30px;
    font-size: 40px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
