/* =========================================================
   Doruva Furniture – Ürün sayfası: galeri, sekmeler, değerlendirmeler
   ========================================================= */
.single-product {
  --dp-ink: #1c1a19;
  --dp-text: #4a4441;
  --dp-muted: #8a817b;
  --dp-line: #e9e2da;
  --dp-ivory: #f7f3ee;
  --dp-sand: #efe7dd;
  --dp-accent: #f18422;
  --dp-accent-d: #d86d0e;
  --dp-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --dp-radius: 16px;
}

/* ---------- Başlık / fiyat ---------- */
.single-product div.product .product_title { font-family: var(--dp-serif); font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.01em; color: var(--dp-ink); margin: 0 0 14px; }
.single-product div.product .summary .woocommerce-product-rating { margin: -4px 0 14px; }
.single-product div.product p.price { margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.single-product div.product p.price ins { order: 1; text-decoration: none; }
.single-product div.product p.price del { order: 2; }

/* ---------- Galeri ---------- */
.single-product div.product .woocommerce-product-gallery { position: relative; margin-bottom: 40px; }
.single-product div.product .woocommerce-product-gallery .flex-viewport,
.single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { border-radius: var(--dp-radius); overflow: hidden; background: #fff; border: 1px solid var(--dp-line); }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image { position: relative; margin: 0; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 4 / 3; background: #fff; cursor: zoom-in; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 0 !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image .zoomImg { background: #fff; }
/* Galeri JS yüklenmeden önce sadece ilk görsel görünsün (zıplama olmasın) */
.single-product div.product .woocommerce-product-gallery:not(.dp-ready) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) { display: none; }

/* Büyüt butonu */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { top: 16px; right: 16px; left: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1a19' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat !important; color: transparent !important; box-shadow: 0 6px 18px rgba(28,26,25,.14); display: block; font-size: 0 !important; text-indent: -999px; overflow: hidden; z-index: 5; transition: transform .2s; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger > * { display: none !important; }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover { transform: scale(1.06); }
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before,
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after { display: none !important; }
.single-product div.product .woocommerce-product-gallery__trigger img.emoji { display: none !important; }

/* İndirim rozeti galerinin üstünde */
.single-product div.product > .onsale, .single-product div.product .woocommerce-product-gallery + .onsale { z-index: 6; }

/* Oklar */
.single-product div.product .woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav li { margin: 0; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--dp-ink); box-shadow: 0 6px 18px rgba(28,26,25,.14); font-size: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s, background .2s, color .2s; text-decoration: none; }
.single-product div.product .woocommerce-product-gallery:hover .flex-direction-nav a,
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a:focus-visible { opacity: 1; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a:hover { background: var(--dp-ink); color: #fff; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a::before { content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 14px; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-prev::before { transform: translateX(2px) rotate(-135deg); }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 14px; }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-next::before { transform: translateX(-2px) rotate(45deg); }
.single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: 0 !important; pointer-events: none; }

/* Sayaç (1 / 6) */
.dp-counter { position: absolute; left: 16px; bottom: 16px; z-index: 4; background: rgba(28,26,25,.72); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; pointer-events: none; top: auto; }

/* Küçük resimler: tek satır, kaydırılabilir */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0 !important; padding: 2px 0 6px !important; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--dp-line) transparent; list-style: none; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::before,
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::after { display: none; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { float: none !important; flex: 0 0 calc((100% - 50px) / 6); width: auto !important; margin: 0 !important; clear: none !important; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; border-radius: 10px !important; border: 2px solid transparent; opacity: .6; cursor: pointer; transition: opacity .2s, border-color .2s; background: var(--dp-ivory); margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover { opacity: 1; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { opacity: 1; border-color: var(--dp-accent); }

@media (max-width: 767px) {
  .single-product div.product .woocommerce-product-gallery { margin-bottom: 24px; }
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { flex-basis: calc((100% - 40px) / 4.6); }
  .single-product div.product .woocommerce-product-gallery .flex-direction-nav a { opacity: 1; width: 38px; height: 38px; }
  .single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 10px; }
  .single-product div.product .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 10px; }
  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { top: 10px; right: 10px; width: 40px; height: 40px; }
  .dp-counter { left: 10px; bottom: 10px; }
}

/* ---------- Lightbox (PhotoSwipe) ---------- */
.pswp__bg { background: #fff !important; }
.pswp__top-bar, .pswp__caption, .pswp__ui--fit .pswp__top-bar, .pswp__ui--fit .pswp__caption { background: transparent !important; }
.pswp__counter { color: var(--dp-ink, #1c1a19); opacity: 1; font-weight: 700; font-family: 'Urbanist', sans-serif; }
.pswp__button { filter: invert(1); opacity: .85; }
.pswp__button:hover { opacity: 1; }
.pswp__button--arrow--left:before, .pswp__button--arrow--right:before { background-color: rgba(0,0,0,.08); border-radius: 50%; }
.pswp__caption__center { color: var(--dp-ink, #1c1a19); text-align: center; font-family: 'Urbanist', sans-serif; }
.pswp__img { border-radius: 4px; }

/* ---------- Sekmeler: yatay ---------- */
.single-product div.product .woocommerce-tabs { display: block; padding-top: 0; margin-top: 30px; border-top: 0; }
.single-product div.product .woocommerce-tabs ul.tabs { float: none !important; width: 100% !important; margin: 0 0 34px !important; padding: 0 !important; display: flex; gap: 6px 34px; border-bottom: 1px solid var(--dp-line); border-top: 0 !important; overflow-x: auto; scrollbar-width: none; list-style: none; }
.single-product div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.single-product div.product .woocommerce-tabs ul.tabs::before, .single-product div.product .woocommerce-tabs ul.tabs::after { display: none; }
.single-product div.product .woocommerce-tabs ul.tabs li { border: 0 !important; margin: 0 !important; padding: 0 !important; flex: 0 0 auto; position: relative; }
.single-product div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 16px 0 !important; font-size: 16px; font-weight: 700; color: var(--dp-muted); white-space: nowrap; outline: 0; }
.single-product div.product .woocommerce-tabs ul.tabs li a::after, .single-product div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--dp-ink); }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: var(--dp-ink); }
.single-product div.product .woocommerce-tabs ul.tabs li.active::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--dp-accent); display: block !important; border: 0; width: auto; top: auto; }
.single-product div.product .woocommerce-tabs .panel { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.single-product div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.single-product div.product .woocommerce-tabs ul.tabs li a .dp-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--dp-ivory); color: var(--dp-ink); font-size: 12px; }
.single-product div.product .woocommerce-tabs ul.tabs li.active a .dp-count { background: var(--dp-accent); color: #fff; }

/* ---------- Değerlendirmeler ---------- */
#reviews.woocommerce-Reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: start; }
#reviews.woocommerce-Reviews::before, #reviews.woocommerce-Reviews::after { display: none; }
#reviews #comments, #reviews #review_form_wrapper { float: none !important; width: auto !important; margin: 0 !important; }
#reviews .clear { display: none; }

/* Özet kartı */
.dp-rating-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: 26px 28px; border-radius: var(--dp-radius); background: var(--dp-ivory); margin-bottom: 26px; }
.dp-rating-summary__score { grid-row: span 2; font-family: var(--dp-serif); font-size: 64px; line-height: .9; color: var(--dp-ink); font-weight: 500; }
.dp-rating-summary .star-rating { margin: 0; font-size: 18px; color: var(--dp-accent); }
.dp-rating-summary__count { color: var(--dp-muted); font-size: 14px; }
.dp-rating-bars { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 14px; }
.dp-rating-bars div { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; color: var(--dp-muted); }
.dp-rating-bars i { display: block; height: 6px; border-radius: 999px; background: #e6ddd2; overflow: hidden; }
.dp-rating-bars i b { display: block; height: 100%; background: var(--dp-accent); border-radius: inherit; }

#reviews #comments .woocommerce-Reviews-title { font-family: var(--dp-serif); font-weight: 500; font-size: 32px; color: var(--dp-ink); margin: 0 0 18px; }
#reviews .woocommerce-noreviews { margin: 0; padding: 26px 28px 26px 72px; position: relative; background: var(--dp-ivory) !important; color: var(--dp-text) !important; border: 0 !important; border-radius: var(--dp-radius); font-size: 15px; line-height: 1.6; }
#reviews .woocommerce-noreviews::before { content: "★"; position: absolute; left: 26px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--dp-accent); display: grid; place-items: center; font-size: 16px; font-family: inherit; }
#reviews .woocommerce-noreviews strong { display: block; color: var(--dp-ink); font-size: 16px; }

/* Yorum listesi */
#reviews #comments ol.commentlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
#reviews #comments ol.commentlist li { margin: 0 !important; padding: 0; border: 0; }
#reviews #comments ol.commentlist li .comment_container { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); background: #fff; }
#reviews #comments ol.commentlist li img.avatar { position: static; width: 48px !important; height: 48px; border-radius: 50%; padding: 0; border: 0; background: var(--dp-sand); float: none; margin: 0; }
#reviews #comments ol.commentlist li .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto !important; float: none !important; display: grid; }
#reviews #comments ol.commentlist li .comment-text .star-rating { float: none; order: -1; margin: 0 0 8px; font-size: 14px; color: var(--dp-accent); }
#reviews #comments ol.commentlist li .comment-text p.meta { margin: 0 0 8px; font-size: 14px; color: var(--dp-muted); }
#reviews #comments ol.commentlist li .comment-text p.meta strong { color: var(--dp-ink); font-weight: 700; }
#reviews #comments ol.commentlist li .comment-text p.meta .woocommerce-review__verified { color: #1f8a4c; font-style: normal; font-weight: 600; }
#reviews #comments ol.commentlist li .comment-text .description p { margin: 0; line-height: 1.7; }

/* Form kartı */
#reviews #review_form_wrapper #respond { margin: 0; padding: 32px; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); background: #fff; box-shadow: 0 30px 60px -40px rgba(28,26,25,.25); }
#reviews #respond .comment-reply-title { display: block; font-family: var(--dp-serif); font-size: 28px; line-height: 1.15; font-weight: 500; color: var(--dp-ink); margin: 0 0 6px; }
#reviews #respond .comment-notes { font-size: 13px; color: var(--dp-muted); margin: 0 0 22px; }
#reviews #respond .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
#reviews #respond .comment-form > * { grid-column: 1 / -1; margin: 0 0 18px; float: none !important; width: auto !important; padding: 0 !important; }
#reviews #respond .comment-form > .comment-form-author { grid-column: 1; }
#reviews #respond .comment-form > .comment-form-email { grid-column: 2; }
#reviews #respond label { display: block; font-size: 14px; font-weight: 700; color: var(--dp-ink); margin-bottom: 8px; }
#reviews #respond .required { color: var(--dp-accent); }
#reviews #respond input[type=text], #reviews #respond input[type=email], #reviews #respond textarea { width: 100%; background: var(--dp-ivory) !important; border: 1px solid transparent !important; border-radius: 12px; padding: 13px 16px; font-size: 15px; color: var(--dp-ink); box-shadow: none !important; transition: border-color .2s, background .2s; }
#reviews #respond textarea { min-height: 130px; resize: vertical; }
#reviews #respond input:focus, #reviews #respond textarea:focus { background: #fff !important; border-color: var(--dp-accent) !important; outline: 0; }
#reviews #respond .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
#reviews #respond .comment-form-cookies-consent label { font-weight: 500; color: var(--dp-muted); font-size: 13px; margin: 0; line-height: 1.5; }
#reviews #respond .comment-form-cookies-consent input { margin-top: 3px; accent-color: var(--dp-accent); }
#reviews #respond .form-submit { margin: 4px 0 0; }
#reviews #respond .form-submit input[type=submit] { background: var(--dp-accent) !important; color: #fff !important; border: 0; border-radius: 999px; padding: 15px 34px !important; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s; }
#reviews #respond .form-submit input[type=submit]:hover { background: var(--dp-accent-d) !important; }

/* Yıldız seçici */
#reviews #respond p.stars { margin: 0; line-height: 1; }
#reviews #respond p.stars span { display: inline-flex; gap: 6px; }
#reviews #respond p.stars a { width: 30px; height: 30px; font-size: 0; text-indent: 0; position: relative; color: #d9cfc4; }
#reviews #respond p.stars a::before { content: "★" !important; font-family: inherit !important; font-size: 30px; line-height: 30px; position: absolute; inset: 0; text-indent: 0; color: inherit; }
#reviews #respond p.stars:hover a, #reviews #respond p.stars.selected a { color: var(--dp-accent); }
#reviews #respond p.stars:hover a:hover ~ a, #reviews #respond p.stars.selected a.active ~ a { color: #d9cfc4; }
#reviews #respond p.stars a::after { display: none; }

@media (max-width: 900px) {
  #reviews.woocommerce-Reviews { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .single-product div.product .woocommerce-tabs ul.tabs { gap: 24px; margin-bottom: 24px !important; }
  .single-product div.product .woocommerce-tabs ul.tabs li a { font-size: 15px; padding: 14px 0 !important; }
  #reviews #review_form_wrapper #respond { padding: 22px 18px; }
  #reviews #respond .comment-form { grid-template-columns: 1fr; }
  #reviews #respond .comment-form > .comment-form-author, #reviews #respond .comment-form > .comment-form-email { grid-column: 1; }
  .dp-rating-summary { padding: 22px; }
  .dp-rating-summary__score { font-size: 52px; }
}

/* ---------- İlgili ürünler / takım başlıkları ---------- */
.single-product .related.products > h2, .single-product .upsells > h2, .single-product .enginde-in-sets h2, .single-product #takim-olustur h2 { font-family: var(--dp-serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); color: var(--dp-ink); }
#reviews #comments ol.commentlist li .comment_container::before,
#reviews #comments ol.commentlist li .comment_container::after { display: none !important; content: none !important; }
#reviews #comments ol.commentlist li .comment_container > .avatar { grid-column: 1; grid-row: 1; }
#reviews #comments ol.commentlist li .comment_container > .comment-text { grid-column: 2; grid-row: 1; }
#reviews #comments ol.commentlist li .comment-text p.meta .woocommerce-review__dash { margin: 0 4px; }
#reviews #comments ol.commentlist li .comment-text p.meta time { color: var(--dp-muted); }
#reviews #comments .woocommerce-pagination { margin-top: 18px; }
#reviews .dp-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--dp-sand); color: var(--dp-ink); font-weight: 800; font-size: 16px; letter-spacing: .02em; }
#reviews #comments ol.commentlist li .dp-avatar { width: 48px !important; height: 48px !important; align-self: start; padding: 0; border: 0; position: static; float: none; margin: 0; }

/* Sepet satırı: adet · sepete ekle · WhatsApp — eşit yükseklik, yan yana */
.single-product div.product form.cart { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin: 6px 0 18px; }
.single-product div.product form.cart::before, .single-product div.product form.cart::after { display: none; }
.single-product div.product form.cart .quantity { float: none; margin: 0 !important; flex: 0 0 96px; display: flex; }
.single-product div.product form.cart .quantity .qty { width: 100%; height: 56px; padding: 0 8px; border: 1px solid #d9d0c6; border-radius: 14px; background: #fff; box-shadow: none; font: 700 17px/1 'Urbanist', sans-serif; color: #1c1a19; text-align: center; -moz-appearance: textfield; }
.single-product div.product form.cart .quantity .qty:focus { outline: none; border-color: #1c1a19; }
.single-product div.product form.cart .single_add_to_cart_button, .single-product div.product form.cart .enginde-wa {
  float: none; flex: 1 1 0; min-width: 0; height: 56px; margin: 0 !important; padding: 0 18px !important; border-radius: 14px !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 15px/1.1 'Urbanist', sans-serif !important; white-space: nowrap; text-decoration: none; }
.enginde-wa { background: #1fa855; color: #fff !important; border: 0; transition: background .2s, transform .2s; }
.enginde-wa:hover { background: #178a45; color: #fff !important; }
.enginde-wa .dh-soc { width: 21px; height: 21px; flex: 0 0 auto; }
.enginde-wa__short { display: none; }
.enginde-wa-row { display: flex; margin: 6px 0 18px; }
.enginde-wa-row .enginde-wa { flex: 1; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; text-decoration: none; }
.enginde-contact-cta { display: none; }
@media (max-width: 1100px) and (min-width: 769px) { .enginde-wa__long { display: none; } .enginde-wa__short { display: inline; } }
@media (max-width: 520px) {
  .single-product div.product form.cart { gap: 8px; }
  .single-product div.product form.cart .quantity { flex-basis: 62px; }
  .single-product div.product form.cart .quantity .qty, .single-product div.product form.cart .single_add_to_cart_button, .single-product div.product form.cart .enginde-wa { height: 52px; border-radius: 12px !important; }
  .single-product div.product form.cart .single_add_to_cart_button, .single-product div.product form.cart .enginde-wa { padding: 0 10px !important; font-size: 13.5px !important; gap: 6px; }
  .single-product div.product form.cart .single_add_to_cart_button { flex: 1.35 1 0; }
  .enginde-wa__long { display: none; } .enginde-wa__short { display: inline; }
  .enginde-wa .dh-soc { width: 19px; height: 19px; }
}
