/*
 * V25.0.0 — Tema bazlı ürün kartı / ürün detay renkleri ve görünürlük kontrolleri
 * Bu dosya tema ve preset CSS dosyalarından sonra yüklenmelidir.
 */

/* =========================
   ÜRÜN KARTI RENKLERİ
   ========================= */
body[class*="product-card-style-"] .product-card.catalog-card{
  background:var(--product-card-bg,#fff)!important;
  color:var(--product-card-text,#1f2937)!important;
  border-color:color-mix(in srgb,var(--product-card-text,#1f2937) 14%,transparent)!important;
}
body[class*="product-card-style-"] .product-card :is(.catalog-info,.catalog-bottom,.price-stack){
  color:var(--product-card-text,#1f2937)!important;
}
body[class*="product-card-style-"] .product-card :is(h4,h4 a,.product-title-link,.catalog-sku,.catalog-description,.product-meta-line,.price-stack small){
  color:var(--product-card-text,#1f2937)!important;
}
body[class*="product-card-style-"] .product-card :is(.price,.campaign-price){
  color:var(--product-card-accent,#e30613)!important;
}
body[class*="product-card-style-"] .product-card :is(.campaign-badges span,.installment-badge,.catalog-no){
  border-color:var(--product-card-accent,#e30613)!important;
  background:var(--product-card-accent,#e30613)!important;
  color:#fff!important;
}
body[class*="product-card-style-"] .product-card .catalog-image-wrap{
  background:color-mix(in srgb,var(--product-card-bg,#fff) 90%,var(--product-card-accent,#e30613) 10%)!important;
}
body[class*="product-card-style-"] .product-card .mini-btn{
  border-color:color-mix(in srgb,var(--product-button-bg,#1f2937) 55%,transparent)!important;
  background:transparent!important;
  color:var(--product-card-text,#1f2937)!important;
}
body[class*="product-card-style-"] .product-card .mini-btn:hover{
  border-color:var(--product-button-hover,#e30613)!important;
  background:color-mix(in srgb,var(--product-button-hover,#e30613) 12%,transparent)!important;
  color:var(--product-button-hover,#e30613)!important;
}
body[class*="product-card-style-"] .product-card .mini-btn.primary,
body[class*="product-card-style-"] .product-card [data-add-product]{
  border-color:var(--product-button-bg,#1f2937)!important;
  background:var(--product-button-bg,#1f2937)!important;
  color:var(--product-button-text,#fff)!important;
}
body[class*="product-card-style-"] .product-card .mini-btn.primary:hover,
body[class*="product-card-style-"] .product-card [data-add-product]:hover{
  border-color:var(--product-button-hover,#e30613)!important;
  background:var(--product-button-hover,#e30613)!important;
  color:var(--product-button-text,#fff)!important;
}

/* =========================
   ÜRÜN DETAY RENKLERİ
   ========================= */
body[class*="product-detail-style-"] .inline-product-page,
body[class*="product-detail-style-"] #productPage,
body[class*="product-detail-style-"] .product-page{
  background:var(--product-detail-bg,#f5f7f9)!important;
  color:var(--product-detail-text,#1f2937)!important;
}
body[class*="product-detail-style-"] .inline-detail-card.unified-product-detail{
  color:var(--product-detail-text,#1f2937)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-purchase-info,
  .product-info-card,
  .detail-description-section,
  .detail-reviews-section,
  .detail-related-section,
  .review-modal-dialog,
  .review-card,
  .review-score-card,
  .review-action-card
){
  background:var(--product-detail-panel,#fff)!important;
  color:var(--product-detail-text,#1f2937)!important;
  border-color:color-mix(in srgb,var(--product-detail-muted,#667085) 24%,transparent)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-gallery-shell,
  .detail-gallery-stage,
  .detail-main-media,
  .detail-thumb,
  .detail-zoom-preview
){
  background:var(--product-slider-bg,#f3f5f7)!important;
  border-color:color-mix(in srgb,var(--product-detail-muted,#667085) 22%,transparent)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-product-heading h1,
  .detail-section-heading h3,
  .review-section-head h3,
  .review-action-card h4,
  .review-card h4,
  .review-modal-head h3,
  .review-form label
){
  color:var(--product-detail-text,#1f2937)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-code,
  .detail-short-description,
  .detail-specs,
  .detail-rating-summary,
  .detail-description-body,
  .detail-description-body p,
  .review-card p,
  .review-card small,
  .review-action-card p,
  .review-modal-head p,
  .review-form input,
  .review-form textarea,
  .review-form select
){
  color:var(--product-detail-muted,#667085)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-price,
  .detail-product-heading>small,
  .detail-section-heading>span,
  .review-section-head>div>span,
  .review-action-card>span,
  .review-modal-head>span,
  .detail-rating-stars,
  .review-score-card strong,
  .review-score-card>span
){
  color:var(--product-detail-accent,#e30613)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-specs span,
  .detail-option-button,
  .detail-option-select,
  .detail-quantity-row input,
  .review-form input,
  .review-form textarea,
  .review-form select
){
  border-color:color-mix(in srgb,var(--product-detail-muted,#667085) 28%,transparent)!important;
  background:color-mix(in srgb,var(--product-detail-panel,#fff) 94%,var(--product-detail-accent,#e30613) 6%)!important;
  color:var(--product-detail-text,#1f2937)!important;
}
body[class*="product-detail-style-"] :is(.detail-option-button.active,.detail-option-button:checked){
  border-color:var(--product-detail-accent,#e30613)!important;
  background:color-mix(in srgb,var(--product-detail-accent,#e30613) 13%,var(--product-detail-panel,#fff))!important;
  color:var(--product-detail-accent,#e30613)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-purchase-panel .primary-btn,
  .review-open-button,
  .review-modal-submit
){
  border-color:var(--product-button-bg,#1f2937)!important;
  background:var(--product-button-bg,#1f2937)!important;
  color:var(--product-button-text,#fff)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-purchase-panel .primary-btn,
  .review-open-button,
  .review-modal-submit
):hover{
  border-color:var(--product-button-hover,#e30613)!important;
  background:var(--product-button-hover,#e30613)!important;
  color:var(--product-button-text,#fff)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-favorite-button,
  .detail-whatsapp-button,
  .detail-rating-review-button,
  .review-modal-cancel,
  .detail-zoom-button,
  .detail-slider-arrow,
  .detail-lightbox-arrow
){
  border-color:color-mix(in srgb,var(--product-detail-accent,#e30613) 50%,transparent)!important;
  color:var(--product-detail-accent,#e30613)!important;
}
body[class*="product-detail-style-"] :is(.detail-favorite-button,.detail-whatsapp-button,.detail-rating-review-button):hover{
  border-color:var(--product-detail-accent,#e30613)!important;
  background:color-mix(in srgb,var(--product-detail-accent,#e30613) 12%,transparent)!important;
  color:var(--product-detail-accent,#e30613)!important;
}
body[class*="product-detail-style-"] :is(
  .detail-reviews-section,
  .review-card,
  .review-score-card,
  .review-action-card,
  .review-modal-dialog
){
  --review-surface:var(--product-review-bg,#f7f8fa);
}
body[class*="product-detail-style-"] :is(.review-card,.review-score-card,.review-action-card){
  background:var(--product-review-bg,#f7f8fa)!important;
}
body[class*="product-detail-style-"] .review-modal-dialog{
  background:var(--product-detail-panel,#fff)!important;
}
body[class*="product-detail-style-"] .review-modal-backdrop{
  background:color-mix(in srgb,var(--product-detail-bg,#111827) 72%,transparent)!important;
}

/* =========================
   ÜRÜN KARTI GÖSTER / GİZLE
   ========================= */
body.pc-hide-image .product-card .catalog-image-wrap{display:none!important}
body.pc-hide-badges .product-card :is(.campaign-badges,.installment-badge){display:none!important}
body.pc-hide-brand-logo .product-card .catalog-brand-logo{display:none!important}
body.pc-hide-catalog-no .product-card .catalog-no{display:none!important}
body.pc-hide-title .product-card .catalog-info h4{display:none!important}
body.pc-hide-sku .product-card .catalog-sku{display:none!important}
body.pc-hide-description .product-card .catalog-description{display:none!important}
body.pc-hide-meta .product-card .product-meta-line{display:none!important}
body.pc-hide-price .product-card .price-stack :is(.price,del){display:none!important}
body.pc-hide-stock .product-card .price-stack small{display:none!important}
body.pc-hide-inspect-button .product-card .product-actions button[data-detail]{display:none!important}
body.pc-hide-cart-button .product-card [data-add-product]{display:none!important}
body.pc-hide-motor-preview-button .product-card [data-preview]{display:none!important}
body.pc-hide-image .product-card .catalog-info{padding-top:18px!important}

/* =========================
   ÜRÜN DETAY GÖSTER / GİZLE
   ========================= */
body.pd-hide-gallery-card .unified-product-detail .detail-gallery-section{display:none!important}
body.pd-hide-info-card .unified-product-detail .detail-purchase-info{display:none!important}
body.pd-hide-brand .unified-product-detail .detail-product-heading>small{display:none!important}
body.pd-hide-title .unified-product-detail .detail-product-heading h1{display:none!important}
body.pd-hide-rating .unified-product-detail .detail-rating-summary{display:none!important}
body.pd-hide-review-button .unified-product-detail [data-review-open]{display:none!important}
body.pd-hide-code .unified-product-detail .detail-code{display:none!important}
body.pd-hide-price .unified-product-detail .detail-price{display:none!important}
body.pd-hide-short-description .unified-product-detail .detail-short-description{display:none!important}
body.pd-hide-specs .unified-product-detail .detail-specs{display:none!important}
body.pd-hide-options .unified-product-detail :is(.detail-options,.detail-option-groups,.product-option-selector,.variant-selector){display:none!important}
body.pd-hide-quantity .unified-product-detail .detail-quantity-row label{display:none!important}
body.pd-hide-add-to-cart-button .unified-product-detail #detailAddBtn{display:none!important}
body.pd-hide-favorite-button .unified-product-detail .detail-favorite-button{display:none!important}
body.pd-hide-whatsapp-button .unified-product-detail .detail-whatsapp-button{display:none!important}
body.pd-hide-description-card .unified-product-detail .detail-description-section{display:none!important}
body.pd-hide-reviews-card .unified-product-detail .detail-reviews-section{display:none!important}
body.pd-hide-related-card .unified-product-detail .detail-related-section{display:none!important}
body.pd-hide-zoom-button .unified-product-detail :is(.detail-zoom-button,.detail-zoom-lens,.detail-zoom-preview){display:none!important}
body.pd-hide-gallery-card .unified-product-detail .product-detail-grid,
body.pd-hide-info-card .unified-product-detail .product-detail-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
body.pd-hide-gallery-card .unified-product-detail .detail-purchase-info,
body.pd-hide-info-card .unified-product-detail .detail-gallery-section{
  width:min(860px,100%)!important;
  margin-inline:auto!important;
}
body.pd-hide-description-card.pd-hide-reviews-card.pd-hide-related-card .unified-product-detail .detail-content-layout{display:none!important}
body.pd-hide-quantity:not(.pd-hide-add-to-cart-button) .unified-product-detail .detail-quantity-row{grid-template-columns:1fr!important}
body.pd-hide-favorite-button.pd-hide-whatsapp-button .unified-product-detail .detail-secondary-actions{display:none!important}

@media(max-width:760px){
  body[class*="product-detail-style-"] .review-modal-dialog{
    background:var(--product-detail-panel,#fff)!important;
  }
}

/* Stil presetlerindeki sabit tonları tema ayarlarıyla kesin olarak ezer. */
body[class*="product-detail-style-"] .unified-product-detail .detail-purchase-info.product-info-card,
body[class*="product-detail-style-"] .unified-product-detail .detail-description-section,
body[class*="product-detail-style-"] .unified-product-detail .detail-reviews-section,
body[class*="product-detail-style-"] .unified-product-detail .detail-related-section{
  background-color:var(--product-detail-panel,#fff)!important;
  color:var(--product-detail-text,#1f2937)!important;
}
body[class*="product-detail-style-"] .unified-product-detail .detail-gallery-section .detail-gallery-stage,
body[class*="product-detail-style-"] .unified-product-detail .detail-gallery-section .detail-main-media,
body[class*="product-detail-style-"] .unified-product-detail .detail-gallery-section .detail-thumb{
  background-color:var(--product-slider-bg,#f3f5f7)!important;
}
body[class*="product-detail-style-"] .unified-product-detail .product-info-card :is(
  .detail-product-heading h1,
  .detail-purchase-panel label
){color:var(--product-detail-text,#1f2937)!important}
body[class*="product-detail-style-"] .unified-product-detail .product-info-card :is(
  .detail-code,
  .detail-short-description,
  .detail-rating-summary,
  .detail-specs span
){color:var(--product-detail-muted,#667085)!important}
body[class*="product-detail-style-"] .unified-product-detail .product-info-card .detail-price{
  color:var(--product-detail-accent,#e30613)!important;
}
body[class*="product-detail-style-"] .unified-product-detail .product-info-card .detail-purchase-panel,
body[class*="product-detail-style-"] .unified-product-detail .product-info-card .detail-specs span{
  background-color:color-mix(in srgb,var(--product-detail-panel,#fff) 92%,var(--product-detail-accent,#e30613) 8%)!important;
  border-color:color-mix(in srgb,var(--product-detail-muted,#667085) 24%,transparent)!important;
}

/* =========================================================
   V25.0.1 — GİZLENEN ALANLARIN BOŞLUĞUNU TAMAMEN KALDIR
   ========================================================= */
.visibility-layout-empty{
  display:none!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
  border:0!important;
}

/* Ürün kartları: kapalı alanlardan kalan sabit yükseklikleri temizle. */
body[class*="pc-hide-"] .product-card.catalog-card,
body[class*="pc-hide-"] .product-card .catalog-info,
body[class*="pc-hide-"] .product-card .catalog-bottom,
body[class*="pc-hide-"] .product-card .price-stack,
body[class*="pc-hide-"] .product-card .product-actions{
  min-height:0!important;
}

.product-card.pc-layout-no-image{
  min-height:0!important;
  height:auto!important;
  aspect-ratio:auto!important;
  grid-template-rows:auto!important;
}
.product-card.pc-layout-no-image .catalog-image-wrap{
  display:none!important;
}
.product-card.pc-layout-no-image .catalog-info{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  transform:none!important;
}
/* Görsel üzerine bindirilen 04 tasarımını, görsel kapalıyken normal karta çevir. */
body.product-card-style-04 .product-card.pc-layout-no-image .catalog-info{
  padding:16px!important;
  background:var(--product-card-bg,#151a22)!important;
}
.product-card.pc-layout-no-price .price-stack,
.product-card.pc-layout-no-actions .product-actions,
.product-card.pc-layout-no-bottom .catalog-bottom,
.product-card.pc-layout-no-info .catalog-info{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  border:0!important;
}
.product-card.pc-layout-no-bottom .catalog-info{
  padding-bottom:12px!important;
}
.product-card.pc-layout-no-info .catalog-image-wrap{
  border-radius:inherit!important;
}
.product-card.pc-layout-card-empty{
  display:none!important;
}
/* Hover aksiyonlu tasarımlarda gizli buton sarmalayıcısı yer tutmasın. */
body.product-card-style-02 .product-card.pc-layout-no-actions .product-actions,
body.product-card-style-08 .product-card.pc-layout-no-actions .product-actions,
body.product-card-style-09 .product-card.pc-layout-no-actions .product-actions{
  position:static!important;
  display:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}

/* Ürün detay: gizlenen kolon ve alt kartlardan kalan grid/flex boşluklarını temizle. */
.unified-product-detail.pd-layout-no-gallery .detail-gallery-section,
.unified-product-detail.pd-layout-no-info .detail-purchase-info,
.unified-product-detail.pd-layout-no-heading .detail-product-heading,
.unified-product-detail.pd-layout-no-quantity-row .detail-quantity-row,
.unified-product-detail.pd-layout-no-secondary-actions .detail-secondary-actions,
.unified-product-detail.pd-layout-no-purchase-panel .detail-purchase-panel,
.unified-product-detail.pd-layout-no-content .detail-content-layout{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  border:0!important;
}
.unified-product-detail.pd-layout-no-gallery .product-detail-grid,
.unified-product-detail.pd-layout-no-info .product-detail-grid{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
}
.unified-product-detail.pd-layout-no-gallery:not(.pd-layout-no-info) .detail-purchase-info,
.unified-product-detail.pd-layout-no-info:not(.pd-layout-no-gallery) .detail-gallery-section{
  width:min(900px,100%)!important;
  margin-inline:auto!important;
}
.unified-product-detail.pd-layout-no-gallery.pd-layout-no-info .product-detail-grid{
  display:none!important;
}
.unified-product-detail.pd-layout-no-heading .detail-code,
.unified-product-detail.pd-layout-no-heading .detail-price{
  margin-top:0!important;
}
.unified-product-detail.pd-layout-no-purchase-panel .detail-purchase-info{
  padding-bottom:22px!important;
}
.unified-product-detail.pd-layout-no-content{
  padding-bottom:0!important;
}
/* Adet veya sepet butonundan yalnızca biri açıksa tek sütun kullan. */
body.pd-hide-add-to-cart-button:not(.pd-hide-quantity) .unified-product-detail .detail-quantity-row,
body.pd-hide-quantity:not(.pd-hide-add-to-cart-button) .unified-product-detail .detail-quantity-row{
  grid-template-columns:minmax(0,1fr)!important;
}
body.pd-hide-add-to-cart-button:not(.pd-hide-quantity) .unified-product-detail .detail-quantity-row label{
  width:100%!important;
}

@media(max-width:760px){
  .product-card.pc-layout-no-image .catalog-info{
    padding:12px!important;
  }
  .unified-product-detail.pd-layout-no-gallery:not(.pd-layout-no-info) .detail-purchase-info,
  .unified-product-detail.pd-layout-no-info:not(.pd-layout-no-gallery) .detail-gallery-section{
    width:100%!important;
  }
}
