/* Baprile — Koleksiyonlar (storefront). Uses the theme's --bp-* tokens, with fallbacks. */
.bap-collections-eyebrow {
  margin: 0;
  font: 500 11px/1.5 var(--bp-font-mono, ui-monospace, monospace);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bp-accent, #2653ff);
}

/* ── collection page: saving line under the price ───────────────────── */
.bap-collections-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  font-family: var(--bp-font-mono, ui-monospace, monospace);
  font-size: 13px;
  letter-spacing: .04em;
}
.bap-collections-save__was { opacity: .75; }
.bap-collections-save__was del { margin-left: 4px; }
.bap-collections-save__chip {
  padding: 4px 9px;
  background: var(--bp-accent, #2653ff);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

/* ── collection page: the line under the price (inside the theme's .bp-price) ── */
.bap-collections-price { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 16px; }
.bap-collections-price__was { font-size: 14px; }
.bap-collections-price__was del { opacity: .65; }
.bap-collections-price__was span { margin-left: 6px; opacity: .65; }
.bap-collections-price__save { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bap-collections-price__chip { padding: 4px 9px; background: var(--bp-accent, #2653ff); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.bap-collections-price__how { font-size: 12px; opacity: .75; }

/* ── collection page: "what's inside" receipt ────────────────────────── */
.bap-collections-contents {
  margin-top: 28px;
  border: 1px solid var(--bp-ink, #141414);
  background: var(--bp-card, #fff);
  padding: clamp(14px, 3vw, 20px);
}
.bap-collections-contents__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bp-ink, #141414);
}
.bap-collections-contents__count { font: 600 11px/1.5 var(--bp-font-mono, ui-monospace, monospace); letter-spacing: .12em; }
.bap-collections-contents__list { list-style: none; margin: 0; padding: 0; }
.bap-collections-row {
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(20, 20, 20, .28);
}
.bap-collections-row__n { font: 500 11px/1 var(--bp-font-mono, ui-monospace, monospace); opacity: .55; }
.bap-collections-row__img { display: block; width: 44px; height: 44px; border: 1px solid var(--bp-ink, #141414); background: var(--bp-bg, #faf9f7); }
.bap-collections-row__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bap-collections-row__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
a.bap-collections-row__name:hover { color: var(--bp-accent, #2653ff); text-decoration: underline; text-underline-offset: 3px; }
.bap-collections-row__price { font: 600 13px/1.3 var(--bp-font-mono, ui-monospace, monospace); white-space: nowrap; text-align: right; }
.bap-collections-row__price small { display: block; font-weight: 500; font-size: 10px; letter-spacing: .1em; color: var(--bp-error, #c0392b); text-transform: uppercase; }
.bap-collections-row.is-out .bap-collections-row__img,
.bap-collections-row.is-out .bap-collections-row__name { opacity: .45; }
.bap-collections-contents__totals { margin: 12px 0 0; font-family: var(--bp-font-mono, ui-monospace, monospace); font-size: 13px; }
.bap-collections-contents__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bap-collections-contents__totals dt, .bap-collections-contents__totals dd { margin: 0; }
.bap-collections-contents__totals dd { white-space: nowrap; }
.bap-collections-contents__totals .is-saving {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--bp-ink, #141414);
  color: var(--bp-bg, #faf9f7);
  font-weight: 600;
  letter-spacing: .08em;
}

/* ── product page of an item inside a collection: the offer ──────────── */
.bap-collections-offer {
  position: relative;
  margin: 28px 6px 6px 0;
  padding: clamp(14px, 3vw, 20px);
  border: 1px solid var(--bp-ink, #141414);
  background: var(--bp-card, #fff);
  box-shadow: 6px 6px 0 var(--bp-accent, #2653ff);
}
.bap-collections-offer + .bap-collections-offer { margin-top: 22px; }
.bap-collections-offer__title {
  display: block;
  margin-top: 6px;
  font-family: var(--bp-font-head, sans-serif);
  font-weight: 900;
  font-size: clamp(18px, 3.4vw, 22px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: inherit;
  text-decoration: none;
}
.bap-collections-offer__title:hover { color: var(--bp-accent, #2653ff); }
.bap-collections-offer__thumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.bap-collections-offer__thumbs li { position: relative; width: 52px; height: 52px; }
.bap-collections-offer__thumbs a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--bp-ink, #141414);
  background: var(--bp-bg, #faf9f7);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease;
}
.bap-collections-offer__thumbs a:hover { transform: translate(-2px, -2px); }
.bap-collections-offer__thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bap-collections-offer__thumbs .is-current a { outline: 2px solid var(--bp-accent, #2653ff); outline-offset: 1px; }
.bap-collections-offer__this {
  position: absolute;
  left: -1px;
  bottom: -1px;
  padding: 1px 4px;
  background: var(--bp-accent, #2653ff);
  color: #fff;
  font: 600 9px/1.4 var(--bp-font-mono, ui-monospace, monospace);
  letter-spacing: .1em;
  pointer-events: none;
}
.bap-collections-offer__more a { font: 600 13px/1 var(--bp-font-mono, ui-monospace, monospace); background: var(--bp-ink, #141414); color: var(--bp-bg, #faf9f7); }
.bap-collections-offer__math { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 16px; font-family: var(--bp-font-mono, ui-monospace, monospace); }
.bap-collections-offer__was { flex-basis: 100%; font-size: 12px; opacity: .75; letter-spacing: .04em; }
.bap-collections-offer__was del { margin-left: 4px; }
.bap-collections-offer__now { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.bap-collections-offer__chip { padding: 3px 8px; background: var(--bp-accent, #2653ff); color: #fff; font-size: 12px; font-weight: 600; }
.bap-collections-offer__note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.bap-collections-offer__form { margin: 16px 6px 0 0; }
.bap-collections-offer__btn { width: 100%; font-size: 13px; letter-spacing: .02em; padding: 14px 16px; }
.bap-collections-offer__btn[aria-busy="true"] { opacity: .7; }
.bap-collections-offer__link {
  display: inline-block;
  margin-top: 12px;
  font: 500 12px/1.5 var(--bp-font-mono, ui-monospace, monospace);
  letter-spacing: .06em;
  color: inherit;
}
.bap-collections-offer__link:hover { color: var(--bp-accent, #2653ff); }

/* ── collection page: long description ──────────────────────────────── */
.bap-collections-about {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 56px) var(--bp-pad, 16px) 0;
}
.bap-collections-about > h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 18px; }
.bap-collections-about__text { max-width: 72ch; font-size: 16px; line-height: 1.7; }
.bap-collections-about__text > * + * { margin-top: 1em; }
.bap-collections-about__text h2, .bap-collections-about__text h3 { font-size: 19px; line-height: 1.3; margin-top: 1.6em; }
.bap-collections-about__text ul, .bap-collections-about__text ol { padding-left: 1.3em; }
.bap-collections-about__text li + li { margin-top: .35em; }
.bap-collections-about + .bap-collections-grid { padding-top: clamp(28px, 5vw, 40px); }

/* ── collection page: products grid ──────────────────────────────────── */
.bap-collections-grid__sub { margin: -14px 0 22px; font: 500 12px/1.6 var(--bp-font-mono, ui-monospace, monospace); letter-spacing: .04em; opacity: .75; }

@media (max-width: 380px) {
  .bap-collections-row { grid-template-columns: 18px 38px minmax(0, 1fr) auto; gap: 9px; }
  .bap-collections-row__img { width: 38px; height: 38px; }
  .bap-collections-row__name { font-size: 13px; }
  .bap-collections-offer__thumbs li { width: 46px; height: 46px; }
}
