/*
 * GrandBazaarist PDP deferred styles.
 * First-screen PDP styles stay in product-extras.css; below-fold product footer/review UI lives here.
 */

/* ==================== 7) FOOTER SECTIONS ==================== */

/* Bölüm kabukları */
.product-footer .gb-sec{ padding:28px 0; border-top:1px solid #eee; margin:0; }
.product-footer .gb-sec:first-of-type{ border-top:0 }

/* Başlıklar (sticky offset ile) */
.product-footer .gb-sec-title{
  max-width:1040px;
  margin:0 auto 12px;
  font-size:20px;
  font-weight:700;
  line-height:1.25;
  color:#2f3034;
  scroll-margin-top: calc(var(--gb-sticky, 80px) - 6px);
}

/* Gövde temel düzenler */
.product-footer .gb-sec-body > *:first-child{ margin-top:0 }
.product-footer .block-description{
  padding-top:34px;
}
.product-footer .block-description .gb-sec-title{
  font-size:22px;
  font-weight:700;
  color:#2f3034;
  letter-spacing:0;
}
.product-footer .gb-description-body{
  position:relative;
  max-width:1040px;
  margin-left:auto;
  margin-right:auto;
  padding:20px 22px;
  border:1px solid #f0ecef;
  border-radius:12px;
  background:#fff;
  color:#303238;
  font-size:16px;
  line-height:1.7;
}
.product-footer .gb-description-body.is-collapsed{
  max-height:360px;
  overflow:hidden;
}
.product-footer .gb-description-body.is-collapsed::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:92px;
  pointer-events:none;
  border-radius:0 0 12px 12px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
}
.product-footer .gb-description-body p{
  margin:0 0 1em;
}
.product-footer .gb-description-body h2,
.product-footer .gb-description-body h3,
.product-footer .gb-description-body h4{
  color:#2f3034;
  line-height:1.25;
  margin:1.2em 0 .55em;
}
.product-footer .gb-description-body h2{ font-size:24px; }
.product-footer .gb-description-body h3{ font-size:20px; }
.product-footer .gb-description-body ul,
.product-footer .gb-description-body ol{
  padding-left:1.2em;
  margin:0 0 1em;
}
.product-footer .gb-description-toggle-wrap{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  max-width:1040px;
  margin:18px auto 0;
}
.product-footer .gb-description-toggle-wrap::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:#e8e3e6;
}
.product-footer .gb-description-toggle{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  min-height:40px;
  padding:0 22px;
  border:0;
  border-radius:999px;
  background:#f3f3f4;
  color:#303238;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.product-footer .gb-description-toggle .gb-description-toggle-less{ display:none; }
.product-footer .gb-description-toggle[aria-expanded="true"] .gb-description-toggle-more{ display:none; }
.product-footer .gb-description-toggle[aria-expanded="true"] .gb-description-toggle-less{ display:inline; }
.product-footer .gb-description-toggle.is-hidden{ display:none; }
.product-footer .gb-description-toggle-wrap:has(.gb-description-toggle.is-hidden){ display:none; }
@media(hover:hover){
  .product-footer .gb-description-toggle:hover{
    background:#ececef;
    color:#611b3f;
  }
}
.product-footer .gb-sec-body table{ width:100%; border-collapse:collapse }
.product-footer .gb-sec-body th,
.product-footer .gb-sec-body td{ padding:10px 12px; border-bottom:1px solid rgba(0,0,0,.08); text-align:left; }
.product-footer .gb-sec-body ul{ padding-left:1.25em }

/* Additional information: Woo attribute tablosunu ürün özellik kartlarına çevir */
.product-footer .block-additional_information{
  padding-top:22px;
}
.product-footer .block-additional_information .gb-sec-title{
  font-size:20px;
  font-weight:700;
  color:#2f3034;
}
.product-footer .block-additional_information .gb-sec-body{
  max-width:1040px;
  margin-left:auto;
  margin-right:auto;
}
.product-footer .block-additional_information .woocommerce-product-attributes{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:12px;
  width:100%;
  max-width:100%;
  margin:0;
  border-collapse:separate;
}
.product-footer .block-additional_information .woocommerce-product-attributes tbody{
  display:contents;
}
.product-footer .block-additional_information .woocommerce-product-attributes tr{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-height:78px;
  padding:14px 15px;
  border:1px solid #ece8eb;
  border-radius:10px;
  background:#f8f8f9;
}
.product-footer .block-additional_information .woocommerce-product-attributes th,
.product-footer .block-additional_information .woocommerce-product-attributes td{
  display:block;
  width:auto;
  padding:0;
  border:0;
  background:transparent;
  text-align:left;
}
.product-footer .block-additional_information .woocommerce-product-attributes th{
  color:#6b6870;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.2;
  text-transform:uppercase;
}
.product-footer .block-additional_information .woocommerce-product-attributes td,
.product-footer .block-additional_information .woocommerce-product-attributes td p{
  color:#303238;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  margin:0;
}
.product-footer .block-additional_information .woocommerce-product-attributes a{
  color:#611b3f;
  text-decoration:none;
}
.product-footer .block-additional_information .woocommerce-product-attributes a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Kategori içi popüler ürünler */
.product-footer .block-category-popular{
  padding-top:28px;
}
.product-footer .block-category-popular .gb-sec-title{
  font-size:20px;
  font-weight:700;
  color:#2f3034;
}
.product-footer .block-category-popular .gb-sec-body{
  max-width:1040px;
  margin-left:auto;
  margin-right:auto;
}
.product-footer .block-category-popular ul.products{
  margin:0;
}
.product-footer .block-category-popular .product-small{
  display:flex;
  flex-direction:column;
}
.product-footer .block-category-popular .box-image{
  aspect-ratio:1/1;
}
.product-footer .block-category-popular .box-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Reviews */
.product-footer .block-reviews .commentlist{ list-style:none; padding:0; margin:0 }
.product-footer .block-reviews .commentlist li{ padding:14px 0; border-bottom:1px solid rgba(0,0,0,.06); }
/* Related / Upsell kozmetik */
.product-footer .related, .product-footer .upsells{ margin-top:8px }
.product-footer .related ul.products, .product-footer .upsells ul.products{ margin:0 }
.product-footer .related .product-small, .product-footer .upsells .product-small{ display:flex; flex-direction:column; }
.product-footer .related .box-image, .product-footer .upsells .box-image{ aspect-ratio:1/1; }
.product-footer .related .box-image img, .product-footer .upsells .box-image img{ width:100%; height:100%; object-fit:cover; }

/* Eski anchor id’leri ile uyum */
#gb-sec-description, #gb-sec-additional_information, #gb-sec-reviews, #gb-sec-ux_global_tab{
  scroll-margin-top: calc(var(--gb-sticky, 80px) - 6px);
}

/* Mobil aralıklar */
@media (max-width:640px){
  .product-footer .gb-sec{ padding:24px 0 }
  .product-footer .gb-sec-title{ font-size:1.2rem }
  .product-footer .gb-description-body{
    font-size:14.5px;
    line-height:1.65;
  }
  .product-footer .gb-description-body.is-collapsed{
    max-height:320px;
  }
  .product-footer .block-additional_information .woocommerce-product-attributes{
    grid-template-columns:1fr;
  }
}

/* ==================== 8) REVIEWS UI POLISH ==================== */
.product-footer .gb-sec-body .woocommerce-photo-reviews-shortcode{
  --gb-rv-border: #ebe5e9;
  --gb-rv-bg: #ffffff;
  --gb-rv-soft: #fbf8fa;
  --gb-rv-text: #1f2937;
  --gb-rv-muted: #6b7280;
  --gb-rv-accent: #611b3f;
  --gb-rv-star: #f1992d;
  max-width:1040px;
  margin-left:auto;
  margin-right:auto;
}

.product-footer .gb-sec-body .gb-review-toggle{
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: none;
  background:#611b3f;
  border-color:#611b3f;
  color:#fff;
}

.product-footer .gb-sec-body #review_form_wrapper{
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--gb-rv-border);
  border-radius: 10px;
  background: var(--gb-rv-soft);
}

.product-footer .gb-sec-body .wcpr_review_form{
  padding: 10px;
  border-radius: 8px;
  background: var(--gb-rv-bg);
}

.product-footer .gb-sec-body .wcpr-form-description{
  margin-bottom:10px; color:#1f2937; font-size:18px; font-weight:700; line-height:1.3;
}

.product-footer .gb-sec-body .wcpr-comment-form-title input,
.product-footer .gb-sec-body .comment-form-comment textarea{
  border-radius:10px; border:1px solid #d8dde5; background:#fff;
}

.product-footer .gb-sec-body .wcpr-comment-form-title input{ font-size:16px; font-weight:400; color:#111827; }
.product-footer .gb-sec-body .wcpr-comment-form-title input::placeholder{ color:#6b7280; opacity:1; }

.product-footer .gb-sec-body .wcpr-comment-form .comment-form-comment textarea{ min-height:140px; }

.product-footer .gb-sec-body .wcpr-comment-form .comment-form-comment{ margin:0 0 10px; }
.product-footer .gb-sec-body .wcpr-comment-form .wcpr-comment-form-images{ margin-bottom:10px; }
.product-footer .gb-sec-body .wcpr-comment-form .wcpr-gdpr-policy{ margin-bottom:0; }

.product-footer .gb-sec-body .wcpr-comment-form .wcpr-input-file-container{ max-width:460px; }
.product-footer .gb-sec-body .wcpr-comment-form .wcpr-input-file-wrap{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; max-width:100%; }
.product-footer .gb-sec-body .wcpr-comment-form .wcpr_image_upload_button{
  max-width:100%; white-space:normal; line-height:1.25; text-align:left; padding:10px 14px;
  border-radius:8px; border:1px dashed #b9c2cf; background:#fff; color:#334155; transition:border-color .2s ease, background-color .2s ease;
}
.product-footer .gb-sec-body .wcpr-comment-form .wcpr_image_upload_button:hover,
.product-footer .gb-sec-body .wcpr-comment-form .wcpr_image_upload_button:focus{ border-color:#94a3b8; background:#f8fafc; }

.product-footer .gb-sec-body .wcpr-comment-form .form-submit input.submit,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit button.submit,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit button[type="submit"]{
  border-radius:999px; padding:10px 18px; min-height:42px; font-size:14px; font-weight:700; line-height:1.2;
  background:var(--gb-rv-accent, #611b3f); border-color:var(--gb-rv-accent, #611b3f); color:#fff;
  opacity:1; visibility:visible;
}
.product-footer .gb-sec-body .wcpr-comment-form .form-submit input.submit:hover,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit input.submit:focus,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit button.submit:hover,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit button.submit:focus,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit button[type="submit"]:hover,
.product-footer .gb-sec-body .wcpr-comment-form .form-submit button[type="submit"]:focus{ background:#4f1533; border-color:#4f1533; color:#fff; }

.product-footer .gb-sec-body .wcpr-comment-form .form-submit{
  margin-top: 12px;
}

.product-footer .gb-sec-body .shortcode-wcpr-grid-item{
  border: 1px solid var(--gb-rv-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  margin-top: 0;
}

.product-footer .gb-sec-body .shortcode-review-content-container-top-right{
  gap: 1px;
  display: flex;
  flex-direction: column;
}
.product-footer .gb-sec-body .shortcode-review-content-container-top-right > .shortcode-wcpr-comment-author{ order: 1; }
.product-footer .gb-sec-body .shortcode-review-content-container-top-right > .review-location-line{
  order: 2;
  margin: 0 !important;
}
.product-footer .gb-sec-body .shortcode-review-content-container{
  row-gap: 3px;
}

.product-footer .gb-sec-body .wcpr-comment-author-with-country,
.product-footer .gb-sec-body .shortcode-wcpr-comment-author-with-country{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.product-footer .gb-sec-body .wcpr-review-country,
.product-footer .gb-sec-body .shortcode-wcpr-review-country{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  line-height:1;
  order:2;
}

.product-footer .gb-sec-body .wcpr-review-country i,
.product-footer .gb-sec-body .shortcode-wcpr-review-country i{
  display:inline-block;
  margin:-13px -19px !important;
  transform:scale(.35);
  transform-origin:center;
}

.product-footer .gb-sec-body .wcpr-comment-author-with-country .woocommerce-review__verified,
.product-footer .gb-sec-body .shortcode-wcpr-comment-author-with-country .woocommerce-review__verified{
  order:3;
}

.product-footer .gb-sec-body .shortcode-wcpr-comment-author .woocommerce-review__verified,
.product-footer .gb-sec-body .wcpr-comment-author .woocommerce-review__verified,
.product-footer .gb-sec-body .woocommerce-review__author + .woocommerce-review__verified{
  margin-left: 6px;
  display: inline-block;
  vertical-align: baseline;
}

.product-footer .gb-sec-body .shortcode-wcpr-grid-item + .shortcode-wcpr-grid-item{
  margin-top: 6px;
}

.product-footer .gb-sec-body .shortcode-wcpr-comments .commentlist{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.product-footer .gb-sec-body .shortcode-wcpr-comments .commentlist > li.gb-wcpr-normal-review{
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.product-footer .gb-sec-body .gb-wcpr-normal-review__inner{
  display: block;
}

.product-footer .gb-sec-body .gb-wcpr-review-row{
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.product-footer .gb-sec-body .gb-wcpr-review-main{
  flex: 1 1 auto;
  min-width: 0;
}

.product-footer .gb-sec-body .gb-wcpr-review-media{
  flex: 0 0 auto;
  margin-left: auto;
}

.product-footer .gb-sec-body .gb-wcpr-review-media .kt-reviews-image-container{
  width: auto;
  margin: 0;
}

.product-footer .gb-sec-body .gb-wcpr-review-media .kt-wc-reviews-images-wrap-wrap{
  display: flex;
  justify-content: flex-end;
}

.product-footer .gb-sec-body .gb-wcpr-review-media .reviews-images-item{
  max-width: 120px;
}

.product-footer .gb-sec-body .gb-wcpr-review-media .review-images{
  max-width: 120px;
  max-height: 120px;
  border-radius: 6px;
}

.product-footer .gb-sec-body .gb-wcpr-review-media .big-review-images{
  max-width: none;
}

.product-footer .gb-sec-body .gb-wcpr-normal-review .shortcode-wcpr-comment-author{
  display: flex !important;
  align-items: center;
  width: fit-content;
}

.product-footer .gb-sec-body .gb-wcpr-normal-review .shortcode-wcpr-review-title{
  font-size: 15px;
}

.product-footer .gb-sec-body .gb-wcpr-normal-review .shortcode-wcpr-review-content{
  font-size: 14.5px;
}

.product-footer .gb-sec-body .gb-wcpr-normal-review .shortcode-wcpr-review-content p{
  margin: 0;
}

.product-footer .gb-sec-body .gb-wcpr-normal-review .woocommerce-photo-reviews-verified{
  font-size: .9em;
}

.product-footer .gb-sec-body .gb-review-country-inline{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}

.product-footer .gb-sec-body .gb-review-country-inline i{
  display: inline-block;
  margin: -13px -18px !important;
  transform: scale(.35);
  transform-origin: center;
}

.product-footer .gb-sec-body .gb-review-country-code{
  font-size: .76em;
  font-weight: 400;
  opacity: .78;
}

@media (max-width: 640px){
  .product-footer .gb-sec-body .gb-wcpr-review-row{
    display: block;
  }

  .product-footer .gb-sec-body .gb-wcpr-review-media{
    margin: 10px 0 0;
  }
}

.product-footer .gb-sec-body .gb-review-product-ref{
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.product-footer .gb-sec-body .gb-review-product-ref a{
  color: var(--gb-rv-accent);
  font-weight:700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(97,27,63,.45);
}

.product-footer .gb-sec-body .wcpr-load-more-reviews-button-container{
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}

.product-footer .gb-sec-body .wcpr-load-more-reviews-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--gb-rv-accent);
  background: var(--gb-rv-accent);
  color: #fff;
  font-weight: 700;
  padding: 9px 18px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.product-footer .gb-sec-body .wcpr-load-more-reviews-button:is(:hover, :focus){
  border-color: #4f1533;
  background: #4f1533;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 860px){
}

@media (max-width: 640px){
  .product-footer .gb-sec-body #review_form_wrapper{
    padding: 10px;
    border-radius: 10px;
  }

  .product-footer .gb-sec-body .wcpr_review_form{
    padding: 10px;
  }

}
