/* Shop + admin shared bits for storefront */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  position: relative;
}
.nav-cart-icon { flex-shrink: 0; display: block; }
.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: var(--primary, #dc2626);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}
.nav-cart.is-active .nav-cart-icon { color: var(--primary, #dc2626); }
.course-price {
  display: inline-block; margin: .35rem 0 .75rem;
  font-weight: 800; color: #b91c1c; font-size: 1.15rem;
}
.course-meta { color: #64748b; font-size: .9rem; margin-bottom: .5rem; }
.shop-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.course-card .shop-actions {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
}
.course-card .shop-actions > .btn,
.course-card .shop-actions > form,
.course-card .shop-actions > form .btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.cart-table th, .cart-table td { padding: .9rem 1rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
.cart-table th { background: #7f1d1d; color: #fff; }
.cart-empty { padding: 2rem; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }

/* Sepet — mobil öncelikli kartlar */
.cart-page { background: #f8fafc; }
.cart-wrap { max-width: 1040px; }
.cart-wrap > h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cart-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-items { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.cart-card,
.cart-summary-card,
.cart-empty {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.cart-card { padding: 1.15rem 1.2rem; }
.cart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.cart-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}
.cart-card-title a { color: #0f172a; }
.cart-card-title a:hover { color: #dc2626; }
.cart-card-meta {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-card-unit {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #b91c1c;
}
.cart-card-remove .btn {
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}
.cart-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1rem;
}
.cart-qty-form {
  display: grid;
  grid-template-columns: auto 4.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
}
.cart-qty-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}
.cart-qty-form input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  background: #f8fafc;
}
.cart-qty-form .btn { justify-content: center; }
.cart-card-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #eef2f7;
}
.cart-card-total span { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.cart-card-total strong { font-size: 1.15rem; color: #0f172a; }

.cart-summary-card {
  padding: 1.25rem 1.3rem;
}
.cart-summary-card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.cart-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #334155;
}
.cart-sum-total {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}
.cart-sum-note {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.85rem 0 1.1rem;
  line-height: 1.45;
}
.cart-checkout-btn,
.cart-continue-btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
}
.cart-checkout-btn { margin-bottom: 0.55rem; }
.cart-empty { padding: 2rem 1.25rem; text-align: center; }

@media (min-width: 900px) {
  .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.35rem;
    align-items: start;
  }
  .cart-summary-card { position: sticky; top: 96px; }
  .cart-card-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cart-qty-form { width: auto; }
  .cart-card-total { min-width: 200px; }
}
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem;
}
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.pay-box {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px;
  padding: 1.15rem 1.25rem; margin-top: 1rem;
}
.pay-box h3 { margin: 0 0 .5rem; }
.iban-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  background: #fff; border-radius: 8px; padding: .65rem .8rem; border: 1px dashed #34d399;
  word-break: break-all;
}
.badge-soft {
  display: inline-block; background: #fee2e2; color: #b91c1c;
  font-size: .75rem; font-weight: 800; padding: .2rem .5rem; border-radius: .4rem;
}
.course-card .course-body { display: flex; flex-direction: column; height: 100%; }
.course-card .shop-actions { margin-top: auto; }
.alert-ok { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.customer-type-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.customer-type-tabs label {
  flex: 1; text-align: center; padding: .7rem; border: 1px solid #e2e8f0;
  border-radius: 10px; cursor: pointer; font-weight: 700; background: #fff;
}
.customer-type-tabs input { display: none; }
.customer-type-tabs input:checked + span,
.customer-type-tabs label:has(input:checked) { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }

/* —— Udemy-style course detail —— */
.ud-page { background: #f7f9fa; padding-bottom: 3rem; }
.ud-hero {
  background: #1c1d1f;
  color: #fff;
  padding: 1.75rem 0 2.25rem;
}
.ud-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1140px;
}
.ud-hero-main { max-width: 46rem; }
.ud-breadcrumb {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  font-size: .85rem; color: #fca5a5; margin-bottom: .85rem;
}
.ud-breadcrumb a { color: #fca5a5; font-weight: 700; }
.ud-breadcrumb a:hover { color: #fff; }
.ud-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.ud-badge {
  display: inline-block; background: #fecaca; color: #7f1d1d;
  font-size: .72rem; font-weight: 800; padding: .25rem .6rem; border-radius: .35rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.ud-badge-delivery {
  background: #fff; color: #0f172a; border: 1px solid #e2e8f0;
  text-transform: none; letter-spacing: 0; font-size: .8rem;
}
.ud-badge-delivery.is-online { color: #9f1239; border-color: #fda4af; background: #fff1f2; }
.ud-badge-delivery.is-offline { color: #b91c1c; border-color: #fecaca; background: #fff; }
.ud-badge-delivery.is-hybrid { color: #9a3412; border-color: #fdba74; background: #fff7ed; }
.ud-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 .75rem;
}
.ud-subtitle { font-size: 1.05rem; color: #d1d7dc; margin: 0 0 1rem; max-width: 40rem; }
.ud-meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: .65rem 1.1rem;
  color: #d1d7dc; font-size: .9rem; margin: 0 0 .85rem;
}
.ud-meta strong { color: #fff; }
.ud-instructor { font-size: .92rem; color: #d1d7dc; margin: 0; }
.ud-instructor strong { color: #fca5a5; }
.ud-hero .muted { color: #9ca3af; }
.ud-cover, .ud-buy-cover {
  border-radius: 4px; overflow: hidden; background: #2d2f31;
  aspect-ratio: 16/9; box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.ud-cover img, .ud-buy-cover img { width: 100%; height: 100%; object-fit: cover; }
.ud-cover-fallback {
  height: 100%; min-height: 180px; display: flex; flex-direction: column;
  justify-content: flex-end; gap: .35rem; padding: 1.25rem;
  background: linear-gradient(145deg, #ef4444, #7f1d1d 70%);
}
.ud-cover-fallback span { font-size: .8rem; font-weight: 700; opacity: .85; }
.ud-cover-fallback strong { font-size: 1.05rem; line-height: 1.3; }
.ud-cover-fallback.sm { min-height: 160px; }

.ud-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}
.ud-content { min-width: 0; padding-top: 3.5rem; }
.ud-sidebar { position: relative; }
.ud-buy {
  background: #fff; border: 1px solid #d1d7dc; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08);
  overflow: hidden; position: sticky; top: 88px;
}
.ud-buy-body { padding: 1.1rem 1.2rem 1.35rem; }
.ud-price { font-size: 1.65rem; font-weight: 800; color: #1c1d1f; margin-bottom: .85rem; }
.ud-cta { width: 100%; justify-content: center; margin-bottom: .55rem; }
.ud-cta-sec { width: 100%; justify-content: center; display: inline-flex; margin-bottom: .65rem; }
.ud-guarantee { font-size: .8rem; color: #6a6f73; text-align: center; margin: 0 0 1rem; }
.ud-includes h3 { font-size: .95rem; margin: 0 0 .55rem; }
.ud-includes ul { list-style: none; display: grid; gap: .45rem; font-size: .9rem; color: #1c1d1f; }
.ud-includes li { padding-left: 1.35rem; position: relative; }
.ud-includes li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #1c1d1f; }

.ud-card {
  background: #fff; border: 1px solid #d1d7dc; border-radius: 4px;
  padding: 1.35rem 1.5rem; margin-bottom: 1.1rem;
}
.ud-card h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: -.02em; }
.ud-section-lead { color: #6a6f73; font-size: .9rem; margin: -0.5rem 0 1rem; }
.ud-learn {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1.25rem;
}
.ud-learn li {
  padding-left: 1.5rem; position: relative; font-size: .95rem; color: #1c1d1f;
}
.ud-learn li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #2d2f31;
}
.ud-bullets { list-style: disc; padding-left: 1.2rem; display: grid; gap: .4rem; color: #1c1d1f; }
.ud-desc { color: #1c1d1f; font-size: .98rem; line-height: 1.7; }

.ud-curriculum { border: 1px solid #d1d7dc; border-radius: 4px; overflow: hidden; }
.ud-mod { border-bottom: 1px solid #d1d7dc; background: #f7f9fa; }
.ud-mod:last-child { border-bottom: 0; }
.ud-mod summary {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .9rem 1rem; cursor: pointer; font-weight: 800; list-style: none;
}
.ud-mod summary::-webkit-details-marker { display: none; }
.ud-mod summary::before { content: "▸"; margin-right: .5rem; color: #6a6f73; }
.ud-mod[open] summary::before { content: "▾"; }
.ud-mod-count { font-weight: 600; font-size: .85rem; color: #6a6f73; white-space: nowrap; }
.ud-mod ul { list-style: none; background: #fff; margin: 0; padding: 0; border-top: 1px solid #d1d7dc; }
.ud-mod li {
  display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center;
  padding: .7rem 1rem .7rem 1.25rem; border-bottom: 1px solid #f1f1f1; font-size: .92rem;
}
.ud-mod li:last-child { border-bottom: 0; }
.ud-les-ico { color: #6a6f73; font-size: .7rem; }
.ud-les-dur { color: #6a6f73; font-size: .85rem; }

.ud-instructor-row { display: flex; gap: 1rem; align-items: center; }
.ud-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: #1c1d1f; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0;
}

@media (max-width: 960px) {
  .ud-layout { grid-template-columns: 1fr; margin-top: 0; }
  .ud-content { padding-top: 1.25rem; }
  .ud-buy { position: static; }
  .ud-learn { grid-template-columns: 1fr; }
}
