/* ---------- Tokens ---------- */
:root {
  --navy: #1e3a5f;
  --navy-deep: #14283f;
  --porcelain: #f6f8fb;
  --mist: #e7edf5;
  --line: #d8e0ea;
  --coral: #e0475b;
  --text: #1c2733;
  --muted: #5d6b7c;
  --white: #fff;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 8px 16px; font-size: .9rem; }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn.is-done { background: #2f7d57; border-color: #2f7d57; }

/* ---------- Top bar / header ---------- */
.topbar { background: var(--navy); color: var(--white); text-align: center; font-size: .85rem; padding: 7px 16px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 14px 0; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; color: var(--navy); }
.logo--light { color: var(--white); }

.search { display: flex; max-width: 520px; width: 100%; justify-self: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--porcelain); }
.search:focus-within { border-color: var(--navy); }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 16px; font: inherit; min-width: 0; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--navy); color: var(--white); padding: 0 20px; font-weight: 600; }

.tools { display: flex; gap: 20px; align-items: center; font-weight: 500; }
.tools a { text-decoration: none; }
.tools a:hover { color: var(--coral); }
.cartlink__n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--coral); color: var(--white); border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.cartlink__n.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.35); } }

.mainnav { border-top: 1px solid var(--line); }
.mainnav ul { display: flex; gap: 28px; padding: 10px 0; overflow-x: auto; }
.mainnav a { text-decoration: none; font-weight: 500; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover { border-color: var(--navy); }
.mainnav__sale a { color: var(--coral); font-weight: 600; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  --ink: #fff;
  background: var(--shade);
  color: var(--ink);
  transition: background-color .5s ease, color .3s;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding: 64px 0 72px; }
.hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.035em; }
.hero__lead { margin-top: 18px; font-size: 1.15rem; max-width: 34ch; opacity: .92; }

.shades { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.shade {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c);
  border: 3px solid transparent;
  box-shadow: 0 0 0 2px rgba(255,255,255,.55);
  transition: transform .2s, box-shadow .2s;
}
.shade:hover { transform: scale(1.1); }
.shade.is-on { box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--shade); }
.hero__pick { margin-top: 16px; font-size: 1.05rem; }
.hero__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* CSS ile çizilmiş ruj */
.hero__art { display: grid; place-items: center; }
.lip { width: clamp(120px, 22vw, 200px); transform: rotate(8deg); filter: drop-shadow(0 24px 30px rgba(0,0,0,.25)); }
.lip__bullet { order: -1; height: 120px; background: var(--shade); border-radius: 50% 50% 8px 8px / 62% 62% 8px 8px; clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%); filter: brightness(1.08); transition: background-color .5s; }
.lip { display: flex; flex-direction: column; }
.lip__cap { height: 70px; background: linear-gradient(90deg, #0f2036, #26486f 45%, #0f2036); border-radius: 6px 6px 0 0; order: 1; margin-top: 4px; }
.lip__body { height: 150px; background: linear-gradient(90deg, #b9c2cf, #f4f6f9 40%, #aab4c3); order: 0; border-radius: 4px; }

/* ---------- Perks ---------- */
.perks { background: var(--mist); }
.perks__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.perks li { display: flex; flex-direction: column; }
.perks strong { font-family: var(--font-head); color: var(--navy); }
.perks span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--porcelain); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.02em; color: var(--navy); }
.section > .wrap > .section__title { margin-bottom: 28px; }

/* Kategoriler */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; padding: 8px; }
.cats__dot { width: 96px; height: 96px; border-radius: 50%; background: var(--c); transition: transform .25s, border-radius .25s; }
.cats a:hover .cats__dot { transform: translateY(-4px); border-radius: 36%; }
.cats__name { font-weight: 600; text-align: center; }

/* Sekmeler */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 16px; font-weight: 500; color: var(--text); }
.tab:hover { border-color: var(--navy); }
.tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Ürün kartları */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 16%, white); }
.card__media svg { width: 46%; transition: transform .3s; }
.card:hover .card__media svg { transform: translateY(-6px) rotate(-3deg); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge--sale { background: var(--coral); }
.card__fav { position: absolute; right: 10px; top: 8px; border: 0; background: var(--white); width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; color: var(--navy); line-height: 1; }
.card__fav[aria-pressed="true"] { color: var(--coral); }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { color: var(--muted); font-size: .85rem; }
.card__title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__price { margin-top: auto; padding-top: 6px; display: flex; gap: 10px; align-items: baseline; }
.card__price strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.card__price s { color: var(--muted); font-size: .9rem; }
.card .btn { margin-top: 8px; align-self: flex-start; }
.empty { margin-top: 24px; color: var(--muted); }

/* Kampanya */
.promo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.promo a { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 280px; padding: 32px; border-radius: 20px; text-decoration: none; transition: transform .25s; }
.promo a:hover { transform: translateY(-3px); }
.promo__a { background: var(--navy); color: var(--white); }
.promo__b { background: #f2d16b; color: var(--navy-deep); }
.promo h3 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.promo p { max-width: 38ch; }
.promo .link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #d5deea; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h3 { font-family: var(--font-head); color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__about { margin-top: 10px; max-width: 34ch; font-size: .95rem; }
.news { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; padding: 9px 14px; border-radius: 999px; border: 2px solid transparent; font: inherit; }
.news .btn { background: var(--coral); border-color: var(--coral); }
.news__msg { margin-top: 10px; font-size: .9rem; min-height: 1.4em; }
.footer__bottom { margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--navy-deep); color: var(--white); padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .perks__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .header__row { grid-template-columns: auto 1fr auto; gap: 8px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .tools a:not(.cartlink) { display: none; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; gap: 4px; }
  .mainnav a { display: block; padding: 10px 0; }
  .hero__grid { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero__art { order: -1; }
  .lip { width: 90px; }
  .lip__bullet { height: 70px; } .lip__body { height: 90px; } .lip__cap { height: 44px; }
  .promo { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .grid { gap: 12px; }
  .card__body { padding: 10px 12px 14px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
