/* APERA D2C Theme — B2C Product Cards, CLS=0 Category Grid, PDP First-Screen & Native Lightbox */
.apera-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 4px 0 14px; }
.apera-section-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--apera-dark);
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 4px solid var(--apera-red);
  line-height: 1.25;
}
.apera-section-head .apera-section-title { margin-bottom: 0; }
.apera-section-sub { font-size: 13px; color: var(--apera-muted); margin: 2px 0 0 14px; }
.apera-section-more {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--apera-border);
  background: #ffffff;
  color: var(--apera-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.apera-section-more:hover, .apera-section-more:active { border-color: var(--apera-red); color: var(--apera-red); background: #FEF2F2; }

/* Hybrid Responsive 5-Col (>=1500px) & 6-Col (>=1800px) Storefront Grids */
@media (min-width: 1500px) {
  #product-list:not(.product-list).row-cols-lg-4 > .col,
  .row.apera-product-grid > .col { flex: 0 0 auto; width: 20%; }
}
@media (min-width: 1800px) {
  #product-list:not(.product-list).row-cols-lg-4 > .col,
  .row.apera-product-grid > .col { flex: 0 0 auto; width: 16.666667%; }
}

/* B2C Product Cards (.product-thumb.apera-card) */
.product-thumb.apera-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.product-thumb.apera-card:hover { border-color: var(--apera-border); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08); }

.apera-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 10px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.apera-card-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.apera-card-media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.apera-card-dots-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.apera-card-gbar-seg {
  flex: 1 1 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  transition: background-color 0.15s ease;
}
.apera-card-gbar-seg.is-active { background: var(--apera-red); }

.apera-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--apera-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.apera-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 10px 12px 12px; min-width: 0; }
.apera-card-cat {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  min-height: 22px;
  line-height: 22px;
  margin: -2px 0 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--apera-muted);
  white-space: nowrap;
  overflow: hidden;
}
.apera-card-cat-link {
  color: var(--apera-muted);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
}
.apera-card-cat-link:first-child { flex-shrink: 1; }
.apera-card-cat-link:last-child { flex-shrink: 0; max-width: 68%; color: #334155; font-weight: 700; }
.apera-card-cat-link:hover, .apera-card-cat-link:active, .apera-card-cat-link:focus-visible { color: var(--apera-red); text-decoration: underline; background: transparent; }
.apera-card-cat-sep { color: #94A3B8; flex-shrink: 0; font-weight: 700; }
.apera-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apera-card-title a { color: var(--apera-dark); text-decoration: none; }
.apera-card-title a:hover { color: var(--apera-red); }
.apera-card .apera-card-summary { white-space: normal; }
.apera-card-rating { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; color: #D97706; font-size: 12px; }

.apera-card-price-block { margin-top: auto; padding-top: 6px; }
.apera-card-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.apera-card .price-new { font-size: 17.5px; font-weight: 800; color: var(--apera-dark); line-height: 1.2; }
.apera-card .price-old { font-size: 12.5px; font-weight: 500; color: var(--apera-muted); text-decoration: line-through; }
.apera-vat-pill { font-size: 11px; font-weight: 600; color: var(--apera-muted); }

.apera-card-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #DCFCE7;
  color: var(--apera-success-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.apera-card-form { margin-top: 10px; }
.apera-card-actions { display: flex; align-items: center; gap: 6px; width: 100%; }

.apera-card-btn-cart {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--apera-red);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.apera-card-btn-cart:hover { background: var(--apera-red-hover); }

.apera-card-btn-wish {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--apera-border);
  border-radius: 8px;
  background: var(--apera-surface);
  color: var(--apera-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.apera-card-btn-wish:hover { border-color: var(--apera-red); color: var(--apera-red); background: #FEF2F2; }

/* common.js:419 CLS=0 Lock & Narrow Mobile 2-Column Compact Fit */
@media (max-width: 575.98px) {
  #product-list:not(.product-list) { --bs-gutter-x: 10px; }
  #product-list:not(.product-list) > .col { width: 50%; flex: 0 0 auto; }
  .product-thumb.apera-card .apera-card-media { padding: 8px; }
  .product-thumb.apera-card .apera-card-body { padding: 8px 8px 10px; }
  .product-thumb.apera-card .apera-card-cat { height: 20px; min-height: 20px; line-height: 20px; font-size: 11px; margin-bottom: 2px; }
  .product-thumb.apera-card .apera-card-title { font-size: 13px; }
  .product-thumb.apera-card .price-new { font-size: 15.5px; }
  .product-thumb.apera-card .apera-card-actions { gap: 5px; }
  .product-thumb.apera-card .apera-card-btn-cart { padding: 6px 6px; font-size: 12.5px; gap: 4px; }
}

@media (min-width: 768px) {
  .product-list .product-thumb.apera-card { flex-direction: row; align-items: stretch; }
  .product-list .apera-card-media { width: 210px; flex: 0 0 210px; border-bottom: 0; border-right: 1px solid #F1F5F9; }
}

/* Single-Row `>` Chip Breadcrumb Above PDP & Catalog Pages */
.breadcrumb.apera-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 28px;
  margin: 6px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
}
@media (max-width: 767.98px) {
  .breadcrumb.apera-breadcrumb { min-height: 24px; margin: 4px 0 4px; font-size: 11.5px; }
  .breadcrumb.apera-breadcrumb a { min-height: 24px; padding: 1px 7px; }
}
.breadcrumb.apera-breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb.apera-breadcrumb > li.breadcrumb-item { padding: 0; text-shadow: none; white-space: nowrap; color: var(--apera-muted); display: inline-flex; align-items: center; }
.breadcrumb.apera-breadcrumb > li.breadcrumb-item::after { content: none !important; }
.breadcrumb.apera-breadcrumb > li.breadcrumb-item + li::before { content: ">"; padding: 0 6px; color: #94A3B8; font-weight: 700; }
.breadcrumb.apera-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: var(--apera-dark);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.breadcrumb.apera-breadcrumb a:hover,
.breadcrumb.apera-breadcrumb a:active { border-color: var(--apera-red); background: #FEF2F2; color: var(--apera-red); text-decoration: none; }
.apera-bc-current { display: inline-block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: var(--apera-muted); font-weight: 600; padding: 2px 4px; }
@media (min-width: 768px) { .apera-bc-current { max-width: 50ch; } }

/* Category Compact Dark Visual Summary Banner & Bottom SEO Guide */
.apera-cat-banner {
  background: radial-gradient(circle at 90% 15%, rgba(200, 30, 30, 0.24), transparent 48%), linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.apera-cat-banner-top {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 992px) {
  .apera-cat-banner-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; }
}
.apera-cat-banner-info { min-width: 0; flex: 1 1 auto; }
.apera-cat-banner-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--apera-red); color: #ffffff; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.apera-cat-banner-title { color: #ffffff !important; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; line-height: 1.2; margin: 0 0 4px; }
.apera-cat-banner-sub { color: #CBD5E1; font-size: 13px; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apera-cat-seo-box { margin-top: 20px; padding: 18px 20px; background: var(--apera-surface); border: 1px solid #E2E8F0; border-radius: 12px; }
.apera-cat-seo-title { font-size: 16px; font-weight: 800; color: var(--apera-dark); margin: 0 0 8px; }
.apera-cat-seo-body { font-size: 13.5px; line-height: 1.6; color: var(--apera-text); }
.apera-cat-seo-body p:last-child { margin-bottom: 0; }

/* Category Refine Pills & Sibling Tree Strip (Single Scrollable Row, APERA Active State) */
.apera-refine-nav { margin: 0 0 12px; }
.apera-refine-list { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; margin: 0 0 12px; padding: 2px 0; list-style: none; }
.apera-refine-nav .apera-refine-list { margin-bottom: 0; }
.apera-refine-list::-webkit-scrollbar { display: none; }
.apera-refine-pill {
  min-height: 42px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--apera-border);
  background: var(--apera-surface);
  color: var(--apera-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.apera-refine-pill:hover, .apera-refine-pill:active { border-color: var(--apera-red); color: var(--apera-red); background: #FEF2F2; }
.apera-refine-pill.is-active { background: var(--apera-dark); color: #ffffff; border-color: var(--apera-dark); }
.apera-refine-pill.is-active:hover, .apera-refine-pill.is-active:active { background: var(--apera-dark); color: #ffffff; }
.apera-refine-pill.is-parent { background: #ffffff; border-style: dashed; }
.apera-toolbar-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Category AJAX Filter Strip & Search Results Controls (CLS=0, >=44x44px Targets) */
.apera-filter-bar { background: var(--apera-surface); border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; }
.apera-filter-controls { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.apera-filter-price-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1 1 290px; max-width: 100%; min-width: 0; }
.apera-filter-lbl { font-size: 12px; font-weight: 700; color: var(--apera-muted); }
.apera-filter-price-inputs { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.apera-filter-price-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 128px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--apera-border-input);
  border-radius: 8px;
  background: #ffffff;
  color: var(--apera-dark);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 575.98px) { .apera-filter-price-input { max-width: none; } }
.apera-filter-sep { color: var(--apera-muted); font-weight: 700; flex-shrink: 0; }
.apera-filter-apply-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--apera-dark);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.apera-filter-apply-btn:hover { background: var(--apera-red); }

.apera-filter-toggles { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.apera-filter-reset-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.apera-filter-reset-btn:hover { background: #FEE2E2; color: #7F1D1D; }
.apera-filter-reset-btn[hidden] { display: none !important; }

.apera-filter-presets { display: flex; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px; margin-bottom: 10px; }
.apera-filter-presets::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .apera-filter-presets { flex-wrap: wrap; overflow-x: visible; } }
.apera-preset-pill {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--apera-border);
  background: #ffffff;
  color: var(--apera-dark);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.apera-preset-pill:hover { border-color: var(--apera-dark); }
.apera-preset-pill.is-active { background: var(--apera-dark); border-color: var(--apera-dark); color: #ffffff; font-weight: 700; }

.apera-filter-controls + .apera-toolbar-row, .apera-filter-presets + .apera-toolbar-row { border-top: 1px solid #E2E8F0; padding-top: 10px; }
.apera-toolbar-group > .input-group-text, .apera-toolbar-group > .form-select { min-height: 44px; font-size: 13.5px; }
.apera-toolbar-group > .input-group-text { background: #ffffff; color: var(--apera-muted); font-weight: 600; border-color: var(--apera-border-input); }
.apera-toolbar-group > .form-select { border-color: var(--apera-border-input); color: var(--apera-dark); font-weight: 600; }
@media (max-width: 575.98px) {
  .apera-toolbar-group > .input-group-text { padding: 0 7px; font-size: 12px; }
  .apera-toolbar-group > .form-select { padding-left: 8px; padding-right: 26px; }
}

#apera-category-results { transition: opacity 0.16s ease; }
#apera-category-results.is-loading { opacity: 0.52; pointer-events: none; }
.apera-cat-empty { padding: 28px 16px; text-align: center; background: var(--apera-surface); border: 1px dashed var(--apera-border); border-radius: 12px; color: var(--apera-text); margin-bottom: 16px; }
.apera-pagination-wrap .pagination, .pagination.apera-pagination { flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
.apera-pagination-wrap .page-link, .pagination.apera-pagination .page-link { min-width: 44px; min-height: 44px; border-radius: 8px !important; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--apera-dark); border-color: var(--apera-border); }
.apera-pagination-wrap .page-item.active .page-link, .pagination.apera-pagination .page-item.active .page-link { background: var(--apera-red); border-color: var(--apera-red); color: #ffffff; }

.apera-search-criteria { background: var(--apera-surface); border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px; }
.apera-ctrl-44 { min-height: 44px; border-color: var(--apera-border-input); }
.apera-check-pill { min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--apera-border); background: #ffffff; color: var(--apera-dark); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.apera-check-pill:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }

/* Product Detail (#product-info) 390x844 First-Screen Layout */
.apera-main-media {
  position: relative;
  width: 248px;
  height: 248px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 6px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apera-main-media-btn { width: 100%; height: 100%; border: 0; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.apera-main-media-btn img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }

.apera-thumb-strip { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; margin-bottom: 8px; scrollbar-width: none; }
.apera-thumb-strip::-webkit-scrollbar { display: none; }
.apera-thumb-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--apera-border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.apera-thumb-btn.is-active { border: 2px solid var(--apera-red); }
.apera-thumb-btn img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

@media (min-width: 768px) {
  .apera-main-media { width: 100%; max-width: 500px; height: auto; padding: 16px; margin-bottom: 10px; }
  .apera-thumb-btn { width: 64px; height: 64px; min-width: 64px; min-height: 64px; }
}

.apera-pdp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; font-size: 12px; }
.apera-brand-pill { padding: 2px 8px; border-radius: 6px; background: var(--apera-dark); color: #ffffff; font-weight: 700; text-decoration: none; }
.apera-model-code { color: var(--apera-muted); font-weight: 600; }
.apera-stock-pill { height: 24px; padding: 0 9px; border-radius: 999px; background: #DCFCE7; color: var(--apera-success-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

.apera-pdp-title { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--apera-dark); margin: 0 0 6px; }
@media (min-width: 768px) { .apera-pdp-title { font-size: 22px; margin-bottom: 10px; } }

.apera-pdp-price-box { background: var(--apera-surface); border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 11px; margin-bottom: 8px; }
.apera-pdp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.apera-pdp-price-box .price-new { font-size: 24px; font-weight: 800; color: var(--apera-dark); line-height: 1.15; }
.apera-pdp-price-box .price-old { font-size: 15px; color: var(--apera-muted); text-decoration: line-through; }
.apera-pdp-ship-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--apera-success-ink); }

@media (max-width: 767.98px) {
  .apera-main-media { width: 228px; height: 228px; max-width: 228px; margin: 0 auto 3px; padding: 5px; }
  #product-info:has(.apera-sibling-wrap) .apera-main-media { width: 204px; height: 204px; max-width: 204px; }
  .apera-thumb-strip { margin-bottom: 4px; }
  #product-info .row.g-3 { --bs-gutter-y: 0.25rem; }
  .apera-pdp-meta { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-bottom: 2px; }
  .apera-pdp-meta::-webkit-scrollbar { display: none; }
  .apera-pdp-title { font-size: 15.5px; line-height: 1.26; margin: 0 0 4px; }
  .apera-pdp-price-box { padding: 5px 10px; margin-bottom: 4px; }
  .apera-inst-badge-wrap.mb-2 { margin-bottom: 3px !important; }
  .apera-pdp-ship-note { font-size: 11.5px; line-height: 1.25; }
}

.apera-buy-row { display: flex; align-items: stretch; gap: 6px; margin-bottom: 10px; }
.apera-qty-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60px;
  min-height: 48px;
  padding: 2px 6px;
  border: 1px solid var(--apera-border-input);
  border-radius: 10px;
  background: #ffffff;
}
.apera-qty-lbl { font-size: 10px; font-weight: 700; color: var(--apera-muted); line-height: 1.1; margin: 0; text-align: center; }
.apera-qty-input { border: 0 !important; padding: 0 !important; height: 24px; text-align: center; font-weight: 700; color: var(--apera-dark); background: transparent; box-shadow: none !important; }

#button-cart.apera-btn-cart {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--apera-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#button-cart.apera-btn-cart:hover { background: var(--apera-red-hover); }

.apera-pdp-aux-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--apera-border);
  border-radius: 10px;
  background: var(--apera-surface);
  color: var(--apera-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.apera-pdp-aux-btn:hover { border-color: var(--apera-red); color: var(--apera-red); }

#product-info #content { min-width: 0; max-width: 100%; }
.apera-tabs-wrap, .apera-tabs, #tab-description, #tab-zeroreturn, #tab-review, #tab-qa, #tab-installment, #tab-specification { scroll-margin-top: 118px; }
@media (min-width: 992px) { .apera-tabs-wrap, .apera-tabs, #tab-description, #tab-zeroreturn, #tab-review, #tab-qa, #tab-installment, #tab-specification { scroll-margin-top: 84px; } }
.apera-tabs-wrap { width: 100%; max-width: 100%; min-width: 0; }
.apera-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-bottom: 2px solid #E2E8F0;
}
.apera-tabs::-webkit-scrollbar { display: none; }
.apera-tabs .nav-item { flex: 0 0 auto; }
.apera-tabs .nav-link {
  white-space: nowrap;
  min-height: 44px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--apera-muted);
  border: 0;
  border-bottom: 3px solid transparent;
}
.apera-tabs .nav-link:hover { color: var(--apera-dark); border-color: transparent; }
.apera-tabs .nav-link.active { color: var(--apera-red); border-bottom-color: var(--apera-red); background: transparent; font-weight: 700; }
#tab-description img, #tab-zeroreturn img { max-width: 100%; height: auto; }

/* Zero-Return 2x2 Grid & Corporate Q&A Strip */
.apera-zr-grid { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 100%; margin: 8px 0 16px; }
@media (min-width: 768px) { .apera-zr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.apera-zr-card { background: var(--apera-surface); border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 16px; min-width: 0; color: var(--apera-text); }
.apera-zr-card h3, .apera-zr-title { font-size: 15px; font-weight: 700; color: var(--apera-dark); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.apera-zr-warn { background: #FFF7ED; color: #9A3412; border: 1px solid #FDBA74; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.apera-zr-eu-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; font-size: 12px; font-weight: 700; line-height: 1.3; }

.apera-wa-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 12px; margin: 8px 0 10px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; color: var(--apera-dark); font-size: 13px; line-height: 1.4; }
.apera-wa-btn { background: #15803D; color: #FFFFFF !important; min-height: 44px; min-width: 44px; max-width: 100%; padding: 8px 14px; border-radius: 8px; border: 0; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; transition: background-color 0.15s ease; }
.apera-wa-btn:hover, .apera-wa-btn:focus-visible { background: #166534; color: #FFFFFF !important; text-decoration: none !important; }

/* Mobile Sticky Bottom Cart Bar (< 768px, CLS = 0) */
#apera-sticky-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #ffffff;
  border-top: 1px solid var(--apera-border);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#apera-sticky-cart-bar.is-visible { display: flex; }
@media (min-width: 768px) { #apera-sticky-cart-bar { display: none !important; } }

/* Native <dialog id="apera-lightbox"> + Banner Controls */
#apera-lightbox { border: 0; border-radius: 12px; padding: 0; width: min(94vw, 880px); max-height: 90dvh; background: #ffffff; box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35); touch-action: pan-y; }
#apera-lightbox::backdrop { background: rgba(15, 23, 42, 0.82); }
.apera-lightbox-inner { position: relative; padding: 48px 16px 20px; display: flex; align-items: center; justify-content: center; }
#apera-lightbox-img { max-width: 100%; max-height: 78dvh; width: auto; height: auto; object-fit: contain; }
.apera-lightbox-close, .apera-lightbox-nav {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--apera-border);
  background: #ffffff;
  color: var(--apera-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  cursor: pointer;
}
.apera-lightbox-close { top: 8px; right: 8px; }
.apera-lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.apera-lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

.apera-banner-carousel img { aspect-ratio: 1140 / 380; height: auto; }
.apera-banner-carousel .carousel-control-prev, .apera-banner-carousel .carousel-control-next { min-width: 44px; min-height: 44px; }
.apera-banner-carousel .carousel-indicators button {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 18px 8px !important;
  background-clip: content-box !important;
  border: 0 !important;
}

/* Paket 2D: Compact PDP Campaign Badge (<= 26px height, CLS = 0, 390x844 Safe) & Card Promo Pill */
.apera-card-promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0F172A;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
.apera-pdp-promo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  max-height: 28px;
  padding: 2px 8px;
  margin: 3px 0 4px;
  border-radius: 6px;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  color: #7C2D12;
  font-size: 11.5px;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
}
.apera-pdp-promo-lbl { padding: 2px 6px; border-radius: 4px; background: var(--apera-red); color: #ffffff; font-size: 10.5px; font-weight: 800; line-height: 1.15; flex-shrink: 0; }
.apera-pdp-promo-sub { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) {
  .apera-pdp-promo-badge { height: 24px; margin: 2px 0 3px; padding: 2px 6px; font-size: 11px; }
}

/* Visual Subcategory & Back-to-Parent Cards on product/category */
.apera-subcat-nav { margin: 0 0 12px; }
.apera-subcat-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; margin: 0; padding: 2px 0; list-style: none; }
.apera-subcat-grid::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .apera-subcat-grid { flex-wrap: wrap; overflow-x: visible; } }
.apera-subcat-grid > li { flex: 0 0 auto; scroll-snap-align: start; }
.apera-subcat-card { min-height: 48px; padding: 5px 11px 5px 6px; border-radius: 10px; border: 1px solid var(--apera-border); background: #ffffff; color: var(--apera-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; max-width: 250px; transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease; }
.apera-subcat-card:hover, .apera-subcat-card:active { border-color: var(--apera-red); background: #FEF2F2; color: var(--apera-red); }
.apera-subcat-card.is-active { background: var(--apera-dark); border-color: var(--apera-dark); color: #ffffff; }
.apera-subcat-card.is-back { background: var(--apera-surface); border-style: dashed; }
.apera-subcat-thumb { width: 38px; height: 38px; min-width: 38px; aspect-ratio: 1 / 1; object-fit: contain; background: #ffffff; border: 1px solid #E2E8F0; border-radius: 7px; padding: 2px; flex-shrink: 0; display: block; }
.apera-subcat-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.apera-subcat-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apera-subcat-cnt { font-size: 11px; font-weight: 600; color: var(--apera-muted); }
.apera-subcat-card.is-active .apera-subcat-cnt { color: #CBD5E1; }

/* Public Storefront Coupon Pills on PDP (CLS = 0, 0px Overflow) */
.apera-coupon-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.apera-coupon-tier-pill code { background: #EFF6FF; color: #1D4ED8; padding: 1px 5px; border-radius: 4px; font-weight: 800; font-size: 11px; }
.apera-pdp-coupons { margin: 8px 0; padding: 9px 11px; border-radius: 10px; background: #F8FAFC; border: 1px dashed #CBD5E1; }
.apera-pdp-coupons-hd { font-size: 12px; font-weight: 800; color: var(--apera-dark); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.apera-pdp-coupons-sub { font-size: 11px; font-weight: 600; color: var(--apera-muted); }
.apera-pdp-coupons-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Catalog Showcase Page Header (`/cok-satanlar` Zero Extra CSS Request) */
.apera-page-head { margin-bottom: 18px; }
.apera-page-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #FEF2F2; border: 1px solid #FECACA; color: var(--apera-red); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.apera-page-sub { color: var(--apera-muted); font-size: 14px; line-height: 1.5; margin: 4px 0 0; max-width: 72ch; }
.apera-card-btn-cart.is-out {
  background: #E2E8F0 !important;
  color: #475569 !important;
  cursor: not-allowed;
  opacity: 0.9;
}
.apera-card-cat-link { padding: 2px 0; }
