/* APERA D2C Theme v2.0 — Subpages Design System (Cart, Specials, Brands, Compare, Info, Contact, 404 & Account) */
.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-btn-outline {
  min-height: 46px;
  min-width: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--apera-border-input);
  background: #ffffff;
  color: var(--apera-dark) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.apera-btn-outline:hover { border-color: var(--apera-dark); background: var(--apera-surface); }

.apera-act-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  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;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.apera-act-btn:hover { border-color: var(--apera-dark); background: var(--apera-surface); color: var(--apera-dark); }
.apera-act-btn.is-danger { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }
.apera-act-btn.is-danger:hover { background: #FEE2E2; color: #7F1D1D; }

/* Modern D2C Cart (#checkout-cart) */
.apera-promo-bar {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #FDBA74;
  background: #FFF7ED;
  color: #7C2D12;
  margin-bottom: 10px;
}
.apera-promo-bar.is-won { border-color: #86EFAC; background: #F0FDF4; color: #14532D; }
.apera-promo-bar-hd { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.apera-promo-bar-track { width: 100%; height: 7px; border-radius: 999px; background: rgba(15, 23, 42, 0.1); overflow: hidden; margin-top: 7px; }
.apera-promo-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--apera-red), #EA580C); transition: width 0.2s ease; }
.apera-promo-bar.is-won .apera-promo-bar-fill { background: linear-gradient(90deg, #16A34A, #22C55E); }
.apera-promo-bar-sub { font-size: 12px; color: #9A3412; margin-top: 5px; line-height: 1.4; }
.apera-promo-bar.is-won .apera-promo-bar-sub { color: var(--apera-success-ink); }

.apera-cart-items { display: flex; flex-direction: column; gap: 10px; }
.apera-cart-row {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
@media (min-width: 768px) {
  .apera-cart-row { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; }
}
.apera-cart-row-main { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 auto; min-width: 0; }
.apera-cart-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
  display: block;
}
.apera-cart-info { flex: 1 1 auto; min-width: 0; }
.apera-cart-name { font-size: 14.5px; font-weight: 700; color: var(--apera-dark); text-decoration: none; line-height: 1.35; display: block; overflow-wrap: anywhere; }
.apera-cart-name:hover { color: var(--apera-red); }
.apera-cart-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--apera-muted); }
.apera-cart-code { padding: 2px 7px; border-radius: 5px; background: #F1F5F9; color: #334155; font-weight: 700; font-size: 11.5px; }

.apera-cart-row-ctrl { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.apera-cart-qty-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.apera-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--apera-border-input);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.apera-qty-step-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: var(--apera-surface);
  color: var(--apera-dark);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.apera-qty-step-btn:hover { background: #E2E8F0; color: var(--apera-red); }
.apera-cart-qty-input {
  width: 46px;
  height: 44px;
  border: 0;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--apera-dark);
  padding: 0 2px;
  -moz-appearance: textfield;
}
.apera-cart-qty-input::-webkit-outer-spin-button,
.apera-cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.apera-cart-rm-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #FECACA !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.apera-cart-rm-btn:hover { background: #FEE2E2 !important; color: #7F1D1D !important; }
.apera-cart-prices { text-align: right; min-width: 88px; }
.apera-cart-line-total { font-size: 16px; font-weight: 800; color: var(--apera-dark); display: block; white-space: nowrap; }
.apera-cart-unit-price { font-size: 11.5px; color: var(--apera-muted); display: block; white-space: nowrap; }

.apera-cart-summary { background: var(--apera-surface); border: 1px solid var(--apera-border); border-radius: 12px; padding: 16px; }
@media (min-width: 992px) { .apera-cart-summary { position: sticky; top: 96px; } }
.apera-cart-totals { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.apera-cart-tot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--apera-text); }
.apera-cart-tot-row.is-disc { color: var(--apera-success-ink); font-weight: 700; }
.apera-cart-tot-row.is-grand { border-top: 1px solid #E2E8F0; padding-top: 8px; margin-top: 2px; font-size: 16.5px; font-weight: 800; color: var(--apera-dark); }
.apera-cart-tot-row.is-grand strong { color: var(--apera-red); font-size: 18.5px; }

.apera-coupon-toggle {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed var(--apera-border-input);
  background: #ffffff;
  color: var(--apera-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.apera-coupon-toggle:hover { border-color: var(--apera-red); color: var(--apera-red); }
.apera-coupon-row { display: flex; align-items: stretch; gap: 6px; margin-top: 6px; }
.apera-coupon-input { min-height: 44px; border-radius: 8px; border: 1px solid var(--apera-border-input); text-transform: uppercase; font-weight: 700; font-size: 13.5px; flex: 1 1 auto; min-width: 0; }
.apera-coupon-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--apera-dark); color: #ffffff; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.apera-coupon-btn:hover { background: var(--apera-red); }
.apera-coupon-active { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; background: #F0FDF4; border: 1px solid #86EFAC; color: #14532D; }
.apera-coupon-rm-btn { min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid #FECACA; background: #FEF2F2; color: #991B1B; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.apera-coupon-msg { margin-top: 6px; padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.apera-coupon-msg.is-ok { background: #F0FDF4; border: 1px solid #86EFAC; color: #14532D; }
.apera-coupon-msg.is-err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* Empty State, 404 & Easy Return Resolution Cards */
.apera-empty-card, .apera-404-card {
  max-width: 660px;
  margin: 12px auto 20px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  background: var(--apera-surface);
  text-align: center;
}
.apera-empty-ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 999px; background: #FEF2F2; color: var(--apera-red); display: inline-flex; align-items: center; justify-content: center; }
.apera-404-wa, .apera-wa-first-box {
  padding: 16px;
  border-radius: 12px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #14532D;
  text-align: left;
}

/* Brands, Compare, Prose, Contact & Sitemap */
.apera-alpha-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.apera-alpha-pill { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--apera-border); background: var(--apera-surface); color: var(--apera-dark); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.apera-alpha-pill:hover { border-color: var(--apera-red); color: var(--apera-red); }
.apera-brand-card { min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid #E2E8F0; background: #ffffff; color: var(--apera-dark); font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: border-color 0.15s ease; }
.apera-brand-card:hover { border-color: var(--apera-red); color: var(--apera-red); background: #FEF2F2; }

.apera-compare-wrap { border: 1px solid #E2E8F0; border-radius: 12px; background: #ffffff; }
.apera-compare-table { margin-bottom: 0; font-size: 13.5px; }
.apera-compare-table td, .apera-compare-table th { vertical-align: middle; min-width: 140px; }
.apera-compare-table td:first-child { min-width: 120px; background: var(--apera-surface); font-weight: 700; color: var(--apera-dark); }
.apera-compare-img { width: 90px; height: 90px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; border: 1px solid #E2E8F0; padding: 4px; background: #ffffff; }

.apera-prose-card, .apera-form-card, .apera-contact-card, .apera-sitemap-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
@media (max-width: 575.98px) {
  .apera-prose-card, .apera-form-card, .apera-contact-card, .apera-sitemap-card { padding: 14px; }
}
.apera-prose-card img, .apera-prose-card table { max-width: 100%; height: auto; }
.apera-contact-card.is-wa { background: #F0FDF4; border-color: #BBF7D0; }
.apera-sitemap-list, .apera-sitemap-list ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.apera-sitemap-list ul { padding-left: 16px; border-left: 2px solid #E2E8F0; margin: 4px 0 8px 6px; }
.apera-sitemap-list a { min-height: 44px; padding: 6px 8px; color: var(--apera-dark); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.apera-sitemap-list a:hover { color: var(--apera-red); text-decoration: underline; }

/* Account Auth, 5-Card Dashboard & Subpage Info Tiles */
.apera-auth-card { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 22px; height: 100%; display: flex; flex-direction: column; }
.apera-auth-card.is-secondary { background: var(--apera-surface); }
.apera-form-card .form-control, .apera-form-card .form-select, .apera-auth-card .form-control { min-height: 44px; border-radius: 8px; border-color: var(--apera-border-input); }
.apera-form-card textarea.form-control { min-height: 96px; }
.apera-form-label { font-size: 13px; font-weight: 700; color: var(--apera-dark); margin-bottom: 4px; display: block; }
.required .apera-form-label::after, .required > .col-form-label::after { content: " *"; color: var(--apera-red); }

.apera-acc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .apera-acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 992px) { .apera-acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.apera-acc-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--apera-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.apera-acc-card:hover { border-color: var(--apera-red); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); color: var(--apera-text); }
.apera-acc-ico { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; background: #FEF2F2; color: var(--apera-red); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.apera-acc-title { font-size: 15.5px; font-weight: 800; color: var(--apera-dark); margin: 0 0 3px; }
.apera-acc-desc { font-size: 13px; color: var(--apera-muted); line-height: 1.45; margin: 0; }
.apera-acc-sublinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.apera-acc-subpill { min-height: 44px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--apera-border); background: var(--apera-surface); color: var(--apera-dark); font-size: 12.5px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.apera-acc-subpill:hover { border-color: var(--apera-red); color: var(--apera-red); }

.apera-addr-card, .apera-info-tile { background: var(--apera-surface); border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 16px; height: 100%; }
.apera-info-lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--apera-muted); display: block; margin-bottom: 3px; }
.apera-status-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #EFF6FF; color: #1E40AF; font-size: 12px; font-weight: 700; }

/* Cart 1-Click Public Coupon Selector (>= 44x44px Tap Targets) */
.apera-qcp-wrap { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.apera-qcp-lbl { font-size: 11.5px; font-weight: 800; color: var(--apera-dark); }
.apera-qcp-btn {
  min-height: 44px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed #16A34A;
  background: #F0FDF4;
  color: #14532D;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.apera-qcp-btn:hover { background: #DCFCE7; border-style: solid; }
.apera-qcp-cta { padding: 3px 8px; border-radius: 5px; background: #15803D; color: #FFFFFF; font-size: 11px; font-weight: 800; white-space: nowrap; }
.apera-qcp-lock {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
  background: #F8FAFC;
  color: var(--apera-muted);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* =========================================================================
   14 GUN UCRETSIZ KOLAY IADE MERKEZI (/kolay-iade)
   ========================================================================= */
.apera-er-hero {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.apera-er-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.apera-er-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #14532D;
  font-size: 12.5px;
  font-weight: 700;
}
.apera-er-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 767.98px) {
  .apera-er-steps { grid-template-columns: 1fr; }
}
.apera-er-step {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}
.apera-er-step.is-active {
  border-color: #16A34A;
  background: #F0FDF4;
  color: #14532D;
  font-weight: 700;
}
.apera-er-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #0F172A;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.apera-er-step.is-active .apera-er-step-num {
  background: #16A34A;
  color: #FFFFFF;
}
.apera-er-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  margin-bottom: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.apera-er-item-row:has(input[type="checkbox"]:checked) {
  border-color: #16A34A;
  background: #F8FFFA;
}
.apera-er-item-check {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.apera-er-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  flex-shrink: 0;
}
.apera-er-code-box {
  background: #F0FDF4;
  border: 2px dashed #16A34A;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}
.apera-er-code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: .06em;
  color: #14532D;
  word-break: break-all;
}
.apera-er-copy-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.apera-er-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  margin-bottom: 8px;
}

/* APERA Hesabım Kuponları, Şifresiz Giriş & Sipariş Sonrası Üyelik */
.apera-acc-coupons {
  padding: 16px;
  border: 1px solid #FECACA;
  border-radius: 14px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
}
.apera-acc-coupons-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.apera-acc-coupons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.apera-auth-alt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  font-size: 13px;
}
.apera-postreg-card {
  text-align: left;
  padding: 18px;
  margin: 18px 0;
  border-radius: 14px;
  border: 1.5px solid #93C5FD;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
}
.apera-postreg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #1D4ED8;
  background: #DBEAFE;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.apera-postreg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.apera-postreg-email {
  font-size: 13px;
  color: #1E293B;
}
