/* ModaSepet – shared stylesheet */
:root {
  --bg: #FAF8F6; --accent: #D96C8C; --accent-dark: #c25677; --text: #292929;
  --bg2: #EFE7E1; --white: #FFFFFF; --line: #e4dbd4;
  --radius: 14px; --shadow: 0 4px 18px rgba(41, 41, 41, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); } h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); } h3 { font-size: 1.15rem; }
a { color: var(--accent-dark); } p { margin: 0 0 1em; }
.wrap { width: min(1160px, 92%); margin-inline: auto; }
section { padding: 64px 0; }
.alt { background: var(--bg2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; border: 2px solid var(--accent); background: var(--accent); color: var(--white); padding: 11px 26px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent); color: var(--white); }
.btn.small { padding: 7px 16px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 246, .96); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent-dark); }
.actions { display: flex; gap: 8px; }
.icon-btn { position: relative; background: none; border: 0; padding: 8px; cursor: pointer; display: inline-flex; border-radius: 50%; }
.icon-btn img { width: 26px; height: 26px; }
.badge { position: absolute; top: 0; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.menu-btn { display: none; }

/* Hero */
.hero { padding: 0; background: #9780B5; overflow: hidden; } /* sampled from banner edge */
.hero .wrap { position: relative; display: flex; align-items: center; min-height: 520px; padding-block: 40px; }
/* Banner keeps its natural size (740px) – never stretched; left edge fades into the background */
.hero-img { display: block; width: 740px; max-width: 100%; height: auto; margin-left: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-text { position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-width: 430px; color: #1c1c1c; }
.hero .btn.ghost { border-color: var(--text); color: var(--text); }
.hero .btn.ghost:hover { background: var(--text); color: #fff; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 12px; cursor: pointer; font: inherit; font-weight: 600; color: var(--text); overflow: hidden; transition: box-shadow .2s; }
.cat:hover, .cat.active { box-shadow: var(--shadow); border-color: var(--accent); }
.cat img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 10px; }

/* Catalogue */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.toolbar input, .toolbar select, .field input, .field textarea { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); }
.toolbar input { flex: 1 1 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 16px; font: inherit; cursor: pointer; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.meta { font-size: .85rem; color: #6b6b6b; margin: 0; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--accent-dark); }
.stock { font-size: .85rem; font-weight: 600; color: #3b8a5a; } .stock.low { color: #b7791f; } .stock.out { color: #b3382c; }
.card .row { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.card .row .btn { flex: 1; padding-inline: 10px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: #6b6b6b; }
.demo-note { font-size: .85rem; color: #6b6b6b; }

/* Promo, about, info */
.promo { background: var(--accent); color: #fff; text-align: center; }
.promo .btn { background: #fff; color: var(--accent-dark); border-color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.disclaimer { font-size: .85rem; color: #6b6b6b; margin-top: 24px; }

/* Footer */
.site-footer { background: #292929; color: #e8e2dd; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #e8e2dd; text-decoration: none; } .site-footer a:hover { color: var(--accent); }
.site-footer img.flogo { background: #FAF8F6; padding: 6px 12px; border-radius: 10px; margin-bottom: 12px; }
.fcols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.fcols ul { list-style: none; margin: 0; padding: 0; } .fcols li { margin-bottom: 6px; }
.copy { border-top: 1px solid #444; margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #aaa; }

/* Modal + cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: .25s; z-index: 80; }
.overlay.show { opacity: 1; visibility: visible; }
.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 90; padding: 16px; overflow-y: auto; }
.modal.show { display: grid; }
.modal-box { position: relative; background: var(--bg); border-radius: var(--radius); width: min(860px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.modal-box img.main { border-radius: 10px; width: 100%; }
.x { position: absolute; top: 10px; right: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.opt { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 5px 14px; cursor: pointer; font: inherit; }
.opt.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { border: 0; background: none; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--bg); z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s; }
.drawer.show { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer h2 { margin: 0; font-size: 1.3rem; }
#cartItems { flex: 1; overflow-y: auto; padding: 12px 20px; }
.item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.item .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.item .rm { background: none; border: 0; color: #b3382c; cursor: pointer; font: inherit; font-size: .85rem; }
.item .line { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.drawer footer { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 8px; }
.sum { display: flex; justify-content: space-between; } .sum.total { font-weight: 700; font-size: 1.15rem; }
#inquiry { display: none; font-size: .9rem; background: var(--bg2); border-radius: 10px; padding: 12px; }
#inquiry.show { display: block; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #292929; color: #fff; padding: 10px 22px; border-radius: 999px; opacity: 0; transition: .3s; z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.totop { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); cursor: pointer; display: none; place-items: center; box-shadow: var(--shadow); z-index: 60; }
.totop.show { display: grid; } .totop img { width: 22px; height: 22px; }

/* Inner pages + forms */
.page { padding: 56px 0; max-width: 820px; } .page h2 { margin-top: 1.6em; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.field { display: grid; gap: 4px; margin-bottom: 14px; } .field label { font-weight: 600; }
.field .err { color: #b3382c; font-size: .85rem; min-height: 1.2em; }
.field input.bad, .field textarea.bad { border-color: #b3382c; }
#formStatus { margin-top: 12px; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split, .contact, .modal-box, .fcols, .info { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; } .nav a { padding: 14px 4%; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, 1fr); } section { padding: 44px 0; } }
@media (max-width: 900px) {
  .hero .wrap { flex-direction: column; min-height: 0; padding-block: 28px; }
  .hero-text { position: static; transform: none; max-width: 100%; }
  .hero-img { margin: 16px auto 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }