/* HOZMAG — витрина */
:root {
    --yellow: #f5b301;
    --yellow-dark: #e0a200;
    --yellow-soft: #fdf3d6;
    --dark: #1f1f1f;
    --ink: #232323;
    --muted: #73777c;
    --line: #e9e9e9;
    --bg: #f4f4f4;
    --bg-soft: #fafafa;
    --white: #fff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 12px 30px rgba(20, 20, 20, .06);
    --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.icon { width: 20px; height: 20px; flex: none; }

/* ---------------- Кнопки ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, transform .18s;
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #1c1c1c; }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: #d8d8d8; background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn[disabled] { pointer-events: none; }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

.mt-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 16px);
    background: #1f1f1f;
    color: #fff;
    padding: 12px 20px 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 200;
    max-width: calc(100% - 32px);
}
.mt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mt-toast::before { content: "✓"; color: var(--yellow); font-weight: 700; margin-right: 8px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}
.icon-btn:hover { color: #c0392b; border-color: #f0c4bf; }
.icon-btn .icon { width: 18px; height: 18px; }

/* ---------------- Шапка ---------------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--yellow);
    color: #1d1d1d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-mark-lg { width: 64px; height: 64px; border-radius: 16px; }
.logo-img { max-height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.logo-text small { font-size: 11px; color: var(--muted); margin-top: 3px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 auto;
    flex-wrap: nowrap;
    min-width: 0;
}
.nav-link {
    font-size: 15px;
    color: #3d3d3d;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}
.nav-link:hover { color: #000; }
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 14px;
}
.header-icon:hover { color: #000; }
.header-icon .icon { width: 22px; height: 22px; }
.header-icon-label { display: none; }
.header-icon-cart .cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--yellow);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-phone {
    padding: 11px 18px;
    font-weight: 700;
    font-size: 15px;
}
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ---------------- Сообщения ---------------- */
.alerts { margin-top: 16px; display: grid; gap: 8px; }
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success { background: #eef8ee; border-color: #cfe8cf; color: #2c6b2f; }
.alert-error { background: #fdeeee; border-color: #f4cece; color: #a12d2d; }
.alert-info { background: var(--yellow-soft); border-color: #f4e3b2; color: #7a5b00; }

/* ---------------- Hero ---------------- */
.hero { background: linear-gradient(180deg, #f6f6f6 0%, #ededed 100%); overflow: hidden; }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: stretch;
    gap: 30px;
    min-height: 520px;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 32px;
}
.chip {
    display: inline-flex;
    align-self: flex-start;
    background: var(--yellow);
    color: #1c1c1c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 6px;
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: .98;
    margin-bottom: 22px;
}
.hero-text {
    font-size: 18px;
    color: #4c4c4c;
    max-width: 430px;
    margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid #dcdcdc;
}
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature-icon { color: #3d3d3d; }
.feature-icon .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.feature strong { display: block; font-size: 14px; }
.feature span { font-size: 13px; color: var(--muted); }

.hero-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 20px;
}
.hero-media img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
}

/* ---------------- Секции ---------------- */
.section { padding: 64px 0; }
.section-tight { padding: 12px 0; }
.section-products { padding-top: 56px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    display: inline-block;
    padding-bottom: 14px;
    position: relative;
}
.section-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--yellow);
    transform: translateX(-50%);
    border-radius: 2px;
}
.section-actions { display: flex; justify-content: center; margin-top: 34px; }

.page-head {
    background: var(--bg);
    padding: 26px 0 30px;
    margin-bottom: 30px;
}
.page-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-top: 10px; }
.page-subtitle { color: var(--muted); margin-top: 8px; max-width: 640px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .current { color: #444; }
.breadcrumbs-page { padding: 22px 0 0; }

/* ---------------- О магазине ---------------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 60px;
    align-items: start;
}
.about-lead { display: flex; gap: 20px; }
.about-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--yellow);
    color: #1c1c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.about-icon .icon { width: 30px; height: 30px; }
.about-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin-bottom: 14px; }
.about-text { color: var(--muted); font-size: 15px; }
.about-points { display: grid; gap: 16px; }
.about-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: #3a3a3a;
}
.about-points .icon { color: var(--yellow); width: 22px; height: 22px; margin-top: 1px; }

/* ---------------- Акции / баннеры ---------------- */
.promo-strip { display: grid; gap: 12px; }
.promo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #fff6dd 0%, #fffdf6 60%);
    border: 1px solid #f5e3b0;
}
.promo-icon { color: var(--yellow-dark); display: flex; }
.promo-icon .icon { width: 26px; height: 26px; }
.promo-body { display: flex; flex-direction: column; flex: 1; }
.promo-body strong { font-size: 16px; }
.promo-body span { font-size: 14px; color: #6a6252; }
.promo-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--yellow-dark);
    background: #fff;
    border-radius: 10px;
    padding: 6px 14px;
}

.banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    background: #232323;
    color: #fff;
    border-radius: 18px;
    padding: 34px 38px;
    overflow: hidden;
}
.banner-with-image { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.banner-body h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; margin-bottom: 10px; }
.banner-body p { color: #c9c9c9; margin-bottom: 20px; max-width: 480px; }
.banner-media img { border-radius: 14px; max-height: 220px; object-fit: cover; width: 100%; }

/* ---------------- Категории ---------------- */
.section-categories { background: var(--bg-soft); }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.category-card:hover { border-color: var(--yellow); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--yellow-soft);
    color: #8a6a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.category-name { font-weight: 700; }
.category-text { font-size: 13px; color: var(--muted); }

/* ---------------- Товары ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 18px;
}
.product-grid-catalog { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #dedede; }
.product-card-media { position: relative; display: block; background: #fff; }
.product-card-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 14px;
}
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e2453c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}
.discount-badge-lg { font-size: 14px; padding: 6px 10px; top: 14px; left: 14px; }
.product-card-body {
    padding: 4px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.product-cat { font-size: 12px; color: var(--muted); }
.product-name { font-size: 14px; font-weight: 500; line-height: 1.35; flex: 1; }
.product-name a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}
.price-block { display: flex; flex-direction: column; }
.price { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.price-old {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}
.add-form { margin: 0; }
.btn-cart {
    width: 38px;
    height: 34px;
    border-radius: 8px;
    border: 0;
    background: var(--yellow);
    color: #1c1c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s;
}
.btn-cart:hover { background: var(--yellow-dark); }
.btn-cart .icon { width: 18px; height: 18px; }
.empty-note { text-align: center; color: var(--muted); padding: 20px 0; }

/* ---------------- Каталог ---------------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 70px;
}
.catalog-side { display: grid; gap: 16px; position: sticky; top: 104px; }
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.panel-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.panel-text { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cat-list { display: grid; gap: 2px; }
.cat-link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
}
.cat-link:hover { background: #f5f5f5; color: #000; }
.cat-link.is-active { background: var(--yellow-soft); color: #6d5100; font-weight: 600; }
.mt-8 { margin-top: 8px; }

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.catalog-search { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.catalog-search .input { flex: 1; }
.catalog-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.catalog-sort .input { min-width: 170px; }
.catalog-count { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.catalog-count strong { color: var(--ink); }

.input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.input:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, .18);
}
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.page-link:hover { border-color: var(--yellow); }
.page-link.is-active { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.empty-panel { text-align: center; padding: 50px 24px; }
.empty-panel h2 { font-size: 22px; margin-bottom: 8px; }
.empty-panel p { color: var(--muted); margin-bottom: 18px; }

/* ---------------- Карточка товара ---------------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 44px;
    padding-bottom: 36px;
    align-items: start;
}
.product-gallery-main {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.product-gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; line-height: 1.15; }
.product-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.product-meta .in-stock { color: #2f7d32; display: inline-flex; align-items: center; gap: 4px; }
.product-meta .in-stock .icon { width: 15px; height: 15px; }
.promo-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff7e2;
    border: 1px solid #f6e2ae;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #7a5b00;
}
.promo-note .icon { width: 20px; height: 20px; color: #d99b00; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.product-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.product-price-old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.product-unit { font-size: 14px; color: var(--muted); }
.product-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.product-assurance { display: grid; gap: 8px; font-size: 14px; color: #4a4a4a; margin-top: 6px; }
.product-assurance span { display: flex; align-items: center; gap: 8px; }
.product-assurance .icon { width: 18px; height: 18px; color: var(--yellow-dark); }
.product-short { font-size: 15px; color: #555; padding-top: 14px; border-top: 1px solid var(--line); }
.product-description { margin-bottom: 20px; }
.product-description h2 { font-size: 22px; margin-bottom: 14px; }

/* Комментарии */
.comments { margin-bottom: 26px; }
.comments-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}
.comments-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.comments-count {
    font-size: 13px;
    font-weight: 700;
    color: #7a5b00;
    background: var(--yellow-soft);
    border-radius: 20px;
    padding: 2px 10px;
}
.comments-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.comments-rating .icon { width: 18px; height: 18px; color: var(--yellow-dark); }
.comments-rating strong { color: var(--ink); font-size: 16px; }

.comment-list { display: grid; gap: 14px; margin-bottom: 24px; }
.comment {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfbfb;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yellow-soft);
    color: #7a5b00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
}
.comment-body { display: grid; gap: 6px; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.comment-meta strong { font-size: 14px; }
.comment-stars { letter-spacing: 1px; color: #d6d6d6; font-size: 13px; }
.comment-stars .is-on { color: var(--yellow-dark); }
.comment-date { color: var(--muted); }
.comment-text { font-size: 14px; color: #3d3d3d; line-height: 1.6; }
.comments-empty { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.comment-form {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: grid;
    gap: 12px;
}
.comment-form h3 { font-size: 17px; font-weight: 700; }
.comment-form-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.comment-form .hint { font-size: 12.5px; color: var(--muted); }
.rte { font-size: 15px; color: #3d3d3d; line-height: 1.7; }
.rte p { margin-bottom: 12px; }
.rte ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.rte h2, .rte h3 { margin: 18px 0 10px; }
.section-related { padding-top: 20px; padding-bottom: 70px; }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 48px;
}
.qty-btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: #fff;
    cursor: pointer;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: #f4f4f4; }
.qty-btn .icon { width: 16px; height: 16px; }
.qty-input {
    width: 52px;
    height: 100%;
    border: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }
.qty-sm { height: 38px; }
.qty-sm .qty-btn { width: 32px; }
.qty-sm .qty-input { width: 44px; }

/* ---------------- Корзина ---------------- */
.notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: var(--radius);
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.notice .icon { width: 26px; height: 26px; flex: none; color: #8a6a00; }
.notice-soft { background: var(--yellow-soft); border: 1px solid #f5e3b0; }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { font-size: 14px; color: #6a6252; max-width: 560px; }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding-bottom: 70px;
}
.cart-list { display: grid; gap: 10px; }
.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.cart-item-media img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.cart-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 500; }
.cart-item-name:hover { text-decoration: underline; }
.cart-item-sku { font-size: 12px; color: var(--muted); }
.cart-item-price { font-size: 13px; color: var(--muted); }
.cart-item-qty { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cart-item-sum { font-weight: 700; white-space: nowrap; }
.cart-list-actions { display: flex; justify-content: space-between; padding: 6px 4px; }
.cart-summary { position: sticky; top: 104px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.summary-total {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 2px;
    font-size: 16px;
    color: var(--ink);
}
.summary-total strong { font-size: 22px; }
.summary-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------------- Формы / авторизация ---------------- */
.auth-wrap { display: flex; justify-content: center; padding: 46px 20px 70px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-text { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.auth-alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-admin-link { margin-top: 10px; font-size: 13px; }
.auth-admin-link a { color: var(--muted); }
.auth-demo { font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
.auth-demo strong { display: block; margin-bottom: 4px; }
.auth-demo small { color: #6a6252; display: block; margin-top: 6px; }
.auth-demo code { background: #fff; border-radius: 4px; padding: 1px 5px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: #444; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #3d3d3d; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--yellow-dark); flex: none; }

/* ---------------- Личный кабинет ---------------- */
.account-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 70px;
}
.account-nav { display: grid; gap: 4px; }
.account-user { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 10px; }
.account-user strong { display: block; font-size: 15px; }
.account-user span { font-size: 13px; color: var(--muted); }
.account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    border: 0;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}
.account-link .icon { width: 18px; height: 18px; }
.account-link:hover { background: #f6f6f6; }
.account-link.is-active { background: var(--yellow-soft); color: #6d5100; font-weight: 600; }
.account-content { display: grid; gap: 18px; }
.account-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.account-head h1 { font-size: 24px; font-weight: 800; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.info-card strong { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }

.address-list { display: grid; gap: 12px; }
.address-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}
.address-card.is-default { border-color: var(--yellow); background: #fffdf6; }
.address-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.address-head strong { font-size: 15px; }
.address-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--yellow);
    color: #1c1c1c;
    border-radius: 5px;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.address-text { font-size: 14px; color: #444; }
.address-meta { font-size: 13px; color: var(--muted); }
.address-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.order-card { display: grid; gap: 8px; }
.order-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }

/* ---------------- Контакты / ошибки ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding-bottom: 60px; }
.contact-card { display: grid; gap: 6px; }
.contact-icon { color: var(--yellow-dark); display: inline-flex; margin-bottom: 4px; }
.contact-card strong { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-card a, .contact-card span { font-size: 15px; }
.page-panel { padding: 30px 34px; margin-bottom: 18px; }
.error-page { text-align: center; padding: 60px 20px 90px; }
.error-code { font-size: 90px; font-weight: 800; color: var(--yellow); line-height: 1; letter-spacing: -.04em; }
.error-page h1 { font-size: 28px; margin: 10px 0 12px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Демо-режим */
.demo-bar {
    background: var(--yellow-soft);
    border-bottom: 1px solid #f2e0ad;
    color: #6d5200;
    font-size: 13.5px;
}
.demo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    text-align: center;
}
.demo-bar .icon { width: 18px; height: 18px; flex: none; }

/* ---------------- Футер ---------------- */
.site-footer { background: #1c1c1c; color: #dcdcdc; margin-top: 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 46px 20px 34px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.logo-footer .logo-text strong { color: #fff; }
.logo-footer .logo-mark { background: var(--yellow); }
.footer-title { font-size: 15px; font-weight: 700; color: #fff; }
.footer-text { font-size: 13px; color: #a5a5a5; max-width: 300px; }
.footer-list { display: grid; gap: 12px; font-size: 14px; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-list .icon { width: 18px; height: 18px; color: var(--yellow); margin-top: 2px; }
.footer-list a:hover { color: #fff; }
.socials { display: flex; gap: 8px; }
.social {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2c2c2c;
    color: #d5d5d5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, color .18s;
}
.social:hover { background: var(--yellow); color: #1c1c1c; }
.social .icon { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid #2f2f2f; }
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 12px;
    color: #8b8b8b;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: #fff; }

/* ---------------- Сервисная страница ---------------- */
.maintenance-body { background: var(--bg); }
.maintenance { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.maintenance-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 44px 34px;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 14px;
}
.maintenance-logo { max-height: 70px; width: auto; }
.maintenance-card h1 { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.maintenance-card p { color: var(--muted); font-size: 15px; }
.maintenance-contacts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-weight: 600; }
.maintenance-contacts a { color: var(--ink); }

/* ---------------- Адаптив ---------------- */
@media (max-width: 1080px) {
    .main-nav { gap: 18px; }
    .header-icon-label { display: none; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .hero-media { order: -1; max-height: 300px; }
    .hero-media img { border-radius: 16px; max-height: 300px; }
    .hero-content { padding: 8px 0 36px; }
    .hero-features { margin-top: 30px; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-side { position: static; grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 26px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .banner-with-image { grid-template-columns: 1fr; }
    .banner-media { display: none; }
}

@media (max-width: 820px) {
    .header-inner { min-height: 70px; gap: 14px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 16px;
        display: none;
        box-shadow: 0 14px 24px rgba(0, 0, 0, .06);
    }
    .main-nav.is-open { display: flex; }
    .nav-link { padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
    .nav-link.is-active::after { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-phone span { display: none; }
    .header-phone { padding: 10px 12px; }
    .logo-text strong { font-size: 18px; }
    .catalog-side { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 42px 0; }
    .hero-title { font-size: 34px; }
    .hero-text { font-size: 16px; }
    .hero-features { grid-template-columns: 1fr; gap: 14px; }
    .feature { flex-direction: row; align-items: flex-start; gap: 12px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card-body { padding: 4px 12px 12px; }
    .product-name { font-size: 13px; }
    .price { font-size: 15px; }
    .btn-cart { width: 34px; height: 32px; }
    .cart-item { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "media info" "qty sum"; }
    .cart-item-media { grid-area: media; }
    .cart-item-media img { width: 64px; height: 64px; }
    .cart-item-info { grid-area: info; }
    .cart-item-qty { grid-area: qty; flex-direction: row; align-items: center; }
    .cart-item-sum { grid-area: sum; justify-self: end; }
    .cart-item > form:last-child { justify-self: end; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
    .footer-bottom-inner { flex-direction: column; }
    .notice-actions { margin-left: 0; width: 100%; }
    .notice-actions .btn { flex: 1; }
    .page-panel { padding: 22px; }
    .promo-card { flex-wrap: wrap; }
    .btn-lg { padding: 12px 18px; font-size: 15px; }
    .section-head { margin-bottom: 24px; }
    .product-price { font-size: 28px; }
    .product-buy .btn { width: 100%; }
}
