.cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #e5e5e7;
  background: #fff;
  color: #1a1f36;
  text-decoration: none;
  transition: 0.2s;
  flex-shrink: 0;
}
.cart-nav-btn:hover {
  border-color: #1a3fad;
  color: #1a3fad;
  background: #f0f5ff;
}
.cart-nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: #e8232a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(232, 35, 42, 0.35);
}
.cart-nav-badge.show {
  display: inline-flex;
}

.btn-education-al {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #e8232a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  border: none;
}
.btn-education-al:hover {
  background: #c8191f;
  color: #fff;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 2px solid #1a3fad;
  background: #fff;
  color: #1a3fad;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  width: 100%;
}
.btn-add-cart:hover {
  background: #1a3fad;
  color: #fff;
}
.btn-add-cart.btn-add-cart--inline {
  width: auto;
}

.prog-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.prog-card-wrap .prog-arrow {
  display: none;
}
.prog-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.prog-card-actions .btn-detail {
  flex: 1;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1.5px solid #e5e5e7;
  background: #fff;
  color: #1a1f36;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.prog-card-actions .btn-detail:hover {
  border-color: #1a3fad;
  color: #1a3fad;
}
.prog-card-actions .btn-add-cart,
.prog-card-actions .btn-education-al {
  flex: 1;
  min-width: 130px;
}

.price-box .btn-add-cart,
.price-box .btn-education-al {
  margin-bottom: 8px;
  width: 100%;
  display: flex;
}

#cart-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1a3fad;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 8px 28px rgba(26, 63, 173, 0.35);
  display: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
#cart-toast.show {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Sepet sayfası ——— */
.cart-page {
  font-family: 'Nunito', sans-serif;
  background: #f8f9fc;
  color: #1a1f36;
  line-height: 1.6;
  margin: 0;
}
.cart-page-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e5e5e7;
  backdrop-filter: blur(12px);
}
.cart-page-nav-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.cart-page-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-page-nav .btn-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #e5e5e7;
  color: #1a1f36;
  text-decoration: none;
  background: #fff;
}
.cart-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 5% 80px;
}
.cart-page-header {
  margin-bottom: 28px;
}
.cart-page-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 8px;
  color: #1a1f36;
}
.cart-page-lead {
  margin: 0;
  color: #6e6e73;
  font-size: 15px;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.cart-main {
  min-width: 0;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #e5e5e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 31, 54, 0.04);
}
.cart-item-info {
  min-width: 0;
}
.cart-item-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: #1a1f36;
}
.cart-item-sub {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 8px;
}
.cart-item-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1a3fad;
  white-space: nowrap;
  text-align: right;
}
.qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e5e7;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  color: #1a1f36;
  transition: 0.15s;
}
.qty-btn:hover {
  border-color: #1a3fad;
  color: #1a3fad;
  background: #f0f5ff;
}
.qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}
.btn-remove {
  background: none;
  border: none;
  color: #e8232a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-summary {
  position: sticky;
  top: 88px;
}
.summary {
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(26, 31, 54, 0.06);
}
.summary-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #1a1f36;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  color: #6e6e73;
}
.summary-row-total {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 2px solid #e5e5e7;
  color: #1a1f36;
  font-weight: 700;
}
.summary-total {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a3fad;
}
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #e8232a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-checkout:hover {
  background: #c8191f;
  color: #fff;
}
.note {
  font-size: 12px;
  color: #6e6e73;
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.5;
}
.cart-empty {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #e5e5e7;
}
.cart-empty-text {
  margin: 0 0 20px;
  font-size: 16px;
  color: #6e6e73;
}
.cart-empty-cta {
  display: inline-flex;
}

.cart-related {
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 16px;
  padding: 24px;
}
.cart-related-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #1a1f36;
}
.cart-related-lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6e6e73;
}
.cart-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cart-related-card {
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  padding: 16px;
  background: #f8f9fc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-related-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.35;
}
.cart-related-card p {
  margin: 0;
  font-size: 12px;
  color: #6e6e73;
  flex: 1;
}
.cart-related-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cart-related-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #1a3fad;
}
.cart-related-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-related-detail,
.btn-related-add {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  border: none;
  transition: 0.15s;
}
.btn-related-detail {
  border: 1.5px solid #e5e5e7;
  background: #fff;
  color: #1a1f36;
}
.btn-related-detail:hover {
  border-color: #1a3fad;
  color: #1a3fad;
}
.btn-related-add {
  background: #1a3fad;
  color: #fff;
}
.btn-related-add:hover {
  background: #1535a0;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}
@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cart-item-price {
    text-align: left;
  }
  .cart-related-grid {
    grid-template-columns: 1fr;
  }
}
