:root {
  --pink: #d91557;
  --pink-dark: #b80f49;
  --pink-soft: #fff0f5;
  --ink: #17181d;
  --muted: #687180;
  --line: #e7ebf0;
  --soft: #f6f7fb;
  --card: #ffffff;
  --green: #0f9f6e;
  --amber: #f59e0b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 23, 27, 0.05);
  --shadow-hover: 0 18px 40px rgba(22, 23, 27, 0.1);
  --pad: clamp(16px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f8fb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.site {
  min-height: 100vh;
}

/* ---------- üst bar ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo search actions" "nav nav nav";
  gap: 8px 22px;
  align-items: center;
  padding: 12px var(--pad) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: 190px;
  max-width: 40vw;
  height: auto;
}

.nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #333844;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--pink-soft);
  color: var(--pink);
}

.actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.search {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  height: 44px;
  margin: 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}

.search:focus-within {
  border-color: var(--pink);
  background: #fff;
}

.search-icon {
  display: inline-flex;
  color: var(--muted);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-hover);
}

.search-results a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results a:hover {
  background: var(--pink-soft);
}

.search-results img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.search-results span {
  display: grid;
}

.search-results strong {
  font-size: 14px;
}

.search-results small {
  color: var(--muted);
  font-size: 12px;
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--pink);
  border-radius: 999px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.ghost-button:hover {
  background: var(--pink-soft);
}

.icon-button,
.menu-button,
.tiny-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
}

.cart-button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.icon-button .count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 20px;
  text-align: center;
}

.menu-button {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(22, 23, 27, 0.4);
}

.drawer {
  position: fixed;
  inset: 0 0 auto auto;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 4px;
  width: min(320px, 88vw);
  min-height: 100vh;
  padding: 18px;
  background: #fff;
  box-shadow: -24px 0 60px rgba(22, 23, 27, 0.18);
}

.drawer a {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  color: #333844;
  font-size: 15px;
  font-weight: 750;
}

.drawer .icon-button {
  justify-self: end;
}

/* ---------- kampanya slider ---------- */

.carousel {
  position: relative;
  overflow: hidden;
  margin: 20px var(--pad) 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
}

.slide img {
  display: block;
  width: 100%;
  aspect-ratio: 730 / 280;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease;
}

.carousel-dots button.active {
  width: 26px;
  background: #fff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: var(--shadow);
}

.carousel-arrow.prev {
  left: 14px;
}

.carousel-arrow.next {
  right: 14px;
}

.carousel-arrow:hover {
  background: #fff;
}

/* ---------- kategori chip'leri ---------- */

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 6px;
  padding: 4px var(--pad);
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.chip:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ---------- güven şeridi ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px var(--pad) 8px;
}

.trust div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #2f3642;
  font-weight: 800;
}

.trust svg {
  color: var(--pink);
}

/* ---------- bölümler ve kartlar ---------- */

.section {
  padding: 26px var(--pad);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.section-icon {
  font-size: 0.85em;
}

.section-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #f3c2d2;
  box-shadow: var(--shadow-hover);
}

.card-media {
  position: relative;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.card strong {
  min-height: 40px;
  font-size: 14.5px;
  line-height: 1.35;
}

.card small {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(217, 21, 87, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

/* ---------- SSS ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.faq summary {
  padding: 16px 18px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- ürün detay ---------- */

.detail,
.cart-page,
.static-page {
  padding: 26px var(--pad) 56px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.crumbs a:hover {
  color: var(--pink);
}

.crumbs strong {
  color: var(--ink);
}

.detail-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-hero img {
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  object-fit: cover;
}

.detail-hero span,
.eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 850;
}

.detail-hero h1,
.static-page h1,
.cart-page h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

.detail-hero p,
.static-page p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

.detail-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.detail-perks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2f3642;
  font-size: 13.5px;
  font-weight: 800;
}

.detail-perks svg {
  color: var(--pink);
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 16px;
}

.panel,
.summary,
.auth-form,
.legal,
.cart-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

.step-title h2,
.summary h2,
.support h2,
.footer-nav h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #363d49;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

input:focus,
textarea:focus {
  border-color: var(--pink);
}

input {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.package,
.payment {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.package {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 14px;
  text-align: left;
}

.package:hover,
.payment:hover {
  border-color: var(--pink);
}

.package.active,
.payment.active {
  border-color: var(--pink);
  background: var(--pink-soft);
  box-shadow: inset 0 0 0 1px var(--pink);
}

.package strong {
  font-size: 15px;
}

.package span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 850;
}

.package small {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.payment-list {
  display: grid;
  gap: 10px;
}

.payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  font-weight: 850;
  text-align: left;
}

.payment .check {
  color: var(--pink);
  font-size: 13px;
}

.summary {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.summary img {
  display: block;
  width: 100%;
  aspect-ratio: 323 / 210;
  border-radius: 10px;
  object-fit: cover;
}

.line,
.total-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.line strong,
.total-line strong {
  min-width: 0;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.qty {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 0;
  background: var(--soft);
  font-size: 18px;
  cursor: pointer;
}

.qty strong {
  text-align: center;
}

.total-line {
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.total-line strong {
  color: var(--pink);
  font-size: 22px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  width: 100%;
  border: 0;
  background: var(--pink);
  color: #fff;
}

.primary:hover {
  background: var(--pink-dark);
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ---------- sepet ve ödeme ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 140px 110px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.cart-item small {
  color: var(--muted);
}

.tiny-button {
  min-height: 38px;
  padding: 0 12px;
  font-weight: 800;
}

.tiny-button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.empty p {
  margin: 0;
  color: var(--muted);
}

.success {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 620px;
  margin: 20px auto;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.success h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-recap {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}

/* ---------- statik sayfalar ---------- */

.static-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.auth-form,
.legal {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.legal {
  grid-column: span 2;
}

.legal h2 {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 900;
}

/* ---------- footer ---------- */

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(300px, 420px);
  gap: clamp(24px, 4vw, 56px);
  padding: 38px var(--pad);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-brand img {
  width: 200px;
  max-width: 100%;
}

.footer-brand p,
.legal p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #333844;
  font-size: 14px;
  font-weight: 750;
}

.footer-links a:hover,
.footer-nav a:hover {
  color: var(--pink);
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.support {
  display: grid;
  gap: 10px;
}

.notice {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.footer-bar {
  padding: 16px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-hover);
}

.toast a {
  margin-left: 6px;
  color: #ff9dbd;
  font-weight: 900;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- duyarlı ---------- */

@media (max-width: 980px) {
  .header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo actions actions" "search search search";
    padding-bottom: 12px;
  }

  .nav {
    display: none;
  }

  .ghost-button {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .checkout,
  .cart-layout,
  .static-page {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .legal {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .logo img {
    width: 150px;
  }

  .icon-button,
  .menu-button {
    width: 38px;
    height: 38px;
  }

  .carousel {
    margin: 14px 14px 0;
    border-radius: 12px;
  }

  .carousel-arrow {
    display: none;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card strong {
    min-height: 34px;
    font-size: 13px;
  }

  .detail-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .detail-hero img {
    width: 96px;
    height: 96px;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cart-item img {
    width: 58px;
    height: 58px;
  }
}
