:root {
    --ink: #241c17;
    --muted: #75695f;
    --paper: #fff8f0;
    --cream: #fffaf4;
    --linen: #efe2d3;
    --sage: #40583a;
    --leaf: #72815f;
    --clay: #b7674e;
    --coral: #ef8f6d;
    --mint: #dfe9d4;
    --gold: #c49b5f;
    --line: rgba(36, 28, 23, .14);
    --shadow: 0 14px 34px rgba(53, 36, 23, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff8f0 0, #fffdf9 44%, #f8f2ea 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

.top-strip {
    min-height: 34px;
    display: flex;
    justify-content: space-around;
    gap: 16px;
    padding: 8px 18px;
    background: #f6ddc9;
    color: #7b4d3b;
    font-size: 12px;
    font-weight: 750;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 12px clamp(18px, 4vw, 48px);
    background: rgba(255, 250, 244, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand img { width: min(176px, 40vw); display: block; }
.main-nav { display: flex; justify-content: center; gap: clamp(14px, 3vw, 30px); color: var(--ink); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.main-nav a:hover { color: var(--sage); }
.mini-login { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.mini-login input {
    width: 112px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px 9px;
    background: rgba(255, 255, 255, .82);
}
.mini-login button, .mini-login a, .primary, .ghost, .items-head button {
    border-radius: 7px;
    padding: 9px 13px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    font-size: 13px;
}
.mini-login button, .primary {
    border: 1px solid var(--sage);
    background: var(--sage);
    color: white;
    box-shadow: 0 9px 18px rgba(64, 88, 58, .18);
}
.ghost, .items-head button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .74);
    color: var(--sage);
}
.user-chip span { color: var(--muted); }

.hero {
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr);
    align-items: center;
    gap: clamp(22px, 4vw, 58px);
    padding: clamp(42px, 7vw, 78px) clamp(20px, 5vw, 70px);
    background:
        radial-gradient(circle at 5% 82%, rgba(114, 129, 95, .18), transparent 24%),
        linear-gradient(135deg, #fff7ec 0%, #fffaf4 50%, #f4e2d2 100%);
    position: relative;
    overflow: hidden;
}
.hero-copy { max-width: 610px; }
.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 850;
    font-size: 12px;
}
.eyebrow::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 12px;
    background: var(--clay);
}
h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7.8vw, 98px);
    line-height: .94;
    margin-bottom: 20px;
    letter-spacing: 0;
}
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.04;
    margin-bottom: 0;
}
.hero-copy > p:not(.eyebrow) {
    font-size: 17px;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-art {
    justify-self: center;
    width: min(590px, 92%);
    aspect-ratio: 1.36 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: #f2eadf;
    box-shadow: 0 28px 70px rgba(91, 62, 43, .18);
    border: 1px solid rgba(255, 255, 255, .75);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute;
    right: clamp(18px, 5vw, 70px);
    bottom: clamp(22px, 5vw, 70px);
    width: 142px;
    min-height: 142px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    background: #fff6de;
    color: var(--clay);
    border: 1px solid rgba(183, 103, 78, .22);
    box-shadow: 0 18px 36px rgba(90, 64, 43, .15);
}
.hero-badge strong { display: block; font-size: 34px; line-height: 1; color: var(--ink); }
.hero-badge span { display: block; font-size: 12px; font-weight: 850; }
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.trust-row span {
    border: 1px solid rgba(64, 88, 58, .18);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, .62);
    color: var(--sage);
    font-size: 12px;
    font-weight: 850;
}

.section, .contact-section {
    padding: clamp(42px, 7vw, 76px) clamp(20px, 5vw, 70px);
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.ingredient-grid article {
    min-height: 170px;
    padding: 22px;
    border-right: 1px solid var(--line);
}
.ingredient-grid article:last-child { border-right: 0; }
.ingredient-grid span { color: var(--clay); font-weight: 850; font-size: 12px; }
.ingredient-grid h3 { margin: 18px 0 8px; font-size: 18px; }
.ingredient-grid p { color: var(--muted); line-height: 1.48; font-size: 14px; }
.product-section { background: var(--cream); }
.category-section { background: #fffdf9; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}
.category-card {
    min-width: 0;
    border: 1px solid rgba(36, 28, 23, .1);
    border-radius: 8px;
    padding: 11px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(53, 36, 23, .07);
}
.category-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    background: #f4eadf;
}
.category-card div { padding: 11px 4px 2px; }
.category-card span, .category-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.category-card strong { display: block; margin: 5px 0; font-size: 14px; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 26px rgba(53, 36, 23, .08);
}
.product-photo { aspect-ratio: 4 / 3; background: #f4eadf; display: grid; place-items: center; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.empty-photo img { width: 42%; height: auto; object-fit: contain; opacity: .88; }
.product-card > div:last-child { padding: 16px; }
.season { color: var(--leaf); font-weight: 850; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { color: var(--muted); line-height: 1.48; font-size: 14px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.meta-line span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--muted);
    font-size: 12px;
}
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.price-row span { color: var(--sage); font-size: 19px; font-weight: 900; }
.price-row small { color: var(--muted); }

.feature-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 70px);
    background: linear-gradient(90deg, #eef4e8 0 50%, #ffe2d2 50% 100%);
}
.feature-band article {
    min-height: 250px;
    padding: clamp(24px, 4vw, 44px);
    display: grid;
    align-content: center;
}
.feature-band h2 { max-width: 520px; }
.feature-band p:not(.eyebrow) {
    max-width: 540px;
    color: var(--muted);
    line-height: 1.55;
}
.feature-band .primary, .feature-band .ghost { width: max-content; margin-top: 10px; }

.gallery-band { background: #efe5db; }
.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.gallery article {
    min-height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery article div {
    position: absolute;
    inset: auto 0 0;
    padding: 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(36, 28, 23, .82));
}
.gallery strong, .gallery span { display: block; }
.gallery span { font-size: 12px; opacity: .86; margin-top: 4px; }
.contact-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: center;
    background: var(--ink);
    color: #fff;
}
.contact-section .eyebrow { color: var(--gold); }
.contact-section .eyebrow::after { background: var(--gold); }
.contact-section p { color: rgba(255, 255, 255, .72); }
.contact-card {
    min-width: 270px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    gap: 14px;
}

.admin-shell {
    min-height: calc(100vh - 63px);
    display: grid;
    grid-template-columns: 210px 1fr;
    background: #f7f0e8;
}
.admin-side {
    border-right: 1px solid var(--line);
    background: #fffaf4;
    padding: 18px;
}
.admin-side img { width: 58px; display: block; margin-bottom: 10px; }
.admin-side p { font-weight: 850; font-size: 14px; }
.admin-side button {
    width: 100%;
    border: 0;
    border-radius: 7px;
    background: transparent;
    text-align: left;
    padding: 10px;
    margin-bottom: 5px;
    color: var(--muted);
}
.admin-side button.active { background: #eadbca; color: var(--sage); font-weight: 850; }
.admin-panel { padding: 22px; min-width: 0; }
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}
.panel-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.tab { display: none; }
.tab.active { display: block; }
.split {
    display: grid;
    grid-template-columns: minmax(300px, 390px) 1fr;
    gap: 16px;
    align-items: start;
}
.split.compact { grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); }
.editor-form, .list-panel, .admin-lock {
    background: #fffaf4;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(53, 36, 23, .07);
}
.admin-lock {
    max-width: 500px;
    margin: 64px auto;
    text-align: center;
}
.admin-lock img { width: 88px; }
label { display: grid; gap: 6px; margin-bottom: 11px; color: var(--muted); font-size: 12px; font-weight: 800; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
}
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; grid-template-columns: none; align-items: center; gap: 8px; }
.check input { width: auto; }
.role-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.form-help { color: var(--muted); font-size: 12px; margin: 10px 0 0; line-height: 1.45; }
.items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    font-weight: 850;
    font-size: 14px;
}
.order-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px;
    margin-bottom: 10px;
    background: #f7efe6;
}
.image-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.image-strip span { position: relative; display: inline-grid; }
.image-strip img {
    width: 70px;
    height: 70px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}
.image-strip button {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
}
.list-panel { min-height: 260px; }
.list-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    margin-bottom: 10px;
    background: #fff;
}
.compact-card { padding: 10px 12px; }
.list-card h3 { margin: 0 0 5px; font-size: 17px; }
.list-card p { margin-bottom: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.list-card .meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0; }
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1e4d5;
    color: var(--sage);
    font-size: 11px;
    font-weight: 850;
}
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.card-actions button, .order-item button {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    padding: 7px 9px;
}
.notice {
    border-radius: 8px;
    padding: 11px 13px;
    background: #e8f0e3;
    color: #3f5738;
    margin-bottom: 14px;
}
.catalog-block { margin-bottom: 18px; }
.catalog-block h3 { font-size: 18px; margin-bottom: 10px; }

@media (max-width: 1180px) {
    .product-grid, .ingredient-grid, .gallery, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ingredient-grid article:nth-child(2) { border-right: 0; }
    .ingredient-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 980px) {
    .site-header { grid-template-columns: 1fr; }
    .main-nav { justify-content: flex-start; overflow-x: auto; }
    .mini-login { justify-content: flex-start; flex-wrap: wrap; }
    .hero, .contact-section, .admin-shell, .split, .split.compact, .feature-band { grid-template-columns: 1fr; }
    .hero { min-height: auto; background-position: center top; }
    .hero-art { width: min(430px, 100%); }
    .hero-badge { position: static; width: auto; min-height: 0; border-radius: 8px; margin-top: 12px; }
    .admin-side { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 12px; }
    .admin-side img, .admin-side p { display: none; }
    .admin-side button { width: auto; white-space: nowrap; }
}

@media (max-width: 620px) {
    .grid-2, .product-grid, .gallery, .ingredient-grid, .role-checks, .category-grid { grid-template-columns: 1fr; }
    .top-strip { display: none; }
    .ingredient-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
    .ingredient-grid article:last-child { border-bottom: 0; }
    .section-head, .panel-head { align-items: start; flex-direction: column; }
    .mini-login input { width: min(100%, 160px); }
    .contact-card { min-width: 0; }
    h1 { font-size: clamp(40px, 13vw, 58px); }
}
