
/* ============================
   ЧАЙНЫЙ ДОМИК «ВУАЛЯ»
   Обновлённое оформление
   ============================ */

/* ОСНОВА */

:root {
    --green-dark: #293e32;
    --green: #49634d;
    --green-soft: #e9eee5;
    --green-light: #f1f3ec;
    --cream: #f8f6f0;
    --cream-dark: #eeeade;
    --white: #fffefa;
    --gold: #c6a66a;
    --gold-light: #e9d9b5;
    --text: #303d32;
    --muted: #7d8376;
    --border: #e8e4d9;
    --shadow: 0 8px 28px rgba(42, 59, 44, 0.07);
    --shadow-hover: 0 15px 35px rgba(42, 59, 44, 0.12);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    font-family: "Trebuchet MS", Arial, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

/* ШАПКА */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 13px 8%;
    background: var(--green-dark);
    position: relative;
    z-index: 10;
    box-shadow: 0 3px 18px rgba(26, 43, 31, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8f5ec;
    font-size: 23px;
    font-weight: bold;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.logo img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: #e7e9df;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--gold-light);
}

/* КНОПКА КОРЗИНЫ */

.header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    color: #f8f5ec;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.2s;
}

.header-cart:hover {
    background: var(--gold);
    color: var(--green-dark);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 12px;
}

/* ГЛАВНЫЙ ЭКРАН */

.hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 85px 10%;
    background:
        linear-gradient(
            90deg,
            rgba(27, 43, 31, 0.86),
            rgba(27, 43, 31, 0.32)
        ),
        url("images/tea.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 620px;
    color: #fffdf7;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 55px);
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.7px;
}

.subtitle {
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.description {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.8;
    color: #eeeae0;
    margin-bottom: 32px;
}

.hero-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gold);
    color: var(--green-dark);
    text-decoration: none;
    border-radius: 9px;
    font-weight: bold;
    transition: 0.25s;
}

.hero-button:hover {
    background: #e3c990;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

/* ОБЩИЕ ЗАГОЛОВКИ */

.catalog h2,
.cart h2,
.order h2,
.about h2,
.contacts h2 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.25;
    margin-bottom: 17px;
    color: var(--green-dark);
    letter-spacing: -0.4px;
}

/* КАТАЛОГ */

.catalog {
    padding: 90px 8%;
    text-align: center;
}

.catalog-description {
    margin-bottom: 42px;
    font-size: 17px;
    color: var(--muted);
}

/* ПОИСК И ФИЛЬТРЫ */

.catalog-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 45px;
}

.catalog-controls input,
.catalog-controls select {
    padding: 15px 17px;
    border: 1px solid #dedfd3;
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.catalog-controls input {
    flex: 1 1 250px;
    min-width: 200px;
}

.catalog-controls select {
    flex: 1 1 210px;
    min-width: 190px;
    cursor: pointer;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(73, 99, 77, 0.12);
}

/* СЕТКА ТОВАРОВ */

.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* КАРТОЧКИ ТОВАРОВ */

.product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    padding: 19px;
    border-radius: var(--radius);
    text-align: left;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    border-color: #d5d8c8;
    box-shadow: var(--shadow-hover);
}

/* ФОТОГРАФИИ */

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 11px;
    margin-bottom: 19px;
    background: var(--cream-dark);
    transition: transform 0.35s ease;
}

.product:hover img {
    transform: scale(1.025);
}

/* ИНФОРМАЦИЯ О ТОВАРЕ */

.product-type {
    display: inline-block;
    align-self: flex-start;
    color: #526b4e;
    background: var(--green-soft);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.product h3 {
    font-size: 19px;
    line-height: 1.45;
    margin-bottom: 9px;
    color: var(--green-dark);
    min-height: 53px;
}

.product-brand {
    display: block;
    color: #898573;
    font-size: 13px;
    margin-bottom: 7px;
}

.product-level {
    display: inline-block;
    align-self: flex-start;
    color: #806c43;
    background: #f5f0e4;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 13px;
}

.product p {
    font-size: 14px;
    line-height: 1.7;
    color: #777b70;
    margin-bottom: 18px;
    flex-grow: 1;
}

/* ЦЕНА */

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--green-dark);
}

.product-base-price {
    padding-top: 13px;
    border-top: 1px solid #eeeae0;
}

/* КНОПКА ПОДРОБНЕЕ */

.product a[href^="product.html"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid var(--green);
    border-radius: 9px;
    background: var(--white);
    color: var(--green-dark);
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: 0.25s;
}

.product a[href^="product.html"]:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fffefa;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(38, 59, 43, 0.13);
}

.product a[href^="product.html"]:active {
    transform: translateY(0);
    box-shadow: none;
}

.product a[href^="product.html"]:focus-visible {
    outline: 3px solid rgba(198, 166, 106, 0.55);
    outline-offset: 3px;
}

/* ВЫБОР ВЕСА */

.weight-label {
    display: block;
    margin: 2px 0 10px;
    color: #52634b;
    font-size: 14px;
    font-weight: bold;
}

.weight-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 13px;
}

.weight-button {
    min-width: 0;
    padding: 10px 4px;
    border: 1px solid #d9ded2;
    border-radius: 8px;
    background: #f7f7f1;
    color: #354b37;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.weight-button:hover {
    border-color: #82947a;
    background: #edf1e8;
}

.weight-button.active {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 2px 7px rgba(38, 59, 43, 0.13);
}

.weight-button:focus-visible {
    outline: 3px solid rgba(139, 149, 108, 0.35);
    outline-offset: 2px;
}

.selected-weight-price {
    min-height: 22px;
    margin-bottom: 15px;
    color: #64734f;
}

/* КНОПКА ПОКУПКИ */

.add-to-cart {
    width: 100%;
    padding: 14px;
    margin-top: auto;
    border: none;
    border-radius: 9px;
    background: var(--green-dark);
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.add-to-cart:hover:not(:disabled) {
    background: #496b4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(38, 59, 43, 0.15);
}

.add-to-cart:disabled {
    background: #a9ad9f;
    cursor: not-allowed;
}

/* КОРЗИНА */

.cart {
    padding: 85px 8%;
    background: var(--cream-dark);
    scroll-margin-top: 30px;
}

.cart h2 {
    text-align: center;
    margin-bottom: 35px;
}

#cart-items {
    max-width: 850px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 21px;
    margin-bottom: 13px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(38, 59, 43, 0.04);
}

.cart-item button {
    padding: 8px 13px;
    margin: 0 3px;
    border: none;
    border-radius: 7px;
    background: var(--green-dark);
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.cart-item button:hover {
    background: #496b4e;
}

.cart-total {
    max-width: 850px;
    margin: 25px auto 0;
    text-align: right;
    font-size: 23px;
    font-weight: bold;
    color: var(--green-dark);
}

/* ОФОРМЛЕНИЕ ЗАКАЗА */

.order {
    padding: 90px 8%;
    background: var(--cream);
}

.order h2 {
    text-align: center;
    margin-bottom: 38px;
}

#order-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

#order-form label {
    font-weight: bold;
    font-size: 14px;
    margin-top: 8px;
    color: #465747;
}

#order-form input,
#order-form select,
#order-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dedfd3;
    border-radius: 9px;
    background: var(--white);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

#order-form input:focus,
#order-form select:focus,
#order-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(73, 99, 77, 0.12);
}

#order-form textarea {
    min-height: 110px;
    resize: vertical;
}

#order-form button {
    padding: 15px;
    margin-top: 15px;
    border: none;
    border-radius: 9px;
    background: var(--green-dark);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

#order-form button:hover {
    background: #496b4e;
}

/* О НАС И КОНТАКТЫ */

.about,
.contacts {
    padding: 80px 10%;
    text-align: center;
}

.about {
    background: var(--cream-dark);
}

.about p,
.contacts p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: #687568;
}

/* ПОДВАЛ */

.footer {
    padding: 30px 25px;
    text-align: center;
    background: var(--green-dark);
    color: #f5f0e6;
    font-size: 14px;
}

/* АДМИНКА */

#product-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#product-form input,
#product-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d8d4c8;
    border-radius: 9px;
    background: var(--white);
    font-size: 15px;
    font-family: inherit;
}

#product-form button,
#refresh-button,
#logout-button,
#refresh-products-button {
    padding: 12px 16px;
    border: none;
    border-radius: 9px;
    background: var(--green-dark);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#product-form button:hover,
#refresh-button:hover,
#logout-button:hover,
#refresh-products-button:hover {
    background: #496b4e;
}

/* ПЛАНШЕТЫ */

@media (max-width: 1000px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header {
        padding: 18px 5%;
        gap: 15px;
    }

    .logo {
        font-size: 19px;
        gap: 9px;
    }

    .logo img {
        width: 65px;
        height: 65px;
    }

    nav {
        gap: 15px;
    }

    .catalog,
    .cart,
    .order {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* ТЕЛЕФОНЫ */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 18px;
        padding: 22px 5%;
    }

    .logo {
        font-size: 20px;
        text-align: center;
    }

    .logo img {
        width: 65px;
        height: 65px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 22px;
    }

    .header-cart {
        margin-top: 5px;
    }

    .hero {
        min-height: 470px;
        padding: 65px 7%;
        background-position: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 19px;
    }

    .description {
        font-size: 15px;
    }

    .catalog {
        padding: 65px 6%;
    }

    .catalog h2,
    .cart h2,
    .order h2,
    .about h2,
    .contacts h2 {
        font-size: 29px;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .catalog-controls {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .catalog-controls input,
    .catalog-controls select {
        width: 100%;
        min-width: 0;
    }

    .product img {
        height: 260px;
    }

    .product h3 {
        min-height: auto;
    }

    .cart {
        padding: 60px 6%;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-total {
        font-size: 20px;
    }

    .order {
        padding: 60px 6%;
    }

    #order-form {
        padding: 22px;
    }

    .about,
    .contacts {
        padding: 55px 7%;
    }
}

/* МАЛЕНЬКИЕ ТЕЛЕФОНЫ */

@media (max-width: 420px) {
    .logo {
        font-size: 17px;
        gap: 8px;
    }

    .logo img {
        width: 55px;
        height: 55px;
    }

    nav {
        gap: 12px 16px;
    }

    nav a {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .weight-options {
        gap: 5px;
    }

    .weight-button {
        font-size: 13px;
        padding: 9px 2px;
    }

    .product {
        padding: 13px;
    }

    .product img {
        height: 220px;
    }
}

/* УМЕНЬШЕНИЕ АНИМАЦИЙ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* УВЕЛИЧЕНИЕ ФОТОГРАФИЙ */

.zoomable-image {
    cursor: zoom-in;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(15, 24, 17, 0.88);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.2s ease;
}

.image-modal img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--cream);
    color: var(--green-dark);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.image-modal-close:hover {
    background: var(--gold);
    transform: scale(1.08);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .image-modal {
        padding: 15px;
    }

    .image-modal img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .image-modal-close {
        top: 12px;
        right: 12px;
    }
}

/* КАРТОЧКИ МАГАЗИНОВ */

.store-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 35px auto 0;
}

.store-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.store-card h3 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 21px;
}

.store-card p {
    color: #687568;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .store-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .store-card {
        padding: 23px;
    }
}

/* ЮРИДИЧЕСКИЕ СТРАНИЦЫ */

.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 8%;
    background: var(--green-dark);
    color: #f7f1e5;
}

.legal-header .logo {
    color: #f7f1e5;
    text-decoration: none;
}

.legal-header-link {
    color: #e9e4d7;
    text-decoration: none;
    white-space: nowrap;
}

.legal-header-link:hover {
    color: var(--gold-light);
}

.legal-content {
    width: min(900px, 84%);
    margin: 65px auto;
    padding: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex: 1;
}

.legal-content h1 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.legal-intro {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
}

.requisites-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.requisites-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) 1.2fr;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #eeeae0;
}

.requisites-row dt {
    color: #687568;
    font-weight: bold;
}

.requisites-row dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.requisites-row a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-note {
    margin-top: 25px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.legal-footer {
    padding: 24px;
    text-align: center;
    background: var(--green-dark);
    color: #f5f0e6;
    font-size: 14px;
}

.legal-footer a {
    color: #e9e4d7;
    text-decoration: none;
}

.legal-footer a:hover {
    color: var(--gold-light);
}

@media (max-width: 600px) {
    .legal-header {
        flex-direction: column;
        padding: 18px 6%;
    }

    .legal-content {
        width: 90%;
        margin: 35px auto;
        padding: 25px 20px;
    }

    .requisites-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* ОБЩЕЕ ОФОРМЛЕНИЕ ЮРИДИЧЕСКИХ СТРАНИЦ */

.legal-content h2 {
    margin: 28px 0 10px;
    color: var(--green-dark);
    font-size: 21px;
    line-height: 1.3;
}

.legal-content p,
.legal-content li {
    margin: 12px 0;
    color: #4f594b;
    font-size: 15px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    padding-left: 25px;
    margin: 12px 0 18px;
}

.legal-meta {
    margin-bottom: 24px !important;
    color: var(--muted) !important;
    font-size: 13px !important;
}

.legal-notice {
    margin: 22px 0;
    padding: 15px 18px;
    border-left: 4px solid var(--gold);
    border-radius: 0 9px 9px 0;
    background: var(--green-light);
    color: #5d604f;
    font-size: 14px;
    line-height: 1.7;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
}

.legal-footer a,
.footer a {
    color: #e9e4d7;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer a:hover,
.footer a:hover {
    color: var(--gold-light);
}

.footer a {
    display: inline-block;
    margin: 5px 8px;
}

@media (max-width: 600px) {
    .legal-content h2 {
        font-size: 19px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
    }
}

/* ============================
   АДМИН-ПАНЕЛЬ «ВУАЛЯ»
   ============================ */

.admin-page {
    background: #f4f3ec;
}

.admin-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding-top: 48px;
    padding-bottom: 80px;
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
    padding: 30px 34px;
    border-radius: 18px;
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(38, 59, 43, 0.12);
}

.admin-heading h1 {
    margin: 3px 0 5px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.admin-eyebrow {
    color: #c0cbb5;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.admin-subtitle {
    color: #e0e5da;
    font-size: 14px;
}

.admin-top-actions,
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.admin-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.admin-button:disabled {
    opacity: .6;
    cursor: wait;
}

.admin-button-primary {
    background: var(--green-dark);
    color: var(--white);
}

.admin-button-primary:hover:not(:disabled) {
    background: #496b4e;
}

.admin-button-light {
    background: #e9eee5;
    color: var(--green-dark);
}

.admin-button-light:hover:not(:disabled) {
    background: #dce5d6;
}

.admin-button-outline {
    border-color: rgba(255,255,255,.45);
    background: transparent;
    color: var(--white);
}

.admin-button-outline:hover:not(:disabled) {
    background: rgba(255,255,255,.1);
}

.admin-button-muted {
    background: #eeece4;
    color: #4c5948;
}

.admin-button-muted:hover:not(:disabled) {
    background: #e3e0d5;
}

.admin-button-danger {
    background: #f6e9e5;
    color: #984a3d;
}

.admin-button-danger:hover:not(:disabled) {
    background: #efd8d1;
}

.admin-section {
    margin-bottom: 34px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(38, 59, 43, .045);
}

.admin-section-heading,
.admin-list-heading,
.admin-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-section-heading {
    margin-bottom: 22px;
}

.admin-section-heading h2 {
    margin: 3px 0 0;
    color: var(--green-dark);
    font-size: 27px;
    text-align: left;
}

.admin-section .admin-eyebrow {
    color: #829071;
}

.admin-section-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.admin-loading,
.admin-empty,
.admin-error {
    padding: 22px;
    border-radius: 10px;
    background: #f7f5ee;
    color: #727968;
    text-align: center;
}

.admin-error {
    background: #fbefec;
    color: #984a3d;
}

.admin-order-card {
    margin-bottom: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.admin-order-card:last-child {
    margin-bottom: 0;
}

.admin-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eeeae0;
}

.admin-order-top h3 {
    color: var(--green-dark);
    font-size: 19px;
}

.admin-order-date {
    color: #858777;
    font-size: 12px;
}

.admin-order-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 20px;
    padding: 15px 0;
}

.admin-order-card p {
    margin: 7px 0;
    color: #5e6758;
    font-size: 13px;
}

.admin-order-products {
    padding: 14px 16px;
    border-radius: 9px;
    background: #f3f4ed;
    color: #40513c;
    font-size: 13px;
}

.admin-order-products ul {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
    padding-left: 19px;
}

.admin-order-products li span {
    display: block;
    color: #777c6e;
    font-size: 12px;
}

.admin-order-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
    margin: 15px 0;
    color: #69715f;
    font-size: 13px;
}

.admin-order-total strong {
    color: var(--green-dark);
}

.admin-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eeeae0;
}

.admin-status-row label {
    color: #52634b;
    font-size: 13px;
    font-weight: bold;
}

.admin-page select,
.admin-page input:not([type="checkbox"]):not([type="file"]),
.admin-page textarea {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dcd8cb;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.admin-page select:focus,
.admin-page input:focus,
.admin-page textarea:focus {
    border-color: #829071;
    box-shadow: 0 0 0 3px rgba(130, 144, 113, .13);
}

.admin-form {
    max-width: none !important;
    margin: 0 0 36px !important;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #faf9f4;
}

.admin-form-heading {
    margin-bottom: 20px;
}

.admin-form-heading h3,
.admin-list-heading h3 {
    margin-top: 3px;
    color: var(--green-dark);
    font-size: 20px;
}

.admin-form-hint {
    color: #929383;
    font-size: 11px;
}

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

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.admin-field label,
.admin-filters label {
    color: #4d5d47;
    font-size: 12px;
    font-weight: bold;
}

.admin-field-wide {
    grid-column: 1 / -1;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
}

.admin-field textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-field small {
    color: #858777;
    font-size: 11px;
}

.admin-image-preview-wrap {
    min-height: 10px;
    margin-top: 4px;
}

#image-preview {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
}

.admin-availability {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #52634b;
    font-size: 13px;
    cursor: pointer;
}

.admin-availability input {
    width: 17px;
    height: 17px;
    accent-color: var(--green);
}

.admin-form-actions {
    margin-top: 20px;
}

.admin-list-heading {
    margin: 0 0 16px;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr)) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f7f5ee;
}

.admin-filters > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-filters input,
.admin-filters select {
    width: 100%;
    min-height: 41px;
}

#products-container {
    display: grid;
    gap: 11px;
}

.admin-product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 17px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    transition: border-color .2s, background .2s;
}

.admin-product-card:hover {
    border-color: #c9d0bd;
}

.admin-product-card.is-hidden {
    background: #f8f7f2;
}

.admin-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border-radius: 9px;
    background: #f0eee5;
    color: #929383;
    font-size: 11px;
}

.admin-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-product-info {
    min-width: 0;
}

.admin-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-product-title-row h3 {
    color: var(--green-dark);
    font-size: 16px;
    line-height: 1.4;
}

.admin-product-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.status-visible {
    background: #e8efe2;
    color: #4d7045;
}

.status-hidden {
    background: #f1e9e4;
    color: #95614f;
}

.admin-product-meta {
    margin: 5px 0 !important;
    color: #8a806c !important;
    font-size: 12px !important;
}

.admin-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 7px 0;
}

.admin-product-tags span {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f1f0e8;
    color: #69715f;
    font-size: 10px;
}

.admin-product-price {
    margin: 6px 0 !important;
    color: var(--green-dark) !important;
    font-size: 14px !important;
    font-weight: bold;
}

.admin-product-price small {
    color: #858777;
    font-size: 11px;
    font-weight: normal;
}

.admin-product-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 5px 0 10px !important;
    color: #77776c !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.admin-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-product-actions .admin-button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
}

@media (max-width: 1050px) {
    .admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-search-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .admin-shell {
        padding: 25px 5% 55px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .admin-section {
        padding: 20px 15px;
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-form {
        padding: 18px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-field-wide {
        grid-column: auto;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-search-wrap {
        grid-column: auto;
    }

    .admin-product-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 11px;
        padding: 11px;
    }

    .admin-product-image {
        width: 82px;
        height: 82px;
    }

    .admin-product-title-row {
        flex-direction: column;
        gap: 5px;
    }

    .admin-product-title-row h3 {
        font-size: 14px;
    }

    .admin-order-details {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .admin-order-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .admin-status-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-status-row select,
    .admin-status-row button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .admin-top-actions {
        width: 100%;
    }

    .admin-top-actions .admin-button {
        flex: 1;
    }

    .admin-product-actions .admin-button {
        flex: 1 1 auto;
    }

    .admin-product-card {
        grid-template-columns: 1fr;
    }

    .admin-product-image {
        width: 100%;
        height: 145px;
    }

    .admin-product-title-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .admin-order-card {
        padding: 15px;
    }
}

/* ==================================================
   НОВЫЙ ДИЗАЙН «ВУАЛЯ»
   Основное визуальное обновление
   Добавить в самый конец style.css
   ================================================== */

:root {
    --green-dark: #24382d;
    --green: #3f6049;
    --green-soft: #e5ece3;
    --green-light: #f0f3ed;

    --cream: #f7f5ef;
    --cream-dark: #eeece3;
    --white: #fff;

    --gold: #c5a36a;
    --gold-light: #e5d3ae;

    --text: #29372e;
    --muted: #7c847b;
    --border: #e5e7df;

    --shadow: 0 8px 30px rgba(35, 55, 42, .06);
    --shadow-hover: 0 18px 40px rgba(35, 55, 42, .13);

    --radius: 18px;
}

/* ОБЩИЕ НАСТРОЙКИ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    background: #f7f6f1;
    color: var(--text);
    line-height: 1.7;
}

::selection {
    background: #dce7d9;
    color: var(--green-dark);
}

a,
button,
input,
select,
textarea {
    transition: .22s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(197, 163, 106, .55);
    outline-offset: 3px;
}

/* ШАПКА */

.header {
    position: sticky;
    top: 0;
    padding: 12px 7%;
    min-height: 88px;
    background: rgba(36, 56, 45, .97);
    backdrop-filter: blur(14px);
    box-shadow: 0 5px 24px rgba(20, 35, 25, .13);
}

.logo {
    gap: 14px;
    font-size: 24px;
    letter-spacing: .4px;
}

.logo img {
    width: 68px;
    height: 68px;
}

nav {
    gap: 30px;
}

nav a {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e9df;
}

nav a::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .22s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #fff;
}

.header-cart {
    padding: 12px 20px;
    border: 1px solid rgba(229, 211, 174, .65);
    border-radius: 50px;
    background: rgba(255, 255, 255, .04);
}

.header-cart:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-dark);
    transform: translateY(-2px);
}

.cart-count {
    background: #e5d3ae;
}

/* ГЛАВНЫЙ ЭКРАН */

.hero {
    min-height: 650px;
    padding: 100px 10%;
    background:
        linear-gradient(
            90deg,
            rgba(24, 41, 30, .91) 0%,
            rgba(24, 41, 30, .72) 45%,
            rgba(24, 41, 30, .12) 100%
        ),
        url("images/tea.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(42px, 5.5vw, 64px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.subtitle {
    margin-bottom: 20px;
    color: #e6c991;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: .3px;
}

.description {
    max-width: 540px;
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
    line-height: 1.9;
}

.hero-button {
    padding: 16px 34px;
    border-radius: 50px;
    background: #d2b47d;
    color: #24382d;
    font-size: 15px;
    letter-spacing: .2px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.hero-button:hover {
    background: #e4c994;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

/* ЗАГОЛОВКИ СЕКЦИЙ */

.catalog h2,
.cart h2,
.order h2,
.about h2,
.contacts h2 {
    margin-bottom: 15px;
    color: var(--green-dark);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
}

.catalog,
.cart,
.order,
.about,
.contacts {
    position: relative;
}

.catalog {
    padding: 100px 8%;
    background: #f8f7f2;
}

.catalog-description {
    max-width: 650px;
    margin: 0 auto 45px;
    color: #858b80;
    font-size: 16px;
}

/* ПОИСК И ФИЛЬТРЫ */

.catalog-controls {
    max-width: 1050px;
    gap: 12px;
    margin-bottom: 50px;
}

.catalog-controls input,
.catalog-controls select {
    min-height: 52px;
    padding: 14px 18px;
    border: 1px solid #e1e4db;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 3px 12px rgba(35, 55, 42, .025);
}

.catalog-controls input::placeholder {
    color: #a1a69d;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
    border-color: #789078;
    box-shadow: 0 0 0 4px rgba(73, 99, 77, .1);
}

/* СЕТКА КАТАЛОГА */

.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* КАРТОЧКИ */

.product {
    position: relative;
    padding: 17px;
    border: 1px solid #e9e9e1;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(35, 55, 42, .045);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.product:hover {
    transform: translateY(-7px);
    border-color: #d4ddcf;
    box-shadow: 0 18px 38px rgba(35, 55, 42, .11);
}

.product img {
    height: 270px;
    margin-bottom: 20px;
    border-radius: 13px;
    background: #f3f2eb;
    object-fit: cover;
}

.product:hover img {
    transform: scale(1.015);
}

.product-type {
    padding: 6px 13px;
    border-radius: 50px;
    background: #eaf0e7;
    color: #49664b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}

.product h3 {
    margin-bottom: 10px;
    color: #293c30;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 700;
}

.product-brand {
    color: #969486;
    font-size: 12px;
}

.product-level {
    padding: 5px 11px;
    border-radius: 50px;
    background: #f5f0e5;
    color: #8a7146;
    font-size: 11px;
}

.product p {
    color: #7c8379;
    font-size: 14px;
    line-height: 1.75;
}

.product-price {
    color: #304b37;
    font-size: 21px;
    font-weight: 700;
}

.product-base-price {
    padding-top: 15px;
    border-top: 1px solid #eeeee8;
}

/* КНОПКИ КАРТОЧЕК */

.product a[href^="product.html"] {
    min-height: 45px;
    border: 1px solid #dce4d9;
    border-radius: 10px;
    background: #f8faf6;
    color: #38533d;
    font-size: 13px;
    font-weight: 700;
}

.product a[href^="product.html"]:hover {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: #fff;
}

.weight-label {
    color: #465d48;
    font-size: 13px;
}

.weight-options {
    gap: 8px;
}

.weight-button {
    padding: 10px 5px;
    border: 1px solid #e0e5dc;
    border-radius: 9px;
    background: #f8f9f5;
    color: #465b47;
    font-size: 13px;
}

.weight-button:hover {
    border-color: #9eaf99;
    background: #edf2e9;
}

.weight-button.active {
    border-color: #304b37;
    background: #304b37;
    color: #fff;
    box-shadow: 0 4px 10px rgba(36, 56, 45, .15);
}

.selected-weight-price {
    color: #667b5d;
    font-size: 14px;
}

.add-to-cart {
    min-height: 48px;
    padding: 13px 17px;
    border-radius: 10px;
    background: #304b37;
    font-size: 14px;
    font-weight: 700;
}

.add-to-cart:hover:not(:disabled) {
    background: #496b4e;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(36, 56, 45, .15);
}

/* КОРЗИНА */

.cart {
    padding: 95px 8%;
    background: #eeefe8;
}

.cart h2 {
    margin-bottom: 40px;
}

#cart-items {
    max-width: 900px;
}

.cart-item {
    padding: 23px 25px;
    margin-bottom: 15px;
    border: 1px solid #e5e7dd;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(35, 55, 42, .035);
}

.cart-item button {
    min-width: 36px;
    min-height: 34px;
    border-radius: 8px;
    background: #3d5942;
}

.cart-item button:hover {
    background: #273c2e;
}

.cart-total {
    padding-top: 20px;
    border-top: 1px solid #d9ded3;
    font-size: 25px;
}

/* ОФОРМЛЕНИЕ ЗАКАЗА */

.order {
    padding: 100px 8%;
    background: #f8f7f2;
}

#order-form {
    max-width: 650px;
    gap: 15px;
    padding: 38px;
    border: 1px solid #e8e9e1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(35, 55, 42, .07);
}

#order-form label {
    margin-top: 9px;
    color: #405443;
    font-size: 13px;
    font-weight: 700;
}

#order-form input,
#order-form select,
#order-form textarea {
    min-height: 49px;
    padding: 13px 15px;
    border: 1px solid #e0e3da;
    border-radius: 10px;
    background: #fcfcf9;
    font-size: 14px;
}

#order-form input:focus,
#order-form select:focus,
#order-form textarea:focus {
    border-color: #789078;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(73, 99, 77, .09);
}

#order-form textarea {
    min-height: 120px;
}

#order-form button {
    min-height: 50px;
    border-radius: 10px;
    background: #304b37;
    font-size: 15px;
}

#order-form button:hover {
    background: #496b4e;
    transform: translateY(-2px);
}

/* О НАС И КОНТАКТЫ */

.about,
.contacts {
    padding: 95px 10%;
}

.about {
    background: #eeefe8;
}

.about p,
.contacts p {
    color: #707c70;
    font-size: 16px;
    line-height: 1.95;
}

/* МАГАЗИНЫ */

.store-list {
    gap: 25px;
    max-width: 950px;
}

.store-card {
    padding: 32px;
    border: 1px solid #e6e8df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(35, 55, 42, .05);
}

.store-card:hover {
    transform: translateY(-6px);
    border-color: #d2ddce;
    box-shadow: var(--shadow-hover);
}

.store-card h3 {
    color: #304b37;
    font-size: 22px;
}

.store-card p {
    color: #788176;
    line-height: 1.8;
}

/* ПОДВАЛ */

.footer {
    padding: 38px 25px;
    background: #24382d;
    color: #e8e9df;
    font-size: 13px;
    line-height: 2;
}

.footer a:hover {
    color: #e5c990;
}

/* ЮРИДИЧЕСКИЕ СТРАНИЦЫ */

.legal-header {
    min-height: 90px;
    padding: 12px 7%;
    background: #24382d;
}

.legal-content {
    width: min(920px, 88%);
    margin: 65px auto;
    padding: 50px;
    border: 1px solid #e7e8df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(35, 55, 42, .06);
}

.legal-content h1 {
    color: #293e32;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.8px;
}

.legal-content h2 {
    margin-top: 34px;
    color: #354d3a;
    font-size: 22px;
}

.legal-content p,
.legal-content li {
    color: #596459;
    font-size: 15px;
    line-height: 1.9;
}

.legal-notice {
    padding: 18px 21px;
    border-left: 4px solid #c5a36a;
    border-radius: 0 12px 12px 0;
    background: #f3f5ed;
    color: #5d6859;
}

.legal-footer {
    background: #24382d;
}

/* УВЕЛИЧЕНИЕ ФОТО */

.image-modal {
    background: rgba(18, 29, 21, .93);
    backdrop-filter: blur(9px);
}

.image-modal img {
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
}

.image-modal-close {
    background: #f7f5ef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

/* ==================================================
   АДМИН-ПАНЕЛЬ
   ================================================== */

.admin-page {
    background: #f2f3ee;
}

.admin-shell {
    max-width: 1540px;
    padding-top: 45px;
    padding-bottom: 85px;
}

.admin-heading {
    padding: 35px 38px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: linear-gradient(125deg, #24382d, #3d5b43);
    box-shadow: 0 14px 35px rgba(36, 56, 45, .15);
}

.admin-heading h1 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.8px;
}

.admin-eyebrow {
    letter-spacing: 2px;
    color: #d0c09d;
}

.admin-section {
    padding: 32px;
    border: 1px solid #e5e8df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 25px rgba(35, 55, 42, .045);
}

.admin-section-heading h2 {
    font-size: 28px;
}

.admin-section-description {
    color: #858d80;
}

.admin-button {
    min-height: 42px;
    padding: 11px 17px;
    border-radius: 10px;
    font-size: 12px;
}

.admin-button-primary {
    background: #304b37;
}

.admin-button-primary:hover:not(:disabled) {
    background: #496b4e;
}

.admin-button-light {
    background: #eaf0e7;
    color: #304b37;
}

.admin-button-light:hover:not(:disabled) {
    background: #dce8d7;
}

.admin-button-muted {
    background: #f0f1eb;
    color: #52614f;
}

.admin-button-danger {
    background: #f8eae6;
    color: #984a3d;
}

.admin-order-card {
    padding: 25px;
    border: 1px solid #e6e9df;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 55, 42, .025);
}

.admin-order-top h3 {
    font-size: 20px;
}

.admin-order-products {
    border: 1px solid #e9ece3;
    border-radius: 11px;
    background: #f5f7f1;
}

.admin-page select,
.admin-page input:not([type="checkbox"]):not([type="file"]),
.admin-page textarea {
    min-height: 42px;
    border: 1px solid #dfe3d9;
    border-radius: 9px;
    background: #fff;
}

.admin-page select:focus,
.admin-page input:focus,
.admin-page textarea:focus {
    border-color: #80977c;
    box-shadow: 0 0 0 4px rgba(73, 99, 77, .09);
}

.admin-form {
    padding: 28px;
    border: 1px solid #e6e9df;
    border-radius: 15px;
    background: #f8f9f5;
}

.admin-form-heading h3,
.admin-list-heading h3 {
    font-size: 21px;
}

.admin-field label,
.admin-filters label {
    color: #455b47;
    font-size: 12px;
}

.admin-filters {
    padding: 20px;
    border: 1px solid #e6e9df;
    border-radius: 13px;
    background: #f6f7f2;
}

.admin-product-card {
    padding: 17px;
    border: 1px solid #e7e9e1;
    border-radius: 13px;
    background: #fff;
}

.admin-product-card:hover {
    border-color: #bdcdb8;
    box-shadow: 0 5px 16px rgba(35, 55, 42, .05);
}

.admin-product-image {
    border-radius: 11px;
    background: #f1f3ed;
}

.admin-product-title-row h3 {
    color: #2c4232;
    font-size: 17px;
}

.admin-product-price {
    color: #304b37 !important;
    font-size: 15px !important;
}

.admin-product-actions .admin-button {
    border-radius: 8px;
}

/* АДАПТИВНОСТЬ */

@media (min-width: 1300px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .product {
        padding: 19px;
    }

    .product img {
        height: 290px;
    }
}

@media (max-width: 1000px) {
    .header {
        padding-left: 5%;
        padding-right: 5%;
    }

    nav {
        gap: 17px;
    }

    .hero {
        min-height: 560px;
    }

    .catalog,
    .cart,
    .order {
        padding-left: 5%;
        padding-right: 5%;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .header {
        position: relative;
        padding: 20px 5%;
        gap: 16px;
    }

    nav {
        gap: 13px 22px;
    }

    .hero {
        min-height: 490px;
        padding: 65px 7%;
        background-position: center;
    }

    .hero h1 {
        font-size: 39px;
    }

    .catalog {
        padding: 70px 6%;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product {
        padding: 17px;
    }

    .product img {
        height: 280px;
    }

    .cart,
    .order {
        padding: 70px 6%;
    }

    #order-form {
        padding: 25px;
    }

    .about,
    .contacts {
        padding: 65px 7%;
    }

    .legal-content {
        width: 90%;
        padding: 30px 24px;
    }

    .store-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 17px;
    }

    .logo img {
        width: 55px;
        height: 55px;
    }

    .hero {
        min-height: 440px;
        padding: 55px 7%;
    }

    .hero h1 {
        font-size: 33px;
    }

    .subtitle {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
    }

    .product img {
        height: 235px;
    }

    .product h3 {
        font-size: 18px;
    }

    #order-form {
        padding: 20px 16px;
    }

    .legal-content {
        padding: 25px 18px;
    }
}

/* =========================================
   ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ «ВУАЛЯ»
   Финальное оформление
   ========================================= */

.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, rgba(229, 236, 227, .45), transparent 55%),
        #f7f6f1;
}

.legal-header {
    min-height: 90px;
    padding: 14px 8%;
    border-bottom: 1px solid rgba(229, 211, 174, .15);
}

.legal-header .logo {
    font-size: 22px;
}

.legal-header-link {
    padding: 10px 17px;
    border: 1px solid rgba(229, 211, 174, .45);
    border-radius: 30px;
    font-size: 13px;
    transition: .2s ease;
}

.legal-header-link:hover {
    background: var(--gold);
    color: var(--green-dark);
}

.legal-content {
    width: min(940px, 90%);
    margin: 55px auto;
    padding: 55px 60px;
    border: 1px solid #e8e9e1;
    border-radius: 20px;
    background: #fffefa;
    box-shadow: 0 15px 45px rgba(35, 55, 42, .065);
}

/* Заголовки */

.legal-content h1 {
    margin-bottom: 15px;
    color: #293e32;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -.8px;
}

.legal-content h2 {
    position: relative;
    margin: 38px 0 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e9eae2;
    color: #354d3a;
    font-size: 21px;
    line-height: 1.4;
}

.legal-content h2:first-of-type {
    margin-top: 28px;
}

.legal-content h3 {
    margin: 23px 0 10px;
    color: #465c48;
    font-size: 17px;
}

/* Основной текст */

.legal-content p {
    margin: 13px 0;
    color: #596459;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.legal-content strong {
    color: #354b39;
    font-weight: 700;
}

.legal-content li {
    margin: 9px 0;
    padding-left: 4px;
    color: #596459;
    font-size: 15px;
    line-height: 1.85;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0 22px;
    padding-left: 27px;
}

.legal-content li::marker {
    color: #a88a56;
}

/* Ссылки */

.legal-content a {
    color: #496b4e;
    text-decoration: underline;
    text-decoration-color: #c5a36a;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.legal-content a:hover {
    color: #24382d;
    text-decoration-color: #24382d;
}

/* Дата и вводный текст */

.legal-meta {
    display: inline-block;
    margin: 5px 0 25px !important;
    padding: 7px 13px;
    border-radius: 30px;
    background: #f0f3ed;
    color: #758071 !important;
    font-size: 12px !important;
}

.legal-intro {
    margin: 18px 0 30px !important;
    padding: 19px 22px;
    border-left: 4px solid #c5a36a;
    border-radius: 0 12px 12px 0;
    background: #f5f6f0;
    color: #566451;
    font-size: 15px;
    line-height: 1.85;
}

/* Важные уведомления */

.legal-notice {
    margin: 25px 0;
    padding: 20px 23px;
    border: 1px solid #e6e9df;
    border-left: 4px solid #c5a36a;
    border-radius: 0 12px 12px 0;
    background: #f3f5ed;
    color: #596459;
    font-size: 14px;
    line-height: 1.85;
}

.legal-notice strong {
    color: #354d3a;
}

/* Реквизиты */

.requisites-list {
    margin-top: 20px;
    padding: 5px 22px;
    border: 1px solid #e8e9e1;
    border-radius: 13px;
    background: #fafaf6;
}

.requisites-row {
    grid-template-columns: minmax(180px, .85fr) 1.15fr;
    gap: 22px;
    padding: 17px 0;
    border-bottom: 1px solid #e9eae2;
}

.requisites-row:last-child {
    border-bottom: none;
}

.requisites-row dt {
    color: #7b8377;
    font-size: 13px;
}

.requisites-row dd {
    color: #354b39;
    font-size: 14px;
    font-weight: 600;
}

/* Дополнительные примечания */

.legal-note {
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e9eae2;
    color: #858b80;
    font-size: 13px;
    line-height: 1.8;
}

/* Подвал */

.legal-footer {
    min-height: 75px;
    padding: 25px 20px;
    border-top: 1px solid rgba(229, 211, 174, .12);
    background: #24382d;
    color: #e8e9df;
    font-size: 13px;
}

.legal-footer a {
    color: #e5d3ae;
}

.legal-footer a:hover {
    color: #fff;
}

/* Адаптация */

@media (max-width: 768px) {
    .legal-header {
        padding: 18px 5%;
    }

    .legal-content {
        width: 92%;
        margin: 30px auto;
        padding: 32px 27px;
        border-radius: 15px;
    }

    .legal-content h1 {
        font-size: 29px;
    }

    .legal-content h2 {
        margin-top: 30px;
        font-size: 19px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .legal-header {
        gap: 12px;
    }

    .legal-header .logo {
        font-size: 18px;
        white-space: normal;
    }

    .legal-header .logo img {
        width: 55px;
        height: 55px;
    }

    .legal-header-link {
        font-size: 12px;
        padding: 8px 13px;
    }

    .legal-content {
        width: 94%;
        margin: 20px auto;
        padding: 25px 18px;
    }

    .legal-content h1 {
        font-size: 26px;
    }

    .legal-content h2 {
        font-size: 18px;
    }

    .requisites-list {
        padding: 5px 15px;
    }

    .requisites-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 13px 0;
    }

    .legal-intro,
    .legal-notice {
        padding: 15px;
    }
}

/* =====================================
   FIX: СТРАНИЦА РЕКВИЗИТОВ
   ===================================== */

body.legal-page {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f3f4ed !important;
    color: #29372e !important;
}

body.legal-page .legal-header {
    width: 100% !important;
    min-height: 90px !important;
    padding: 15px 8% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #24382d !important;
}

body.legal-page .legal-content {
    display: block !important;
    width: min(940px, 90%) !important;
    max-width: 940px !important;
    margin: 55px auto !important;
    padding: 50px 60px !important;
    background: #fffefa !important;
    border: 1px solid #e5e7df !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 45px rgba(35, 55, 42, .09) !important;
    flex: 1 0 auto !important;
}

body.legal-page .legal-content h1 {
    margin: 0 0 25px !important;
    color: #293e32 !important;
    font-size: 38px !important;
    line-height: 1.25 !important;
}

body.legal-page .legal-content h2 {
    margin: 38px 0 15px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e5e7df !important;
    color: #354d3a !important;
    font-size: 22px !important;
}

body.legal-page .legal-content p,
body.legal-page .legal-content li {
    color: #596459 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
}

body.legal-page .legal-content p {
    margin: 15px 0 !important;
}

body.legal-page .legal-content a {
    color: #496b4e !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

body.legal-page .legal-content a:hover {
    color: #24382d !important;
}

body.legal-page .legal-intro {
    margin: 20px 0 30px !important;
    padding: 20px 23px !important;
    border-left: 4px solid #c5a36a !important;
    border-radius: 0 12px 12px 0 !important;
    background: #f0f3ed !important;
}

body.legal-page .requisites-list {
    display: grid !important;
    gap: 0 !important;
    margin: 25px 0 !important;
    padding: 5px 22px !important;
    border: 1px solid #e5e7df !important;
    border-radius: 13px !important;
    background: #fafaf6 !important;
}

body.legal-page .requisites-row {
    display: grid !important;
    grid-template-columns: minmax(180px, .85fr) 1.15fr !important;
    gap: 22px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid #e9eae2 !important;
}

body.legal-page .requisites-row:last-child {
    border-bottom: none !important;
}

body.legal-page .requisites-row dt {
    color: #7b8377 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.legal-page .requisites-row dd {
    margin: 0 !important;
    color: #354b39 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    overflow-wrap: anywhere !important;
}

body.legal-page .legal-note {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e9eae2 !important;
    color: #858b80 !important;
    font-size: 13px !important;
}

body.legal-page .legal-footer {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 25px !important;
    padding: 25px !important;
    background: #24382d !important;
    color: #e8e9df !important;
}

body.legal-page .legal-footer a {
    color: #e5d3ae !important;
}

@media (max-width: 768px) {
    body.legal-page .legal-content {
        width: 92% !important;
        margin: 30px auto !important;
        padding: 30px 25px !important;
    }

    body.legal-page .legal-content h1 {
        font-size: 30px !important;
    }
}

@media (max-width: 480px) {
    body.legal-page .legal-header {
        flex-direction: column !important;
        gap: 15px !important;
    }

    body.legal-page .legal-content {
        width: 94% !important;
        padding: 24px 17px !important;
    }

    body.legal-page .requisites-row {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
}

/* ЕДИНОЕ ОФОРМЛЕНИЕ ЮРИДИЧЕСКИХ СТРАНИЦ */

body:has(main.legal-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f4ed;
    color: #29372e;
}

body:has(main.legal-page) > .header {
    background: #24382d;
    color: #fffefa;
    padding: 18px 0;
    border-bottom: 1px solid rgba(229, 211, 174, .2);
}

body:has(main.legal-page) > .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body:has(main.legal-page) > .header .logo {
    color: #fffefa;
    text-decoration: none;
    font-size: 21px;
}

body:has(main.legal-page) > .header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

body:has(main.legal-page) > .header nav a {
    color: #e5d3ae;
    text-decoration: none;
    font-size: 14px;
}

body:has(main.legal-page) > .header nav a:hover {
    color: #fff;
}

body:has(main.legal-page) > main.legal-page {
    box-sizing: border-box;
    width: min(940px, 92%);
    max-width: 940px;
    margin: 50px auto;
    padding: 50px 60px;
    flex: 1 0 auto;
    background: #fffefa;
    border: 1px solid #e5e7df;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(35, 55, 42, .08);
}

body:has(main.legal-page) main.legal-page h1 {
    margin: 0 0 28px;
    color: #293e32;
    font-size: 34px;
    line-height: 1.3;
}

body:has(main.legal-page) main.legal-page h2 {
    margin: 38px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7df;
    color: #354d3a;
    font-size: 22px;
    line-height: 1.4;
}

body:has(main.legal-page) main.legal-page p,
body:has(main.legal-page) main.legal-page li {
    color: #596459;
    font-size: 15px;
    line-height: 1.9;
}

body:has(main.legal-page) main.legal-page p {
    margin: 15px 0;
}

body:has(main.legal-page) main.legal-page ul {
    padding-left: 25px;
    margin: 15px 0 25px;
}

body:has(main.legal-page) main.legal-page li {
    margin-bottom: 7px;
}

body:has(main.legal-page) main.legal-page a {
    color: #496b4e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:has(main.legal-page) main.legal-page a:hover {
    color: #24382d;
}

body:has(main.legal-page) main.legal-page hr {
    margin: 35px 0 25px;
    border: 0;
    border-top: 1px solid #e5e7df;
}

body:has(main.legal-page) main.legal-page strong {
    color: #354b39;
}

@media (max-width: 768px) {
    body:has(main.legal-page) > .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    body:has(main.legal-page) > .header nav {
        gap: 15px;
    }

    body:has(main.legal-page) > main.legal-page {
        width: 94%;
        margin: 25px auto;
        padding: 30px 25px;
    }

    body:has(main.legal-page) main.legal-page h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    body:has(main.legal-page) > main.legal-page {
        padding: 23px 17px;
    }

    body:has(main.legal-page) main.legal-page h2 {
        font-size: 19px;
    }

    body:has(main.legal-page) main.legal-page p,
    body:has(main.legal-page) main.legal-page li {
        font-size: 14px;
    }
}
