/*
Theme Name: YH B2B WordPress v1.0.0 RC1
Theme URI: https://bayi.yilmazhirdavat.net
Author: Yılmaz Hırdavat
Description: Yılmaz Hırdavat WordPress Edition için B2B odaklı WooCommerce arayüzü.
Version: 1.0.0-rc1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: yh-b2b-v100-rc1
*/

:root{
  --yh-orange:#ff6500;
  --yh-orange-dark:#df5100;
  --yh-red:#ed1238;
  --yh-blue:#2877f0;
  --yh-green:#19965a;
  --yh-yellow:#e8a800;
  --yh-ink:#20242a;
  --yh-muted:#6b7280;
  --yh-border:#e4e7eb;
  --yh-bg:#f4f6f8;
  --yh-white:#ffffff;
  --yh-radius:14px;
  --yh-shadow:0 8px 24px rgba(23,31,42,.08);
  --yh-max:1480px;
  --yh-card-image-h:260px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--yh-bg);
  color:var(--yh-ink);
  font-family:Inter,Segoe UI,Arial,sans-serif;
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select{font:inherit}
.yh-wrap{width:min(var(--yh-max),calc(100% - 32px));margin:0 auto}

.yh-topbar{background:#262a2f;color:#d7dce2;font-size:13px}
.yh-topbar-inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.yh-topbar strong{color:#fff}
.yh-topbar-links{display:flex;gap:18px;align-items:center}
.yh-topbar-links a:hover{color:#fff}

.yh-header{background:#fff;border-bottom:1px solid var(--yh-border);position:sticky;top:0;z-index:50}
.yh-header-main{min-height:94px;display:grid;grid-template-columns:245px minmax(280px,1fr) auto;align-items:center;gap:22px}
.yh-brand{display:flex;align-items:center;min-width:0}
.yh-brand .custom-logo{max-height:70px;width:auto}
.yh-brand-name{font-size:24px;font-weight:900;color:var(--yh-orange);line-height:1.05}
.yh-brand-sub{font-size:11px;color:var(--yh-muted);font-weight:700;letter-spacing:.05em}

.yh-search{position:relative}
.yh-search form{display:grid;grid-template-columns:minmax(0,1fr) 52px 62px}
.yh-search input[type="search"]{width:100%;height:50px;border:2px solid var(--yh-orange);border-right:0;border-radius:12px 0 0 12px;padding:0 18px;outline:none;background:#fff}
.yh-search .yh-voice-button{height:50px;border:2px solid var(--yh-orange);border-left:0;border-right:0;background:#fff;color:var(--yh-orange);cursor:pointer;font-size:19px}
.yh-search .yh-voice-button:hover,.yh-search .yh-voice-button.is-listening{background:#fff2ea}
.yh-search .yh-submit{min-width:62px;border:0;border-radius:0 12px 12px 0;background:var(--yh-orange);color:#fff;font-weight:800;cursor:pointer}
.yh-search .yh-submit:hover{background:var(--yh-orange-dark)}
.yh-voice-status{position:absolute;left:12px;top:54px;font-size:11px;color:var(--yh-muted);background:#fff;padding:2px 5px;border-radius:5px;display:none;z-index:5}
.yh-voice-status.is-visible{display:block}

.yh-actions{display:flex;align-items:center;gap:8px}
.yh-action{min-width:82px;min-height:50px;padding:8px 10px;border:1px solid var(--yh-border);border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;font-size:11px;font-weight:800;transition:.16s ease;cursor:pointer}
.yh-action:hover{border-color:var(--yh-orange);transform:translateY(-1px)}
.yh-action-icon{font-size:18px;line-height:1}
.yh-cart-count{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;background:var(--yh-orange);color:#fff;border-radius:999px;font-size:11px;padding:0 5px}
.yh-price-toggle.is-off{color:#9aa0a8;background:#f7f7f8}

/* Fiyat butonu: liste fiyatı DAİMA görünür, yalnız iskonto/net fiyat gizlenir. */
body.yh-discount-hidden .yh-discount-details{display:none!important}

.yh-feature-nav{background:#fff;border-bottom:1px solid var(--yh-border)}
.yh-feature-scroll{padding:12px 0;display:grid;grid-template-columns:repeat(8,minmax(125px,1fr));gap:8px}
.yh-feature{min-height:56px;border-radius:10px;color:#fff;padding:9px 10px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;font-weight:900;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.yh-feature:nth-child(4n+1){background:#e20d38}
.yh-feature:nth-child(4n+2){background:#ff7b34}
.yh-feature:nth-child(4n+3){background:#1e9f72}
.yh-feature:nth-child(4n+4){background:#367eea}
.yh-feature:hover{filter:brightness(.96)}
.yh-feature.is-disabled{opacity:.48;cursor:not-allowed}

.yh-main{padding:24px 0 48px}
.yh-home-grid{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;align-items:start}
.yh-panel{background:#fff;border:1px solid var(--yh-border);border-radius:var(--yh-radius);box-shadow:var(--yh-shadow)}
.yh-sidebar{overflow:hidden;position:sticky;top:168px}
.yh-sidebar-title{background:var(--yh-orange);color:#fff;padding:15px 18px;font-weight:900;letter-spacing:.02em}
.yh-cat-list{list-style:none;padding:8px 0;margin:0}
.yh-cat-list li{border-bottom:1px solid #f0f1f3}
.yh-cat-list li:last-child{border-bottom:0}
.yh-cat-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;font-size:13px;font-weight:700}
.yh-cat-list a:hover{background:#fff3eb;color:var(--yh-orange)}
.yh-cat-count{font-size:11px;color:#9198a1}
.yh-cat-empty{padding:14px 16px;color:var(--yh-muted);font-size:12px;line-height:1.5}

.yh-hero{min-height:260px;border-radius:var(--yh-radius);padding:34px 38px;background:radial-gradient(circle at 82% 20%,rgba(255,255,255,.28),transparent 25%),linear-gradient(120deg,#ff6500 0%,#ff7b00 48%,#f3a000 100%);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:25px;box-shadow:var(--yh-shadow);overflow:hidden;position:relative}
.yh-hero:after{content:"YH";position:absolute;right:25px;bottom:-55px;font-size:210px;font-weight:1000;color:rgba(255,255,255,.10);line-height:1}
.yh-hero-copy{position:relative;z-index:2;max-width:700px}
.yh-kicker{font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;opacity:.9}
.yh-hero h1{font-size:40px;line-height:1.08;margin:8px 0 12px}
.yh-hero p{font-size:16px;margin:0 0 20px;max-width:600px}
.yh-hero-button{display:inline-flex;min-height:46px;padding:0 20px;align-items:center;justify-content:center;border-radius:10px;background:#fff;color:#20242a;font-weight:900}

.yh-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:26px 0 14px}
.yh-section-head h1,.yh-section-head h2{margin:0;font-size:24px}
.yh-section-head p{margin:4px 0 0;color:var(--yh-muted);font-size:13px}
.yh-shop-link{font-size:13px;font-weight:900;color:var(--yh-orange)}
.yh-shop-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.yh-shop-tools .woocommerce-result-count,
.yh-shop-tools .woocommerce-ordering{margin:0!important}
.yh-shop-tools select{min-height:38px;border:1px solid var(--yh-border);border-radius:8px;padding:0 10px;background:#fff}

.yh-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.yh-product-card{background:#fff;border:1px solid var(--yh-border);border-radius:13px;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:.18s ease}
.yh-product-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(29,36,45,.11);border-color:#d9dce1}

/* Tüm ürün görselleri aynı kutuda, orana bakılmaksızın düzenli görünür. */
.yh-product-image{
  height:var(--yh-card-image-h);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:#fff;
  border-bottom:1px solid #f0f1f3;
  overflow:hidden;
}
.yh-product-image img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
}

.yh-product-body{padding:13px 14px 15px;display:flex;flex-direction:column;flex:1}
.yh-product-sku{font-size:11px;color:#89909a;margin-bottom:5px}
.yh-product-title{font-size:14px;line-height:1.35;font-weight:800;min-height:56px;margin:0 0 8px}
.yh-product-title a:hover{color:var(--yh-orange)}
.yh-stock{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:5px;font-size:11px;font-weight:800;margin-bottom:9px}
.yh-stock.in{color:var(--yh-green)}
.yh-stock.out{color:#c6322b}

.yh-price-block{margin-top:auto;margin-bottom:11px}
.yh-list-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.yh-list-price-label{font-size:10px;color:#8a919a;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.yh-list-price-value{font-size:18px;color:#111827;font-weight:950}
.yh-discount-details{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px}
.yh-discount-badge{display:inline-flex;align-items:center;min-height:23px;padding:0 7px;border-radius:999px;background:#fff1e8;color:var(--yh-orange-dark);font-size:10px;font-weight:900}
.yh-net-price{font-size:14px;color:var(--yh-green);font-weight:950}
.yh-net-price-label{font-size:10px;color:#7f8791;font-weight:800}

.yh-product-actions{display:grid;grid-template-columns:1fr;gap:8px}
.yh-button,.yh-product-actions .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border:0!important;border-radius:9px!important;background:var(--yh-orange)!important;color:#fff!important;min-height:40px;padding:10px 14px!important;display:inline-flex!important;align-items:center;justify-content:center;font-weight:900!important;font-size:12px!important;text-align:center}
.yh-button:hover,.yh-product-actions .button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--yh-orange-dark)!important}

/* Ana sayfa + Ürünler sayfası için butonsuz sonsuz kaydırma */
.yh-infinite-loader{min-height:88px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--yh-muted);font-size:13px;font-weight:700}
.yh-infinite-loader.is-done{display:none}
.yh-loader-spinner{width:22px;height:22px;border:3px solid #e3e6ea;border-top-color:var(--yh-orange);border-radius:50%;animation:yh-spin .75s linear infinite;opacity:0}
.yh-infinite-loader.is-loading .yh-loader-spinner{opacity:1}
.yh-infinite-loader:not(.is-loading) .yh-loader-text{visibility:hidden}
.yh-infinite-loader.is-error .yh-loader-text{visibility:visible;color:#c6322b}
@keyframes yh-spin{to{transform:rotate(360deg)}}

.yh-empty{grid-column:1/-1;padding:30px;text-align:center;color:var(--yh-muted);background:#fff;border:1px dashed #cfd4da;border-radius:12px}
.yh-footer{background:#22262b;color:#b9c0c8;padding:28px 0;font-size:13px}
.yh-footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}
.yh-footer strong{color:#fff}

/* WooCommerce tek ürün / sepet gibi ekranlarda marka uyumu */
.woocommerce .woocommerce-breadcrumb{margin:16px 0;color:var(--yh-muted)}
.woocommerce div.product{background:#fff;border:1px solid var(--yh-border);border-radius:14px;padding:22px}
.woocommerce div.product div.images img{max-height:560px;object-fit:contain}
.woocommerce-message,.woocommerce-info{border-top-color:var(--yh-orange)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--yh-orange)}

/* WooCommerce standart sayfalama bu temada kullanılmaz. */
.woocommerce-pagination{display:none!important}

@media (max-width:1240px){
  :root{--yh-card-image-h:230px}
  .yh-header-main{grid-template-columns:205px 1fr auto;gap:14px}
  .yh-action{min-width:70px}
  .yh-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .yh-feature-scroll{grid-template-columns:repeat(4,minmax(140px,1fr))}
}
@media (max-width:900px){
  :root{--yh-card-image-h:210px}
  .yh-topbar{display:none}
  .yh-header{position:relative}
  .yh-header-main{grid-template-columns:1fr auto;min-height:78px}
  .yh-search{grid-column:1/-1;padding-bottom:14px}
  .yh-actions .yh-action:not(.yh-cart-action){display:none}
  .yh-home-grid{grid-template-columns:1fr}
  .yh-sidebar{position:relative;top:auto}
  .yh-cat-list{display:grid;grid-template-columns:repeat(2,1fr)}
  .yh-products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yh-hero{min-height:230px;padding:28px}
  .yh-hero h1{font-size:32px}
  .yh-shop-tools{align-items:flex-start;flex-direction:column}
}
@media (max-width:560px){
  :root{--yh-card-image-h:160px}
  .yh-wrap{width:min(100% - 20px,var(--yh-max))}
  .yh-feature-scroll{display:flex;overflow:auto;scrollbar-width:none}
  .yh-feature{min-width:140px}
  .yh-cat-list{grid-template-columns:1fr}
  .yh-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .yh-product-image{padding:8px}
  .yh-product-body{padding:10px}
  .yh-product-title{font-size:12px;min-height:50px}
  .yh-list-price-value{font-size:15px}
  .yh-net-price{font-size:13px}
  .yh-hero{min-height:200px;padding:22px}
  .yh-hero h1{font-size:27px}
  .yh-hero p{font-size:14px}
  .yh-footer-inner{flex-direction:column;align-items:flex-start}
}


/* =========================================================
   v0.2.4 - Bayi kimliği + karttan miktar seçimi + AJAX sepet
   ========================================================= */

.yh-dealer-mini{
  min-width:160px;
  max-width:240px;
  min-height:50px;
  padding:7px 11px;
  border:1px solid var(--yh-border);
  border-radius:11px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}
.yh-dealer-mini-title{
  font-size:11px;
  color:#8a919a;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.yh-dealer-mini-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:900;
  color:#22262b;
}
.yh-dealer-mini-code{
  font-size:10px;
  color:var(--yh-orange-dark);
  font-weight:800;
}

.yh-card-cart{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:8px;
  align-items:stretch;
}
.yh-qty{
  display:grid;
  grid-template-columns:28px minmax(32px,1fr) 28px;
  min-height:40px;
  border:1px solid #dfe3e8;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
}
.yh-qty button{
  border:0;
  background:#f4f6f8;
  color:#343a40;
  font-weight:900;
  cursor:pointer;
}
.yh-qty button:hover{background:#eceff2}
.yh-qty input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  text-align:center;
  font-weight:900;
  color:#20242a;
  appearance:textfield;
  -moz-appearance:textfield;
}
.yh-qty input::-webkit-outer-spin-button,
.yh-qty input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.yh-add-cart{
  border:0;
  border-radius:9px;
  background:var(--yh-orange);
  color:#fff;
  min-height:40px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.yh-add-cart:hover{background:var(--yh-orange-dark)}
.yh-add-cart[disabled]{opacity:.6;cursor:wait}

.yh-cart-toast{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:99999;
  min-width:260px;
  max-width:390px;
  padding:13px 16px;
  border-radius:11px;
  background:#20242a;
  color:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.22);
  font-size:13px;
  font-weight:800;
  transform:translateY(20px);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
}
.yh-cart-toast.is-visible{
  opacity:1;
  transform:translateY(0);
}
.yh-cart-toast.is-error{background:#b42318}

.yh-product-card.is-adding{opacity:.76}

@media (max-width:1240px){
  .yh-dealer-mini{display:none}
}
@media (max-width:560px){
  .yh-card-cart{grid-template-columns:1fr}
  .yh-qty{min-height:36px}
  .yh-add-cart{min-height:38px}
}


/* ============================================================
   YH B2B WORDPRESS v1.0.0 RC1 - FINAL OVERRIDES
   CUSTOM-B2B sadece davranış/görsel referanstır; hiçbir bağlantı yoktur.
   ============================================================ */

:root{
  --yh-card-image-h:238px;
}

/* Ürün resmi: tüm kartlarda standart görünüm. Kaynak resim kesilmez. */
.yh-product-image{
  height:var(--yh-card-image-h)!important;
  min-height:var(--yh-card-image-h)!important;
  padding:16px!important;
  background:#fff!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.yh-product-image img,
.yh-product-image .attachment-woocommerce_thumbnail{
  width:88%!important;
  height:88%!important;
  max-width:88%!important;
  max-height:88%!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto!important;
  display:block!important;
}

/* Kartlar aynı hizada. */
.yh-product-card{min-height:455px}
.yh-product-body{min-height:200px}
.yh-product-title{min-height:58px}
.yh-price-block{margin-top:auto}

/* Miktar + sepet */
.yh-card-cart{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:8px;
  align-items:stretch;
}
.yh-qty{
  display:grid;
  grid-template-columns:28px minmax(34px,1fr) 28px;
  min-height:40px;
  border:1px solid #dfe3e8;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
}
.yh-qty button{border:0;background:#f4f6f8;font-weight:900;cursor:pointer}
.yh-qty input{
  width:100%;min-width:0;border:0;outline:0;text-align:center;font-weight:900;
  appearance:textfield;-moz-appearance:textfield;
}
.yh-qty input::-webkit-outer-spin-button,.yh-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.yh-add-cart{
  border:0;border-radius:9px;background:var(--yh-orange);color:#fff;
  min-height:40px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer;
}
.yh-add-cart:hover{background:var(--yh-orange-dark)}
.yh-add-cart[disabled]{opacity:.6;cursor:wait}

/* Liste fiyatı sürekli açık; iskonto/net isteğe bağlı. */
body.yh-discount-hidden .yh-discount-details{display:none!important}
.yh-price-block{margin-bottom:10px}
.yh-list-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.yh-list-price-label{font-size:9px;color:#8b929b;font-weight:900;letter-spacing:.05em}
.yh-list-price-value{font-size:18px;font-weight:950;color:#101828}
.yh-discount-details{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:4px}
.yh-discount-badge{
  padding:2px 7px;border-radius:999px;background:#fff0e6;color:#d64b00;
  font-size:10px;font-weight:900
}
.yh-net-price-label{font-size:10px;color:#7b8189;font-weight:800}
.yh-net-price{font-size:14px;color:#198754;font-weight:950}

/* Sonsuz yükleme: buton ve sayfalama yok. */
.woocommerce-pagination,.pagination,.nav-links{display:none!important}
.yh-infinite-loader{
  min-height:90px;display:flex;align-items:center;justify-content:center;gap:10px;
  color:#707780;font-size:12px;font-weight:800
}
.yh-infinite-loader.is-done{display:none!important}
.yh-loader-spinner{
  width:22px;height:22px;border:3px solid #e4e7eb;border-top-color:var(--yh-orange);
  border-radius:50%;animation:yhspin .7s linear infinite;opacity:0
}
.yh-infinite-loader.is-loading .yh-loader-spinner{opacity:1}
.yh-infinite-loader:not(.is-loading) .yh-loader-text{visibility:hidden}
.yh-infinite-loader.is-error .yh-loader-text{visibility:visible;color:#b42318}
@keyframes yhspin{to{transform:rotate(360deg)}}

/* Bayi kimliği */
.yh-dealer-mini{
  min-width:150px;max-width:225px;min-height:50px;padding:7px 10px;
  border:1px solid var(--yh-border);border-radius:11px;background:#fff;
  display:flex;flex-direction:column;justify-content:center
}
.yh-dealer-mini-title{font-size:9px;color:#90969e;font-weight:900;text-transform:uppercase}
.yh-dealer-mini-name{font-size:11px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yh-dealer-mini-code{font-size:10px;color:var(--yh-orange-dark);font-weight:900}

/* Sepet: görseller standart + Türkçe B2B görünümü */
.woocommerce-cart .entry-title,
.woocommerce-cart h1{font-weight:950}
.woocommerce-cart table.shop_table img,
.woocommerce-cart .wc-block-cart-item__image img{
  width:76px!important;height:76px!important;max-width:76px!important;max-height:76px!important;
  object-fit:contain!important;object-position:center!important;background:#fff!important;
  padding:7px!important;border:1px solid #eef0f2!important;border-radius:8px!important
}
.woocommerce-cart table.shop_table td{vertical-align:middle}
.woocommerce-cart .quantity .qty{min-width:70px}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order{
  background:#fff;border:1px solid var(--yh-border);border-radius:12px;padding:18px
}

/* Teslimat B2B alanları */
.yh-delivery-box{
  background:#fff8f3;border:1px solid #ffd6bd;border-radius:12px;padding:16px;margin:16px 0
}
.yh-delivery-box h3{margin:0 0 12px}
.yh-address-warning{
  color:#b42318;font-weight:900;font-size:14px
}

/* Portal kısa kodları */
.yh-portal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 22px}
.yh-portal-stat{background:#fff;border:1px solid var(--yh-border);border-radius:11px;padding:14px}
.yh-portal-stat span{display:block;color:#777f88;font-size:11px;font-weight:800}
.yh-portal-stat strong{display:block;margin-top:4px;font-size:20px}
.yh-portal-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}
.yh-portal-table th,.yh-portal-table td{padding:10px 12px;border-bottom:1px solid #edf0f2;text-align:left;font-size:12px}
.yh-portal-table th{background:#f7f8fa;font-weight:900}
.yh-status{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:900}
.yh-status.wait{background:#fff1cf;color:#8a5a00}
.yh-status.ok{background:#e7f7ee;color:#157347}
.yh-status.partial{background:#e9f2ff;color:#175cd3}
.yh-status.cancel{background:#feeceb;color:#b42318}
.yh-stock-yes{color:#157347;font-weight:900}.yh-stock-no{color:#b42318;font-weight:900}
.yh-empty-state{padding:24px;border:1px dashed #cfd4da;border-radius:11px;background:#fff;color:#6d747d;text-align:center}

/* Bildirim */
.yh-cart-toast{
  position:fixed;right:22px;bottom:22px;z-index:99999;min-width:260px;max-width:420px;
  padding:13px 16px;border-radius:11px;background:#20242a;color:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.22);font-size:13px;font-weight:800;
  transform:translateY(20px);opacity:0;pointer-events:none;transition:.2s ease
}
.yh-cart-toast.is-visible{opacity:1;transform:translateY(0)}
.yh-cart-toast.is-error{background:#b42318}

@media(max-width:1240px){
  :root{--yh-card-image-h:220px}
  .yh-dealer-mini{display:none}
}
@media(max-width:900px){
  :root{--yh-card-image-h:200px}
  .yh-portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  :root{--yh-card-image-h:155px}
  .yh-product-card{min-height:390px}
  .yh-card-cart{grid-template-columns:1fr}
  .yh-portal-grid{grid-template-columns:1fr 1fr}
}
