/* ========================================
   Product Detail Page — BALANUS
   Creative styles with special effects
   ======================================== */

/* --- Breadcrumb --- */
.product-breadcrumb {
  padding: 20px 0 0;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-breadcrumb__link {
  color: var(--color-primary);
  transition: color 0.3s ease;
}
.product-breadcrumb__link:hover {
  color: var(--color-black);
}
.product-breadcrumb__sep {
  margin: 0 8px;
  color: #ccc;
}
.product-breadcrumb__current {
  color: var(--color-black);
  font-weight: 600;
}

/* --- Product Detail Grid --- */
.product-detail {
  padding: 30px 0 60px;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-light) 100%);
}
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* --- Gallery --- */
.product-gallery {
  position: sticky;
  top: 20px;
}
.product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 20px 60px -10px rgba(153, 65, 122, 0.25);
}
.product-gallery__main-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.product-gallery__main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-gallery__main-img.active {
  opacity: 1;
  transform: scale(1);
}
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  z-index: 5;
}
.product-gallery__nav:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(153, 65, 122, 0.4);
}
.product-gallery__nav--prev { left: 16px; }
.product-gallery__nav--next { right: 16px; }
.product-gallery__counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  backdrop-filter: blur(4px);
  z-index: 5;
}
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.product-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--color-white);
  transition: all 0.3s ease;
}
.product-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-gallery__thumb:hover img {
  transform: scale(1.1);
}
.product-gallery__thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(153, 65, 122, 0.3);
}

/* --- Product Info --- */
.product-info {
  padding: 10px 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
body.loaded .product-info {
  opacity: 1;
  transform: translateX(0);
}
.product-info__collection {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.3s forwards;
}
.product-info__name {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-black));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}
.product-info__sku {
  font-size: 18px;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.5s forwards;
}
.product-info__description {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
}
.product-info__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(153, 65, 122, 0.1);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.7s forwards;
}
.product-info__spec {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.product-info__spec-label {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  width: 140px;
  text-align: right;
  flex-shrink: 0;
}
.product-info__spec-value {
  font-size: 18px;
  color: #333;
}

/* --- Price & Buy --- */
.product-info__price-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

.product-info__price {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-black);
}
.product-info__buy {
  position: relative;
  overflow: hidden;
  padding: 14px 24px;
  margin: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--color-primary), #7a3362);
  color: var(--color-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px -4px rgba(153, 65, 122, 0.4);
}
.product-info__buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -4px rgba(153, 65, 122, 0.5);
}
.product-info__buy:active {
  transform: translateY(0);
}
.product-info__buy-icon {
  transition: transform 0.3s ease;
  font-size: 20px;
}
.product-info__buy:hover .product-info__buy-icon {
  transform: translateX(6px);
}
.product-info__buy-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* --- Consultation link --- */
.product-info__consult {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 18px; border: 2px solid var(--color-primary);
  border-radius: 30px; color: var(--color-primary); background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  text-align: center; text-indent: 1.5px; white-space: nowrap; flex-shrink: 0;
  cursor: pointer; transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.product-info__consult:hover {
  background: var(--color-primary); color: var(--color-white); transform: translateY(-2px);
}
/* consult stays inline on narrow screens so the price row keeps one line */


/* --- Divider & Meta --- */
.product-info__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.3;
  margin-bottom: 15px;
  margin-top: -10px;
}
.product-info__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.9s forwards;
}
.product-info__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #555;
}
.product-info__meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

/* --- Material Strip --- */
.material-strip {
  padding: 40px 0;
  background: var(--color-white);
}
.material-strip__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.material-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.material-strip__item.revealed {
  opacity: 1;
  transform: translateY(0);
}
.material-strip__item:nth-child(3).revealed { transition-delay: 0.15s; }
.material-strip__item:nth-child(5).revealed { transition-delay: 0.3s; }
.material-strip__symbol {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.material-strip__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
}
.material-strip__divider {
  width: 1px;
  height: 50px;
  background: var(--color-light);
}

/* --- Animations --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ripple {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* --- Responsive --- */
@media screen and (max-width: 900px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-gallery {
    position: static;
  }
  .product-info__name {
    font-size: 36px;
  }
  .product-info__price {
    font-size: 28px;
  }
}
@media screen and (max-width: 600px) {
  .product-info__price-row {
    gap: 10px;
  }
  .product-info__buy {
    justify-content: center;
  }
  .material-strip__items {
    flex-direction: column;
  }
  .material-strip__divider {
    width: 50px;
    height: 1px;
  }
  .product-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* Purchase information block */
.product-info__purchase {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 22px 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.85s forwards;
}
.product-info__purchase-line {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}
.product-info__purchase-line strong {
  color: #99417a;
  font-weight: 600;
}
