:root {
    --green: #2E5A3C;
    --green-dark: #234A2E;
    --green-soft: #e8f0eb;
    --cream: #f4efe4;
    --paper: #fbfaf7;
    --ink: #1d2924;
    --muted: #758078;
    --line: #e2e0d7;
    --accent: #d9a98f;
    --danger: #a34e46;
    --shadow: 0 18px 50px rgba(35, 74, 46, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 247, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 224, 215, .75);
}

.site-nav {
    max-width: 1240px;
    margin: auto;
    padding: 15px 28px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 136px;
    height: auto;
}

.site-nav nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: #5d675f;
    flex: 1;
}

.site-nav nav a,
.header-contact,
.footer-brand {
    transition: color .2s ease, opacity .2s ease;
}

.site-nav nav a:hover,
.header-contact:hover,
.site-footer a:not(.footer-brand):hover {
    color: var(--green-dark);
}

.header-contact {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}

.hero-shop {
    max-width: 1240px;
    margin: auto;
    padding: 70px 28px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-copy {
    padding-left: 35px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    color: #8a948c;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(54px, 6vw, 88px);
    line-height: .98;
    letter-spacing: -.05em;
    margin: 0 0 28px;
    color: var(--green);
}

.hero-copy h1 em {
    font-weight: 500;
    color: #71826e;
}

.hero-copy p {
    max-width: 500px;
    color: #68736c;
    font-size: 17px;
    margin: 0 0 32px;
}

.hero-photo {
    position: relative;
    width: min(100%, 464px);
    justify-self: end;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 464 / 620;
    object-fit: cover;
    border-radius: 4px;
    background: var(--green-dark);
}

.video-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 24px;
    background: rgba(29, 41, 36, .88);
    color: white;
    font-size: 12px;
    line-height: 1.4;
}

.video-toggle[hidden] {
    display: none;
}

.video-toggle:hover {
    background: var(--green-dark);
}

.video-toggle:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.hero-note {
    position: absolute;
    left: -25px;
    bottom: 28px;
    background: var(--cream);
    padding: 14px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.hero-note span {
    font-weight: 700;
    margin-right: 15px;
    color: var(--green);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    padding: 12px 20px;
    background: transparent;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--green);
    color: white;
    box-shadow: 0 9px 20px rgba(46, 90, 60, .14);
}

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

.button.primary:hover {
    background: var(--green-dark);
}

.button.small {
    padding: 9px 14px;
}

.button.ghost {
    border-color: var(--line);
    color: #5d675f;
}

.button.full {
    width: 100%;
}

.intro-strip {
    background: var(--green);
    color: white;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 25px max(28px, calc((100% - 1184px) / 2));
    gap: 40px;
}

.intro-strip div {
    display: flex;
    flex-direction: column;
}

.intro-strip strong {
    font-size: 14px;
}

.intro-strip span {
    font-size: 12px;
    color: #b9c9c0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: end;
    margin-bottom: 35px;
}

.section-heading h2,
.about-copy h2,
.contact-shop h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1;
    margin: 0;
    color: var(--green);
    letter-spacing: -.04em;
}

.section-heading p {
    max-width: 420px;
    color: var(--muted);
    margin: 0;
}

.about-shop {
    max-width: 1240px;
    margin: 0 auto 100px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 840 / 1068;
    object-fit: cover;
    border-radius: 4px;
}

.about-copy p {
    color: var(--muted);
    max-width: 510px;
}

.contact-shop {
    background: var(--cream);
    padding: 75px max(28px, calc((100% - 1184px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact-shop h2 {
    font-size: 48px;
}

.contact-shop p {
    color: var(--muted);
    max-width: 560px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    color: var(--green);
}

.contact-shop > div:first-child {
    flex: 1;
    min-width: 0;
}

.contact-details {
    flex: 0 1 430px;
    min-width: 0;
    width: 100%;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #bdcbbb;
    background: var(--paper);
    color: var(--green-dark);
    font-size: 13px;
    line-height: 1.4;
}

.social-links a:hover {
    background: var(--green-soft);
    border-color: var(--green);
}

.social-links a span:last-child {
    flex: 0 0 auto;
}

.site-footer {
    max-width: 1240px;
    margin: auto;
    padding: 55px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--line);
}

.footer-brand img {
    width: 126px;
}

.site-footer p {
    color: var(--muted);
    font-size: 13px;
}

.site-footer div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.site-footer strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 5px;
}

.site-footer a:not(.footer-brand) {
    font-size: 13px;
    color: #68736c;
}

.site-footer .social-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin-top: 8px;
}

.site-footer .social-links a {
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    background: transparent;
}

.login-page,
.admin-form-page,
.admin-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 65px 28px;
}

.login-page {
    max-width: 600px;
}

.login-card {
    background: white;
    border: 1px solid var(--line);
    padding: 45px;
    box-shadow: var(--shadow);
}

.login-card h1,
.admin-top h1,
.form-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--green);
    font-weight: 500;
    font-size: 48px;
    line-height: 1;
    margin: 0 0 12px;
}

.login-card p,
.admin-top p,
.form-heading p {
    color: var(--muted);
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #536058;
    margin: 18px 0 7px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 12px 13px;
    outline: none;
    color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #91a59a;
    box-shadow: 0 0 0 3px rgba(46, 90, 60, .08);
}

input[type="file"] {
    padding: 10px;
}

.check-row,
.switch-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check-row input,
.switch-row input {
    width: auto;
}

.validation {
    color: var(--danger);
    font-size: 12px;
    margin: 7px 0;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 35px;
}

.notice {
    padding: 13px 16px;
    margin: 15px 0;
    font-size: 13px;
}

.notice.success {
    background: var(--green-soft);
    color: var(--green);
}

.notice.error {
    background: #f8e9e6;
    color: var(--danger);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}

.admin-stats > div {
    background: var(--green);
    color: white;
    padding: 22px;
}

.admin-stats span {
    display: block;
    color: #b9c9c0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.admin-stats strong {
    font-size: 30px;
}

.admin-card {
    background: white;
    border: 1px solid var(--line);
    margin-top: 20px;
}

.admin-card-head {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.admin-card-head h2 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
}

.admin-card-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    vertical-align: middle;
}

.admin-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #8b938d;
}

.admin-table td small {
    display: block;
    color: #9a9e97;
    margin-top: 3px;
}

.admin-thumb {
    width: 55px;
    height: 65px;
    object-fit: cover;
}

.status {
    border: 0;
    padding: 7px 9px;
    font-size: 11px;
}

.status.on {
    background: var(--green-soft);
    color: var(--green);
}

.status.off {
    background: #eee;
    color: #777;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap;
}

.actions a {
    color: var(--green);
    font-weight: 600;
}

.actions button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--danger);
    font-size: 12px;
}

.category-admin-list {
    padding: 10px 25px;
}

.category-admin-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.category-admin-row:last-child {
    border-bottom: 0;
}

.category-admin-row span {
    display: block;
    color: #9a9e97;
    font-size: 11px;
}

.admin-form-page {
    max-width: 1100px;
}

.admin-form-page.narrow {
    max-width: 700px;
}

.back-link {
    display: inline-block;
    color: #68736c;
    font-size: 12px;
    margin-bottom: 35px;
}

.form-heading {
    margin-bottom: 30px;
}

.editor-form {
    background: white;
    border: 1px solid var(--line);
    padding: 30px;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 45px;
}

.editor-preview {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    margin-top: 15px;
}

.hint {
    display: block;
    color: #929a94;
    font-size: 11px;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 20px;
}

@media (max-width: 850px) {
    .site-nav {
        gap: 18px;
        padding: 13px 18px;
    }

    .site-nav nav {
        gap: 14px;
    }

    .header-contact {
        display: none;
    }

    .brand img {
        width: 116px;
    }

    .hero-shop,
    .about-shop {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 45px;
    }

    .hero-copy {
        padding-left: 0;
    }

    .hero-photo {
        justify-self: center;
    }

    .intro-strip {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-heading,
    .contact-shop {
        display: block;
    }

    .section-heading p {
        margin-top: 20px;
    }

.about-shop {
        margin-bottom: 60px;
    }

    .about-photo {
        width: min(100%, 560px);
        justify-self: center;
    }

    .contact-links {
        margin-top: 30px;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .admin-top {
        align-items: start;
    }

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

    .admin-stats > div:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .site-nav nav a:nth-child(2),
    .site-nav nav a:nth-child(3) {
        display: none;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

.contact-shop {
        padding: 55px 18px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding: 40px 18px;
    }

    .login-card,
    .editor-form {
        padding: 22px;
    }

    .admin-page,
    .admin-form-page,
    .login-page {
        padding: 45px 18px;
    }

    .admin-card-head {
        display: block;
    }

    .admin-card-head .button {
        margin-top: 15px;
    }

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

    .admin-stats > div:last-child {
        grid-column: auto;
    }

    .category-admin-row {
        align-items: start;
        flex-direction: column;
    }

    .actions {
        margin-top: 8px;
    }
}

.catalog-section {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 95px 28px;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

    .category-tabs a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 15px;
        border: 1px solid var(--line);
        background: transparent;
        color: #68736c;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    }

        .category-tabs a:hover,
        .category-tabs a.active {
            background: var(--green);
            border-color: var(--green);
            color: #fff;
            transform: translateY(-1px);
        }

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

.product-card {
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(35, 74, 46, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        border-color: #d4dbd6;
        box-shadow: 0 18px 38px rgba(35, 74, 46, .11);
    }

.product-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
    overflow: hidden;
    background: #eef1ed;
}

    .product-image::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        border: 1px solid rgba(255, 255, 255, .25);
    }

    .product-image img {
        display: block;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform .45s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-body {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 18px;
}

.product-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 24px;
    margin-bottom: 8px;
}

.product-meta {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #969d98;
}

.product-body h3 {
    width: 100%;
    min-height: calc(1.15em * 2);
    margin: 0 0 10px;
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--green);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-description {
    width: 100%;
    min-height: calc(1.5em * 3);
    margin: 0;
    overflow: hidden;
    color: #727b75;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-description-empty {
    color: #a0a59f;
    font-style: italic;
}

.composition {
    width: 100%;
    min-height: calc(1.45em * 2);
    margin-top: 10px;
    overflow: hidden;
    color: #929a94;
    font-size: 11px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
}

    .product-footer strong {
        flex: 0 0 auto;
        color: var(--green);
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    .product-footer .button {
        flex: 0 0 auto;
    }

.product-footer .button.small {
            min-height: 38px;
            padding: 9px 14px;
            white-space: nowrap;
        }

.empty-state {
    width: 100%;
    padding: 60px 30px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, .4);
    text-align: center;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .catalog-section {
        padding: 80px 24px;
    }

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

@media (max-width: 600px) {
    .catalog-section {
        padding: 60px 18px;
        overflow: hidden;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -18px;
        padding-right: 18px;
        padding-bottom: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

        .category-tabs a {
            flex: 0 0 auto;
        }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        width: 100%;
    }

    .product-image {
        aspect-ratio: 4 / 5;
    }

    .product-body {
        padding: 16px;
    }

        .product-body h3 {
            min-height: calc(1.15em * 2);
            font-size: 25px;
        }

    .product-description {
        min-height: calc(1.5em * 3);
    }

    .composition {
        min-height: calc(1.45em * 2);
    }

    .product-footer {
        gap: 10px;
    }

        .product-footer strong {
            font-size: 17px;
        }

        .product-footer .button.small {
            min-height: 40px;
            padding: 9px 13px;
        }
}

@media (max-width: 380px) {
    .catalog-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .category-tabs {
        margin-right: -14px;
        padding-right: 14px;
    }

    .product-body {
        padding: 14px;
    }

        .product-body h3 {
            font-size: 23px;
        }

    .product-footer strong {
        font-size: 16px;
    }

    .product-footer .button.small {
        padding: 8px 11px;
        font-size: 12px;
    }
}
body { overflow-wrap: anywhere; }
.site-nav nav { flex-wrap: wrap; min-width: 0; }
.hero-shop, .about-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-body h3, .product-description, .composition { overflow-wrap: anywhere; }
.product-footer { flex-wrap: wrap; margin-top: auto; }
.product-body .composition { margin-bottom: 16px; }
.category-tabs a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.admin-table td:nth-child(2) { min-width: 180px; max-width: 360px; }
.editor-grid > * { min-width: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
section[id] { scroll-margin-top: 100px; }
@media (max-width: 850px) {
    .hero-shop, .about-shop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .hero-copy h1 { font-size: clamp(36px, 10vw, 52px); }
    .hero-note { left: 0; }
    .admin-top { flex-wrap: wrap; }
    .form-actions { flex-wrap: wrap; }
    .login-card h1, .admin-top h1, .form-heading h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
