/* =========================================================
   Base: reset, variables, typography, buttons, forms, utils
   ========================================================= */
:root {
    --c-primary: #0053e2;
    --c-primary-hover: #025fff;
    --c-primary-active: #0943a6;
    --c-text: #363636;
    --c-text-light: #777777;
    --c-text-muted: #999999;
    --c-border: #e1e1e1;
    --c-border-2: #d5d5d5;
    --c-bg: #f6f6f6;
    --c-bg-2: #f5f5f5;
    --c-bg-3: #f0f0f0;
    --c-white: #ffffff;
    --c-sale: #dd4b39;
    --c-orange: #ff8e12;
    --c-green: #1e905d;
    --c-shadow: rgba(0, 0, 0, .08);
    --radius: 8px;
    --radius-lg: 12px;
    --c-radius: var(--radius);
    --container: 1600px;
    --header-h: 72px;
    --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-white);
    min-width: 320px;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }

h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; line-height: 1.2; }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; }

button { font-family: inherit; }

.hidden { display: none !important; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--c-text);
    cursor: pointer;
    text-align: center;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--primary:active { background: var(--c-primary-active); }

.btn--outline { border-color: var(--c-border-2); background: var(--c-white); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn--text { color: var(--c-text-light); padding: 0 8px; }
.btn--text:hover { color: var(--c-primary); }

.btn--lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled,
.btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn--primary:disabled,
.btn--primary[disabled] { background: #99a0ab; color: #fff; opacity: 1; }

.btn--cart {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
    background: var(--c-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn--cart:hover { background: var(--c-primary-hover); }
.btn--cart svg { width: 20px; height: 20px; }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    color: var(--c-text);
    cursor: pointer;
    transition: .15s;
    flex: none;
    position: relative;
}
.icon-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--lg { width: 48px; height: 48px; }
.icon-btn--lg svg { width: 22px; height: 22px; }
.icon-btn--light { background: rgba(255, 255, 255, .92); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm svg { width: 16px; height: 16px; }
.icon-btn.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.notify-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.notify-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px var(--c-primary);
    pointer-events: none;
}
.notify-check svg { width: 8px; height: 8px; }
.notify-check svg path { stroke-width: 4; }

/* ---------- Форми ---------- */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--c-text-light); }
.field__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius);
    background: var(--c-white);
    font: inherit;
    font-size: 15px;
    color: var(--c-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field__input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0, 83, 226, .12); }
.field__input--area { height: auto; padding: 10px 14px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }

/* ---------- Текстові утиліти ---------- */
.muted { color: var(--c-text-muted); }
.text-justify { text-align: justify; }
.no-items { padding: 40px 0; text-align: center; color: var(--c-text-light); }

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.5px;
}
.page-head { padding: 22px 0 6px; }

.link-under { text-decoration: underline; }
button.link-under {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--c-primary);
    cursor: pointer;
}
button.link-under:hover { text-decoration: none; }

/* ---------- Зірки ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars__star { position: relative; display: inline-block; font-size: 15px; line-height: 1; }
.stars__fill, .stars__bg { display: block; }
.stars__fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    color: var(--c-orange);
    white-space: nowrap;
}
.stars__bg { color: #d9d9d9; }
.stars__num { margin-left: 5px; font-size: 13px; color: var(--c-text-muted); }

/* ---------- Хлібні крихти ---------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text-muted);
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs__home { display: inline-flex; align-items: center; color: var(--c-text-muted); }
.breadcrumbs__home svg { width: 14px; height: 14px; }
.breadcrumbs__current { color: var(--c-text); max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs__sep { color: #c9c9c9; }
.page-head .breadcrumbs { margin-bottom: 10px; }

@media (min-width: 1025px) {
    .breadcrumbs { font-size: 12px; }
}
@media (max-width: 1024px) {
    .breadcrumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .breadcrumbs::-webkit-scrollbar { display: none; }
    .breadcrumbs > * { flex: none; white-space: nowrap; }
}

/* ---------- Соцмережі ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials__link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: lowercase;
    transition: .15s;
}
.socials__link:hover { background: var(--c-primary-hover); color: #fff; transform: translateY(-2px); }
.socials--sm .socials__link { width: 32px; height: 32px; font-size: 11px; }
.socials__link svg { width: 18px; height: 18px; }
.socials--sm .socials__link svg { width: 16px; height: 16px; }
button.socials__link { border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ---------- Теги ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
}
.tag--accent { background: #fdeae7; color: var(--c-sale); }
.tag--green { background: #e7f6ef; color: var(--c-green); }

/* ---------- Знижки / бейджі ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.badge--sale { background: var(--c-sale); }
.badge--new { background: var(--c-primary); }

/* ---------- Прокрутка ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-3); }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 6px; border: 2px solid var(--c-bg-3); }
::-webkit-scrollbar-thumb:hover { background: #a9a9a9; }

@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 26px; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .container { padding: 0 12px; }
}
