/* ===== Дизайн-система «Эпатаж» ===== */
:root {
    /* Бренд */
    --green-dark: #0b2a21;
    --green: #0f3a2e;
    --green-line: #1f5240;
    --gold: #c79a3b;
    --gold-soft: #d4af37;
    --heart: #e23744;  /* красный для избранного */

    /* Поверхности */
    --bg: #faf9f6;
    --surface: #ffffff;
    --border: #e7e4dc;
    --border-strong: #d8d4cc;

    /* Текст */
    --text: #1c1c1a;
    --text-muted: #6b6a64;
    --text-on-dark: #f0ede3;

    /* Семантика */
    --danger: #c0392b;
    --success: #1d9e75;

    /* Форма */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --maxw: 1100px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 28px,
        rgba(15,58,46,0.022) 28px, rgba(15,58,46,0.022) 29px);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: inherit; }

h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ===== Шапка ===== */
.site-header { background: var(--green); border-bottom: 2px solid var(--gold); }
.site-header__main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-soft);
    text-decoration: none;
    flex-shrink: 0;
}

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.5rem 0.9rem;
    max-width: 480px;
}
.header-search i { color: var(--text-muted); font-size: 1.1rem; }
.header-search input {
    flex: 1; border: none; outline: none; font-size: 0.95rem;
    font-family: inherit; background: transparent; color: var(--text);
}

.header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.action-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text-on-dark); text-decoration: none; position: relative;
}
.action-item i { font-size: 1.4rem; }
.action-item span { font-size: 0.72rem; }
.action-item:hover { color: var(--gold-soft); }
.cart-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--gold); color: var(--green-dark);
    font-size: 0.68rem; font-weight: 700;
    min-width: 17px; height: 17px; line-height: 17px;
    text-align: center; border-radius: 9px; padding: 0 4px;
}

.header-nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--green-line);
}
.header-nav a {
    color: #c8d2cc; text-decoration: none; font-size: 0.9rem;
}
.header-nav a:hover { color: var(--gold-soft); }
.nav-logout {
    background: none; border: none; color: #c8d2cc;
    cursor: pointer; font: inherit; font-size: 0.9rem; padding: 0;
}
.nav-logout:hover { color: var(--gold-soft); }

@media (max-width: 700px) {
    .site-header__main { flex-wrap: wrap; gap: 0.75rem; }
    .header-search { order: 3; max-width: 100%; width: 100%; }
    .action-item span:not(.cart-badge) { display: none; }
    .header-nav { flex-wrap: wrap; gap: 1rem; }
}
/* ===== Контейнер ===== */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}

/* ===== Блок преимуществ (тёмная полоса) ===== */
.advantages {
    background: var(--green-dark);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 3rem;
    padding: 2.5rem calc(50vw - var(--maxw) / 2 + 1.5rem);
    position: relative;
    overflow: hidden;
}
.advantages::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 100%;
    background: repeating-linear-gradient(
        60deg, transparent, transparent 14px,
        rgba(199,154,59,0.07) 14px, rgba(199,154,59,0.07) 16px);
    pointer-events: none;
}
.advantages__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.advantage { text-align: center; }
.advantage i {
    font-size: 2rem;
    color: var(--gold);
}
.advantage__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-on-dark);
    margin: 0.6rem 0 0.25rem;
}
.advantage__text {
    font-size: 0.82rem;
    color: #a9b5ae;
}
/* планшет — 2×2 */
@media (max-width: 700px) {
    .advantages__inner { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
}

/* ===== CTA «Смотреть каталог» ===== */
.home-cta {
    text-align: center;
    padding: 2.5rem 0 1rem;
}
.home-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--text-on-dark);
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.home-cta__btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}
.home-cta__arrow { color: var(--gold); transition: transform 0.15s; }
.home-cta__btn:hover .home-cta__arrow { transform: translateX(4px); }

/* ===== Футер ===== */
.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #103b31 0%, #0b3027 45%, #08261f 100%);
    color: var(--text-on-dark);
    padding: 60px 0 0;
}

.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr 1.2fr 0.8fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

/* Колонка-заглушка для логотипа */
.footer__col--brand .footer__logo-stub {
    width: 64px;
    height: 64px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.footer__logo-img {
    width: 120px;
    margin-bottom: 0.5rem;
}
.footer__col--brand .footer__brand-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: var(--gold-soft);
    display: block;
    margin-bottom: 0.4rem;
}
.footer__col--brand .footer__brand-sub {
    font-size: 0.78rem;
    color: #7d8a83;
    margin-bottom: 0.9rem;
}
.footer__col--brand .footer__brand-desc {
    font-size: 0.875rem;
    color: #a9b5ae;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.footer__rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.footer__rating-count {
    font-size: 0.8rem;
    color: #7d8a83;
}

/* Все колонки */
.footer__col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin: 0 0 0.6rem;
    padding-bottom: 0.5rem;
    position: relative;
}
.footer__col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: var(--gold);
}
.footer__col a {
    display: block;
    color: #c8d2cc;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 0.55rem;
    transition: color 0.15s;
}
.footer__col a:hover {
    color: var(--gold-soft);
}

/* Пошив на заказ */
.footer__custom-text {
    color: #a9b5ae;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
}
.footer__custom-btn {
    display: inline-block;
    background: transparent;
    color: var(--gold-soft);
    border: 1.5px solid var(--gold);
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 1.25rem;
}
.footer__custom-btn:hover {
    background: var(--green-line);
    color: var(--gold-soft);
    border-color: var(--gold-soft);
}

/* Контакты */
.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.footer__contact-icon {
    width: 34px;
    height: 34px;
    background: #164337;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}
.footer__contact-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-on-dark);
}
.footer__contact-text span {
    font-size: 0.78rem;
    color: #7d8a83;
}

/* Соцсети */
.footer__social {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #164337;
    color: var(--text-on-dark);
    font-size: 1.15rem;
    text-decoration: none;
    margin-bottom: 0;
    transition: background 0.2s, color 0.2s;
}
.footer__social a:hover {
    background: var(--gold);
    color: var(--green-dark);
}

/* Нижняя полоса */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 1.5rem;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #7d8a83;
    font-size: 0.82rem;
}
.footer__bottom a {
    color: #7d8a83;
    text-decoration: none;
    transition: color 0.15s;
}
.footer__bottom a:hover { color: var(--gold-soft); }
.footer__bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer__bottom-dev a { color: var(--gold-soft); }

@media (max-width: 1000px) {
    .footer__cols {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    .footer__col--brand {
        grid-column: 1 / -1;
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== Кнопки ===== */
.btn-primary, button.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--gold-soft); }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover { background: var(--green); color: var(--text-on-dark); }

.link-button {
    background: none; border: none; color: var(--danger);
    cursor: pointer; font: inherit; padding: 0;
}
.inline-form { display: inline; }

/* ===== Каталог: фильтры ===== */
.category-nav { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.category-nav a {
    padding: 0.4rem 1rem; border: 1px solid var(--border-strong);
    border-radius: 20px; text-decoration: none; color: var(--text);
    font-size: 0.9rem; background: var(--surface);
}
.category-nav a:hover { border-color: var(--green); }
.category-nav a.active { background: var(--green); color: var(--text-on-dark); border-color: var(--green); }

/* ===== Каталог: сетка ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-card {
    background: #f0f4f1;
    border: 1px solid #dce5df;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.15s, transform 0.15s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--green-dark); }
.card-img-placeholder {
    width: 100%; aspect-ratio: 1; background: var(--green-dark);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.product-card__body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.product-card__body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    min-height: 2.6em;
    color: var(--text);
}
.product-card__body .card-btn {
    margin-top: auto;
}
.product-category { color: var(--text-muted); font-size: 0.85rem; }
.product-price { font-weight: 700; font-size: 1.15rem; color: var(--green); margin-top: 0.3rem; }
.out-of-stock { color: var(--danger); font-size: 0.85rem; }

/* ===== Страница товара ===== */
.breadcrumb { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.breadcrumb:hover { color: var(--green); }
.product-detail { display: flex; gap: 2.5rem; margin-top: 1rem; flex-wrap: wrap; }
.product-gallery { flex: 1 1 380px; min-width: 300px; }
.product-info { flex: 1 1 320px; min-width: 280px; }
.product-info h1 { margin-bottom: 0.3rem; }
.product-info .product-price { font-size: 1.6rem; margin: 0.8rem 0; }

.gallery-main {
    position: relative; width: 100%; aspect-ratio: 1;
    background: #f0eee8; border-radius: var(--radius-lg); overflow: hidden;
}
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.gallery-img.active { display: block; }
.gallery-placeholder {
    width: 100%; aspect-ratio: 1; background: #f0eee8; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.85); border: none; width: 42px; height: 42px;
    border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--green-dark);
}
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.add-form { display: flex; flex-direction: column; max-width: 300px; gap: 0.6rem; margin-top: 1.2rem; }
.add-form label { font-size: 0.9rem; font-weight: 600; }
.add-form select { padding: 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 0.95rem; }

/* ===== Корзина / таблицы ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.cart-table th, .cart-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.cart-table th { background: #f4f2ec; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.cart-table a { color: var(--green); text-decoration: none; font-weight: 500; }
.qty-input { width: 64px; padding: 0.35rem; border: 1px solid var(--border-strong); border-radius: 6px; }
.cart-total { font-size: 1.3rem; margin: 1rem 0; }
.cart-total strong { color: var(--green); }

/* ===== Формы (вход/регистрация/оформление) ===== */
.auth-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem; max-width: 420px; margin: 0 auto;
}
.auth-form { display: flex; flex-direction: column; gap: 0.3rem; }
.auth-form label { font-size: 0.9rem; font-weight: 600; margin-top: 0.5rem; }
.auth-form input, .auth-form textarea, .auth-form select {
    padding: 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius);
    font-family: inherit; font-size: 0.95rem; margin-bottom: 0.3rem;
}
.auth-form button { margin-top: 1rem; }
.form-error { color: var(--danger); background: #fbeaea; padding: 0.6rem 0.9rem; border-radius: var(--radius); font-size: 0.9rem; }
.form-link { text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.form-link a { color: var(--green); }

/* ===== Оформление заказа ===== */
.checkout-summary { background: var(--surface); border: 1px solid var(--border); padding: 1.25rem; border-radius: var(--radius-lg); margin-bottom: 1.5rem; }
.checkout-item { display: flex; justify-content: space-between; padding: 0.35rem 0; }

/* ===== Заказы ===== */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.order-header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.6rem; }
.order-status { color: var(--gold); font-weight: 600; }

/* ===== Отзывы ===== */
.reviews { margin-top: 3rem; }
.rating-summary { font-size: 1rem; color: var(--gold); font-weight: 500; margin-left: 0.5rem; }
.review-notice { color: var(--success); }
.review-form { display: flex; flex-direction: column; max-width: 480px; gap: 0.5rem; margin-bottom: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.review-form label { font-weight: 600; font-size: 0.9rem; }
.review-form select, .review-form textarea { padding: 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: inherit; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.review-header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.4rem; }
.review-rating { color: var(--gold); }
.review-date { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Адаптив ===== */
@media (max-width: 640px) {
    .site-header__inner { flex-direction: column; gap: 0.75rem; }
    .product-detail { flex-direction: column; }
}

/* ===== Главная ===== */
.hero {
    background: linear-gradient(115deg,
        var(--green-dark) 0%,
        var(--green-dark) 72%,
        var(--green) 52%,
        var(--green) 100%);
    border-radius: var(--radius-lg);
    padding: 5.5rem 3.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 60%;
    width: 2px;
    background: var(--gold);
    transform: skewX(-25deg);
    transform-origin: top;
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 56%;
}
.hero__title {
    color: var(--gold-soft);
    font-family: 'Oswald', sans-serif;
    font-size: 3.25rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 0 0.75rem;
}
.hero__subtitle {
    color: var(--text-on-dark);
    font-size: 1.4rem;
    margin: 0 0 0.85rem;
    font-weight: 500;
}
.hero__text {
    color: #c8d2cc;
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 0 1.75rem;
}
.hero__btn { font-size: 1.05rem; padding: 0.95rem 2.2rem; }

@media (max-width: 640px) {
    .hero {
        background: var(--green);
        padding: 3rem 1.5rem;
        text-align: center;
    }
    .hero::before { display: none; }
    .hero__content { max-width: 100%; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .hero__title { font-size: 3rem; }
}

.home-section { margin-bottom: 3rem; }
/* Заголовок секции с золотой линией слева */
.home-section h2 {
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--gold);
    padding-left: 14px;
    line-height: 1.1;
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
/* планшет */
@media (max-width: 900px) {
    .category-tiles { grid-template-columns: repeat(2, 1fr); }
}
/* мобильный */
@media (max-width: 560px) {
    .category-tiles { grid-template-columns: 1fr; }
}
.category-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 180px;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-on-dark);
    background: var(--green);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15,58,46,0.25);
}
/* золотой акцент-градиент в углу каждой плитки */
.category-tile::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(199,154,59,0.35), transparent 70%);
    pointer-events: none;
}
.category-tile__icon {
    font-size: 2.6rem;
    color: var(--gold-soft);
    position: relative;
    z-index: 1;
}
.category-tile__name {
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.category-tile__link {
    margin-top: auto;
    color: var(--gold-soft);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}
.category-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.category-card__arrow { color: var(--gold); font-size: 1.3rem; }
.cart-link { position: relative; }
.cart-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: top;
}
.fav-badge {
    /* копия cart-badge, но красная — в тон избранному */
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--heart);
    color: #fff;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.action-fav { position: relative; }
.cart-notice {
    background: #eaf6f0;
    border: 1px solid var(--success);
    color: #14785a;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cart-notice a { color: var(--green); font-weight: 600; text-decoration: none; }
.cart-notice--error { background: #fbeaea; border-color: var(--danger); color: var(--danger); }
.info-page { max-width: 760px; margin: 0 auto; }
.info-content { line-height: 1.7; }
.info-content h2 { margin-top: 1.5rem; font-size: 1.2rem; }
.info-content table { border-collapse: collapse; margin: 1rem 0; }
.info-content th, .info-content td { border: 1px solid var(--border); padding: 0.5rem 0.8rem; }
.info-content th { background: #f4f2ec; }
.guest-notice {
    background: #f4f2ec;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.guest-notice a { color: var(--green); font-weight: 600; }
.order-number-box {
    background: #f4f2ec;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}
.order-number-box strong { display: block; font-size: 1.1rem; color: var(--green); margin: 0.3rem 0; word-break: break-all; }
.order-number-box small { color: var(--text-muted); font-size: 0.82rem; }

.search-wrap { position: relative; flex: 1; max-width: 480px; }
.header-search { width: 100%; max-width: none; }
.search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
}
.search-suggest.active { display: block; }
.suggest-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.9rem; text-decoration: none; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: #f4f2ec; }
.suggest-item img, .suggest-noimg {
    width: 44px; height: 44px; border-radius: 6px; object-fit: cover;
    background: #f0eee8; flex-shrink: 0;
}
.suggest-info { flex: 1; display: flex; flex-direction: column; }
.suggest-name { font-size: 0.9rem; font-weight: 500; }
.suggest-cat { font-size: 0.78rem; color: var(--text-muted); }
.suggest-price { font-weight: 700; color: var(--green); font-size: 0.9rem; }
.suggest-empty { padding: 0.9rem; color: var(--text-muted); font-size: 0.9rem; text-align: center; }
.card-img-wrap { position: relative; }
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge--hit { background: var(--gold); color: var(--green-dark); }
.badge--out { background: rgba(28,28,26,0.78); color: #fff; }
.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0.6rem;
    background: var(--green);
    color: var(--text-on-dark);
    padding: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s;
}
.product-card:hover .card-btn { background: var(--gold); color: var(--green-dark); }
.orders-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.25rem 0;
    border-bottom: 2px solid var(--border);
}
.orders-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.orders-tab:hover { color: var(--green); }
.orders-tab.active {
    color: var(--green);
    border-bottom-color: var(--gold);
}
.orders-empty { color: var(--text-muted); padding: 1rem 0; }
.order-card--link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.order-card--link:hover { border-color: var(--gold); }
.order-card-summary { color: var(--text-muted); margin: 0.5rem 0; }
.order-card-more { color: var(--green); font-weight: 600; font-size: 0.9rem; }

.order-detail-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.order-detail-number { color: var(--text-muted); font-size: 0.85rem; margin: 0.3rem 0 0; word-break: break-all; }
.order-detail-date { color: var(--text-muted); margin: 0.2rem 0 0; }
.order-status--big { font-size: 1rem; padding: 0.4rem 1rem; }
.order-detail-grid {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start;
}
.order-detail-items, .order-detail-info {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
}
.order-detail-items h3, .order-detail-info h3 { margin-top: 0; }
.order-detail-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0; border-bottom: 1px solid var(--border); gap: 1rem;
}
.order-detail-item:last-of-type { border-bottom: none; }
.order-detail-item-name { font-weight: 500; display: block; }
.order-detail-item-size { font-size: 0.83rem; color: var(--text-muted); }
.order-detail-item-price { text-align: right; white-space: nowrap; }
.order-detail-item-price span { display: block; font-size: 0.83rem; color: var(--text-muted); }
.order-detail-total {
    text-align: right; font-size: 1.1rem; margin-top: 1rem; padding-top: 1rem;
    border-top: 2px solid var(--gold);
}
.info-label { color: var(--text-muted); font-size: 0.85rem; }
.order-detail-info p { margin: 0 0 0.8rem; }
@media (max-width: 700px) {
    .order-detail-grid { grid-template-columns: 1fr; }
}
.order-detail-item-left { display: flex; align-items: center; gap: 0.9rem; }
.order-item-photo {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
    flex-shrink: 0; background: #f0eee8;
}
.order-item-photo--empty { background: #f0eee8; }
.order-card-photos { display: flex; gap: 0.5rem; margin: 0.75rem 0; align-items: center; }
.order-card-photo {
    width: 48px; height: 48px; border-radius: 6px; object-fit: cover;
    background: #f0eee8; flex-shrink: 0;
}
.order-card-photo--empty { background: #f0eee8; }
.order-card-more-count {
    font-size: 0.85rem; color: var(--text-muted); font-weight: 600;
    margin-left: 0.2rem;
}
.product-price__old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 400;
    margin-right: 0.4rem;
}
.product-price__new { color: var(--danger); }
.badge--sale { background: var(--danger); color: #fff; }
/* Заявки на возврат */
.return-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.return-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.return-reason {
    font-weight: 600;
}
.return-status {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: #f0f0f0;
}
.return-status--pending { background: #fff3cd; color: #856404; }
.return-status--approved { background: #d4edda; color: #155724; }
.return-status--rejected { background: #f8d7da; color: #721c24; }
.return-status--refunded { background: #d1ecf1; color: #0c5460; }
.admin-comment {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin: 0 0 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    align-items: center;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 0.25rem;
}
.filter-chip {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--bg);
    transition: border-color 0.15s, background 0.15s;
}
.filter-chip:hover { border-color: var(--green); }
.filter-chip.active {
    background: var(--green);
    color: var(--text-on-dark);
    border-color: var(--green);
}
.filter-select {
    padding: 0.4rem 2rem 0.4rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--text);
    background: var(--bg);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f3a2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}
.filter-select:hover { border-color: var(--green); }
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}
.page-link {
    padding: 0.5rem 1rem;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}
.page-info {
    color: var(--text-muted);
}
.favorite-form { margin: 0.75rem 0; }
.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 170px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.favorite-icon { font-size: 1.1rem; line-height: 1; }
.favorite-btn:hover { border-color: var(--gold); }
.favorite-btn.is-favorite {
    color: var(--heart);
    border-color: var(--heart);
}
.product-card-wrap { position: relative; height: 100%; }
.card-img-wrap { position: relative; }  /* если ещё не relative */
.card-fav-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--heart);          /* красный — и для контура ♡, и для заливки ♥ */
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.18);
    transition: transform 0.15s;
}
.card-fav-btn:hover { transform: scale(1.12); }
.card-fav-btn.is-favorite { color: var(--heart); }
.account-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.account-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.15s, color 0.15s;
}
.account-nav__link:hover {
    border-color: var(--green);
    color: var(--green);
}
.site-header{
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green);
    border-bottom: 1px solid var(--green-line);
    overflow: hidden;
}
.site-header::after{
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 280px; height: 100%;
    background: repeating-linear-gradient(
        58deg,
        transparent, transparent 22px,
        rgba(199,154,59,.06) 22px, rgba(199,154,59,.06) 24px
    );
    pointer-events: none;
}
.site-header__main{ position: relative; z-index: 1; }

.logo{ gap: 12px; }
.logo-name{
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1.5px;
    color: var(--gold-soft);
    line-height: 1;
}
.logo-div{
    width: 1.5px; height: 34px;
    background: var(--gold); opacity: .55;
}
.logo-tag{
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: #a9b5ae;
    line-height: 1.35;
    text-transform: uppercase;
}
@media (max-width: 600px){
    .logo-div, .logo-tag{ display: none; }
}


/* ============================================================
   ХАРАКТЕРИСТИКИ ТОВАРА (состав, уход)
   ============================================================ */
.product-spec {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.product-spec h3 {
    font-size: 0.95rem;
    color: var(--green);
    margin: 0 0 0.4rem;
    font-weight: 600;
}
.product-spec p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* ============================================================
   СЕКЦИЯ ПОШИВА НА ГЛАВНОЙ + БЛОК В ФУТЕРЕ (пункт 6)
   Добавить в конец style.css
   ============================================================ */

/* --- Секция "Сошьём под вашу команду" на главной --- */
.custom-section {
    background: var(--green-dark);
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}
.custom-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.custom-section__inner {
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.custom-section__eyebrow {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}
.custom-section h2 {
    font-size: 2rem;
    color: var(--gold-soft);
    margin-bottom: 0.75rem;
}
.custom-section p {
    color: var(--on-dark-soft, #a9b5ae);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}
.custom-section__btn {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.custom-section__btn:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
}

/* --- Колонка "Пошив на заказ" в футере --- */
/* ============================================================
   ЦВЕТОВЫЕ ВАРИАЦИИ ТОВАРА (пункт 8) — добавить в конец style.css
   ============================================================ */

/* --- Страница товара: палитра цветов --- */
.color-picker {
    margin: 1.25rem 0;
}
.color-picker__label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.color-picker__label span {
    color: var(--text);
    font-weight: 600;
}
.color-picker__swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green);
}

/* --- Карточка каталога: мелкие кружочки --- */
.card-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}
.card-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, border-color 0.12s;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.card-color-swatch:hover {
    transform: scale(1.2);
}
.card-color-swatch.active {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green);
}