/* ═══════════════════════════════════════════════════════
   CART / PAYMENT PAGE
   All sizes scaled ×0.84 vs original design
   Content column aligned to nav text bounds:
     left  = "print shop" left edge  ≈ 11.9vw
     right = "videostock" right edge ≈ 86.9vw  →  padding-right ≈ 13.1vw
═══════════════════════════════════════════════════════ */

/* ── Page base ── */
.cart-page {
  background: #F2F2F2;
  color: #303030;
}

/* ── Fix Bulavin indent when {shopping card} is 3rd brand child ── */
.header__brand .header__brand-line:nth-child(2) {
  padding-left: 1.4em;
}

.cart-brand-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.224vw;
  font-weight: 400;
  color: rgba(48, 48, 48, 0.75);
  text-align: center;
  line-height: 1.4;
  padding-left: 0 !important;
  margin-top: 0.1em;
}


/* ═══════════════════════════════════════════════════════
   CART TABLE SECTION
═══════════════════════════════════════════════════════ */

.cart-section {
  padding: 9.375vw 13.1vw 0 11.9vw;   /* top: site-wide menu→content standard (matches media/videostock) */
}

/* ── Promo banner: "First €5, each additional €3" — replaces old min-order text ── */
.cart-promo {
  font-family: var(--font-ui);
  font-size: 1.25vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.35;
  margin: 0 0 1.5vw;
  padding: 1vw 1.4vw;
  background: #F7F1E5;                    /* warm accent — highlights the offer */
  border-radius: 0.5vw;
}
.cart-promo strong {
  font-weight: 500;
}

/* ── Column grid — shared by header row and item rows.
     Product | Price | Remove (Quantity колонка удалена — товар штучный). ── */
.cart-table__head,
.cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.45fr;
  align-items: center;
}

/* ── Table column header row ── */
.cart-table__head {
  padding-bottom: 0.59vw;
  border-bottom: 0.071vw solid #666;
}

.ct-col-label {
  font-family: var(--font-ui);
  font-size: 0.938vw;
  font-weight: 400;
  color: #222;
}

.ct-col-label--center {
  text-align: center;
}

.ct-clear-all {
  font-family: var(--font-ui);
  font-size: 0.938vw;
  font-weight: 400;
  color: #FF3B30;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

/* ── Item rows ── */
.cart-row {
  padding: 2.187vw 0;
  border-bottom: 0.071vw solid #D9D9D9;
}

.ct-col--product {
  display: flex;
  align-items: center;
  gap: 0.481vw;
}

.ct-col--qty,
.ct-col--price,
.ct-col--del {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Video thumbnail (static first frame) ── */
.cart-thumb {
  width: 3.063vw;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #1c1c1c;
}

/* ── Item text info ── */
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.218vw;
}

.cart-item-title {
  font-family: var(--font-ui);
  font-size: 0.958vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.3;
}

.cart-item-cat {
  font-family: var(--font-ui);
  font-size: 0.719vw;
  font-weight: 400;
  color: #888;
  line-height: 1.3;
}

/* ── Quantity stepper ── */
.cart-stepper {
  display: flex;
  align-items: center;
  gap: 0.719vw;
}

.cart-stepper__btn {
  width: 1.438vw;
  height: 1.438vw;
  border-radius: 50%;
  background: #E5E5E5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.84vw;
  color: #303030;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s ease;
  user-select: none;
}

.cart-stepper__btn:hover {
  background: #d0d0d0;
}

.cart-stepper__val {
  font-family: var(--font-ui);
  font-size: 0.838vw;
  color: #303030;
  min-width: 0.84vw;
  text-align: center;
}

/* ── Item total price ── */
.cart-item-price {
  font-family: var(--font-ui);
  font-size: 1.05vw;
  font-weight: 400;
  color: #303030;
}

/* Strikethrough original €5 next to new €3 for discounted extras */
.cart-item-price-old {
  font-family: var(--font-ui);
  font-size: 0.9vw;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  margin-right: 0.5vw;
}

/* ── Remove button ── */
.cart-remove-btn {
  background: none;
  border: none;
  font-size: 1.05vw;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.cart-remove-btn:hover {
  color: #303030;
}

/* ── Empty state ── */
.cart-empty {
  padding: 2.625vw 0;
  font-family: var(--font-display);
  font-size: 1.05vw;
  color: #888;
  text-align: left;
}

/* ── Summary (LEFT-aligned below divider) ── */
.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.437vw;
  padding: 1.4vw 0 1.05vw;
  border-bottom: 0.071vw solid #D9D9D9;
}

.cart-summary__row {
  display: flex;
  align-items: baseline;
  gap: 0.42vw;
}

.cart-summary__label {
  font-family: var(--font-ui);
  font-size: 0.838vw;
  color: #666;
}

.cart-summary__val {
  font-family: var(--font-ui);
  font-size: 0.958vw;
  color: #303030;
}

/* ── Total row ── */
.cart-total-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.42vw;
  padding-top: 1.05vw;
  margin-bottom: 1vw;              /* was 4.375vw — tightened to payment section */
}

.cart-total-label {
  font-family: var(--font-ui);
  font-size: 0.838vw;
  color: #666;
}

.cart-total-val {
  font-family: var(--font-ui);
  font-size: 1.2vw;
  font-weight: 400;
  color: #303030;
}

/* ── Savings badge — LEFT-aligned, shown when N ≥ 2 ── */
.cart-savings {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.42vw;
  padding: 0.6vw 0 0;
  font-family: var(--font-ui);
  font-size: 0.958vw;
  color: #2e7d32;
}
.cart-savings strong {
  font-weight: 500;
  font-size: 1.1vw;
}
.cart-savings[hidden] { display: none; }

/* ══════════════════════════════════════════════════════════════
   Recommendation strip — up to 8 wallpapers NOT in cart at €3 each.
   Native horizontal scroll (short, secondary section — no need for
   JS-driven carousel here). Card = video thumb + "+" badge + title +
   struck €5 next to €3.
════════════════════════════════════════════════════════════════ */

.cart-recommend {
  margin: 2vw 0 1.5vw;
  padding: 1.5vw 0 0.5vw;
  border-top: 0.071vw solid #D9D9D9;
}
.cart-recommend[hidden] { display: none; }

.cart-recommend__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1vw;
  margin: 0 0 1vw;
}

.cart-recommend__heading {
  font-family: var(--font-ui);
  font-size: 1.05vw;
  font-weight: 400;
  color: #303030;
  margin: 0;
}
.cart-recommend__heading strong {
  font-weight: 500;
  color: #2e7d32;
}

/* Nav arrows — desktop click-scroll (mobile users swipe natively) */
.cart-recommend__nav {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  flex-shrink: 0;
}
.cart-recommend__nav-btn {
  width: 2.2vw;
  height: 2.2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0.083vw solid #303030;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 1.2vw;
  line-height: 1;
  color: #303030;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.cart-recommend__nav-btn:hover:not(:disabled) {
  background: #303030;
  color: #F2F2F2;
}
.cart-recommend__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cart-recommend__track {
  display: flex;
  gap: 1.04vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 0.5vw;
}
.cart-recommend__track::-webkit-scrollbar { display: none; }

.cart-recommend__card {
  flex: 0 0 9vw;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  transition: transform 0.25s ease;
}
.cart-recommend__card:hover {
  transform: translateY(-0.2vw);
}

/* CTA row under carousel — one mp-pill centered */
.cart-recommend__cta {
  display: flex;
  justify-content: center;
  padding: 1.5vw 0 0.5vw;
}

.cart-recommend__media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #1c1c1c;
  /* Sharp corners — matches site convention (no other carousel rounds preview edges) */
}
.cart-recommend__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* "+" badge overlaid on video — clickable "add to cart" affordance.
   Card body click opens popup; badge click adds to cart. */
.cart-recommend__add {
  position: absolute;
  top: 0.4vw;
  right: 0.4vw;
  width: 1.8vw;
  height: 1.8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #303030;
  font-family: var(--font-ui);
  font-size: 1.2vw;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.cart-recommend__add:hover {
  background: #FFFFFF;
  transform: scale(1.1);
}

.cart-recommend__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15vw;
}
.cart-recommend__title {
  font-family: var(--font-ui);
  font-size: 0.85vw;
  color: #303030;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-recommend__price-group {
  display: flex;
  align-items: baseline;
  gap: 0.4vw;
}
.cart-recommend__price-old {
  font-family: var(--font-ui);
  font-size: 0.78vw;
  color: #999;
  text-decoration: line-through;
}
.cart-recommend__price {
  font-family: var(--font-ui);
  font-size: 0.95vw;
  color: #2e7d32;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════
   PAYMENT FORM CARD
═══════════════════════════════════════════════════════ */

.cart-payment-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;                    /* was center — now left-aligned */
  gap: 1.25vw;
  padding: 1vw 11.9vw 5.25vw;                 /* tightened top to Total (was 2.187vw) */
}

/* PayPal SDK-контейнер — фиксированная ширина под кнопки, min-height,
   чтобы layout не «прыгал» пока идёт первичная загрузка PayPal SDK. */
#paypal-button-container {
  width: 21vw;
  min-height: 3.2vw;
  transition: opacity 0.2s ease;
}

/* Статус оплаты — Playfair 1.25vw, цвет зависит от data-kind. */
.cart-pay-status {
  font-family: var(--font-display);
  font-size: 1.25vw;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  color: #303030;
}
.cart-pay-status[data-kind="ok"]    { color: #2e7d32; }
.cart-pay-status[data-kind="error"] { color: #c62828; }

/* ── Email field before PayPal button ── */
.cart-email-field {
  display: flex;
  flex-direction: column;
  gap: 0.481vw;
  width: 21vw;
}

.cart-email-label {
  font-family: var(--font-ui);
  font-size: 0.797vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.35;
}

.cart-email-input {
  font-family: var(--font-ui);
  font-size: 0.95vw;
  font-weight: 400;
  color: #303030;
  background: #fff;
  border: 0.1vw solid #D5D5D5;
  border-radius: 0.337vw;
  padding: 0.85vw 1.05vw;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.cart-email-input:focus {
  border-color: #303030;
}
.cart-email-input::placeholder {
  color: #B8B8B8;
}

.cart-email-hint {
  font-family: var(--font-display);
  font-size: 0.85vw;
  line-height: 1.35;
  color: #888;
  margin: 0;
}

@media (max-width: 900px) {
  .cart-email-field { width: 74vw; gap: 1.6vw; }
  .cart-email-label { font-size: 3.2vw; }
  .cart-email-input { font-size: 3.8vw; padding: 3vw 3.6vw; border-width: 0.35vw; border-radius: 1.2vw; }
  .cart-email-hint  { font-size: 3vw; }
}

.cart-payment-card {
  width: 27.6vw;
  background: #fff;
  border-radius: 1.011vw;
  padding: 2.187vw;
  box-sizing: border-box;
}

/* ── Individual form field box ── */
.cf {
  display: flex;
  flex-direction: column;
  gap: 0.481vw;
  border: 0.1vw solid #D5D5D5;
  border-radius: 0.337vw;
  padding: 1.05vw 1.347vw;
  box-sizing: border-box;
}

/* Horizontal layout for Payment Method row */
.cf--method {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 4.04vw;
}

.cf__label {
  font-family: var(--font-ui);
  font-size: 0.797vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.35;
}

.cf__input,
.cf__select {
  font-family: var(--font-ui);
  font-size: 0.84vw;
  font-weight: 400;
  color: #B8B8B8;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.cf__input:focus {
  color: #303030;
}

.cf__input::placeholder {
  color: #B8B8B8;
}

.cf__select {
  cursor: pointer;
}

.cf__select option {
  color: #303030;
}

/* ── Split field (expiry: Month | divider | Year) ── */
.cf__split-row {
  display: flex;
  align-items: center;
  gap: 0.672vw;
}

.cf__split-row .cf__select {
  flex: 1;
}

.cf__vdivider {
  width: 0.1vw;
  height: 1.05vw;
  background: #D5D5D5;
  flex-shrink: 0;
}

/* ── Card icons ── */
.cart-card-icons {
  display: flex;
  align-items: center;
  gap: 0.35vw;
}

.cart-card-icon {
  width: 2.69vw;
  height: 2.69vw;
  border-radius: 50%;
  background: #F7F7F7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* Mastercard — overlapping circles */
.cart-card--mc {
  background: transparent;
}

.cart-card--mc::before,
.cart-card--mc::after {
  content: '';
  position: absolute;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  top: 17.5%;
}

.cart-card--mc::before {
  left: 5%;
  background: #EB001B;
}

.cart-card--mc::after {
  right: 5%;
  background: #FF5F00;
  mix-blend-mode: multiply;
}

/* Visa — blue */
.cart-card--visa {
  background: #006FCF;
  font-family: var(--font-ui);
  font-size: 0.481vw;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Amex — blue */
.cart-card--amex {
  background: #2E77BC;
  font-family: var(--font-ui);
  font-size: 0.393vw;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

/* Discover — gray + orange accent */
.cart-card--disc {
  background: #F7F7F7;
}

.cart-card--disc::after {
  content: '';
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: #FF6600;
  right: 5%;
  top: 22.5%;
}


/* ── Form sections ── */
.cf-section {
  margin-top: 2.625vw;
}

.cf-section__heading {
  font-family: var(--font-ui);
  font-size: 1.575vw;
  font-weight: 400;
  color: #303030;
  line-height: 1.2;
  margin: 0 0 2.1vw;
}

.cf-fields {
  display: flex;
  flex-direction: column;
  gap: 1.011vw;
}


/* ── Pay button ── */
.cart-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4.04vw;
  background: #303030;
  border: none;
  border-radius: 50vw;
  font-family: var(--font-ui);
  font-size: 1.347vw;
  font-weight: 400;
  color: #F2F2F2;
  cursor: pointer;
  margin-top: 2.187vw;
  transition: background 0.3s ease;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.cart-pay-btn:hover {
  background: #555;
}

.cart-pay-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
