/* =============================
   FILE: single-product.css
   ============================= */

:root {
  --color-bg: #ffffff;
  --color-text: #1f1f1f;
  --color-muted: #6f6f6f;
  --color-border: #e6e6e6;
  --color-accent: #b8a88a;

  --container: 1240px;
  --radius: 2px;
}

.product-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 60px;
}


/* ===== Fancybox Product Gallery ===== */
.product-gallery-wrapper {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 10;
}

.gallery-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
  margin: auto;
}

.gallery-arrow.prev {left: -20px;}
.gallery-arrow.prev::before {transform: rotate(-135deg);}
.gallery-arrow.next {right: -20px;}
.gallery-arrow.next::before {transform: rotate(45deg);}
.gallery-arrow:hover {background: #fff;}
.product-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}
.product-gallery::-webkit-scrollbar {height: 4px;}
.product-gallery::-webkit-scrollbar-thumb {
  background: rgba(39, 38, 38, 0.658);
  border-radius: 10px;
}

.gallery-slide {
  flex: 0 0 70%;
  max-width: 70%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;filter: grayscale(.75);
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.gallery-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  
}
/* subtle depth */
.gallery-slide:not(.is-active) {opacity: 0.85;}
.gallery-slide:hover {transform: translateY(-4px);opacity: 1; filter: grayscale(0);}
/* Fancybox tweaks */
.fancybox__container {
  --fancybox-bg: rgba(20,20,20,0.95);
}
.fancybox__caption {font-family: var(--font-body);font-size: 14px;color: #ddd;}

.product-gallery img {
  width: 100%;
  margin-bottom: 16px;
}
.product h1 {margin-top: 16px;margin-bottom: 16px;}
.product-short {
  font-size: 18px;
  color: var(--color-muted);
}
.product-hero-content {text-align: right;}
.details-specs {text-align: right;margin-bottom: 40px;}
.product-badge {
  margin-bottom: 26px;
  display: inline-block;
  padding: 7px 14px;    background: #333;
    font-size: 11px; font-weight:300; line-height: 1;
    color: #eee;
    text-transform: uppercase;letter-spacing: 1.5px;
}
.product-trust {padding: 80px 0;
    margin: 80px 0 60px;
    background: #f7f7f7;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.trust-item {
  text-align: center;
  max-width: 260px;
  margin: 0 auto;
}

.trust-icon {display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: #9f9f9f;
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
  transform: translateY(1px);
}

.trust-item h4 {color: #222;
  font-weight: 500;
 font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #6f6f6f;
}

.trust-divider {
  width: 120px;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 56px auto 40px;
}

/* Tablet */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .product-trust {
    margin: 60px 0 40px;
  }

  .trust-item {
    max-width: 100%;
  }
}
@media (hover: hover) {
  .trust-item {
    transition: transform .3s ease, opacity .3s ease;
  }

  .trust-item:hover {
    transform: translateY(-2px);
    opacity: 0.9;
  }
}

.product-specs {
  max-width: 820px;
  margin: 40px auto;
  border-top: 1px solid var(--color-border);
}

.product-spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 16px;
}

.product-description {
  max-width: 820px;
  margin: 60px auto;
  font-size: 17px;
  line-height: 1.7;
}

.product-form-title h2 {color: #222;padding-top: 30px;}
.anchor-form {text-align: right;}
.product-cta {
  max-width: 820px;
  margin: 80px auto;
  padding: 48px;box-shadow: 0 2px 15px #efefef;
  background: #fff;
}
.cta-top-text {font-size: 16px;}
.cta-form-text {
  text-align: center;
    font-size: 15px;
    color: #888;
    font-weight: 300;
}

.related-products {
  max-width: var(--container);
  margin: 80px auto;
  padding: 0 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.related-item img {
  width: 100%;
  border-radius: var(--radius);
}

.related-item span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .product-hero {grid-template-columns: 1fr;}
  .gallery-slide {flex: 0 0 85%;max-width: 85%;}
  .gallery-slide img {height: 360px;}
}

.product-details {
  max-width: var(--container);
  margin: 80px auto 40px;
  padding: 0 24px;
}

.spec-row { font-size: 14px;letter-spacing: 0.04em;
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: left;
}

.spec-row span:first-child {
  color: #777;
}

.spec-row span:last-child {
  color: #555;
  text-align: right;
}

.spec-row:last-child {
  border-bottom:0;}

.details-description p {
  font-size: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
