/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE V2 — PIXEL-PERFECT REDESIGN
   ═══════════════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.pd2-breadcrumb { padding: 16px 0; font-size: 13px; color: #999; }
.pd2-breadcrumb a { color: #666; text-decoration: none; transition: color .2s; }
.pd2-breadcrumb a:hover { color: #7a0b1e; }
.pd2-breadcrumb .sep { margin: 0 8px; color: #ccc; font-size: 11px; }
.pd2-breadcrumb span:last-child { color: #333; }

/* ── MAIN LAYOUT ── */
.pd2-main { display: flex; gap: 40px; padding-bottom: 40px; }
.pd2-gallery { flex: 0 0 54%; max-width: 54%; position: relative; }
.pd2-info { flex: 1; min-width: 0; padding-top: 4px; }

/* ── GALLERY WRAP ── */
.pd2-gallery-wrap {
  background: #f5f2ee; border-radius: 6px; overflow: hidden;
  position: relative; aspect-ratio: unset !important;
  height: auto !important; max-height: none !important;
}
.pd2-gallery-wrap .tf-product-media-main { width: 100%; height: 100%; min-height: 460px; }
.pd2-gallery-wrap .swiper-wrapper { height: 100% !important; }
.pd2-gallery-wrap .tf-product-media-main .swiper-slide {
  height: 100% !important; display: flex !important;
  align-items: center; justify-content: center;
}
.pd2-gallery-wrap .tf-product-media-main .item {
  aspect-ratio: unset !important; width: 100%; height: 100%;
  display: flex !important; align-items: center; justify-content: center; overflow: hidden;
}
.pd2-gallery-wrap .tf-product-media-main .item img {
  object-fit: contain !important; width: auto !important; height: auto !important;
  max-width: 85% !important; max-height: 90% !important;
}

/* 360 badge — always visible when 3D model exists */
.pd2-360-badge {
  position: absolute; top: 16px; left: 16px; width: 44px; height: 44px;
  border: 1.5px solid #c0b8ae; border-radius: 50%; display: none;
  align-items: center; justify-content: center; background: rgba(255,255,255,.92);
  font-size: 11px; font-weight: 600; color: #666; cursor: pointer; z-index: 5;
  backdrop-filter: blur(4px); transition: all .25s;
}
.pd2-360-badge:hover { border-color: #7a0b1e; color: #7a0b1e; transform: scale(1.05); }
.pd2-360-badge.pd2-360-always { display: flex !important; }

/* Swiper prev/next arrows inside gallery */
.pd2-swiper-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 1px solid rgba(0,0,0,.1); border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: 4; color: #666; font-size: 13px; transition: all .2s;
  backdrop-filter: blur(4px);
}
.pd2-swiper-nav:hover { border-color: #7a0b1e; color: #7a0b1e; background: #fff; }
.pd2-swiper-prev { left: 12px; }
.pd2-swiper-next { right: 12px; }

/* 3D lazy loader placeholder */
.pd2-3d-loader-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #888; font-size: 13px; z-index: 2;
}
.pd2-3d-icon { font-size: 48px; color: #bbb; }
.pd2-3d-spinner {
  width: 36px; height: 36px; border: 3px solid #eee;
  border-top-color: #7a0b1e; border-radius: 50%;
  animation: pd2spin 0.8s linear infinite;
}
@keyframes pd2spin { to { transform: rotate(360deg); } }

/* Gallery tools */
.pd2-gallery-tools {
  position: absolute; left: 16px; top: 72px; display: none !important;
  flex-direction: column; gap: 6px; z-index: 3;
}
.pd2-gallery-tools.show-tools { display: flex !important; }
.pd2-gallery-tools button {
  width: 36px; height: 36px; border: 1px solid #d0c8be; background: rgba(255,255,255,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #777; font-size: 14px; transition: all .2s;
  backdrop-filter: blur(4px);
}
.pd2-gallery-tools button:hover { border-color: #7a0b1e; color: #7a0b1e; }

/* Color dots on gallery */
.pd2-color-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.pd2-color-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid transparent;
  cursor: pointer; transition: all .2s; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pd2-color-dot.active { border-color: #444; }
.pd2-color-dot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ── THUMBNAIL STRIP ── */
.pd2-thumbs-wrap { position: relative; margin-top: 14px; padding: 0 40px; }
.pd2-thumbs-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px;
  border: 1px solid #ddd; border-radius: 50%; background: #fff; display: flex;
  align-items: center; justify-content: center; cursor: pointer; z-index: 3;
  color: #888; font-size: 12px; transition: all .2s;
}
.pd2-thumbs-nav:hover { border-color: #7a0b1e; color: #7a0b1e; }
.pd2-thumbs-nav.prev { left: 0; }
.pd2-thumbs-nav.next { right: 0; }
.pd2-thumbs {
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth; scrollbar-width: none;
}
.pd2-thumbs::-webkit-scrollbar { display: none; }
.pd2-thumb {
  flex: 0 0 calc(25% - 8px); aspect-ratio: 1/1; border: 2px solid #e8e3dc;
  border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .2s;
  background: #f5f2ee;
}
.pd2-thumb.active, .pd2-thumb:hover { border-color: #7a0b1e; }
.pd2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd2-3d-label {
  position: absolute; bottom: 4px; right: 4px;
  font-size: 9px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.5); padding: 1px 5px; border-radius: 2px;
}

/* ── PRODUCT INFO (RIGHT SIDE) ── */
.pd2-badge-popular {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: #7a0b1e; margin-bottom: 8px; font-weight: 500; letter-spacing: .02em;
}
.pd2-badge-popular i { color: #d4af37; font-size: 14px; }

.pd2-product-name {
  font-family: 'Jost', sans-serif;
  font-size: 28px; font-weight: 500; color: #1a1a1a; margin: 0 0 10px; line-height: 1.3;
}

.pd2-price-block {
  display: flex !important; align-items: baseline !important;
  gap: 10px !important; margin-bottom: 4px !important;
}
.pd2-price {
  font-size: 22px; font-weight: 600; color: #7a0b1e;
  letter-spacing: .01em;
}
.pd2-price-old {
  font-size: 16px; color: #aaa; text-decoration: line-through;
  font-weight: 400; margin-left: 8px;
}
.pd2-price-block .price-old::after { display: none !important; }

.pd2-desc {
  font-size: 13.5px; color: #777; line-height: 1.75; margin: 12px 0 18px;
}

/* ── TRUST BADGES ── */
.pd2-trust-row {
  display: flex; gap: 0; margin-bottom: 20px;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 14px 0;
}
.pd2-trust-item {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border-right: 1px solid #eee;
}
.pd2-trust-item:last-child { border-right: none; }
.pd2-trust-icon {
  width: 34px; height: 34px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; color: #7a0b1e; font-size: 19px;
}
.pd2-trust-text h6 { font-size: 11.5px; font-weight: 600; color: #333; margin: 0 0 2px; line-height: 1.25; }
.pd2-trust-text span { font-size: 11.5px; color: #aaa; }

/* ── IGI CERTIFICATE ── */
.pd2-igi-cert {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; background: #faf7f4; border: 1px solid #eee; border-radius: 6px;
  padding: 12px 16px; margin-bottom: 20px;
}
.pd2-igi-cert-info { display: flex; align-items: center; gap: 10px; }
.pd2-igi-cert-icon {
  width: 34px; height: 34px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; color: #7a0b1e; font-size: 17px;
}
.pd2-igi-cert-text h6 { font-size: 11.5px; font-weight: 600; color: #333; margin: 0 0 2px; line-height: 1.25; }
.pd2-igi-cert-text span { font-size: 13px; color: #555; letter-spacing: .02em; }
.pd2-igi-cert-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: #fff; color: #7a0b1e; border: 1.5px solid #7a0b1e; border-radius: 4px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all .25s; font-family: inherit;
  white-space: nowrap;
}
.pd2-igi-cert-btn:hover { background: #7a0b1e; color: #fff; }
.pd2-igi-cert-btn i { font-size: 12px; }

/* ── VARIANT SELECTORS ── */
.pd2-info .tf-product-info-variant { margin-bottom: 0 !important; }
.pd2-info .tf-product-info-variant > div:not(#variant-warning) {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 16px !important; min-height: auto !important;
  border-bottom: 1px solid #f0ece8 !important; border-top: none !important;
  background: #fff !important;
}
.pd2-info .tf-product-info-variant > div:not(#variant-warning):first-child {
  border-top: 1px solid #f0ece8 !important;
}
.pd2-option-label { font-size: 13.5px; color: #444; font-weight: 500; }
.pd2-option-value { min-width: 160px; text-align: right; }
.pd2-option-value select {
  appearance: none; -webkit-appearance: none; border: 1px solid #ddd;
  background: #fff; padding: 8px 30px 8px 14px; border-radius: 4px;
  font-size: 13px; color: #333; cursor: pointer; outline: none;
  font-family: inherit; min-width: 155px; text-align: left; transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.pd2-option-value select:hover { border-color: #aaa; }
.pd2-option-value select:focus { border-color: #7a0b1e; }

/* Color selector */
.pd2-color-options { display: flex; gap: 10px; align-items: center; }
.pd2-color-opt {
  width: 32px !important; height: 32px !important; border-radius: 50%;
  border: 2.5px solid transparent; cursor: pointer; transition: all .2s;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.pd2-color-opt.active, .pd2-color-opt:hover { border-color: #444; }
.pd2-color-opt img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Size buttons */
.size-btn.variant-option,
.pd2-info .size-btn.variant-option {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  padding: 6px 14px !important; border: 1px solid #ddd !important; border-radius: 3px !important;
  font-size: 13px !important; color: #333 !important; cursor: pointer;
  transition: all .2s; background: #fff !important; font-family: inherit;
  user-select: none; width: auto !important; height: auto !important; line-height: 1.4 !important;
}
.size-btn.variant-option:hover,
.pd2-info .size-btn.variant-option:hover { border-color: #7a0b1e !important; color: #7a0b1e !important; }
.size-btn.variant-option.active,
.pd2-info .size-btn.variant-option.active { border-color: #5a1020 !important; background: #5a1020 !important; color: #fff !important; }

/* ── QUANTITY ── */
.pd2-qty-wrap {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid #ddd; border-radius: 4px; overflow: hidden;
}
.pd2-qty-btn {
  width: 36px; height: 36px; border: none; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  color: #555; transition: background .15s;
}
.pd2-qty-btn:hover { background: #f5f0ea; }
.pd2-qty-input {
  width: 42px; text-align: center; border: none;
  border-left: 1px solid #ddd; border-right: 1px solid #ddd;
  font-size: 14px; color: #333; outline: none; height: 36px; font-family: inherit;
}

/* ── ACTION BUTTONS ── */
.pd2-actions { margin-top: 22px; }
.pd2-btn-cart {
  width: 100%; padding: 16px 24px; background: linear-gradient(135deg, #6b1525, #4a0f1c);
  color: #fff; border: none; font-size: 13.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .3s; border-radius: 4px; margin-bottom: 10px; font-family: inherit;
  box-shadow: 0 4px 15px rgba(90, 16, 32, .25);
}
.pd2-btn-cart:hover { background: linear-gradient(135deg, #4a0f1c, #3d0a15); box-shadow: 0 6px 20px rgba(90, 16, 32, .35); }
.pd2-btn-cart i { font-size: 16px; }
.pd2-cart-price { opacity: .85; }

.pd2-btn-whatsapp {
  width: 100%; padding: 14px 24px; background: #fff; color: #333;
  border: 1.5px solid #ddd; font-size: 13px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s; border-radius: 4px; margin-bottom: 12px;
  font-family: inherit; text-decoration: none;
}
.pd2-btn-whatsapp:hover { border-color: #333; color: #111; }
.pd2-btn-whatsapp i { font-size: 18px; color: inherit; }

.pd2-btn-fav {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: #999; font-size: 13px; cursor: pointer; padding: 8px 0;
  transition: color .2s; background: none; border: none; width: 100%;
  font-family: inherit; letter-spacing: .03em;
}
.pd2-btn-fav:hover { color: #7a0b1e; }
.pd2-btn-fav i { font-size: 15px; }

/* ── TABS SECTION ── */
.pd2-tabs-section { padding: 30px 0 40px; border-top: 1px solid #eee; }
.pd2-tabs-nav {
  display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 28px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pd2-tab-btn {
  padding: 14px 22px; font-size: 12px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: #999; cursor: pointer; border: none;
  background: none; position: relative; white-space: nowrap; transition: color .2s;
  font-family: inherit; display: flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.pd2-tab-btn:hover { color: #444; }
.pd2-tab-btn.active { color: #7a0b1e; border-bottom: 5px solid #7a0b1e; }
.pd2-tab-btn.active::after { display: none; }
.pd2-tab-btn i { font-size: 13px; }

.pd2-tab-content { display: none; padding: 10px 0; }
.pd2-tab-content.active { display: block; }

.pd2-tab-body { display: flex; gap: 40px; align-items: flex-start; }
.pd2-tab-text { flex: 1; }
.pd2-tab-text h4 { font-size: 17px; font-weight: 600; color: #333; margin: 0 0 16px; }
.pd2-tab-text p { font-size: 13.5px; color: #555; line-height: 1.8; margin: 0 0 14px; }
.pd2-tab-text ul { padding-left: 20px; margin: 14px 0; }
.pd2-tab-text ul li { font-size: 13px; color: #555; line-height: 1.9; margin-bottom: 4px; }

.pd2-tab-img { flex: 0 0 320px; }
.pd2-tab-img img { width: 100%; border-radius: 8px; }

/* Detaylar tab */
.det-row { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0ece8; font-size: 13px; }
.det-row:first-child { border-top: 1px solid #f0ece8; }
.det-label { flex: 0 0 180px; color: #999; font-weight: 500; }
.det-val { color: #333; }

/* Step list (İade tab) */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f0ece8; }
.step:last-child { border-bottom: none; }
.step-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #5a1020; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.step-label { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 3px; }
.step-desc { font-size: 12.5px; color: #666; line-height: 1.6; }

/* Garanti list */
.g-list { display: flex; flex-direction: column; gap: 10px; }
.g-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #555; line-height: 1.6; }
.g-dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(122,11,30,.08); display: flex; align-items: center; justify-content: center; font-size: 10px; color: #7a0b1e; margin-top: 2px; }
.g-dot.no { background: rgba(0,0,0,.04); }

/* Tables */
.sz-tbl, .taks-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.sz-tbl th, .taks-tbl th { padding: 10px 12px; background: #f7f5f2; font-weight: 600; color: #333; text-align: left; border-bottom: 2px solid #eee; }
.sz-tbl td, .taks-tbl td { padding: 9px 12px; border-bottom: 1px solid #f0ece8; color: #555; }
.sz-tbl tr:hover td, .taks-tbl tr:hover td { background: #faf8f5; }
.t-badge { font-size: 11px; padding: 2px 8px; background: rgba(122,11,30,.08); color: #7a0b1e; border-radius: 3px; font-weight: 500; }
.sz-note, .taks-note { font-size: 12px; color: #888; }

/* ── PRODUCT DETAILS SUMMARY ROW ── */
.pd2-details-summary {
  background: #f9f7f4; border-top: 1px solid #eee; padding: 30px 0; margin-top: 0;
}
.pd2-details-summary-inner { display: flex; gap: 32px; align-items: flex-start; }
.pd2-details-left { flex: 1; }
.pd2-details-left h4 {
  font-size: 14px; font-weight: 600; color: #7a0b1e; margin: 0 0 12px;
  letter-spacing: .03em;
}
.pd2-details-left p { font-size: 13px; color: #555; line-height: 1.7; margin: 0 0 16px; }
.pd2-details-specs { display: flex; gap: 40px; }
.pd2-details-specs dl { margin: 0; }
.pd2-details-specs dt { font-size: 11px; color: #999; margin-bottom: 2px; }
.pd2-details-specs dd { font-size: 13px; color: #333; font-weight: 500; margin: 0 0 10px; }
.pd2-details-right { flex: 0 0 280px; position: relative; }
.pd2-details-right img { width: 100%; border-radius: 6px; }
.pd2-box-caption {
  text-align: center; margin-top: 10px; font-size: 12px; font-weight: 600;
  color: #5a1020; letter-spacing: .05em;
}
.pd2-box-caption span { display: block; font-size: 10px; color: #999; font-weight: 400; margin-top: 2px; }

/* ── RELATED PRODUCTS ── */
.pd2-related { padding: 30px 0 60px; }
.pd2-related-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 500; color: #1a1a1a; margin: 0;
}
.pd2-related-card { background: #fff; position: relative; transition: transform .2s; }
.pd2-related-card:hover { transform: translateY(-3px); }
.pd2-related-card-img {
  aspect-ratio: 1/1; background: #f5f2ee; border-radius: 6px;
  overflow: hidden; position: relative;
}
.pd2-related-card-img img { width: 100%; height: 100%; object-fit: contain; }
.pd2-related-card-fav {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; background: #fff; border: 1px solid #eee; display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: #bbb;
  font-size: 14px; transition: all .2s; z-index: 2;
}
.pd2-related-card-fav:hover { color: #7a0b1e; border-color: #7a0b1e; }
.pd2-related-card-info { padding: 14px 4px 0; }
.pd2-related-card-info h5 { font-size: 14px; font-weight: 500; color: #333; margin: 0 0 5px; }
.pd2-related-card-info .pd2-r-price { font-size: 14px; font-weight: 600; color: #7a0b1e; margin-bottom: 6px; }
.pd2-related-card-info a {
  font-size: 12px; color: #999; text-decoration: none; display: inline-flex;
  align-items: center; gap: 5px; transition: color .2s;
}
.pd2-related-card-info a:hover { color: #7a0b1e; }

/* Swiper nav for related */
.pd2-related .group-btn-slider { display: flex; gap: 8px; }
.pd2-related .tf-sw-nav {
  width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #888; font-size: 13px; transition: all .2s;
}
.pd2-related .tf-sw-nav:hover { border-color: #7a0b1e; color: #7a0b1e; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .pd2-main { flex-direction: column; gap: 28px; }
  .pd2-gallery { flex: none; max-width: 100%; }
  .pd2-trust-row { flex-wrap: wrap; }
  .pd2-trust-item { flex: 0 0 50%; padding: 8px 10px; }
  .pd2-trust-item:nth-child(2) { border-right: none; }
  .pd2-trust-item:nth-child(1), .pd2-trust-item:nth-child(2) { border-bottom: 1px solid #eee; }
  .pd2-tab-body { flex-direction: column; }
  .pd2-tab-img { flex: none; width: 100%; max-width: 350px; }
  .pd2-gallery-wrap .tf-product-media-main { min-height: 380px; }
  .pd2-details-summary-inner { flex-direction: column; }
  .pd2-details-right { flex: none; width: 100%; max-width: 320px; }
}
@media (max-width: 575px) {
  .pd2-product-name { font-size: 22px; }
  .pd2-price { font-size: 18px; }
  .pd2-trust-item { flex: 0 0 100%; border-right: none; border-bottom: 1px solid #eee; }
  .pd2-trust-item:last-child { border-bottom: none; }
  .pd2-tabs-nav { gap: 0; }
  .pd2-tab-btn { padding: 12px 14px; font-size: 11px; }
  .pd2-thumb { flex: 0 0 calc(25% - 8px); }
  .pd2-gallery-wrap .tf-product-media-main { min-height: 280px; }
  .pd2-option-value select { min-width: 110px; }
  .pd2-option-label { font-size: 12.5px; }
}
