/* ESR ana sayfa — ek şeritler (HOME2-RAILS): MagSafe ve indirim şeridi başlığı, "Takımını tamamla" koruma kartları, SSS akordeonu.
   Şerit gövdesi (.esr-rail) ve ürün kartı home.css / catalog.css'ten gelir. */

/* ---------- Şerit başlığı + alt başlık ---------- */
.esr-rail-headcopy { min-width: 0; }
.esr-rail-sub { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--esr-muted); max-width: 52ch; }

/* ---------- Takımını tamamla (ekran + lens koruyucu) ---------- */
.esr-protect { display: grid; gap: 20px; }
.esr-protect-copy { min-width: 0; }
.esr-protect-copy .esr-section-title { margin-bottom: 8px; }
.esr-protect-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--esr-muted); max-width: 40ch; }
.esr-protect-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.esr-protect-solo .esr-protect-cards { grid-template-columns: minmax(0, 1fr); }
.esr-protect-card {
  display: flex; flex-direction: column; min-width: 0; border-radius: var(--esr-radius); overflow: hidden;
  background: var(--esr-surface); color: var(--esr-text); text-decoration: none;
  transition: background-color 200ms ease;
}
.esr-protect-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 10px 0; }
.esr-protect-shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; min-width: 0;
  transition: transform 400ms var(--esr-ease-out);
}
.esr-protect-caption { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 0; min-width: 0; }
.esr-protect-caption b { font: 600 16px/1.2 var(--esr-font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.esr-protect-caption span { font-size: 13px; color: var(--esr-muted); }
.esr-protect-cta {
  display: inline-flex; align-items: center; gap: 2px; margin-top: auto; padding: 10px 14px 14px;
  font-size: 14px; font-weight: 500; color: var(--esr-text);
}
.esr-protect-cta svg { flex: none; transition: transform 200ms var(--esr-ease-out); }
.esr-protect-card:focus-visible { outline: 2px solid var(--esr-text); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .esr-protect-card:hover { background: var(--esr-surface-2); }
  .esr-protect-card:hover .esr-protect-shots img { transform: translateY(-4px); }
  .esr-protect-card:hover .esr-protect-cta svg { transform: translateX(2px); }
}

/* ---------- SSS akordeonu ---------- */
.esr-faq { display: grid; gap: 16px; }
.esr-faq-head { min-width: 0; }
.esr-faq-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--esr-muted); max-width: 40ch; }
.esr-faq-list { border-top: 1px solid var(--esr-line); min-width: 0; }
.esr-faq-item { border-bottom: 1px solid var(--esr-line); }
.esr-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--esr-text);
  -webkit-tap-highlight-color: transparent; border-radius: 6px;
}
.esr-faq-item summary::-webkit-details-marker { display: none; }
.esr-faq-item summary::marker { content: ""; }
.esr-faq-item summary > span { min-width: 0; overflow-wrap: anywhere; }
.esr-faq-item summary:focus-visible { outline: 2px solid var(--esr-text); outline-offset: 2px; }
.esr-faq-icon { flex: none; color: var(--esr-muted); transition: transform 200ms var(--esr-ease-out); }
.esr-faq-item[open] .esr-faq-icon { transform: rotate(180deg); }
.esr-faq-answer { padding: 0 34px 18px 0; font-size: 15px; line-height: 1.55; color: var(--esr-muted); overflow-wrap: anywhere; }
.esr-faq-answer > :first-child { margin-top: 0; }
.esr-faq-answer > :last-child { margin-bottom: 0; }
.esr-faq-answer p { margin: 0 0 8px; }
.esr-faq-answer a { color: var(--esr-text); text-decoration: underline; text-underline-offset: 2px; }
.esr-faq-answer .money { color: var(--esr-text); font-family: var(--esr-font); }
@media (hover: hover) and (pointer: fine) {
  .esr-faq-item summary:hover .esr-faq-icon { color: var(--esr-text); }
}

/* ---------- Öne çıkanlar: mobilde "Yeni gelenler" ile aynı yatay şerit, 761px+ ızgara ---------- */
@media (max-width: 760px) {
  .esr-grid.esr-grid-rail-sm {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px;
  }
  .esr-grid.esr-grid-rail-sm::-webkit-scrollbar { display: none; }
  .esr-grid.esr-grid-rail-sm > * { scroll-snap-align: start; min-width: 0; }
  .esr-grid.esr-grid-rail-sm:focus-visible { outline: 2px solid var(--esr-text); outline-offset: 4px; border-radius: 4px; }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 761px) {
  .esr-protect { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: center; }
  .esr-protect-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .esr-protect-cards { gap: 16px; }
  .esr-protect-shots { padding: 14px 14px 0; gap: 8px; }
  .esr-protect-caption { padding: 14px 20px 0; }
  .esr-protect-caption b { font-size: 19px; }
  .esr-protect-cta { padding: 8px 20px 18px; }

  .esr-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; align-items: start; }
  .esr-faq-item summary { font-size: 17px; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .esr-protect-card, .esr-protect-shots img, .esr-protect-cta svg, .esr-faq-icon { transition: none; }
}
