:root {
  --color-bg: #f6f3ee;
  --color-surface: #ffffff;
  --color-ink: #1c1a17;
  --color-muted: #6b655c;
  --color-accent: #0e7c7b;
  --color-accent-soft: #d7f0ef;
  --color-line: #e6e0d6;
  --color-danger: #c0392b;
  --app-bar-h: 56px;
  --bottom-bar-h: 64px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(28, 26, 23, 0.08);
  --font: "Segoe UI", "Trebuchet MS", "Gill Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--color-ink);
  background: radial-gradient(1200px 600px at 10% -10%, #fff8e8 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, #dff5f3 0%, transparent 50%),
              var(--color-bg);
}

body.app-shell {
  padding-top: calc(var(--app-bar-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-content {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 12px 14px 20px;
}

.app-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  height: calc(var(--app-bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.app-bar__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-bar__side {
  display: flex;
  align-items: center;
  min-height: var(--app-bar-h);
}

.app-bar__side--start {
  justify-content: flex-start;
  padding-inline-start: 4px;
}

.app-bar__side--end {
  justify-content: flex-end;
  padding-inline-end: 4px;
}

.app-bar__btn,
.app-bar__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--color-ink);
}

.app-bar__cart:active,
.app-bar__btn:active {
  background: var(--color-accent-soft);
}

.app-bar__badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 50;
  height: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-line);
  backdrop-filter: blur(10px);
}

.bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--bottom-bar-h);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.bottom-bar__flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bottom-bar__item.is-active {
  color: var(--color-accent);
  font-weight: 700;
}

.icon {
  width: 22px;
  height: 22px;
}

.icon--cart {
  width: 24px;
  height: 24px;
}

.search-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 4px 0 12px;
  background: linear-gradient(var(--color-bg) 70%, transparent);
}

.search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-ink);
  outline: none;
}

.search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.marka-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.marka-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}

.marka-card__logo-wrap {
  position: relative;
  width: 118px;
  height: 118px;
}

.marka-card__logo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-line);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 12px;
}

.marka-card__yeni-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  z-index: 2;
  max-width: 88px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 4px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(14, 124, 123, 0.28);
  pointer-events: none;
}

.marka-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.marka-card__fallback {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.marka-card__name {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  color: var(--color-muted);
}

.urun-kart-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.urun-kart {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.urun-kart__gallery {
  position: relative;
  background: #f3f0ea;
}

.urun-kart__video-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 3;
  background: rgba(14, 124, 123, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
}

.urun-kart__yeni-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  max-width: 96px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(14, 124, 123, 0.28);
  pointer-events: none;
}

.urun-kart__stage {
  position: relative;
}

.urun-kart__main {
  background: #ebe6de;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
}

.urun-kart__main img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.urun-kart__main video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.urun-kart__placeholder {
  color: var(--color-muted);
  font-weight: 700;
  padding: 16px;
  text-align: center;
}

.urun-kart__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1c355e;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.urun-kart__nav--prev {
  inset-inline-start: 8px;
}

.urun-kart__nav--next {
  inset-inline-end: 8px;
}

.urun-kart__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.urun-kart__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #ddd7cc;
  cursor: pointer;
  position: relative;
}

.urun-kart__thumb.is-active {
  border-color: #2f6fed;
}

.urun-kart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.urun-kart__thumb.is-video {
  display: grid;
  place-items: center;
  background: #1c355e;
  color: #fff;
}

.urun-kart__thumb-video {
  font-size: 0.95rem;
}

.urun-kart__info {
  text-align: center;
  padding: 14px 16px 10px;
  background: linear-gradient(#f4f1fb, #efeaf8);
}

.urun-kart__code {
  margin: 0;
  color: #8a8794;
  font-size: 0.82rem;
}

.urun-kart__title {
  margin: 6px 0 4px;
  color: #1c355e;
  font-size: 1.15rem;
  line-height: 1.25;
}

.urun-kart__yas,
.urun-kart__lot {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
}

.urun-kart__yas + .urun-kart__lot {
  margin-top: 2px;
}

.urun-kart__price {
  margin: 8px 0 0;
  color: #1c355e;
  font-size: 1.45rem;
  font-weight: 800;
}

.urun-kart__renkler {
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.urun-kart__renk-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.urun-kart__renk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.urun-kart__renk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #ece8e1;
}

.urun-kart__renk-row:last-child {
  border-bottom: none;
}

.urun-kart__renk-name {
  font-size: 0.92rem;
  color: #1c355e;
  font-weight: 600;
}

.urun-kart__stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.urun-kart__step {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #2f6fed;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.urun-kart__qty {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: #1c355e;
}

.urun-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.urun-load-more {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-accent);
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.urun-load-more:disabled {
  opacity: 0.55;
  cursor: wait;
}

.empty-hint {
  text-align: center;
  color: var(--color-muted);
  padding: 28px 12px;
}

.is-hidden {
  display: none !important;
}

.urun-kart__stepper.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.sepet-toast-host {
  position: fixed;
  inset-inline: 0;
  bottom: calc(var(--bottom-bar-h) + 16px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}

.sepet-toast {
  min-width: min(320px, 100%);
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sepet-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sepet-toast--ok {
  background: #16a34a;
}

.sepet-toast--remove {
  background: #dc2626;
}

.sepet-toast--error {
  background: #b45309;
}

html[dir="rtl"] .app-bar__badge {
  inset-inline-end: auto;
  inset-inline-start: 2px;
}

html[dir="rtl"] .app-bar__btn .icon {
  transform: scaleX(-1);
}

.page-sepet {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.sepet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sepet-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.sepet-row__media {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
}

.sepet-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sepet-row__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1c355e;
  word-break: break-word;
}

.sepet-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sepet-row__main {
  flex: 1;
  min-width: 0;
}

.sepet-row__kod,
.sepet-row__marka,
.sepet-row__aciklama,
.sepet-row__renk,
.sepet-row__fiyat,
.sepet-row__tutar {
  margin: 0;
}

.sepet-row__kod {
  color: #1c355e;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.sepet-row__marka {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sepet-row__aciklama {
  margin-top: 4px;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.3;
}

.sepet-row__renk {
  margin-top: 4px;
  color: #1c355e;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sepet-row__fiyat,
.sepet-row__tutar {
  margin-top: 4px;
  color: #1c355e;
  font-size: 0.9rem;
}

.sepet-row__tutar {
  font-weight: 700;
}

.sepet-row__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sepet-row__sil {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #dc2626;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.sepet-row__sil svg {
  width: 22px;
  height: 22px;
}

.sepet-row__sil:hover,
.sepet-row__sil:focus-visible {
  background: rgba(220, 38, 38, 0.08);
}

.sepet-footer {
  position: sticky;
  bottom: calc(var(--bottom-bar-h, 64px) + env(safe-area-inset-bottom));
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sepet-footer__toplam {
  margin: 0;
  color: #1c355e;
  font-size: 1.05rem;
}

.sepet-footer__miktar {
  margin: 0;
  color: #334155;
  font-size: 0.98rem;
}

.sepet-footer__miktar strong,
.sepet-footer__toplam strong {
  font-weight: 800;
}

.sepet-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #25d366;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.sepet-share:hover,
.sepet-share:focus-visible {
  filter: brightness(0.96);
}

.sepet-share.is-capturing {
  opacity: 0.55;
  pointer-events: none;
}

.sepet-share-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.sepet-share-panel {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sepet-share-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c355e;
}

.sepet-share-form__field input,
.sepet-share-form__field select,
.sepet-share-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  color: #1c355e;
  background: #fff;
}

.sepet-share-form__field input.sepet-share-form__readonly,
.sepet-share-form__field input[readonly] {
  background: #f3f1ec;
  color: var(--color-muted);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.sepet-share-form__field input.is-invalid,
.sepet-share-form__field select.is-invalid,
.sepet-share-form__field textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
  background: #fef2f2;
}

.sepet-share-form__field input.is-invalid:focus,
.sepet-share-form__field select.is-invalid:focus,
.sepet-share-form__field textarea.is-invalid:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.sepet-share-form__field textarea {
  resize: vertical;
  min-height: 64px;
}

.sepet-share-form__phone {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.4fr);
  gap: 10px;
}

.sepet-share-form__field--grow {
  min-width: 0;
}

.sepet-capture {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sepet-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sepet-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.sepet-confirm__box {
  position: relative;
  width: min(360px, 100%);
  padding: 20px 18px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.sepet-confirm__text {
  margin: 0 0 16px;
  color: #1c355e;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.sepet-confirm__actions {
  display: flex;
  gap: 10px;
}

.sepet-confirm__btn {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sepet-confirm__btn--ghost {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.sepet-confirm__btn--danger {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 420px) {
  .sepet-row {
    gap: 10px;
    padding: 10px;
  }

  .sepet-row__media {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }

  .sepet-row__body {
    flex-direction: column;
    align-items: stretch;
  }

  .sepet-row__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

img[data-lightbox] {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.82);
}

.img-lightbox__img {
  max-width: min(96vw, 960px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.img-lightbox__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c355e;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

