/* ── SHOP SHARED ──────────────────────────────────────────────────────────── */
.shop-nav-link { position: relative; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.shop-page { padding-top: 106px; }

.shop-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 56px;
}
.shop-header .section-label { margin-bottom: 12px; }
.shop-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.shop-header p { font-size: 15px; color: var(--gray); margin-top: 10px; max-width: 500px; }

/* ── PRODUCT GRID ─────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.prod-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109,106,255,.3);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}
.prod-card--featured { grid-column: 1 / -1; flex-direction: row; }

.prod-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #070810;
  flex-shrink: 0;
}
.prod-card--featured .prod-card__img {
  aspect-ratio: auto;
  width: 55%;
}
.prod-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .5s ease;
}
.prod-card:hover .prod-card__img img { transform: scale(1.03); }

.prod-card__no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1020 0%, #0a0b14 100%);
}

.prod-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.prod-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.prod-card__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prod-card--featured .prod-card__name { font-size: 28px; }

.prod-card__desc {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
}

.prod-card__features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
}
.prod-card__features li {
  font-size: 12.5px;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
}
.prod-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .65;
}

.prod-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
  margin-top: auto;
}

.prod-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.prod-card__price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  margin-left: 4px;
}

.prod-card__actions { display: flex; gap: 10px; align-items: center; }

.prod-card__footer:has(.in-cart) {
  flex-direction: column;
  align-items: flex-start;
}
.prod-card__footer:has(.in-cart) .prod-card__actions {
  width: 100%;
}
.prod-card__footer:has(.in-cart) .prod-card__actions .btn {
  flex: 1;
  justify-content: center;
}

.btn--cart {
  background: rgba(109,106,255,.12);
  color: var(--accent);
  border: 1.5px solid rgba(109,106,255,.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn--cart:hover { background: rgba(109,106,255,.22); }
.btn--cart.in-cart {
  background: rgba(109,106,255,.08);
  color: var(--accent);
  border-color: var(--accent);
}

/* bank badge on plugin card */
.bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--bg-border);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.5);
}
.bank-svg { height: 22px; width: auto; }

/* ── CART PAGE ─────────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}

.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
}
.cart-item__thumb {
  width: 80px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #070810;
  flex-shrink: 0;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cart-item__thumb--plugin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1020, #0a0b14);
}
.cart-item__info { flex: 1; }
.cart-item__tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cart-item__name { font-size: 16px; font-weight: 700; }
.cart-item__price { font-size: 18px; font-weight: 800; color: var(--white); white-space: nowrap; }
.cart-item__remove {
  background: none;
  border: none;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  display: flex;
}
.cart-item__remove:hover { color: #ef4444; background: rgba(239,68,68,.08); }
.cart-item__remove svg { width: 16px; height: 16px; }

.cart-empty {
  text-align: center;
  padding: 80px 28px;
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 14px;
}
.cart-empty svg { width: 48px; height: 48px; stroke: rgba(255,255,255,.15); margin: 0 auto 16px; }
.cart-empty p { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.3); margin-bottom: 8px; }
.cart-empty span { font-size: 13px; color: rgba(255,255,255,.18); }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 28px;
  position: sticky;
  top: 110px;
}
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.cart-summary__rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); }
.cart-summary__row span:last-child { color: var(--white); font-weight: 600; }
.cart-summary__divider { border: none; border-top: 1px solid var(--bg-border); margin: 16px 0; }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.cart-summary__total span:last-child { color: var(--accent); }

/* ── CHECKOUT PAGE ─────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 20px;
}
.checkout-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-section h3 svg { width: 16px; height: 16px; stroke: var(--accent); }

.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* payment method */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--bg-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.pay-method input[type="radio"] { display: none; }
.pay-method:has(input:checked) {
  border-color: var(--accent);
  background: rgba(109,106,255,.06);
}
.pay-method__radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.pay-method:has(input:checked) .pay-method__radio {
  border-color: var(--accent);
}
.pay-method:has(input:checked) .pay-method__radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pay-method__logo { flex: 1; }
.pay-method__desc { font-size: 11px; color: var(--gray); margin-top: 2px; }
.pay-method__cards { display: flex; gap: 6px; align-items: center; }
.pay-method__cards span {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
}

/* order summary sidebar */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 28px;
  position: sticky;
  top: 110px;
}
.order-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.order-summary__items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.order-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.order-summary__item-name { color: var(--gray); flex: 1; }
.order-summary__item-name strong { display: block; color: var(--white); font-size: 13px; margin-bottom: 2px; }
.order-summary__item-price { font-weight: 700; color: var(--white); white-space: nowrap; }
.order-summary__divider { border: none; border-top: 1px solid var(--bg-border); margin: 16px 0; }
.order-summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.order-summary__total span:last-child { color: var(--accent); }

/* ── ORDER COMPLETE ────────────────────────────────────────────────────────── */
.order-complete {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px;
}
.order-complete__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  border: 2px solid rgba(34,197,94,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.order-complete__icon svg { width: 36px; height: 36px; stroke: #22c55e; }
.order-complete__icon--fail { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.order-complete__icon--fail svg { stroke: #ef4444; }
.order-complete h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.order-complete p { font-size: 15px; color: var(--gray); max-width: 420px; margin: 0 auto 32px; line-height: 1.7; }
.order-complete__ref { font-size: 12px; color: var(--gray-dim); margin-top: 24px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .order-summary  { position: static; }
  .products-grid { grid-template-columns: 1fr; }
  .prod-card--featured { flex-direction: column; }
  .prod-card--featured .prod-card__img { width: 100%; aspect-ratio: 16/9; }
  .checkout-row { grid-template-columns: 1fr; }
}
