/* Сторінка товару — відступи та мобільна версія */
body.gf-product-page {
  background: #f3f3f6;
}

/* Контейнер: більше повітря, ніж у шаблоні (10px) */
.gf-product-page .gf-pd-wrap.container {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 56px;
}

.gf-product-page .gf-pd-breadcrumb-bar {
  background: #fff;
  border: 1px solid #e4e4ea;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gf-product-page .gf-pd-breadcrumb.breadcrumb {
  --bs-breadcrumb-divider: "";
  --bs-breadcrumb-item-padding-x: 0;
  background: none;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 14px;
  line-height: 1.45;
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: rgba(48, 48, 48, 0.55);
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-right: 1.5px solid #c8c8d0;
  border-bottom: 1.5px solid #c8c8d0;
  transform: rotate(-45deg);
  flex-shrink: 0;
  float: none;
  padding: 0;
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item a {
  color: #303030;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item a:hover {
  color: #e61f7f;
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item.active {
  color: rgba(48, 48, 48, 0.72);
  max-width: 100%;
}

.gf-product-page .gf-pd-breadcrumb .breadcrumb-item.active span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 42ch);
  font-weight: 500;
  color: #e61f7f;
}

.gf-product-page .gf-pd-layout.row {
  margin-left: -14px;
  margin-right: -14px;
}

.gf-product-page .gf-pd-layout.row > [class*="col-"] {
  padding-left: 14px;
  padding-right: 14px;
}

.gf-product-page .gf-pd-col--gallery {
  margin-bottom: 24px;
}

.gf-product-page .gf-pd-col--summary {
  margin-bottom: 8px;
}

@media (min-width: 992px) {
  .gf-product-page .gf-pd-wrap.container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .gf-product-page .gf-pd-layout.row {
    margin-left: -18px;
    margin-right: -18px;
  }

  .gf-product-page .gf-pd-layout.row > [class*="col-"] {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gf-product-page .gf-pd-col--gallery,
  .gf-product-page .gf-pd-col--summary {
    margin-bottom: 0;
  }
}

/* ——— Галерея ——— */
.gf-product-page .gf-pd-gallery {
  background: #fff;
  border: 1px solid #e4e4ea;
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 100px;
  overflow: visible;
}

/* Скасувати правила шаблону cs_type_1 (710px висота тощо) */
.gf-product-page .gf-pd-gallery.cs_single_product_slider_1 .cs_single_product_thumb_item,
.gf-product-page .gf-pd-gallery-slide {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
}

.gf-product-page .gf-pd-gallery.cs_single_product_slider_1 .cs_single_product_thumb_item:hover img,
.gf-product-page .gf-pd-gallery-slide:hover img {
  opacity: 1 !important;
}

.gf-product-page .gf-pd-gallery-main {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 14px;
  background: #f7f7f9;
  width: 100%;
}

.gf-product-page .gf-pd-gallery-main::-webkit-scrollbar {
  display: none;
}

.gf-product-page .gf-pd-gallery-main.is-single {
  overflow: hidden;
}

.gf-product-page .gf-pd-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  box-sizing: border-box;
}

.gf-product-page .gf-pd-gallery-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.gf-product-page .gf-pd-gallery-nav-wrap {
  margin-top: 18px;
  padding: 0 2px;
}

.gf-product-page .gf-pd-gallery-nav-outer {
  position: relative;
  padding: 0 44px;
}

.gf-product-page .gf-pd-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.gf-product-page .gf-pd-gallery-thumbs.cs_single_product_nav {
  max-width: none !important;
  margin: 0 !important;
}

.gf-product-page .gf-pd-gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border: 2px solid #e8e8ec;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gf-product-page .gf-pd-gallery-thumb.is-active {
  border-color: #e61f7f;
  box-shadow: 0 0 0 1px rgba(230, 31, 127, 0.15);
}

.gf-product-page .gf-pd-gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gf-product-page .gf-pd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #fff;
  border: 1px solid #e0e0e5;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #303030;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gf-product-page .gf-pd-gallery-arrow--prev {
  left: 0;
}

.gf-product-page .gf-pd-gallery-arrow--next {
  right: 0;
}

.gf-product-page .gf-pd-gallery-arrow svg {
  width: 10px;
  height: auto;
}

.gf-product-page .gf-pd-gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0 4px;
}

.gf-product-page .gf-pd-gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d0d0d8;
  cursor: pointer;
}

.gf-product-page .gf-pd-gallery-dot.is-active {
  background: #e61f7f;
}

.gf-product-page .gf-pd-share {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ececf0;
}

.gf-product-page .gf-pd-share p {
  margin-bottom: 12px;
  font-size: 14px;
}

/* ——— Панель інформації ——— */
.gf-product-page .gf-pd-summary.cs_details.cs_style_1 {
  background: #fff;
  border: 1px solid #e4e4ea;
  border-radius: 18px;
  padding: 28px 24px 26px !important;
  box-sizing: border-box;
}

.gf-product-page .gf-pd-gallery.cs_single_product_slider_1 {
  box-sizing: border-box;
}

.gf-product-page .gf-pd-tabs.cs_tabs {
  box-sizing: border-box;
}

.gf-product-page .gf-pd-summary .cs_product_category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e61f7f;
  background: rgba(230, 31, 127, 0.08);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.gf-product-page .gf-pd-summary .cs_product_title {
  font-size: clamp(1.25rem, 4.5vw, 1.85rem);
  line-height: 1.38;
  margin: 0;
  word-break: break-word;
}

.gf-product-page .gf-pd-short-desc {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(48, 48, 48, 0.78);
}

.gf-product-page .gf-pd-rating-wrap {
  margin-top: 18px;
}

.gf-product-page .gf-pd-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

@media (min-width: 480px) {
  .gf-product-page .gf-pd-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
  }
}

.gf-product-page .gf-pd-meta li {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(48, 48, 48, 0.75);
}

.gf-product-page .gf-pd-meta b {
  font-weight: 600;
  color: #303030;
  margin-right: 6px;
}

.gf-product-page .gf-pd-meta .gf-pd-avail--out {
  color: #9a6b00;
}

.gf-product-page .gf-pd-meta .gf-pd-avail--in {
  color: #1a7a42;
}

.gf-product-page .gf-pd-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #ececf0;
}

.gf-product-page .gf-pd-price-row .cs_product_price {
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  line-height: 1.1;
  margin: 0;
}

.gf-product-page .gf-pd-price-old {
  text-decoration: line-through;
  color: rgba(48, 48, 48, 0.45);
  font-size: 0.72em;
  font-weight: 400;
  margin-right: 0.35em;
}

.gf-product-page .gf-pd-price-note {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(48, 48, 48, 0.55);
  margin: 0;
}

.gf-product-page .gf-pd-variant-box {
  margin-top: 18px;
}

.gf-product-page .gf-pd-variant-box__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #303030;
}

.gf-product-page .gf-pd-variant-box__select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #dedee5;
  border-radius: 12px;
  background: #fff;
  color: #303030;
}

.gf-product-page .gf-pd-variant-box__select.is-invalid {
  border-color: #d63638;
  box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.12);
}

.gf-product-page .gf-pd-variant-box__hint {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(48, 48, 48, 0.58);
}

.gf-product-page .gf-pd-buy-box {
  margin-top: 26px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 6px 24px rgba(48, 48, 48, 0.05);
}

.gf-product-page .gf-pd-buy-box__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececf0;
}

.gf-product-page .gf-pd-buy-box__label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(48, 48, 48, 0.8);
}

.gf-product-page .gf-pd-buy-box .cs_quantity.cs_style_1 {
  background: #f7f7f9;
  border: 1px solid #e4e4e8;
  border-radius: 12px;
  min-height: 48px;
}

.gf-product-page .gf-pd-buy-box__actions {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-areas:
    "add add"
    "wish buy";
  gap: 10px;
  align-items: stretch;
}

.gf-product-page .gf-pd-buy-box__add {
  grid-area: add;
  width: 100%;
  min-width: 0 !important;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 15px;
}

.gf-product-page .gf-pd-buy-box__add i {
  font-size: 1rem;
}

.gf-product-page .gf-pd-wishlist-btn {
  grid-area: wish;
  width: 52px;
  min-width: 52px;
  height: auto;
  min-height: 52px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #e0e0e5;
  background: #fff;
  flex-shrink: 0;
}

.gf-product-page .gf-pd-wishlist-btn svg {
  width: 20px;
  height: 18px;
}

.gf-product-page #gf-pd-buy-now {
  grid-area: buy;
  width: 100%;
  min-width: 0 !important;
  min-height: 52px;
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gf-product-page .gf-pd-qty-input {
  width: 56px;
  text-align: center;
  border: none;
  background: transparent;
  -moz-appearance: textfield;
}

.gf-product-page .gf-pd-qty-input::-webkit-outer-spin-button,
.gf-product-page .gf-pd-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gf-product-page .gf-pd-perks {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.gf-product-page .gf-pd-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(48, 48, 48, 0.78);
  margin: 0;
}

.gf-product-page .gf-pd-perk i {
  color: #e61f7f;
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* ——— Вкладки ——— */
.gf-product-page .gf-pd-tabs.cs_tabs {
  background: #fff;
  border: 1px solid #e4e4ea;
  border-radius: 18px;
  padding: 28px 24px 32px !important;
  margin-top: 12px;
}

.gf-product-page .gf-pd-tabs .cs_tab_links {
  border-radius: 12px;
  overflow: hidden;
}

.gf-product-page .gf-pd-tabs .cs_tab_links li a {
  padding: 14px 18px;
  font-size: 16px;
}

.gf-product-page .gf-pd-description {
  font-size: 15px;
  line-height: 1.65;
}

.gf-product-page #gf-pd-related-section {
  margin-top: 0;
}

.gf-product-page #gf-pd-related-section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.gf-product-page #gf-pd-related-section.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 767px) {
  .gf-product-page #gf-pd-related-section.container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ——— Планшет ——— */
@media (min-width: 768px) {
  .gf-product-page .gf-pd-wrap.container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .gf-product-page .gf-pd-gallery {
    padding: 24px;
  }

  .gf-product-page .gf-pd-summary.cs_details.cs_style_1 {
    padding: 32px 36px 28px !important;
  }

  .gf-product-page .gf-pd-tabs.cs_tabs {
    padding: 32px 36px 36px !important;
  }

  .gf-product-page .gf-pd-buy-box {
    padding: 22px 24px;
  }
}

@media (min-width: 992px) {
  .gf-product-page .gf-pd-gallery {
    padding: 28px;
  }

  .gf-product-page .gf-pd-summary.cs_details.cs_style_1 {
    padding: 36px 40px 32px !important;
  }

  .gf-product-page .gf-pd-tabs.cs_tabs {
    padding: 32px 40px 36px !important;
  }

  .gf-product-page .gf-pd-tabs .cs_tab_links li a {
    font-size: 18px;
    padding: 16px 24px;
  }
}

/* ——— Мобільна версія ——— */
@media (max-width: 767px) {
  .gf-product-page .gf-pd-wrap.container {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
  }

  .gf-product-page .gf-pd-breadcrumb-bar {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .gf-product-page .gf-pd-breadcrumb {
    font-size: 12px;
  }

  .gf-product-page .gf-pd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 8px;
    width: 5px;
    height: 5px;
  }

  .gf-product-page .gf-pd-breadcrumb .breadcrumb-item.active span {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gf-product-page .gf-pd-breadcrumb .gf-pd-breadcrumb__category {
    max-width: 120px;
  }

  .gf-product-page .gf-pd-breadcrumb .gf-pd-breadcrumb__category a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gf-product-page .gf-pd-layout.row {
    margin-left: -8px;
    margin-right: -8px;
  }

  .gf-product-page .gf-pd-layout.row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  .gf-product-page .gf-pd-col--gallery {
    margin-bottom: 20px;
  }

  .gf-product-page .gf-pd-gallery {
    padding: 16px;
    border-radius: 16px;
    top: auto;
    position: static;
  }

  .gf-product-page .gf-pd-gallery-slide {
    min-height: 240px;
    padding: 20px 14px;
  }

  .gf-product-page .gf-pd-gallery-slide img {
    max-height: 280px;
  }

  /* На мобільному — крапки замість мініатюр (не обрізаються) */
  .gf-product-page .gf-pd-gallery-nav-wrap {
    display: none !important;
  }

  .gf-product-page .gf-pd-gallery-dots:not([hidden]) {
    display: flex !important;
    margin-top: 14px;
  }

  .gf-product-page .gf-pd-summary.cs_details.cs_style_1 {
    padding: 24px 20px 22px !important;
    border-radius: 16px;
  }

  .gf-product-page .gf-pd-short-desc {
    font-size: 14px;
    margin-top: 14px;
  }

  .gf-product-page .gf-pd-buy-box {
    margin-top: 22px;
    padding: 16px;
    gap: 12px;
  }

  .gf-product-page .gf-pd-buy-box__add,
  .gf-product-page #gf-pd-buy-now,
  .gf-product-page .gf-pd-wishlist-btn {
    min-height: 48px;
  }

  .gf-product-page .gf-pd-wishlist-btn {
    width: 48px;
    min-width: 48px;
  }

  .gf-product-page .gf-pd-buy-box__actions {
    grid-template-columns: 48px 1fr;
    gap: 8px;
  }

  .gf-product-page .gf-pd-tabs.cs_tabs {
    padding: 20px 18px 24px !important;
    border-radius: 16px;
    margin-top: 8px;
  }

  .gf-product-page .gf-pd-tabs .cs_tab_links {
    display: flex;
    flex-direction: row;
  }

  .gf-product-page .gf-pd-tabs .cs_tab_links li {
    flex: 1;
    min-width: 0;
  }

  .gf-product-page .gf-pd-tabs .cs_tab_links li a {
    font-size: 15px;
    padding: 12px 10px;
    text-align: center;
    white-space: nowrap;
  }

  .gf-product-page .gf-pd-share {
    margin-top: 18px;
    padding-top: 16px;
  }
}

@media (max-width: 399px) {
  .gf-product-page .gf-pd-wrap.container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gf-product-page .gf-pd-summary.cs_details.cs_style_1 {
    padding: 22px 18px 20px !important;
  }

  .gf-product-page .gf-pd-gallery {
    padding: 16px !important;
  }

  .gf-product-page .gf-pd-tabs.cs_tabs {
    padding: 18px 16px 22px !important;
  }
}

.gf-pd-brand__link {
  color: var(--accent-color, #c45c48);
  font-weight: 600;
  text-decoration: none;
}

.gf-pd-brand__link:hover {
  text-decoration: underline;
}

.gf-pd-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.gf-pd-specs-table th,
.gf-pd-specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ececf0;
  text-align: left;
  vertical-align: top;
}

.gf-pd-specs-table th {
  width: 38%;
  color: #666;
  font-weight: 500;
}

.gf-pd-discount-offers {
  margin-top: 20px;
}

.gf-pd-discount-offers__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.gf-pd-discount-offers .gf-discount-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 767px) {
  .gf-pd-discount-offers .gf-discount-tiers {
    grid-template-columns: 1fr;
  }
}

.gf-pd-discount-offers .gf-discount-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px 14px 14px;
  background: #f3f3f5;
  border-radius: 12px;
  border: none;
}

.gf-pd-discount-offers .gf-discount-tier__body {
  min-width: 0;
}

.gf-pd-discount-offers .gf-discount-tier__label {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #1a1a1a;
  line-height: 1.3;
}

.gf-pd-discount-offers .gf-discount-tier__threshold {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #e61f7f);
  margin: 0;
  line-height: 1.3;
}

.gf-pd-discount-offers .gf-discount-tier__btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--accent, #e61f7f);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.gf-pd-discount-offers .gf-discount-tier__btn:hover {
  opacity: 0.9;
}
