/* Single product page */

.pcrumbs { background-color: var(--c-grey); padding: 15px 10px 16px; }
.pcrumbs .breadcrumb { font-size: 16px; line-height: 22px; text-align: center; color: var(--c-text); }

.product { padding: 40px 0 50px; }
.product__inner { display: flex; gap: 20px; }
.product__media, .product__details { flex: 1 1 0; min-width: 0; }

/* Gallery */
.pgallery { margin-bottom: 2em; }
.pgallery__stage {
  position: relative;
  display: grid;
  align-items: center;
  margin-bottom: 20px;
  background-color: #f7f7f7;
  box-shadow: 1px 4px 3px 0 #ddd;
}
.pgallery__slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s; cursor: zoom-in; }
.pgallery__slide.is-active { visibility: visible; opacity: 1; }
.pgallery__slide img { display: block; width: auto; max-width: 100%; max-height: 450px; margin: 0 auto; padding: 50px; }
.pgallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  width: 30px;
  height: 28px;
  margin-top: -15px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}
.pgallery__arrow svg { width: 28px; height: 28px; }
.pgallery__arrow--prev { left: 0; }
.pgallery__arrow--next { right: 0; }
.pgallery__arrow:disabled { cursor: default; }
.pgallery__thumbs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.pgallery__thumbs::-webkit-scrollbar { display: none; }
.pgallery__thumb {
  flex: 0 0 calc((100% - 40px) / 4);
  aspect-ratio: 1;
  margin: 10px 5px 0;
  padding: 0;
  border: 0;
  background: none;
  opacity: .5;
  cursor: pointer;
  transition: opacity .3s;
}
.pgallery__thumb.is-active, .pgallery__thumb:hover { opacity: 1; }
.pgallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Details */
.product__title { margin: 0; font-family: var(--f-head); font-size: 48px; font-weight: 700; line-height: 50px; color: var(--c-primary); }
.product__divider { margin: 55px 0; border: 0; border-top: 1px solid var(--c-primary); }
.product__actions { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.product__btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--c-primary);
  border-radius: 0;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
  transition: all .2s;
}
.product__btn--ask { margin-right: 20px; color: var(--c-white); background-color: var(--c-primary); }
.product__btn--ask:hover { color: var(--c-primary); background-color: var(--c-white); }
.product__btn--inquire { color: var(--c-primary); background-color: var(--c-white); }
.product__btn--inquire:hover { color: var(--c-white); background-color: var(--c-primary); }

/* Share */
.share { margin-left: auto; padding: 2px; }
.share__btn { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 50%; background: #161616; color: #fff; cursor: pointer; }
.share__btn svg { width: 18px; height: 18px; }
.share-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.share-modal[hidden] { display: none; }
.share-modal__box { position: relative; width: 100%; max-width: 420px; padding: 24px; border-radius: 4px; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .3); }
.share-modal__box h3 { margin: 0 0 16px; font-family: var(--f-body); font-size: 18px; font-weight: 500; color: #000; }
.share-modal__close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.share-modal__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.share-modal__list a, .share-modal__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid #eee; border-radius: 3px; background: #fff; font: 15px/1.2 var(--f-body); color: #222; cursor: pointer; }
.share-modal__list i { width: 20px; text-align: center; font-size: 18px; }

/* Tabs */
.ptabs-section { padding: 50px 0; background-color: var(--c-grey); }
.ptabs__list { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.ptabs__list li { flex: 1 1 0; margin: 0; border-left: 1px solid #dbdbdb; border-bottom: 1px solid #dbdbdb; background-color: #fff; text-align: center; }
.ptabs__list a { display: block; width: 100%; padding: 20px 30px; font-size: 16px; font-weight: 500; line-height: 1; text-transform: uppercase; color: #000; }
.ptabs__list li.is-active { background-color: var(--c-primary); }
.ptabs__list li.is-active a { color: var(--c-white); }
.ptabs__panel { margin-top: -1px; padding: 20px; background-color: #fff; }
.ptabs__panel h2 { display: none; }
.ptabs__panel p { margin: 0 0 30px; }
.ptabs__panel h4 { margin: 0; font-family: var(--f-head); font-size: 26px; font-weight: 600; line-height: 30px; color: var(--c-primary); }
.ptabs__panel .advantages ul { padding-left: 30px; list-style: circle; padding-top: 10px; margin: 0; }
.ptabs__panel .advantages ul li { line-height: 1.6em; }
.ptabs__panel .advantages:has(> ul:empty) h4 { display: none; }
.ptabs__panel #tab-product-details .col1, .ptabs__panel .col1, .ptabs__panel .col2 { display: inline-block; width: 50%; vertical-align: top; }
.ptabs__panel h5 { margin: 0 0 10px; font-family: var(--f-head); font-size: 26px; font-weight: 600; line-height: 30px; color: var(--c-primary); }
.ptabs__panel hr { border: 0; border-top: 1px solid #ddd; }

/* Reviews */
.reviews__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #ddd; }
.reviews__top h4 { font-family: var(--f-body); font-size: 24px; font-weight: 400; line-height: 1.2; color: #000; margin: 0 0 5px; }
.reviews__top p { margin: 0; color: #000; }
.reviews__write { padding: 14px 30px; border: 1px solid #000; border-radius: 30px; background: transparent; font: 400 16px/1 var(--f-body); text-transform: uppercase; color: #000; cursor: pointer; transition: all .2s; }
.reviews__write:hover { background: #000; color: #fff; }
.reviews__none { margin: 20px 0 0 !important; }
.reviews__form { margin-top: 30px; }
.reviews__form p { margin: 0 0 20px; }
.reviews__reply-title { display: block; margin-bottom: 20px; font-size: 24px; line-height: 24px; color: #000; }
.reviews__notes { font-size: 16px; }
.reviews__form label { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 500; color: #000; }
.reviews__form textarea, .reviews__form input[type=text], .reviews__form input[type=email] { width: 100%; padding: 12px 13px; border: 1px solid #979797; border-radius: 0; font: 16px var(--f-body); }
.reviews__form textarea { height: 75px; }
.reviews__rating { margin-bottom: 20px; }
.stars { margin: 0; }
.stars a { margin-right: 4px; font-size: 20px; line-height: 1; color: #b58e6d; text-decoration: none; }
.stars a.is-on { color: var(--c-primary); }
.reviews__submit button { padding: 12px 20px; border: 1px solid var(--c-primary); background: var(--c-primary); font: 400 16px/16px var(--f-body); text-transform: uppercase; color: #fff; cursor: pointer; }
.reviews__submit button:hover { color: var(--c-primary); background: #fff; }
.required { color: #e2401c; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(30, 30, 30, .87); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: calc(100vw - 88px); max-height: calc(100vh - 88px); object-fit: contain; transition: transform .3s; cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__img { transform: scale(1.8); cursor: zoom-out; }
.lightbox__toolbar { position: absolute; top: 0; right: 0; display: flex; }
.lightbox__btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: rgba(30, 30, 30, .6); color: #ccc; cursor: pointer; }
.lightbox__btn:hover { color: #fff; }
.lightbox__btn svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox__nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 25px 44px; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent); font-size: 14px; line-height: 20px; text-align: center; color: #eee; }

@media (max-width: 1024px) {
  .product { padding: 30px 0; }
  .product__divider { margin: 44px 0; }
}
@media (min-width: 768px) and (max-width: 980px), (max-width: 480px) {
  .product__btn--ask { width: 85%; margin-right: 0; }
  .product__btn--inquire { width: 85%; margin-top: 10px; }
  .share { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
}
@media (max-width: 767px) {
  .product__inner { flex-direction: column; }
  .ptabs__list { flex-direction: column; }
  .ptabs__list li { text-align: left; }
  .ptabs__panel .col1, .ptabs__panel .col2 { width: 100%; }
  .reviews__top { flex-wrap: wrap; }
}
