/* ==============================================
   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);
  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: #27ae60;
  color: #fff;
  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: #fff;
  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: #fff;
  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: th2-card (Unified Card System)
   Templates: kart.twig, anasayfa_kart.twig, kat-ozel-kart.twig
   BEM: th2-card / th2-card__element / th2-card__element--modifier
   ═══════════════════════════════════════════════════════════════════ */

/* ── Card Container ── */
.th2-card {
  position: relative;
  border-radius: var(--th-radius-2xl);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  container-type: inline-size;
}
.th2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.th2-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 ── */
.th2-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.th2-card__image-wrap .image {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--th-color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.th2-card__image-wrap .image img,
.th2-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);
}

.th2-card:hover .th2-card__image-wrap .image img,
.th2-card:hover .th2-card__image-wrap .image .lazy {
  transform: scale(1.05);
}

/* No-image placeholder */
.th2-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 */
.th2-card__image-link {
  display: block;
  text-decoration: none;
}

/* ── Video ── */
.th2-card__video {
  position: relative;
}
.th2-card__video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.th2-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;
}
.th2-card__video-icon i {
  color: #fff;
  font-size: 10px;
  margin-left: 2px;
}

/* ── Badges ── */
.th2-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;
}
.th2-card__badge i { font-size: 10px; }

/* Badge variants */
.th2-card__badge--freecargo  { background: #00897b; color: #fff; }
.th2-card__badge--discount   { background: var(--th-color-danger-hover); color: #fff; position: absolute; top: 8px; right: 8px; z-index: 3; }
.th2-card__badge--new        { background: #1c7ad2; color: #fff; }
.th2-card__badge--bestseller,
.th2-card__badge--coksatan   { background: #ff7f46; color: #fff; }
.th2-card__badge--flash      { background: #e53935; color: #fff; }
.th2-card__badge--firsat     { background: #0d9969; color: #fff; }
.th2-card__badge--hediye     { background: #7c3aed; color: #fff; }
.th2-card__badge--kampanya   { background: #1c7ad2; color: #fff; }
.th2-card__badge--kargo      { background: #00897b; color: #fff; }
.th2-card__badge--organic    { background: #2e7d32; color: #fff; }
.th2-card__badge--premium    { background: #b8860b; color: #fff; }
.th2-card__badge--delivery   { background: #0288d1; color: #fff; }
.th2-card__badge--b2b        { background: #546e7a; color: #fff; }
.th2-card__badge--stock      { background: #ff6f00; color: #fff; }
.th2-card__badge--limited    { background: #d32f2f; color: #fff; }
.th2-card__badge--genel      { background: #546e7a; color: #fff; }

/* Badge strip (multi-badge) */
.th2-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;
}
.th2-card__badge-rotate {
  position: relative;
  height: 22px;
  width: 100%;
  overflow: hidden;
}
.th2-card__badge-rotate .th2-card__badge {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  animation: th2-badge-rotate var(--sure, 5s) infinite;
}
@keyframes th2-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 ── */
.th2-card__fav {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 10;
}
.th2-card__fav .product-favourite-kart { margin: 0; }
.th2-card__fav .product-favourite-kart a,
.th2-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;
}
.th2-card__fav a:hover,
.th2-card__fav a.active,
.th2-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);
}
.th2-card__fav a:focus-visible {
  outline: 2px solid var(--th-color-accent);
  outline-offset: 2px;
}

/* Heart pulse animation */
@keyframes th2-card-heart-pulse {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.3); }
  50%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.th2-card__fav a.active i {
  animation: th2-card-heart-pulse 0.4s ease;
}

/* ── Hover Overlay (Desktop only) ── */
.th2-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;
}
.th2-card:hover .th2-card__overlay,
.th2-card:focus-within .th2-card__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Overlay buttons */
.th2-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;
}
.th2-card__overlay-btn i { font-size: 11px; }
.th2-card__overlay-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.th2-card__overlay-btn--cart {
  background: var(--th-color-accent);
  color: #fff;
}
.th2-card__overlay-btn--cart:hover {
  background: var(--th-color-accent-hover);
  color: #fff;
  transform: scale(1.02);
}
.th2-card__overlay-btn--examine {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.th2-card__overlay-btn--examine:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: scale(1.02);
}
.th2-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: 769px) {
  .th2-card__overlay ~ .buttons-wrapper { display: none !important; }
}
/* Mobile: hide overlay (touch uses inline CTA) */
@media (max-width: 768px) {
  .th2-card .th2-card__overlay { display: none !important; }
}

/* ── Slide-in Button Animations ── */
.th2-card .buttons-wrapper.right-to-left {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.th2-card:hover .buttons-wrapper.right-to-left {
  opacity: 1;
  transform: translateX(0);
}
.th2-card .buttons-wrapper.down-to-top {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.th2-card:hover .buttons-wrapper.down-to-top {
  opacity: 1;
  transform: translateY(0);
}

/* ── Out of Stock Overlay ── */
.th2-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;
}
.th2-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 */
.th2-card.stok-out-card .th2-card__image-wrap .image img {
  filter: grayscale(30%);
  opacity: 0.85;
}

/* ── Carousel Controls ── */
.th2-card .carousel-control-prev i,
.th2-card .carousel-control-next i {
  padding: 5px;
  background: var(--th-color-bg);
  font-size: 18px;
  color: #000;
  border-radius: var(--th-radius-sm);
}

/* ── Card Body ── */
.th2-card__body {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-height: 0;
}
.th2-card__body:hover { color: inherit; text-decoration: none; }

/* Brand */
.th2-card__brand,
.th2-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 */
.th2-card__title,
.th2-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 */
.th2-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);
  padding: 2px 7px;
}

/* Meta (sku, barcode) */
.th2-card__meta,
.th2-card__sku {
  font-size: 11px;
  color: var(--th-color-text-placeholder);
  margin-bottom: 2px;
}

/* ── Rating ── */
.th2-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}
.th2-card__rating .cp-star { font-size: 11px; }
.th2-card__rating .cp-star--full,
.th2-card__rating .cp-star--half { color: #f59e0b; }
.th2-card__rating .cp-star--empty { color: #d1d5db; }
.th2-card__rating-count {
  font-size: 11px;
  color: var(--th-color-text-muted);
  margin-left: 3px;
}

/* ── Price Block ── */
.th2-card__price-block {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

/* Discount badge */
.th2-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, #e53935);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
  letter-spacing: 0.1px;
}
.th2-card__discount-badge::after {
  content: none;
}

/* Prices container */
.th2-card__prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

/* Old price */
.th2-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ı */
.th2-card__price-row-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-bottom: 1px;
}

/* Sale price */
.th2-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;
}
.th2-card__price-sale--strike,
.th2-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) */
.th2-card__price-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--th-color-accent);
  letter-spacing: 0.3px;
}

/* Basket price (sabit indirim) */
.th2-card__basket-price,
.th2-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 */
.th2-card__price-drop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0d9969;
  margin-top: 2px;
}
.th2-card__price-drop i { font-size: 9px; }

/* ── Quantity Selector ── */
.th2-card__quantity,
.th2-card .quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 6px 12px 0;
}
.th2-card__quantity .btn-minus,
.th2-card__quantity .btn-plus,
.th2-card .quantity .btn-minus,
.th2-card .quantity .btn-plus {
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.th2-card__quantity .form-control,
.th2-card .quantity .form-control {
  width: 44px;
  text-align: center;
  font-size: 14px;
}

/* Unit */
.th2-card__unit,
.th2-card .product-unit {
  font-size: 10px;
  color: var(--th-color-text-placeholder);
  padding: 3px 12px 0;
  text-align: center;
}

/* ── Add to Cart Button ── */
.th2-card__addcart-wrap {
  padding: 6px 10px 10px;
}
.th2-card__addcart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  background: var(--th-color-accent);
  color: #fff;
  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 */
}
.th2-card__addcart:hover {
  background: var(--th-color-accent-hover);
  transform: translateY(-1px);
}
.th2-card__addcart:active { transform: translateY(0); }
.th2-card__addcart i { font-size: 14px; }

/* Addcart loading state */
.th2-card__addcart--loading {
  pointer-events: none;
  opacity: 0.7;
}
.th2-card__addcart--loading i::before {
  content: "\f110"; /* fa-spinner */
  animation: fa-spin 1s linear infinite;
}

/* Addcart success state */
.th2-card__addcart--success {
  background: var(--th-color-success) !important;
}
.th2-card__addcart--success i::before {
  content: "\f00c"; /* fa-check */
}

/* Disabled (out of stock) */
.th2-card__addcart--disabled,
.th2-card__addcart[disabled] {
  background: var(--th-color-bg-tertiary);
  color: var(--th-color-text-placeholder);
  cursor: not-allowed;
  pointer-events: none;
}

/* Legacy buttons support */
.th2-card .buttons {
  padding: 6px 10px 10px;
}
.th2-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: #fff;
  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;
}
.th2-card .buttons .btn-cart:hover { background: var(--th-color-accent-hover); color: #fff; }
.th2-card .buttons .btn-cart.disabled {
  background: var(--th-color-bg-tertiary);
  color: var(--th-color-text-placeholder);
  cursor: not-allowed;
}

/* ── Stock Bar ── */
.th2-card__stock {
  padding: 6px 12px 4px;
}
.th2-card__stock-bar {
  height: 4px;
  background: var(--th-color-bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.th2-card__stock-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.8s ease;
}
.th2-card__stock.stok-out .th2-card__stock-fill      { background: #9e9e9e; }
.th2-card__stock.stok-critical .th2-card__stock-fill  { background: #e53935; }
.th2-card__stock.stok-low .th2-card__stock-fill       { background: #ff9800; }
.th2-card__stock.stok-ok .th2-card__stock-fill        { background: #4caf50; }

.th2-card__stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.th2-card__stock-label {
  color: var(--th-color-text-secondary);
  font-weight: 600;
}
.th2-card__stock.stok-critical .th2-card__stock-label { color: #e53935; }
.cp-viewer {
  color: var(--th-color-text-muted);
}
.cp-viewer i { font-size: 9px; margin-right: 2px; }

/* ── Low Stock Pulse ── */
@keyframes th2-stock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.th2-card__stock.stok-critical .th2-card__stock-label {
  animation: th2-stock-pulse 2s ease infinite;
}

/* ── Skeleton Loading ── */
@keyframes th2-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.th2-card.th-skeleton .image,
.th2-card.th-skeleton .th2-card__title,
.th2-card.th-skeleton .th2-card__title-wrap,
.th2-card.th-skeleton .th2-card__price-sale,
.th2-card.th-skeleton .th2-card__discount-badge {
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%) !important;
  background-size: 400px 100% !important;
  animation: th2-shimmer 1.4s infinite linear;
  border-radius: var(--th-radius-md);
  color: transparent !important;
  border-color: transparent !important;
}
.th2-card.th-skeleton .image { min-height: 200px; }
.th2-card.th-skeleton .th2-card__title,
.th2-card.th-skeleton .th2-card__title-wrap { height: 14px; margin: 8px 0; }
.th2-card.th-skeleton .th2-card__price-sale { height: 18px; width: 70px; }

/* ── Variant Preview (Color Dots) ── */
.th2-card__variants {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
}
.th2-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;
}
.th2-card__variant-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--th-color-accent);
}
.th2-card__variant-more {
  font-size: 10px;
  color: var(--th-color-text-muted);
  font-weight: 600;
  margin-left: 2px;
}

/* ── Compact Variant (anasayfa_kart) ── */
.th2-card--compact .th2-card__body {
  padding: 8px 10px;
}
.th2-card--compact .th2-card__title {
  font-size: 12px;
  -webkit-line-clamp: 2;
}

/* ── List Variant ── */
.th2-card--list .th2-card__inner {
  flex-direction: row;
}
.th2-card--list .th2-card__image-wrap {
  width: 180px;
  flex-shrink: 0;
}
.th2-card--list .th2-card__image-wrap .image {
  aspect-ratio: 1 / 1;
  height: 100%;
}
.th2-card--list .th2-card__body {
  padding: 12px 16px;
  justify-content: center;
}
.th2-card--list .th2-card__title {
  -webkit-line-clamp: 3;
  font-size: 14px;
}

/* ══ RESPONSIVE ══ */

/* Mobile */
@media (max-width: 576px) {
  .th2-card__title,
  .th2-card__title-text {
    font-size: 12px;
  }
  .th2-card__price-sale { font-size: 16px; }
  .th2-card__discount-badge { font-size: 12px; min-width: 38px; padding: 4px; }
  .th2-card__fav a,
  .th2-card__fav .product-favourite-kart a {
    width: 30px; height: 30px;
    font-size: 13px;
  }
  .th2-card__overlay-btn { font-size: 11px; padding: 7px 12px; }
  .th2-card__addcart { padding: 10px; font-size: 12px; }
  .th2-card .buttons .btn-cart { font-size: 12px; padding: 10px; }
  .th2-card__badge { font-size: 9px; padding: 2px 6px; }
  .th2-card__brand,
  .th2-card__brand-name { display: none; }
  .th2-card__rating { display: none; }
  .th2-card__variants { display: none; }
  /* List variant mobile */
  .th2-card--list .th2-card__image-wrap { width: 120px; }
  .th2-card--list .th2-card__title { font-size: 13px; }
}

/* Small badge on very small cards */
@media (max-width: 485px) {
  .pattern-group-body .th2-card .th2-card__inner .th2-card__badge--freecargo {
    align-items: center;
    border-radius: 3px;
    background: #0bc15c;
    color: #fff;
    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) {
  .th2-card__body { padding: 8px 10px; }
  .th2-card__title,
  .th2-card__title-text { font-size: 12px; }
  .th2-card__price-sale { font-size: 17px; }
}

/* ── Accessibility: Focus visible ── */
.th2-card__addcart:focus-visible,
.th2-card .buttons .btn-cart:focus-visible {
  outline: 2px solid var(--th-color-accent);
  outline-offset: 2px;
}
.th2-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) {
  .th2-card,
  .th2-card__overlay,
  .th2-card .buttons-wrapper,
  .th2-card__image-wrap .image img,
  .th2-card__addcart,
  .th2-card__fav a {
    transition: none !important;
    animation: none !important;
  }
  .th2-card:hover { transform: none; }
  .th2-card:hover .th2-card__image-wrap .image img { transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   SECTION 34 — C7-5: ADD TO CART DRAWER
   ═══════════════════════════════════════════════════════════════════ */

/* --- Overlay --- */
.th-cd-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.th-cd-overlay.th-cd-open {
  opacity: 1; visibility: visible;
}

/* --- Drawer panel --- */
.th-cd {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 92vw;
  background: var(--th-color-bg);
  z-index: 10001;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.th-cd.th-cd-open {
  transform: translateX(0);
}

/* --- Header --- */
.th-cd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--th-color-success-subtle);
  border-bottom: 1px solid var(--th-emerald-200);
  flex-shrink: 0;
}
.th-cd-success {
  font-size: 14px; font-weight: 600; color: var(--th-color-success);
  display: flex; align-items: center; gap: 8px;
}
.th-cd-success i { font-size: 18px; }
.th-cd-close {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--th-radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--th-color-text-muted); font-size: 16px;
  transition: background .2s, color .2s;
}
.th-cd-close:hover { background: var(--th-color-bg-tertiary); color: var(--th-color-text); }

/* --- Body --- */
.th-cd-body {
  flex: 1; overflow-y: auto; padding: 20px;
}

/* Added product */
.th-cd-product-inner {
  display: flex; gap: 14px; padding-bottom: 16px;
  border-bottom: 1px solid var(--th-color-border-light); margin-bottom: 16px;
}
.th-cd-product-img {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: var(--th-radius-lg); border: 1px solid var(--th-color-border-light); background: var(--th-color-bg-secondary);
  flex-shrink: 0;
}
.th-cd-product-name {
  font-size: 14px; font-weight: 500; color: var(--th-color-text);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.th-cd-product-price {
  font-size: 16px; font-weight: 700; color: var(--th-color-accent);
}

/* Shipping */
.th-cd-ship-ok {
  background: var(--th-color-success-subtle); border-radius: var(--th-radius-lg); padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--th-color-success);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}

/* Summary */
.th-cd-summary {
  background: var(--th-color-bg-secondary); border-radius: var(--th-radius-xl); padding: 14px 16px;
}
.th-cd-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--th-color-text-secondary);
}
.th-cd-summary-row strong {
  font-size: 18px; font-weight: 700; color: var(--th-color-text);
}

/* --- Footer --- */
.th-cd-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--th-color-border);
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.th-cd-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--th-radius-xl);
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: background .2s, transform .1s;
  text-decoration: none; text-align: center;
}
.th-cd-btn:active { transform: scale(.98); }
.th-cd-btn--cart {
  background: var(--th-color-accent); color: #fff;
}
.th-cd-btn--cart:hover { background: var(--th-color-accent-hover); color: #fff; }
.th-cd-btn--continue {
  background: var(--th-color-bg-tertiary); color: var(--th-color-text-secondary);
}
.th-cd-btn--continue:hover { background: #e5e7eb; }

/* --- Mobile --- */
@media (max-width: 576px) {
  .th-cd { width: 100%; max-width: 100%; }
}



/* ═══════════════════════════════════════════════════════════════════
   SECTION 36 — C7-7: HOMEPAGE MODULES (Story Bar + Trust Badges)
   ═══════════════════════════════════════════════════════════════════ */

/* --- Story Category Bar --- */
.th-story-bar {
  background: var(--th-color-bg);
  padding: 18px 0;
  border-bottom: 1px solid var(--th-color-border-light);
}
.th-story-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 24px;
  max-width: 1440px;
  margin: 0 auto;
}
.th-story-track::-webkit-scrollbar { display: none; }
.th-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform .2s ease;
}
.th-story-item:hover { transform: translateY(-3px); }
.th-story-ring {
  width: 64px; height: 64px;
  border-radius: var(--th-radius-full);
  background: linear-gradient(135deg, var(--th-color-accent), #ff9a44, var(--th-color-accent-hover));
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .25s ease;
}
.th-story-item:hover .th-story-ring {
  box-shadow: 0 4px 16px rgba(255, 96, 0, .3);
}
.th-story-ring img {
  width: 56px; height: 56px;
  border-radius: var(--th-radius-full);
  object-fit: cover;
  background: var(--th-color-bg);
  border: 2px solid #fff;
}
.th-story-ring i {
  color: #fff; font-size: 20px;
}
.th-story-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--th-color-text-secondary);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .th-story-track { gap: 14px; padding: 4px 16px; }
  .th-story-ring { width: 56px; height: 56px; }
  .th-story-ring img { width: 48px; height: 48px; }
}

/* --- Trust Badges Strip --- */
.th-trust-strip {
  background: var(--th-color-bg-secondary);
  border-top: 1px solid var(--th-color-border-light);
  border-bottom: 1px solid var(--th-color-border-light);
  padding: 24px 0;
}
.th-trust-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.th-trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.th-trust-icon {
  width: 48px; height: 48px;
  border-radius: var(--th-radius-xl);
  background: rgba(255, 96, 0, .08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.th-trust-icon i {
  font-size: 20px;
  color: var(--th-color-accent);
}
.th-trust-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--th-color-text);
  line-height: 1.3;
}
.th-trust-text span {
  font-size: 12px;
  color: var(--th-color-text-muted);
  line-height: 1.3;
}

@media (max-width: 992px) {
  .th-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 576px) {
  .th-trust-inner { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
  .th-trust-icon { width: 40px; height: 40px; border-radius: var(--th-radius-xl); }
  .th-trust-icon i { font-size: 16px; }
  .th-trust-text strong { font-size: 13px; }
  .th-trust-text span { font-size: 11px; }
}

/* --- Category icon circle: theme color override --- */
.category-icon-circle {
  background: rgba(255, 96, 0, .08);
  color: var(--th-color-accent);
}
.category-icon-item:hover .category-icon-circle {
  background: var(--th-color-accent);
  color: #fff;
}
.category-icon-circle.new {
  background: rgba(255, 96, 0, .12);
  color: var(--th-color-accent);
}
.category-icon-item:hover .category-icon-circle.new {
  background: var(--th-color-accent);
  color: #fff;
}

/* =============================================

/* ═══════════════════════════════════════════════════════════════════
   SECTION 37 — HOMEPAGE SECTIONS
   Generic section wrapper, header, horizontal scroll, carousel
   ═══════════════════════════════════════════════════════════════════ */

/* ── Section Wrapper ── */
.th2-home-section {
  padding: 48px 0;
  background: var(--th-color-bg);
}
.th2-home-section:nth-child(even) {
  background: var(--th-color-bg-secondary);
}
.th2-home-section--flush {
  padding: 0;
}

/* ── Section Header ── */
.th2-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.th2-section-title {
  font-size: var(--th-text-xl, 20px);
  font-weight: var(--th-font-bold, 700);
  color: var(--th-color-text);
  margin: 0;
  line-height: 1.3;
}
.th2-section-link {
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: var(--th-color-primary);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease, gap .2s ease;
}
.th2-section-link:hover {
  color: var(--th-color-primary-hover);
  gap: 8px;
}
.th2-section-link::after {
  content: "\203A";
  font-size: 1.2em;
  line-height: 1;
}

/* ── Section Content Container ── */
.th2-section-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Horizontal Scroll ── */
.th2-hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.th2-hscroll::-webkit-scrollbar { display: none; }
.th2-hscroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}
.th2-hscroll--card > * {
  width: 220px;
}

/* ── Carousel Wrapper ── */
.th2-carousel-wrap {
  position: relative;
}
.th2-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--th-radius-full);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border-light);
  box-shadow: var(--th-shadow-md, 0 4px 12px rgba(0,0,0,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease, box-shadow .2s ease;
  color: var(--th-color-text);
  font-size: 14px;
  padding: 0;
}
.th2-carousel-btn:hover {
  box-shadow: var(--th-shadow-lg, 0 8px 24px rgba(0,0,0,.15));
}
.th2-carousel-btn--prev { left: -20px; }
.th2-carousel-btn--next { right: -20px; }
.th2-carousel-btn[disabled] {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .th2-home-section { padding: 32px 0; }
  .th2-section-header { padding: 0 16px; margin-bottom: 16px; }
  .th2-section-title { font-size: var(--th-text-lg, 18px); }
  .th2-section-body { padding: 0 16px; }
  .th2-carousel-btn { display: none; }
  .th2-hscroll--card > * { width: 180px; }
}
@media (max-width: 576px) {
  .th2-home-section { padding: 24px 0; }
  .th2-section-header { padding: 0 12px; margin-bottom: 12px; }
  .th2-section-body { padding: 0 12px; }
  .th2-hscroll { gap: 12px; }
  .th2-hscroll--card > * { width: 160px; }
}
/* ═══════════════════════════════════════════════════════════════════
   SECTION 38 — TRUST BOX (Platform-injected HTML)
   HTML classes: .trust-box, .trust-list, .trust-item,
                 .trust-icon, .trust-content, .trust-title
   NOTE: HTML cannot be modified — only CSS styling
   ═══════════════════════════════════════════════════════════════════ */

.trust-box {
  background: var(--th-trust-bg, var(--th-green-50, #f0fdf4));
  border: 1px solid var(--th-trust-border, var(--th-green-200, #bbf7d0));
  border-radius: var(--th-trust-radius, var(--th-radius-lg, 12px));
  padding: var(--th-trust-padding, 20px);
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--th-trust-gap, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--th-radius-md, 8px);
  background: rgba(255, 255, 255, .7);
  transition: background .2s ease;
}
.trust-item:hover {
  background: rgba(255, 255, 255, .95);
}
.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--th-radius-md, 8px);
  background: var(--th-trust-bg-alt, var(--th-green-100, #dcfce7));
  color: var(--th-trust-icon-color, var(--th-color-primary, #14613A));
  font-size: var(--th-trust-icon-size, 20px);
}
.trust-icon img,
.trust-icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.trust-content {
  flex: 1;
  min-width: 0;
}
.trust-title {
  display: block;
  font-size: var(--th-trust-title-font, var(--th-text-sm, 14px));
  font-weight: var(--th-trust-title-weight, 600);
  color: var(--th-trust-title-color, var(--th-green-800, #166534));
  line-height: 1.3;
  margin-bottom: 2px;
}
.trust-content p,
.trust-content span:not(.trust-title) {
  font-size: var(--th-trust-desc-font, var(--th-text-xs, 12px));
  color: var(--th-trust-desc-color, var(--th-green-700, #15803d));
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 8px; gap: 8px; }
  .trust-icon { width: 32px; height: 32px; font-size: 16px; }
}
@media (max-width: 576px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-box { padding: 12px; }
}
/* ═══════════════════════════════════════════════════════════════════
   SECTION 39 — CATEGORY PAGE: Breadcrumb, Toolbar, Filters,
                 Pagination, Empty State
   ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.th2-breadcrumb {
  padding: 12px 0;
  font-size: var(--th-breadcrumb-font, var(--th-text-xs, 12px));
}
.th2-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.th2-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--th-breadcrumb-text, var(--th-color-text-muted));
}
.th2-breadcrumb li + li::before {
  content: "\203A";
  margin: 0 8px;
  color: var(--th-breadcrumb-separator, var(--th-neutral-300));
  font-size: 1.1em;
}
.th2-breadcrumb a {
  color: var(--th-breadcrumb-link, var(--th-color-text-muted));
  text-decoration: none;
  transition: color .15s ease;
}
.th2-breadcrumb a:hover {
  color: var(--th-breadcrumb-link-hover, var(--th-color-primary));
}
.th2-breadcrumb [aria-current="page"] {
  color: var(--th-breadcrumb-current, var(--th-color-text));
  font-weight: var(--th-font-medium, 500);
}

/* ── Toolbar (qsf-topbar enhanced) ── */
.th2-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--th-color-border-light);
  margin-bottom: 20px;
}
.th2-toolbar__count {
  font-size: var(--th-text-sm, 14px);
  color: var(--th-color-text-secondary);
  margin-right: auto;
  white-space: nowrap;
}
.th2-toolbar__count strong {
  font-weight: 600;
  color: var(--th-color-text);
}
.th2-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Quick Filter Chips ── */
.th2-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--th-text-xs, 12px);
  font-weight: var(--th-font-medium, 500);
  border-radius: var(--th-radius-full, 999px);
  border: 1px solid var(--th-color-border);
  background: var(--th-color-bg);
  color: var(--th-color-text-secondary);
  text-decoration: none;
  line-height: 1.2;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.th2-chip:hover {
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
  background: var(--th-color-primary-subtle, rgba(20,97,58,.05));
}
.th2-chip .th2-chip__ico {
  font-size: 14px;
  line-height: 1;
}
.th2-chip--free { color: var(--th-color-accent); border-color: #ffd7b0; background: #fff6ed; }
.th2-chip--fast { color: #e91e63; border-color: #f7c2d4; background: #fff0f6; }
.th2-chip--viral { color: #6f42c1; border-color: #d9ccff; background: #f5f0ff; }
.th2-chip--sale { color: #009688; border-color: #b2dfdb; background: #f0fbfa; }
.th2-chip.is-active {
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.th2-chip.is-active::after {
  content: "\00D7";
  font-size: 14px;
  margin-left: 4px;
  opacity: .7;
}

/* ── Sort Dropdown ── */
.th2-sort-wrap {
  position: relative;
}
.th2-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--th-text-sm, 14px);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-md, 8px);
  background: var(--th-color-bg);
  color: var(--th-color-text);
  cursor: pointer;
  transition: border-color .15s ease;
}
.th2-sort-trigger:hover {
  border-color: var(--th-color-primary);
}
.th2-sort-trigger i { font-size: 12px; color: var(--th-color-text-muted); }

/* ── Sort Options (radios styled as list) ── */
.category-filter-order .list-wrap .list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-filter-order .list-wrap .list li .lag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--th-radius-full, 999px);
  border: 1px solid var(--th-color-border);
  background: var(--th-color-bg);
  cursor: pointer;
  transition: all .15s ease;
  font-size: var(--th-text-xs, 12px);
}
.category-filter-order .list-wrap .list li .lag-checkbox:hover {
  border-color: var(--th-color-primary);
  background: var(--th-color-primary-subtle, rgba(20,97,58,.05));
}
.category-filter-order .list-wrap .list li .lag-checkbox input[type="radio"] {
  display: none;
}
.category-filter-order .list-wrap .list li .lag-checkbox input[type="radio"]:checked + label {
  font-weight: 600;
  color: var(--th-color-primary);
}
.category-filter-order .list-wrap .list li .lag-checkbox label {
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  font-size: inherit;
}
.category-filter-order .list-wrap .list li .lag-checkbox span {
  display: none;
}

/* ── Filter Sidebar (Desktop) ── */
.th2-filter-panel {
  background: var(--th-filter-bg, #fff);
  border: 1px solid var(--th-filter-border, var(--th-color-border));
  border-radius: var(--th-radius-lg, 12px);
  overflow: hidden;
}
.th2-filter-group {
  border-bottom: 1px solid var(--th-color-border-light);
}
.th2-filter-group:last-child {
  border-bottom: 0;
}
.th2-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: var(--th-filter-heading-font, var(--th-text-sm, 14px));
  font-weight: var(--th-filter-heading-weight, 600);
  color: var(--th-filter-heading, var(--th-color-text));
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.th2-filter-heading:hover {
  background: var(--th-color-bg-secondary);
}
.th2-filter-heading i {
  font-size: 10px;
  color: var(--th-color-text-muted);
  transition: transform .2s ease;
}
.th2-filter-group.is-open .th2-filter-heading i {
  transform: rotate(180deg);
}
.th2-filter-body {
  padding: 0 16px 14px;
}
.th2-filter-body .lag-checkbox {
  padding: 6px 8px;
  border-radius: var(--th-radius-md, 8px);
  transition: background .15s ease;
}
.th2-filter-body .lag-checkbox:hover {
  background: var(--th-color-bg-secondary);
}
.th2-filter-body .lag-checkbox label {
  font-size: var(--th-text-sm, 14px);
  color: var(--th-filter-option-text, var(--th-color-text-secondary));
  cursor: pointer;
}
.th2-filter-body .lag-checkbox input:checked + label {
  font-weight: 500;
  color: var(--th-filter-option-hover, var(--th-color-primary));
}

/* ── Filter Tags (active filters) ── */
.th-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.th-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--th-text-xs, 12px);
  background: var(--th-filter-chip-bg, var(--th-color-primary-subtle));
  color: var(--th-filter-chip-text, var(--th-color-primary));
  border: 1px solid var(--th-filter-chip-border, transparent);
  border-radius: var(--th-filter-chip-radius, 999px);
}
.th-filter-tag__remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--th-filter-chip-remove, var(--th-color-primary));
  opacity: .7;
  transition: opacity .15s ease;
}
.th-filter-tag__remove:hover { opacity: 1; }

/* ── Mobile Filter Drawer ── */
.th2-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--th-filter-drawer-width, 320px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--th-filter-drawer-bg, #fff);
  box-shadow: var(--th-filter-drawer-shadow, 8px 0 32px rgba(0,0,0,.15));
  z-index: var(--th-z-drawer, 1040);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.th2-filter-drawer.is-open {
  transform: translateX(0);
}
.th2-filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--th-color-border-light);
  flex-shrink: 0;
}
.th2-filter-drawer__title {
  font-size: var(--th-text-lg, 18px);
  font-weight: var(--th-font-bold, 700);
  color: var(--th-color-text);
  margin: 0;
}
.th2-filter-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-full);
  cursor: pointer;
  font-size: 18px;
  color: var(--th-color-text);
  transition: background .15s ease;
}
.th2-filter-drawer__close:hover {
  background: var(--th-color-border-light);
}
.th2-filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.th2-filter-drawer__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--th-color-border-light);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.th2-filter-drawer__footer .btn {
  flex: 1;
}

/* Drawer backdrop */
.th2-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: calc(var(--th-z-drawer, 1040) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.th2-filter-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Pagination ── */
.th2-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 32px 0 16px;
}
.th2-pagination a,
.th2-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--th-pagination-size, 36px);
  height: var(--th-pagination-size, 36px);
  padding: 0 10px;
  font-size: var(--th-text-sm, 14px);
  border-radius: var(--th-pagination-radius, var(--th-radius-md, 8px));
  border: 1px solid var(--th-pagination-border, var(--th-color-border));
  background: var(--th-pagination-bg, #fff);
  color: var(--th-pagination-text, var(--th-color-text-secondary));
  text-decoration: none;
  transition: all .15s ease;
}
.th2-pagination a:hover {
  background: var(--th-pagination-bg-hover, var(--th-neutral-50));
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
}
.th2-pagination .active,
.th2-pagination [aria-current="page"] {
  background: var(--th-pagination-bg-active, var(--th-color-primary));
  color: var(--th-pagination-text-active, #fff);
  border-color: var(--th-pagination-bg-active, var(--th-color-primary));
  font-weight: 600;
}
.th2-pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

@media (max-width: 576px) {
  .th2-pagination { gap: 2px; }
  .th2-pagination a,
  .th2-pagination span { min-width: 32px; height: 32px; font-size: 13px; }
}

/* ── Empty State ── */
.th2-empty-state {
  text-align: center;
  padding: 64px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.th2-empty-state__icon {
  font-size: 48px;
  color: var(--th-color-text-muted);
  margin-bottom: 16px;
}
.th2-empty-state__title {
  font-size: var(--th-text-lg, 18px);
  font-weight: var(--th-font-semibold, 600);
  color: var(--th-color-text);
  margin: 0 0 8px;
}
.th2-empty-state__desc {
  font-size: var(--th-text-sm, 14px);
  color: var(--th-color-text-secondary);
  margin: 0 0 24px;
}
.th2-empty-state__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: #fff;
  background: var(--th-color-primary);
  border-radius: var(--th-radius-md, 8px);
  text-decoration: none;
  transition: background .15s ease;
}
.th2-empty-state__cta:hover {
  background: var(--th-color-primary-hover);
  color: #fff;
}

/* ── Category Description (SEO) ── */
.th2-category-desc {
  margin-top: 32px;
  padding: 24px;
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-lg, 12px);
  font-size: var(--th-text-sm, 14px);
  color: var(--th-color-text-secondary);
  line-height: 1.7;
}
.th2-category-desc h1,
.th2-category-desc h2,
.th2-category-desc h3 {
  font-size: var(--th-text-lg, 18px);
  font-weight: var(--th-font-bold, 700);
  color: var(--th-color-text);
  margin: 0 0 12px;
}
.th2-category-desc.is-collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.th2-category-desc.is-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--th-color-bg-secondary));
  pointer-events: none;
}
.th2-category-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: var(--th-color-primary);
  cursor: pointer;
  border: 0;
  background: 0;
  padding: 0;
  transition: color .15s ease;
}
.th2-category-desc__toggle:hover {
  color: var(--th-color-primary-hover);
}

/* ── Mobile responsive buttons ── */
.th2-mobile-toolbar {
  display: none;
  gap: 8px;
  padding: 12px 0;
}
.th2-mobile-toolbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: var(--th-text-sm, 14px);
  font-weight: var(--th-font-medium, 500);
  color: var(--th-color-text);
  background: var(--th-color-bg);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-md, 8px);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.th2-mobile-toolbar__btn:hover {
  border-color: var(--th-color-primary);
  color: var(--th-color-primary);
}
.th2-mobile-toolbar__btn i { font-size: 14px; }

@media (max-width: 991px) {
  .th2-mobile-toolbar { display: flex; }
}

/* ── Banner Grid (promo-banner enhanced) ── */
.th2-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}
.th2-banner-grid a,
.th2-banner-grid > div {
  border-radius: var(--th-radius-lg, 12px);
  overflow: hidden;
  display: block;
}
.th2-banner-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.th2-banner-grid a:hover img,
.th2-banner-grid > div:hover img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .th2-banner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .th2-banner-grid { grid-template-columns: 1fr; gap: 12px; }
}


/* ═══════════════════════════════════════════════════════════════════
   BOLUM 4: STATE CONTROLS
   ═══════════════════════════════════════════════════════════════════ */

/* ── 4A: Button States ── */
.th2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--th-space-2);
  padding: var(--th-space-3) var(--th-space-5);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-semibold);
  line-height: 1;
  border: none;
  border-radius: var(--th-btn-radius);
  cursor: pointer;
  transition: var(--th-transition-fast);
  text-decoration: none;
}

/* Primary */
.th2-btn-primary { background: var(--th-btn-primary-bg); color: var(--th-btn-primary-text); }
.th2-btn-primary:hover { background: var(--th-btn-primary-bg-hover); }
.th2-btn-primary:active { transform: scale(0.97); }
.th2-btn-primary:focus-visible { outline: 2px solid var(--th-btn-primary-bg); outline-offset: 2px; }
.th2-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Accent */
.th2-btn-accent { background: var(--th-btn-accent-bg); color: var(--th-btn-accent-text); }
.th2-btn-accent:hover { background: var(--th-btn-accent-bg-hover); }
.th2-btn-accent:active { transform: scale(0.97); }
.th2-btn-accent:focus-visible { outline: 2px solid var(--th-btn-accent-bg); outline-offset: 2px; }
.th2-btn-accent:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Secondary */
.th2-btn-secondary { background: var(--th-color-bg-tertiary); color: var(--th-color-text); border: 1px solid var(--th-color-border); }
.th2-btn-secondary:hover { background: var(--th-color-bg-hover); border-color: var(--th-color-text-muted); }
.th2-btn-secondary:active { transform: scale(0.97); }
.th2-btn-secondary:focus-visible { outline: 2px solid var(--th-color-primary); outline-offset: 2px; }
.th2-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Ghost */
.th2-btn-ghost { background: transparent; color: var(--th-color-text-link); }
.th2-btn-ghost:hover { background: var(--th-color-bg-hover); }
.th2-btn-ghost:active { background: var(--th-color-bg-tertiary); }
.th2-btn-ghost:focus-visible { outline: 2px solid var(--th-color-primary); outline-offset: 2px; }

/* Danger */
.th2-btn-danger { background: var(--th-color-danger); color: var(--th-neutral-0); }
.th2-btn-danger:hover { background: var(--th-red-700); }
.th2-btn-danger:active { transform: scale(0.97); }
.th2-btn-danger:focus-visible { outline: 2px solid var(--th-color-danger); outline-offset: 2px; }
.th2-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* Loading state (all buttons) */
.th2-btn.loading { pointer-events: none; opacity: 0.7; }
.th2-btn.loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: th2-spin 0.6s linear infinite;
  margin-left: var(--th-space-2);
}

/* ── 4B: Input States ── */
.th2-input,
.th2-select,
.th2-textarea {
  width: 100%;
  padding: var(--th-space-3);
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-base);
  color: var(--th-color-text);
  background: var(--th-color-bg);
  transition: var(--th-transition-fast);
}
.th2-input:hover, .th2-select:hover, .th2-textarea:hover { border-color: var(--th-neutral-400); }
.th2-input:focus, .th2-select:focus, .th2-textarea:focus { border-color: var(--th-color-primary); box-shadow: 0 0 0 3px rgba(20,97,58,0.1); outline: none; }
.th2-input.error, .th2-select.error, .th2-textarea.error { border-color: var(--th-color-danger); }
.th2-input.success, .th2-select.success, .th2-textarea.success { border-color: var(--th-color-success); }
.th2-input:disabled, .th2-select:disabled, .th2-textarea:disabled { background: var(--th-color-bg-tertiary); opacity: 0.6; cursor: not-allowed; }
.th2-input:read-only { background: var(--th-color-bg-tertiary); }

/* ── 4C: Card States ── */
.th2-card--outofstock { opacity: 0.6; }
.th2-card--outofstock::after {
  content: 'Tukendi';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7); color: white;
  padding: var(--th-space-2) var(--th-space-4);
  border-radius: var(--th-radius-md);
  font-size: var(--th-text-sm); font-weight: var(--th-font-semibold);
}
.th2-skeleton {
  background: linear-gradient(90deg, var(--th-color-bg-skeleton) 25%, var(--th-color-bg-tertiary) 50%, var(--th-color-bg-skeleton) 75%);
  background-size: 200% 100%;
  animation: th2-skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--th-radius-md);
}
@keyframes th2-skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Card Fav Button */
.th2-card__fav { transition: var(--th-transition-fast); }
.th2-card__fav:hover { transform: scale(1.15); }
.th2-card__fav.active { color: var(--th-color-danger); }

/* Card Add to Cart */
.th2-card__addcart.loading { pointer-events: none; }
.th2-card__addcart.loading i { display: none; }
.th2-card__addcart.loading::after {
  content: ''; width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: th2-spin 0.6s linear infinite;
}
.th2-card__addcart.success { background: var(--th-color-success); color: var(--th-neutral-0); }

/* ── 4D: Link States ── */
a:active { opacity: 0.8; }
a:focus-visible { outline: 2px solid var(--th-color-primary); outline-offset: 2px; border-radius: 2px; }

/* ── 4E: Tab/Accordion States ── */
.th2-tab { padding: var(--th-space-3) var(--th-space-4); border: none; background: transparent; cursor: pointer; font-weight: var(--th-font-medium); color: var(--th-color-text-muted); border-bottom: 2px solid transparent; transition: var(--th-transition-fast); }
.th2-tab:hover { color: var(--th-color-text); }
.th2-tab.active { color: var(--th-color-primary); border-bottom-color: var(--th-color-primary); font-weight: var(--th-font-semibold); }
.th2-tab:focus-visible { outline: 2px solid var(--th-color-primary); outline-offset: -2px; }

.th2-accordion-header { display: flex; align-items: center; justify-content: space-between; padding: var(--th-space-4); border: none; background: transparent; width: 100%; cursor: pointer; font-weight: var(--th-font-medium); transition: var(--th-transition-fast); }
.th2-accordion-header:hover { background: var(--th-color-bg-hover); }
.th2-accordion-header[aria-expanded="true"] { font-weight: var(--th-font-semibold); color: var(--th-color-primary); }
.th2-accordion-header:focus-visible { outline: 2px solid var(--th-color-primary); outline-offset: -2px; }


/* ═══════════════════════════════════════════════════════════════════
   BOLUM 5: EMPTY STATE DESIGNS
   ═══════════════════════════════════════════════════════════════════ */

.th2-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--th-space-12) var(--th-space-6);
  gap: var(--th-space-4);
}
.th2-empty-state__icon {
  width: var(--th-empty-icon-size);
  height: var(--th-empty-icon-size);
  color: var(--th-empty-icon-color);
  font-size: 48px;
}
.th2-empty-state__title {
  font-size: var(--th-empty-title-font);
  font-weight: var(--th-font-semibold);
  color: var(--th-empty-title-color);
  margin: 0;
}
.th2-empty-state__desc {
  font-size: var(--th-empty-desc-font);
  color: var(--th-empty-desc-color);
  max-width: 400px;
  margin: 0;
}
.th2-empty-state__cta {
  margin-top: var(--th-space-2);
}


/* ═══════════════════════════════════════════════════════════════════
   BOLUM 6: ERROR STATE DESIGNS
   ═══════════════════════════════════════════════════════════════════ */

/* ── 6B: Form Error Message ── */
.th2-form-error {
  display: flex;
  align-items: center;
  gap: var(--th-space-1);
  font-size: var(--th-text-xs);
  color: var(--th-color-danger);
  margin-top: var(--th-space-1);
}
.th2-form-error::before {
  content: '\26A0';
  flex-shrink: 0;
}

/* ── 6D: Image Fallback ── */
.th2-img-error {
  opacity: 0.5;
  object-fit: contain;
  background: var(--th-color-bg-tertiary);
}


/* ═══════════════════════════════════════════════════════════════════
   BOLUM 1A: CAMPAIGN TIMER
   ═══════════════════════════════════════════════════════════════════ */

.th2-timer { display: flex; align-items: center; gap: var(--th-space-1); }
.th2-timer-unit { display: flex; flex-direction: column; align-items: center; }
.th2-timer-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--th-campaign-timer-digit-bg);
  color: var(--th-campaign-timer-digit-text);
  border-radius: var(--th-campaign-timer-radius);
  min-width: 48px; height: 56px;
  font-size: var(--th-text-2xl);
  font-weight: var(--th-font-bold);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s ease;
}
.th2-timer-separator {
  color: var(--th-campaign-timer-separator);
  font-size: var(--th-text-xl);
  font-weight: var(--th-font-bold);
  padding: 0 var(--th-space-1);
  align-self: flex-start;
  margin-top: 12px;
}
.th2-timer-label {
  font-size: 10px;
  color: var(--th-campaign-timer-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--th-space-1);
  text-align: center;
}

/* Live badge */
.th2-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--th-text-xs); font-weight: var(--th-font-bold);
  color: var(--th-color-danger); text-transform: uppercase;
}
.th2-live-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--th-color-danger);
  border-radius: 50%;
  animation: th2-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes th2-pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

@media (max-width: 575px) {
  .th2-timer-digit { min-width: 36px; height: 42px; font-size: var(--th-text-lg); }
  .th2-timer-separator { font-size: var(--th-text-base); margin-top: 8px; }
}


/* ═══════════════════════════════════════════════════════════════════
   6A: 404 SEARCH FORM
   ═══════════════════════════════════════════════════════════════════ */

.e404-search {
  display: flex;
  max-width: 400px;
  margin: var(--th-space-4) auto 0;
  border: 1px solid var(--th-color-border);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
}
.e404-search-input {
  flex: 1;
  padding: var(--th-space-3) var(--th-space-4);
  border: none;
  font-size: var(--th-text-base);
  outline: none;
}
.e404-search-btn {
  padding: var(--th-space-3) var(--th-space-4);
  background: var(--th-btn-primary-bg);
  color: var(--th-btn-primary-text);
  border: none;
  cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════════════
   1B: RECENTLY VIEWED
   ═══════════════════════════════════════════════════════════════════ */

.th2-recently-viewed { margin: var(--th-space-8) 0; }
.th2-recently-viewed__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--th-space-4);
}
.th2-recently-viewed__header h3 { margin: 0; font-size: var(--th-text-lg); font-weight: var(--th-font-semibold); }
.th2-recently-viewed__clear { font-size: var(--th-text-sm); color: var(--th-color-text-muted); text-decoration: underline; background: none; border: none; cursor: pointer; }
.th2-recently-viewed__items {
  display: flex;
  gap: var(--th-space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--th-space-2);
}
.th2-recently-viewed__card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--th-color-text);
  text-align: center;
}
.th2-recently-viewed__card img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--th-radius-md);
  margin-bottom: var(--th-space-2);
}
.th2-recently-viewed__card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--th-text-xs);
}

/* ==============================================
   SEVIYE ROZETI + REFERANS
   ============================================== */

/* ── Seviye Rozeti (Hesabim Sidebar) ── */
.th-acc-level {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-3) var(--th-space-4);
  border-radius: var(--th-radius-lg);
  margin-bottom: var(--th-space-3);
}
.th-acc-level__badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--th-radius-full);
  font-size: var(--th-text-lg);
}
.th-acc-level__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.th-acc-level__info strong {
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-bold);
}
.th-acc-level__info span {
  font-size: var(--th-text-xs);
  opacity: .7;
}
.th-acc-level__next {
  font-size: var(--th-text-2xs);
  font-weight: var(--th-font-medium);
  opacity: .9;
}
.th-acc-level--bronze {
  background: linear-gradient(135deg, #FDF2E9 0%, #FDEBD0 100%);
  color: #CD7F32;
}
.th-acc-level--bronze .th-acc-level__badge {
  background: rgba(205, 127, 50, .15);
  color: #CD7F32;
}
.th-acc-level--silver {
  background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
  color: #A0AEC0;
}
.th-acc-level--silver .th-acc-level__badge {
  background: rgba(160, 174, 192, .2);
  color: #A0AEC0;
}
.th-acc-level--gold {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  color: #D4A017;
}
.th-acc-level--gold .th-acc-level__badge {
  background: rgba(212, 160, 23, .15);
  color: #D4A017;
}
.th-acc-level--platinum {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  color: #8B5CF6;
}
.th-acc-level--platinum .th-acc-level__badge {
  background: rgba(139, 92, 246, .15);
  color: #8B5CF6;
}

/* ── Referans Davet Kutusu ── */
.th-acc-referral {
  padding: var(--th-space-4);
  background: var(--th-neutral-50);
  border: 1px solid var(--th-color-border-light);
  border-radius: var(--th-radius-lg);
  margin-bottom: var(--th-space-3);
}
.th-acc-referral__title {
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  margin-bottom: var(--th-space-2);
}
.th-acc-referral__title i {
  color: var(--th-color-primary);
  margin-right: var(--th-space-2);
}
.th-acc-referral__desc {
  font-size: var(--th-text-xs);
  color: var(--th-color-text-muted);
  margin: 0 0 var(--th-space-3) 0;
}
.th-acc-referral__box {
  display: flex;
  gap: 0;
  border-radius: var(--th-radius-md);
  overflow: hidden;
  border: 1px solid var(--th-color-border);
}
.th-acc-referral__input {
  flex: 1;
  min-width: 0;
  padding: var(--th-space-2) var(--th-space-3);
  border: none;
  background: var(--th-neutral-0);
  font-size: var(--th-text-xs);
  color: var(--th-color-text-muted);
  outline: none;
}
.th-acc-referral__copy {
  flex-shrink: 0;
  padding: var(--th-space-2) var(--th-space-3);
  background: var(--th-color-primary);
  color: var(--th-neutral-0);
  border: none;
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-semibold);
  cursor: pointer;
  transition: var(--th-transition-fast);
  white-space: nowrap;
}
.th-acc-referral__copy:hover {
  opacity: .9;
}

@media (max-width: 768px) {
  .th-acc-referral__box {
    flex-direction: column;
  }
  .th-acc-referral__copy {
    text-align: center;
    padding: var(--th-space-3);
  }
}
