/* === kaynak: components.css 1-1068 - Z-2 sprint === */

/* ==============================================
   COMPONENTS.CSS — Shuttle Theme
   Reusable UI components: cards, badges, buttons,
   drawer, homepage modules.
   Extracted from style-shadow.css
   ============================================== */

/* ═══════════════════════════════════════════════════════════════════
   SECTION 30A — PRODUCT CARD: tilbe-anasayfa01 (Custom Card)
   Template: liste-kartim.twig
   Consolidated from style.css lines 13787–13903, 17040–17045, 17111–17125
   ═══════════════════════════════════════════════════════════════════ */

/* ── Card Structure ── */
.tilbe-anasayfa01-card-product {
  padding: 20px;
  background-color: var(--th-color-bg, #fff);
  border-radius: var(--th-radius-lg);
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.tilbe-anasayfa01-card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

/* ── Badges: Kargo + Teslimat ── */
.tilbe-anasayfa01-free-cargo-badge,
.tilbe-anasayfa01-hizli-teslimat {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--th-color-primary);
  color: var(--th-color-text-inverse);
  padding: 2px 6px;
  border-radius: var(--th-radius-sm);
  font-size: 10px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.tilbe-anasayfa01-hizli-teslimat { top: 30px; }

/* ── Image & Carousel ── */
.tilbe-anasayfa01-carousel,
.tilbe-anasayfa01-image-wrapper { position: relative; }

.tilbe-anasayfa01-image img {
  width: 100%;
  height: auto;
  border-radius: var(--th-radius-lg);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.tilbe-anasayfa01-carousel-item { display: none; width: 100%; }
.tilbe-anasayfa01-carousel-item.active { display: block; }

/* ── Carousel Controls (A11y reset) ── */
.tilbe-anasayfa01-carousel-control-prev,
.tilbe-anasayfa01-carousel-control-next {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--th-color-text-secondary);
  font-size: 16px;
  opacity: .7;
  transition: opacity .2s;
}
.tilbe-anasayfa01-carousel-control-prev:hover,
.tilbe-anasayfa01-carousel-control-next:hover { opacity: 1; }
.tilbe-anasayfa01-carousel-control-prev { left: 4px; }
.tilbe-anasayfa01-carousel-control-next { right: 4px; }

/* ── Title ── */
.tilbe-anasayfa01-itlewrtwrts {
  font-size: 12px;
  font-weight: 400;
  color: var(--th-color-text-secondary);
  margin: 10px 0;
}

/* ── Brand / Product Code / Barcode ── */
.tilbe-anasayfa01-barcode,
.tilbe-anasayfa01-brand,
.tilbe-anasayfa01-product-code {
  font-size: 12px;
  color: var(--th-color-text-tertiary);
  margin: 5px 0;
}

/* ── Price Group (final computed values) ── */
.tilbe-anasayfa01-price-group { margin-top: 10px; }

.tilbe-anasayfa01-list-price {
  font-size: 13px;
  color: var(--th-color-text-muted);
  text-decoration: line-through;
}
.tilbe-anasayfa01-sale-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--th-color-text);
}

/* ── Product Label ── */
.tilbe-anasayfa01-urun-etiketi img { width: 24px; height: auto; }

/* ── Discount Percentage Badge ── */
.tilbe-card-discount-pct {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: var(--th-color-danger-hover);
  color: var(--th-color-text-inverse);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--th-radius-md);
  line-height: 1.2;
}

/* ── Add-to-Cart Button ── */
.tilbe-card-addcart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  margin-top: 8px;
  background: var(--th-color-accent);
  color: var(--th-color-text-inverse);
  border: none;
  border-radius: var(--th-radius-lg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.tilbe-card-addcart:hover { background: var(--th-color-accent-hover); transform: translateY(-1px); }
.tilbe-card-addcart:active { transform: translateY(0); }
.tilbe-card-addcart i { font-size: 14px; }

/* ── Out of Stock ── */
.tilbe-card-outofstock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  margin-top: 8px;
  background: var(--th-color-bg-tertiary);
  color: var(--th-color-text-placeholder);
  border-radius: var(--th-radius-lg);
  font-size: 13px;
  font-weight: 600;
}

/* ── Mobile: Larger Add-to-Cart ── */
@media (max-width: 576px) {
  .tilbe-card-addcart { padding: 12px; font-size: 14px; border-radius: var(--th-radius-xl); }
  .tilbe-card-addcart i { font-size: 16px; }
}



/* ═══════════════════════════════════════════════════════════════════
   SECTION 30B — PRODUCT CARD: th-card (Unified Card System)
   Templates: kart.twig, anasayfa_kart.twig, kat-ozel-kart.twig
   BEM: th-card / th-card__element / th-card__element--modifier
   ═══════════════════════════════════════════════════════════════════ */

/* ── Card Container ── */
.th-card {
  display: block;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--th-text-base);
  font-weight: normal;
  line-height: var(--th-leading-normal);
  color: var(--th-color-text);
  background: transparent;
  border: none;
  border-radius: var(--th-radius-2xl);
  cursor: default;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  container-type: inline-size;
}
.th-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.th-card__inner {
  overflow: hidden;
  border-radius: var(--th-radius-2xl);
  padding: 0;
  border: 1px solid var(--th-color-border);
  background: var(--th-color-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Image Wrapper ── */
.th-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.th-card__image-wrap .image {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--th-color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-card__image-wrap .image img,
.th-card__image-wrap .image .lazy {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.th-card:hover .th-card__image-wrap .image img,
.th-card:hover .th-card__image-wrap .image .lazy {
  transform: scale(1.05);
}

/* No-image placeholder */
.th-card__image-wrap .image:empty::after {
  content: "\f030"; /* fa-camera */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 32px;
  color: var(--th-color-text-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Image link */
.th-card__image-link {
  display: block;
  text-decoration: none;
}

/* ── Video ── */
.th-card__video {
  position: relative;
}
.th-card__video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.th-card__video-icon {
  position: absolute;
  bottom: 8px; left: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.6);
  border-radius: var(--th-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.th-card__video-icon i {
  color: var(--th-color-text-inverse);
  font-size: 10px;
  margin-left: 2px;
}

/* ── Badge Base ── */
.th-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  padding: var(--th-space-1) var(--th-space-2);
  margin: 0;
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-semibold);
  line-height: 1;
  color: var(--th-color-text-inverse);
  background: var(--th-color-primary);
  border: none;
  border-radius: var(--th-radius-full);
  cursor: default;
  transition: var(--th-transition-fast);
  white-space: nowrap;
}

/* ── Badges ── */
.th-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--th-radius-sm);
  white-space: nowrap;
  letter-spacing: 0.2px;
  z-index: 3;
}
.th-card__badge i { font-size: 10px; }

/* Badge variants — hardcoded for reliability */
.th-card__badge--freecargo  { background: var(--th-color-primary); color: var(--th-color-text-inverse); }
.th-card__badge--discount   { background: var(--th-color-danger-hover); color: var(--th-color-text-inverse); position: absolute; top: 8px; right: 8px; z-index: 3; }
.th-card__badge--new        { background: var(--th-blue-700, #1D4ED8); color: var(--th-color-text-inverse); }
.th-card__badge--bestseller,
.th-card__badge--coksatan   { background: var(--th-color-accent); color: var(--th-color-text-inverse); }
.th-card__badge--flash      { background: var(--th-color-danger-hover); color: var(--th-color-text-inverse); }
.th-card__badge--firsat     { background: var(--th-color-success-dark); color: var(--th-color-text-inverse); }
.th-card__badge--hediye     { background: var(--th-purple-600, #7c3aed); color: var(--th-color-text-inverse); }
.th-card__badge--kampanya   { background: var(--th-blue-700, #1D4ED8); color: var(--th-color-text-inverse); }
.th-card__badge--kargo      { background: var(--th-color-primary); color: var(--th-color-text-inverse); }
.th-card__badge--organic    { background: var(--th-color-success-dark); color: var(--th-color-text-inverse); }
.th-card__badge--premium    { background: var(--th-gold-700, #b8860b); color: var(--th-color-text-inverse); }
.th-card__badge--delivery   { background: var(--th-cyan-600); color: var(--th-color-text-inverse); }
.th-card__badge--b2b        { background: var(--th-slate-600, #475569); color: var(--th-color-text-inverse); }
.th-card__badge--stock      { background: var(--th-color-accent); color: var(--th-color-text-inverse); }
.th-card__badge--limited    { background: var(--th-color-danger-hover); color: var(--th-color-text-inverse); }
.th-card__badge--genel      { background: var(--th-slate-600, #475569); color: var(--th-color-text-inverse); }

/* Badge strip (multi-badge) */
.th-card__badge-strip {
  min-height: 30px;
  padding: 5px 10px;
  background: var(--th-color-bg-secondary);
  border-bottom: 1px solid var(--th-color-border-light);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.th-card__badge-rotate {
  position: relative;
  height: 22px;
  width: 100%;
  overflow: hidden;
}
.th-card__badge-rotate .th-card__badge {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  animation: th-badge-rotate var(--sure, 5s) infinite;
}
@keyframes th-badge-rotate {
  0%, 5%   { opacity: 0; transform: translateY(8px); }
  10%, 35% { opacity: 1; transform: translateY(0); }
  40%, 100%{ opacity: 0; transform: translateY(-8px); }
}

/* ── Favorite Button ── */
.th-card__fav {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 10;
}
.th-card__fav .product-favourite-kart { margin: 0; }
.th-card__fav .product-favourite-kart a,
.th-card__fav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--th-radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 15px;
  color: var(--th-color-text-muted);
  text-decoration: none;
  transition: color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.th-card__fav a:hover,
.th-card__fav a.active,
.th-card__fav .product-favourite-kart a:hover {
  color: var(--th-rose-500);
  box-shadow: 0 4px 14px rgba(229,57,53,0.28);
  transform: scale(1.1);
}
.th-card__fav a:focus-visible {
  outline: 2px solid var(--th-color-accent);
  outline-offset: 2px;
}

/* Heart pulse animation */
@keyframes th-card-heart-pulse {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.3); }
  50%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.th-card__fav a.active i {
  animation: th-card-heart-pulse 0.4s ease;
}

/* ── Hover Overlay (Desktop only) ── */
.th-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 9;
  pointer-events: none;
}
.th-card:hover .th-card__overlay,
.th-card:focus-within .th-card__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Overlay buttons */
.th-card__overlay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 14px;
  border-radius: var(--th-radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.14s ease;
  white-space: nowrap;
  border: none;
  letter-spacing: 0.2px;
}
.th-card__overlay-btn i { font-size: 11px; }
.th-card__overlay-btn:focus-visible {
  outline: 2px solid var(--th-neutral-0);
  outline-offset: 2px;
}

.th-card__overlay-btn--cart {
  background: var(--th-color-accent);
  color: var(--th-color-text-inverse);
}
.th-card__overlay-btn--cart:hover {
  background: var(--th-color-accent-hover);
  color: var(--th-color-text-inverse);
  transform: scale(1.02);
}
.th-card__overlay-btn--examine {
  background: rgba(255,255,255,0.18);
  color: var(--th-color-text-inverse);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.th-card__overlay-btn--examine:hover {
  background: rgba(255,255,255,0.28);
  color: var(--th-color-text-inverse);
  transform: scale(1.02);
}
.th-card__overlay-btn--disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: not-allowed;
  pointer-events: none;
}

/* Desktop: hide old buttons when overlay present */
@media (min-width: 768px) {
  .th-card__overlay ~ .buttons-wrapper { display: none !important; }
}
/* Mobile: hide overlay (touch uses inline CTA) */
@media (max-width: 768px) {
  .th-card .th-card__overlay { display: none !important; }
}

/* ── Slide-in Button Animations ── */
.th-card .buttons-wrapper.right-to-left {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.th-card:hover .buttons-wrapper.right-to-left {
  opacity: 1;
  transform: translateX(0);
}
.th-card .buttons-wrapper.down-to-top {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.th-card:hover .buttons-wrapper.down-to-top {
  opacity: 1;
  transform: translateY(0);
}

/* ── Out of Stock Overlay ── */
.th-card__outofstock {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--th-color-text-muted);
  height: 50px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}
.th-card .it-over {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--th-color-text-muted);
  height: 50px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}

/* Out-of-stock card state */
.th-card.stok-out-card .th-card__image-wrap .image img {
  filter: grayscale(30%);
  opacity: 0.85;
}

/* ── Carousel Controls ── */
.th-card .carousel-control-prev i,
.th-card .carousel-control-next i {
  padding: 5px;
  background: var(--th-color-bg);
  font-size: 18px;
  color: var(--th-color-text);
  border-radius: var(--th-radius-sm);
}

/* ── Card Body ── */
.th-card__body {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-height: 0;
}
.th-card__body:hover { color: inherit; text-decoration: none; }

/* Brand */
.th-card__brand,
.th-card__brand-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--th-color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

/* Title */
.th-card__title,
.th-card__title-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--th-color-text-secondary);
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(13px * 1.4 * 2);
}
/* Legacy title support */
.th-card__title-wrap {
  max-width: 100%;
  line-height: 14px;
  height: 30px;
  font-weight: 400;
  font-size: 11px;
  color: var(--th-color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: block;
  text-align: left;
  background-color: var(--th-color-bg, #fff);
  padding: 2px 7px;
}

/* Meta (sku, barcode) */
.th-card__meta,
.th-card__sku {
  font-size: 11px;
  color: var(--th-color-text-placeholder);
  margin-bottom: 2px;
}

/* ── Rating ── */
.th-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}
.th-card__rating .cp-star { font-size: 11px; }
.th-card__rating .cp-star--full,
.th-card__rating .cp-star--half { color: var(--th-color-warning); }
.th-card__rating .cp-star--empty { color: var(--th-color-border-strong); }
.th-card__rating-count {
  font-size: 11px;
  color: var(--th-color-text-muted);
  margin-left: 3px;
}

/* ── Price Block ── */
.th-card__price-block {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

/* Discount badge */
.th-card__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: var(--th-radius-full);
  background: var(--th-color-danger, #DC2626);
  color: var(--th-color-text-inverse);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
  letter-spacing: 0.1px;
}
.th-card__discount-badge::after {
  content: none;
}

/* Prices container */
.th-card__prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

/* Old price */
.th-card__price-old {
  font-size: 12px;
  color: var(--th-color-text-muted);
  text-decoration: line-through;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}
/* Eski fiyat + badge satırı */
.th-card__price-row-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-bottom: 1px;
}

/* Sale price */
.th-card__price-sale {
  font-size: 18px;
  font-weight: 800;
  color: var(--th-color-primary, #14613A);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.th-card__price-sale--strike,
.th-card__price-sale.line-through {
  font-size: 13px;
  color: var(--th-color-text-price-old);
  text-decoration: line-through;
  font-weight: 400;
  letter-spacing: 0;
}

/* Price label (homepage variant) */
.th-card__price-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--th-color-accent);
  letter-spacing: 0.3px;
}

/* Basket price (sabit indirim) */
.th-card__basket-price,
.th-card__price-sale-basket {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--th-color-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Price drop indicator */
.th-card__price-drop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--th-color-success-accent);
  margin-top: 2px;
}
.th-card__price-drop i { font-size: 9px; }

/* ── Quantity Selector ── */
.th-card__quantity,
.th-card .quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 6px 12px 0;
}
.th-card__quantity .btn-minus,
.th-card__quantity .btn-plus,
.th-card .quantity .btn-minus,
.th-card .quantity .btn-plus {
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.th-card__quantity .form-control,
.th-card .quantity .form-control {
  width: 44px;
  text-align: center;
  font-size: 14px;
}

/* Unit */
.th-card__unit,
.th-card .product-unit {
  font-size: 10px;
  color: var(--th-color-text-placeholder);
  padding: 3px 12px 0;
  text-align: center;
}

/* ── Add to Cart Button ── */
.th-card__addcart-wrap {
  padding: 6px 10px 10px;
}
.th-card__addcart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  background: var(--th-color-accent);
  color: var(--th-color-text-inverse);
  border: none;
  border-radius: var(--th-radius-lg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  min-height: 44px; /* Touch target */
}
.th-card__addcart:hover {
  background: var(--th-color-accent-hover);
  transform: translateY(-1px);
}
.th-card__addcart:active { transform: translateY(0); }
.th-card__addcart i { font-size: 14px; }

/* Addcart loading state */
.th-card__addcart--loading {
  pointer-events: none;
  opacity: 0.7;
}
.th-card__addcart--loading i::before {
  content: "\f110"; /* fa-spinner */
  animation: fa-spin 1s linear infinite;
}

/* Addcart success state */
.th-card__addcart--success {
  background: var(--th-color-success) !important;
}
.th-card__addcart--success i::before {
  content: "\f00c"; /* fa-check */
}

/* Disabled (out of stock) */
.th-card__addcart--disabled,
.th-card__addcart[disabled] {
  background: var(--th-color-bg-tertiary);
  color: var(--th-color-text-placeholder);
  cursor: not-allowed;
  pointer-events: none;
}

/* Legacy buttons support */
.th-card .buttons {
  padding: 6px 10px 10px;
}
.th-card .buttons .btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  background: var(--th-color-accent);
  color: var(--th-color-text-inverse);
  border: none;
  border-radius: var(--th-radius-lg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
  text-decoration: none;
}
.th-card .buttons .btn-cart:hover { background: var(--th-color-accent-hover); color: var(--th-color-text-inverse); }
.th-card .buttons .btn-cart.disabled {
  background: var(--th-color-bg-tertiary);
  color: var(--th-color-text-placeholder);
  cursor: not-allowed;
}

/* ── Stock Bar ── */
.th-card__stock {
  padding: 6px 12px 4px;
}
.th-card__stock-bar {
  height: 4px;
  background: var(--th-color-bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.th-card__stock-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.8s ease;
}
.th-card__stock.stok-out .th-card__stock-fill      { background: var(--th-neutral-400); }
.th-card__stock.stok-critical .th-card__stock-fill  { background: var(--th-color-danger-hover); }
.th-card__stock.stok-low .th-card__stock-fill       { background: var(--th-color-warning-hover); }
.th-card__stock.stok-ok .th-card__stock-fill        { background: var(--th-color-success-dark); }

.th-card__stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.th-card__stock-label {
  color: var(--th-color-text-secondary);
  font-weight: 600;
}
.th-card__stock.stok-critical .th-card__stock-label { color: var(--th-color-danger-hover); }
.cp-viewer {
  color: var(--th-color-text-muted);
}
.cp-viewer i { font-size: 9px; margin-right: 2px; }

/* ── Low Stock Pulse ── */
@keyframes th-stock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.th-card__stock.stok-critical .th-card__stock-label {
  animation: th-stock-pulse 2s ease infinite;
}

/* ── Skeleton Loading ── */
@keyframes th-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.th-card.th-skeleton .image,
.th-card.th-skeleton .th-card__title,
.th-card.th-skeleton .th-card__title-wrap,
.th-card.th-skeleton .th-card__price-sale,
.th-card.th-skeleton .th-card__discount-badge {
  background: linear-gradient(90deg, var(--th-color-bg-wash) 25%, var(--th-color-border-muted) 50%, var(--th-color-bg-wash) 75%) !important;
  background-size: 400px 100% !important;
  animation: th-shimmer 1.4s infinite linear;
  border-radius: var(--th-radius-md);
  color: transparent !important;
  border-color: transparent !important;
}
.th-card.th-skeleton .image { min-height: 200px; }
.th-card.th-skeleton .th-card__title,
.th-card.th-skeleton .th-card__title-wrap { height: 14px; margin: 8px 0; }
.th-card.th-skeleton .th-card__price-sale { height: 18px; width: 70px; }

/* ── Variant Preview (Color Dots) ── */
.th-card__variants {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
}
.th-card__variant-dot {
  width: 16px; height: 16px;
  border-radius: var(--th-radius-full);
  border: 1.5px solid var(--th-color-border);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.th-card__variant-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--th-color-accent);
}
.th-card__variant-more {
  font-size: 10px;
  color: var(--th-color-text-muted);
  font-weight: 600;
  margin-left: 2px;
}

/* ── Compact Variant (anasayfa_kart) ── */
.th-card--compact .th-card__body {
  padding: 8px 10px;
}
.th-card--compact .th-card__title {
  font-size: 12px;
  -webkit-line-clamp: 2;
}

/* ══ RESPONSIVE ══ */

/* Mobile */
@media (max-width: 576px) {
  .th-card__title,
  .th-card__title-text {
    font-size: 12px;
  }
  .th-card__price-sale { font-size: 16px; }
  .th-card__discount-badge { font-size: 12px; min-width: 38px; padding: 4px; }
  .th-card__fav a,
  .th-card__fav .product-favourite-kart a {
    width: 30px; height: 30px;
    font-size: 13px;
  }
  .th-card__overlay-btn { font-size: 11px; padding: 7px 12px; }
  .th-card__addcart { padding: 10px; font-size: 12px; }
  .th-card .buttons .btn-cart { font-size: 12px; padding: 10px; }
  .th-card__badge { font-size: 9px; padding: 2px 6px; }
  .th-card__brand,
  .th-card__brand-name { display: none; }
  .th-card__rating { display: none; }
  .th-card__variants { display: none; }
}

/* Small badge on very small cards */
@media (max-width: 485px) {
  .pattern-group-body .th-card .th-card__inner .th-card__badge--freecargo {
    align-items: center;
    border-radius: 3px;
    background: var(--th-color-primary);
    color: var(--th-color-text-inverse);
    display: flex;
    font-size: 6px;
    font-weight: 400;
    height: 13px;
    justify-content: center;
    line-height: 8px;
    position: absolute;
    right: 5px; left: 5px; top: 5px;
    text-align: center;
    width: 50px;
    z-index: 1;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .th-card__body { padding: 8px 10px; }
  .th-card__title,
  .th-card__title-text { font-size: 12px; }
  .th-card__price-sale { font-size: 17px; }
}

/* ── Accessibility: Focus visible ── */
.th-card__addcart:focus-visible,
.th-card .buttons .btn-cart:focus-visible {
  outline: 2px solid var(--th-color-accent);
  outline-offset: 2px;
}
.th-card__body:focus-visible {
  outline: 2px solid var(--th-color-accent);
  outline-offset: -2px;
  border-radius: var(--th-radius-md);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .th-card,
  .th-card__overlay,
  .th-card .buttons-wrapper,
  .th-card__image-wrap .image img,
  .th-card__addcart,
  .th-card__fav a {
    transition: none !important;
    animation: none !important;
  }
  .th-card:hover { transform: none; }
  .th-card:hover .th-card__image-wrap .image img { transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════

/* ── Platform Nötralizasyon — Z-3 ── */
/* Platform: .card-product-inner { padding: 10px } */
.th-card .card-product-inner {
  padding: var(--th-card-body-padding, var(--th-space-3));
}
/* Platform: .price-group { height: 50px } */
.th-card .price-group {
  height: auto;
}

/* === misc.css'ten taşındı — 9D Scroll-Snap for Carousels === */
.carousel-inner {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel-item {
  scroll-snap-align: start;
}

/* === misc.css'ten taşındı — S1 cp-* / th-card__price-* === */
.product-profile-1 .product-label img {
    width: 25px;
}
.cp-meta {
    font-size: 10px;
    color: var(--th-color-text-faded);
    line-height: 1.3;
}
.cp-price-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}
.th-card__price-pct {
    display: inline-flex;
    align-items: center;
    background: var(--th-color-accent);
    color: var(--th-color-text-inverse);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.5;
}
.th-card__price-now {
    font-size: 17px;
    font-weight: 700;
    color: var(--th-color-text);
    letter-spacing: -0.5px;
    line-height: 1.2;
    flex-shrink: 0;
    white-space: nowrap;
}
.th-card__price-now.cp-strike {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--th-color-text-faded);
    font-weight: 500;
}

/* === misc.css'ten taşındı — B10 card-comment / card-help-title === */
.card-comment {
    padding: 10px 12px;
    border-radius: var(--th-radius-xl);
    background-color: rgb(82 177 99/19%);
    border: 0;
    gap: 5px
}
.card-comment .product .customer .comment {
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: 12px;
    font-weight: 400;
    height: 66px;
    line-height: 16px;
    margin-top: 3px;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden
}
.card-comment .product .image img {
    max-height: 100%;
    width: 70px
}
.card-comment .product .image {
    background: var(--th-color-bg);
    border: 1px solid var(--th-color-border-light);
    border-radius: 3px;
    height: 105px;
    margin-right: 8px;
    padding: 3px;
    width: 70px
}
.card-help-title .image img {
    max-width: 100%;
    max-height: 60px;
    width: 35px;
    height: 35px
}
.card-help-title {
    border-radius: var(--th-radius-lg);
    padding: 12px 0;
    background: var(--th-color-border)
}
