/* ================================================================
   Meryemcee Home — base.css
   Reset + tipografi + yardımcı sınıflar
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono&display=swap');
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--mc-ink);
  background: var(--mc-bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* container */
.mc-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}
.mc-container--sm { max-width: var(--container-sm); }

/* tip */
.mc-title { font-family: var(--font-title); font-weight: 400; line-height: 1.05; }
.mc-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* butonlar */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-min);
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .15s, transform .12s;
}
.mc-btn:active { transform: scale(.97); }
.mc-btn--primary { background: var(--mc-purple); color: #fff; }
.mc-btn--primary:hover { background: var(--mc-purple-dark); }
.mc-btn--wa { background: var(--mc-wa); color: #fff; box-shadow: var(--shadow-wa); }
.mc-btn--wa:hover { opacity: .9; }
.mc-btn--outline-wa { border: 2px solid var(--mc-wa); color: var(--mc-wa); }
.mc-btn--outline-wa:hover { background: var(--mc-wa); color: #fff; }
.mc-btn--outline-light { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.mc-btn--dark { background: var(--mc-purple-dark); color: #fff; }
.mc-btn--ghost { background: var(--mc-purple-tint); color: var(--mc-purple); }
.mc-btn--sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.mc-btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.mc-btn--full { width: 100%; }

/* rozet */
.mc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-badge);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-badge);
}
.mc-badge--new { background: var(--mc-purple); color: #fff; }
.mc-badge--sale { background: var(--mc-red); color: #fff; }
.mc-badge--hot { background: var(--mc-ink); color: #fff; }
.mc-badge--stock { background: var(--mc-stock-bg); color: var(--mc-stock-fg); }

/* fiyat */
.mc-price { font-size: 15px; font-weight: 700; color: var(--mc-purple-dark); }
.mc-price--big { font-family: var(--font-title); font-size: clamp(22px,3vw,28px); }
.mc-price--xl  { font-family: var(--font-title); font-size: clamp(26px,4vw,32px); }
.mc-price-old { font-size: 13px; color: var(--mc-ink-4); text-decoration: line-through; }

/* card temel */
.mc-card {
  background: var(--mc-surface);
  border-radius: var(--r-card);
  border: 1px solid var(--mc-purple-line);
  overflow: hidden;
}

/* product thumb card */
.mc-thumb {
  position: relative;
  background: var(--mc-surface);
  border-radius: var(--r-card);
  border: 1px solid var(--mc-purple-line);
  overflow: hidden;
  transition: box-shadow .2s;
}
.mc-thumb:hover { box-shadow: var(--shadow-calc); }
.mc-thumb__img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--mc-purple-tint);
}
.mc-thumb__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mc-thumb:hover .mc-thumb__img-wrap img { transform: scale(1.04); }
.mc-thumb__badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.mc-thumb__wa {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mc-wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-wa);
  z-index: 1;
  transition: transform .15s;
}
.mc-thumb__wa:hover { transform: scale(1.1); }
.mc-thumb__wa svg { width: 20px; height: 20px; fill: #fff; }
.mc-thumb__body { padding: 12px 14px 14px; }
.mc-thumb__name { font-size: 14px; font-weight: 600; color: var(--mc-ink); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-thumb__unit { font-size: 12px; color: var(--mc-ink-3); margin-bottom: 4px; }
.mc-thumb__price-row { display: flex; align-items: baseline; gap: 6px; }

/* section header */
.mc-section-head { margin-bottom: var(--gap-grid); }
.mc-section-head__eyebrow { color: var(--mc-red); margin-bottom: 6px; }
.mc-section-head__title { font-family: var(--font-title); font-size: clamp(22px,4vw,34px); }

/* horizontal scroll strip */
.mc-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(43vw,220px),1fr);
  gap: var(--gap-grid);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mc-strip::-webkit-scrollbar { display: none; }
.mc-strip > * { scroll-snap-align: start; }

/* grid */
.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%,220px),1fr));
  gap: var(--gap-grid);
}

/* input */
.mc-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--mc-purple-line);
  border-radius: var(--r-input);
  background: var(--mc-surface);
  color: var(--mc-ink);
  font-size: 15px;
  transition: border-color .15s;
}
.mc-input:focus { outline: none; border-color: var(--mc-purple); }
.mc-input--lg { height: 54px; }

/* divider */
.mc-divider { border: none; border-top: 1px solid var(--mc-purple-line); }

/* helper */
.mc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mc-text-center { text-align: center; }

/* safe-area helpers */
.mc-pb-safe { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ——— Media queries ——— */
@media (max-width: 759px) {
  body { padding-bottom: 64px; } /* alt sekme çubuğu için yer */
}
