/* ========================================
   Single Product Page Styles
   ======================================== */

.single-product-page {
  position: relative;
}

.single-product-page .page-title {
  padding-top: 0;
}

/* Banner */
.single-product__banner {
  background-image: url('../../images/products/products-bg.jpg');
  background-position: center;
}


/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  background-color: #F6F2EE;
}

.breadcrumb__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb__link {
  color: var(--text-light);
}

.breadcrumb__link:hover {
  color: var(--secondary-color);
}

.breadcrumb__current {
  color: var(--text-dark);
}


/* ========================================
   Product Detail Section
   ======================================== */
.product-detail {
  background-color: #F6F2EE;
  padding: 40px 0 80px;
}

.product-detail__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Product Image */
.product-detail__image {
  background-image: url('../../images/bgImage/bg-1.png');
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.product-detail__image img {
  width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.product-detail__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-detail__title-en {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  border-bottom: 2px solid #333;
}

.product-detail__highlight {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.product-detail__desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Product Specs */
.product-detail__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-bottom: 32px;
}

.product-detail__spec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #ccc;
}

.product-detail__spec:nth-child(-n+2) {
  border-top: 1px dashed #ccc;
}

.product-detail__spec img {
  width: 20px;
  height: 20px;
}

.product-detail__spec-label {
  font-size: 14px;
  font-weight: 500;
  min-width: 70px;
}

.product-detail__spec-value {
  font-size: 14px;
}

/* Channel Selection */
.product-detail__channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.product-detail__channel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-detail__channel-label {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary-color);
}

.product-detail__channel-select {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.product-detail__channel-select .select-wrapper {
  flex: 1;
  min-width: 0;
  max-width: 400px;
}

.product-detail__channel-select .form-select {
  border: 0;
  height: 40px;
}

.product-detail__channel-btn {
  flex-shrink: 0;
  height: 52px;
  padding: 10px 24px;
  background-color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.product-detail__channel-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* CTA Buttons */
.product-detail__cta {
  display: flex;
  gap: 12px;
}

.product-detail__cta-btn {
  height: 60px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  background-color: var(--secondary-color);
  color: #fff;
}

.product-detail__cta-btn:hover {
  background-color: #a00000;
}

.product-detail__cta-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}


/* ========================================
   Responsive - Tablet (1024px)
   ======================================== */
@media (max-width: 1024px) {
  .product-detail__container {
    gap: 40px;
    padding: 0 40px;
  }

  .product-detail__image {
    min-height: 400px;
    padding: 30px;
  }

  .product-detail__image img {
    width: 90%;
  }

  .product-detail__title {
    font-size: 28px;
  }

  .product-detail__title-en {
    font-size: 20px;
  }
}


/* ========================================
   Responsive - Mobile (768px)
   ======================================== */
@media (max-width: 768px) {
  .breadcrumb__container {
    padding: 40px 40px 0 40px;
  }

  .product-detail {
    padding: 24px 0 40px;
  }

  .product-detail__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-detail__image {
    min-height: 300px;
    padding: 30px;
  }

  .product-detail__image img {
    width: 90%;
  }

  .product-detail__title {
    font-size: 24px;
  }

  .product-detail__title-en {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .product-detail__highlight {
    font-size: 15px;
  }

  .product-detail__desc {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .product-detail__specs {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 24px;
  }

  .product-detail__spec:nth-child(-n+2) {
    border-top: none;
  }

  .product-detail__spec:first-child {
    border-top: 1px dashed #ccc;
  }

  .product-detail__channel {
    gap: 12px;
  }

  .product-detail__channel-select {
    flex: 1;
    min-width: 0;
  }

  .product-detail__channel-select .select-wrapper {
    max-width: none;
  }
}

/* Section Divider */
.section-divider {
  max-width: 1280px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #ccc;
}

@media (max-width: 768px) {
  .section-divider {
    max-width: calc(100% - 80px);
  }
}

/* ========================================
   相關食譜 Section - Navigation Arrows
   桌機版才顯示，手機版隱藏
   ======================================== */
.recipes {
  background-color: #fff;
}

.recipes__carousel {
  position: relative;
  padding-top: 40px;
}

.recipes__nav-prev,
.recipes__nav-next {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
}

.recipes__nav-prev {
  left: 0;
}

.recipes__nav-next {
  right: 0;
}

.recipes__nav-prev::after,
.recipes__nav-next::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-color: var(--secondary-color);
  -webkit-mask-image: url('../../images/icons/swiper-arrow.svg');
  mask-image: url('../../images/icons/swiper-arrow.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.3s ease;
}

.recipes__nav-next::after {
  transform: rotate(180deg);
}

/* 桌機版需要 padding 給 nav arrows 空間 */
@media (min-width: 1025px) {
  .single-product-page .recipes__carousel {
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* 平板/手機版隱藏 nav arrows */
@media (max-width: 1024px) {

  .recipes__nav-prev,
  .recipes__nav-next {
    display: none;
  }
}


/* ========================================
   單方香辛料 Section (single-spice 無 tabs 版本)
   ======================================== */
.single-spice {
  background-color: transparent;
}

.single-spice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  height: 1px;
}

.single-spice--no-tabs .single-spice__tabs,
.single-spice--no-tabs .single-spice__hero {
  display: none;
}

/* ========================================
   Single Product Header
   ======================================== */
.single-product__header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
}

.single-product__title {
  font-size: 60px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.single-product__subtitle {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .single-product__header {
    margin-bottom: 24px;
  }

  .single-product__title {
    font-size: 36px;
  }

  .single-product__subtitle {
    font-size: 20px;
  }
}