/* Bu ürünle uyumlu aksesuarlar */
/*#{{ accx_uid }} .accx-swiper { visibility: hidden; }
#{{ accx_uid }}.accx--ready .accx-swiper { visibility: visible; }*/
.accessory-thumb { border: 1px solid #ccc; padding: 15px; margin-bottom: 20px; text-align: center; }
.accessory-thumb .quantity { width: 100px; margin-bottom: 5px; }
.accessory-thumb a { font-size: 14px; }
.accessory-thumb .price { font-size: 15px; }
#tab-product_accessories .price { margin-bottom: 3px; margin-top: 5px; }
#tab-product_accessories .btn-primary,
.accessoriesproducts_wrapper .btn-primary {
  color: #fff; text-shadow: none; background: #229dcc; border-color: #229dcc;
  height: 34px; line-height: 18px;
}
#tab-product_accessories .btn-primary:hover,
.accessoriesproducts_wrapper .btn-primary:hover { background: #000; color: #fff; border-color: #000; }

/* ==========================================
   2) TAB-PANE (GRID / KART) – ÇAKIŞMASIZ
   ========================================== */
.rp-head__title { margin: 0 0 10px; font-weight: 700; font-size: 18px; }
.accessory-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.accessory-grid__col { padding-left: 6px; padding-right: 6px; }

.accessory-card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.accessory-card:hover { transform: translateY(-2px); border-color: #e3e7ee; box-shadow: 0 8px 18px rgba(13,18,30,.06); }

.accessory-card__image { width: 100%; max-width: 110px; margin: 6px auto 10px; border-radius: 10px; overflow: hidden; background: #f6f7fb; }
.accessory-card__image img { width: 100%; height: auto; display: block; }
.accessory-card__name { font-weight: 600; }
.accessory-card__model { font-size: 12px; color: #6b7280; }
.price-old { color: #9ca3af; text-decoration: line-through; margin-right: 6px; }
.price-new { font-weight: 700; }
.accessory-card__actions { padding-top: 10px; }

.qty-control { display: flex; align-items: center; justify-content: center; gap: 6px; }
.qty-control__btn {
  width: 30px; height: 34px; line-height: 1; font-size: 18px;
  border: 1px solid #e5e7eb; background: #fff; border-radius: 8px;
}
.qty-control__btn:active { transform: scale(.96); }
.qty-control__input { max-width: 64px; text-align: center; }

/* ==========================================
   3) SLIDER – ACCX (İZOLE, SWIPER DOSTU)
   ========================================== */
.accx { margin: 15px 0; }
.right-block .accx { background:#F2F2F1; border:2px solid #53a974;padding:10px;border-radius:10px; }
.accx__title { font-weight: 700; margin-bottom: 10px; font-size: 16px; color:green; }

/* Kart ve içerik */
.accx__item {
  background: #fff; border: 1px solid #eef0f4; border-radius: 14px;
  padding: 10px; display: flex; gap: 10px; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.accx__item:hover { transform: translateY(-2px); border-color: #e3e7ee; box-shadow: 0 8px 18px rgba(13,18,30,.06); }

.accx__image {
  width: 84px; min-width: 84px; aspect-ratio: 1/1;
  border-radius: 10px; overflow: hidden; background: #f6f7fb; display: grid; place-items: center;
}
.accx__image img { width: 100%; height: 100%; object-fit: contain; display: block; }

.accx__caption { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.accx__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; color: #111827; text-decoration: none;
  line-height: 1.2; min-height: 2.4em; max-height: 2.4em;
}
.accx__name:hover { color: #0ea5e9; }
.accx__model { font-size: 12px; color: #6b7280; margin-top: 2px; min-height: 16px; }

.accx__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; min-height: 40px; }
.accx__price-new { font-weight: 700; font-size: 15px; padding: 2px 8px; border-radius: 8px; background: #eff6ff; color: #0b69d7; }
.accx__price-old { color: #9ca3af; text-decoration: line-through; }
.accx__price-tax, .accx__price .special_value { color: #6b7280; font-size: 12px;white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buton (metinli) – boyutlar !important ile korunur */
.accx__action { margin-top: auto !important; }
.accx__action .accx-btn{
  height: 30px !important;               /* küçültülmüş yükseklik */
  padding: 0 10px !important;            /* kompakt iç boşluk */
  font-size: 12.5px !important;          /* yazı boyutu */
  border-radius: 16px !important;        /* yuvarlak köşe */
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e5e7eb;
  transition: background .16s ease, transform .08s ease, border-color .16s ease;
}
.accx__action .accx-btn:hover { border-color: #0ea5e9 !important; }
.accx__action .accx-btn:active { transform: scale(.98); }

/* Swiper host ve oklar */
.accx--slider .accx-swiper { position: relative; }
.accx--slider .swiper-wrapper { align-items: stretch; }
.accx--slider .swiper-slide { height: auto; }

.accx-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #e5e7eb; background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.05); z-index: 5;
}
.accx-nav::after {
  content: ""; display: block; width: 10px; height: 10px; margin: auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
}
.accx-prev { left: -8px; }
.accx-next { right: -8px; }
.accx-prev::after { transform: rotate(135deg); }  /* ◀ */
.accx-next::after { transform: rotate(-45deg); }  /* ▶ */
@media (max-width: 768px) { .accx-prev { left: -4px; } .accx-next { right: -4px; } }

/* Mobilde butonu biraz daha küçült */
@media (max-width: 576px){
  .accx__action .accx-btn{
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    border-radius: 14px !important;
  }
}


/* BENZER ÜRÜNLER */

/* skeleton alanı */
#{{ accx_uid }} .accx-skeleton{
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px;
}
@media (max-width:1440px){ #{{ accx_uid }} .accx-skeleton{grid-template-columns:repeat(4,1fr)} }
@media (max-width:1200px){ #{{ accx_uid }} .accx-skeleton{grid-template-columns:repeat(3,1fr)} }
@media (max-width:768px) { #{{ accx_uid }} .accx-skeleton{grid-template-columns:repeat(2,1fr)} }
@media (max-width:480px) { #{{ accx_uid }} .accx-skeleton{grid-template-columns:1fr} }

#{{ accx_uid }} .s-card{
  border:1px solid #eef0f4; border-radius:14px; padding:10px; background:#fff;
}
#{{ accx_uid }} .s-img{height:84px; border-radius:10px; background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 37%,#f3f4f6 63%); background-size:400% 100%;}
#{{ accx_uid }} .s-line{height:12px; border-radius:6px; margin-top:10px; background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 37%,#f3f4f6 63%); background-size:400% 100%;}
#{{ accx_uid }} .s-price{height:16px; width:40%; border-radius:8px; margin-top:10px; background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 37%,#f3f4f6 63%); background-size:400% 100%;}
#{{ accx_uid }} .s-btn{height:30px; width:110px; border-radius:16px; margin-top:10px; background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 37%,#f3f4f6 63%); background-size:400% 100%;}
#{{ accx_uid }} .s-w70{width:70%}  .s-w50{width:50%}

/* shimmer animasyonu */
@keyframes accx-shimmer{0%{background-position:200% 0} 100%{background-position:-200% 0}}
#{{ accx_uid }} .s-img, 
#{{ accx_uid }} .s-line,
#{{ accx_uid }} .s-price,
#{{ accx_uid }} .s-btn{animation:accx-shimmer 1.2s linear infinite}

/* swiper hazır olduğunda skeleton gizle, içerik göster */
#{{ accx_uid }} .accx-swiper{opacity:0; pointer-events:none; transition:opacity .18s ease;}
#{{ accx_uid }}.accx--ready .accx-swiper{opacity:1; pointer-events:auto; margin-top:25px;  background: #fff; padding: 15px;  border-radius: 18px; border: 1px solid #e7eaf1; box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);}
#{{ accx_uid }}.accx--ready .accx-skeleton{display:none;}