/* Commerce Product Detail + calculated tier unit prices - v1.0.75 */
:root{
  --product-h1-size:28px;
  --product-h2-size:21px;
  --product-body-size:15px;
  --product-price-size:28px;
  --category-h1-size:32px;
  --general-body-size:16px;
  --product-card-radius:24px;
  --product-image-height:430px;
}
body{font-size:var(--general-body-size)}
.product-detail-page{display:grid;grid-template-columns:minmax(340px,40%) minmax(360px,1fr) minmax(280px,330px);gap:24px;align-items:start}
.product-gallery-card,.product-info-card,.product-buy-card,.product-intro-content,.product-long-content{background:#fff;border:1px solid #e5e7eb;border-radius:var(--product-card-radius);box-shadow:0 14px 34px rgba(16,24,40,.045)}
.product-gallery-card{padding:24px;min-width:0}
.product-main-image{width:100%;aspect-ratio:1 / 1;background:#f8fafc;border:1px solid #eef0f4;border-radius:22px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-main-image img{width:100%;height:100%;object-fit:contain;display:block}
.product-thumb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
.product-thumb{aspect-ratio:1 / 1;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}
.product-thumb img{width:100%;height:100%;object-fit:contain}
.product-thumb.is-empty{color:#98a2b3;font-size:12px;text-align:center;padding:8px;box-sizing:border-box}
.product-thumb.is-active{border-color:#f47b20;box-shadow:0 0 0 3px rgba(244,123,32,.12)}
.product-info-card{padding:26px;min-width:0;overflow:hidden}
.product-info-card h1{margin:16px 0 18px;font-size:var(--product-h1-size);line-height:1.16;letter-spacing:-.02em;font-weight:650;color:#111827}
.product-brand-line{display:inline-flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:8px 12px;color:#475467;font-size:13px}
.product-brand-line strong{color:#111827}
.product-summary{color:#344054;font-size:var(--product-body-size);line-height:1.55;margin:0 0 22px}
.product-info-card h2,.product-intro-content h2,.product-long-content h2{margin:0 0 14px;font-size:var(--product-h2-size);line-height:1.2;font-weight:650;color:#111827}
.specs-collapsible{position:relative}.specs-inner{max-height:392px;overflow:hidden;transition:max-height .25s ease}.specs-collapsible.is-open .specs-inner{max-height:2200px}
.specs-fade{position:absolute;left:0;right:0;bottom:48px;height:70px;background:linear-gradient(to bottom, rgba(255,255,255,0), #fff);pointer-events:none}.specs-collapsible.is-open .specs-fade{display:none}
.specs-toggle{width:100%;margin-top:12px;min-height:42px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;color:#111827;font-weight:650;cursor:pointer}
.product-spec-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:var(--product-body-size)}
.product-spec-table th,.product-spec-table td{padding:11px 9px;border-bottom:1px solid #eef0f4;vertical-align:top;text-align:left;word-break:break-word}
.product-spec-table th{width:40%;color:#475467;font-weight:600}.product-spec-table td{color:#111827}
.product-buy-card{padding:22px;position:sticky;top:18px;min-width:0;background:#fff}
.product-buy-card .price-label,.product-buy-card .vat-note{display:none!important}
.product-buy-card .price{color:#c95722;font-size:28px;line-height:1.08;font-weight:800;margin:0 0 22px;letter-spacing:-.025em;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #e5e7eb;word-break:keep-all}
.product-buy-card .price .plus-kdv{color:#667085;font-size:.52em;font-weight:650;letter-spacing:0;white-space:nowrap}
.product-buy-card label{display:block;color:#344054;font-size:14px;font-weight:650;margin-bottom:8px}
.product-buy-card input[type="number"]{width:100%;box-sizing:border-box;border:1px solid #d7dce5;border-radius:14px;padding:13px 14px;font-size:16px;background:#fff;margin-bottom:16px}
.product-buy-card .btn{width:100%;min-height:52px;border-radius:16px;background:#f47b20;box-shadow:0 12px 26px rgba(244,123,32,.18);border:none}
.tier-box-title{text-align:center;margin:24px 0 6px;font-size:20px;font-weight:700;color:#111827}
.tier-box-subtitle{text-align:center;color:#667085;font-size:13px;line-height:1.45;font-weight:400;margin:0 0 12px}
.tier-table{width:100%;margin-top:8px;border-collapse:collapse;background:#fff;border:1px solid #eceff4;border-radius:16px;overflow:hidden}
.tier-table td{border-bottom:1px solid #eef0f4;padding:12px 10px;font-size:14px;vertical-align:middle}
.tier-table tr:last-child td{border-bottom:none}
.tier-table td:first-child{color:#344054}
.tier-table td:last-child{text-align:right;font-weight:800;color:#111827;white-space:nowrap}
.tier-table .tier-note{display:block;color:#667085;font-size:11px;font-weight:500;margin-top:3px}
.product-intro-content,.product-long-content{margin-top:24px;padding:30px;grid-column:1 / -1}
.product-long-content .content,.product-intro-content .content{color:#1f2937;line-height:1.7;font-size:var(--product-body-size)}
.product-long-content .content h1,.product-long-content .content h2,.product-long-content .content h3,.product-intro-content .content h1,.product-intro-content .content h2,.product-intro-content .content h3{color:#111827;line-height:1.25}
.product-long-content .content img,.product-intro-content .content img{max-width:100%;height:auto;border-radius:16px}
.category-hero h1{font-size:var(--category-h1-size)}
@media(max-width:1180px){.product-detail-page{grid-template-columns:minmax(300px,45%) minmax(340px,1fr)}.product-buy-card{grid-column:1 / -1;position:static}}
@media(max-width:760px){.product-detail-page{grid-template-columns:1fr}.product-info-card h1{font-size:25px}.product-intro-content,.product-long-content{padding:22px}.product-buy-card .price{font-size:26px}}


/* Live tier price display - v1.0.86 */
.product-buy-card .product-live-price{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.product-buy-card .product-live-price small{
  flex-basis:100%;
  display:block;
  color:#667085;
  font-size:13px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:0;
  margin-top:4px;
}
.live-tier-message{
  color:#667085;
  font-size:13px;
  line-height:1.45;
  margin:-6px 0 14px;
}
.tier-table tr.is-active-tier{
  background:#fff7ed;
}
.tier-table tr.is-active-tier td{
  color:#c95722;
}
.tier-table tr.is-active-tier td:first-child{
  font-weight:900;
}
.tier-table tr.is-active-tier td:last-child{
  color:#c95722;
}


/* Product description width fix - v1.0.87
   Sağdaki sticky sepet kutusu aşağı kayarken ürün tanıtımı alanının üstüne binmesini önler.
   Ürün Tanıtımı / Detaylı Ürün Bilgisi blokları masaüstünde sadece sol görsel + orta bilgi sütunu kadar genişler.
*/
@media (min-width: 1181px){
  .product-intro-content,
  .product-long-content{
    grid-column: 1 / 3 !important;
    align-self: start;
  }

  .product-buy-card{
    z-index: 3;
  }
}

@media (max-width: 1180px){
  .product-intro-content,
  .product-long-content{
    grid-column: 1 / -1 !important;
  }
}


/* v1.0.88 - active tier clarity */
.product-buy-card .price #productLivePriceText{transition:color .15s ease}
.live-tier-message{min-height:36px}
.tier-table tr.is-active-tier{background:#fff3e8!important}
.tier-table tr.is-active-tier td{font-weight:800}


/* v1.7.5 - Product detail gallery: white square main image and thumbnails */
.product-main-image,
.product-thumb{background:#fff!important;border-color:#eef0f4!important}
.product-main-image img,
.product-thumb img{background:#fff!important;object-fit:contain;object-position:center}
.product-thumb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-thumb.is-empty{background:#fff!important}
.v14-rel-card img{background:#fff!important;border:1px solid #f1f5f9}
