:root {
    --ink: #1f2421;
    --muted: #66736d;
    --surface: #ffffff;
    --soft: #f7f8f4;
    --line: #dde4df;
    --green: #286052;
    --green-dark: #193f36;
    --gold: #c88a1d;
    --coral: #b84437;
    --shadow: 0 18px 45px rgba(31, 36, 33, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
}

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

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

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

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 700;
}

.brand--center {
    justify-content: center;
}

.brand__logo {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff9ed;
}

.brand__text {
    overflow-wrap: anywhere;
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.95rem;
}

.site-nav a,
.admin-nav a {
    color: var(--ink);
}

.site-nav__cta {
    padding: 10px 14px;
    border-radius: 8px;
    color: #ffffff !important;
    background: var(--green);
}

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 68vh;
    padding: 88px 0;
    overflow: hidden;
    color: #ffffff;
}

.hero__image,
.hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__image {
    object-fit: cover;
    z-index: -2;
}

.hero__shade {
    z-index: -1;
    background: rgba(20, 28, 24, 0.52);
}

.hero__content {
    width: min(720px, calc(100% - 32px));
    margin-inline: auto;
    margin-left: max(16px, calc((100% - 1180px) / 2));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.15rem;
}

.hero__subtitle,
.lead {
    max-width: 680px;
    font-size: 1.14rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__actions--center {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary {
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 12px 24px rgba(40, 96, 82, 0.22);
}

.button--secondary {
    color: var(--green-dark);
    background: #ffffff;
    border-color: var(--line);
}

.button--ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.button--danger {
    color: #ffffff;
    background: var(--coral);
}

.button--full {
    width: 100%;
}

.section {
    padding: 72px 0;
}

.section--split {
    background: var(--soft);
}

.section__heading {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.section__heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.promo-strip {
    background: var(--green-dark);
    color: #ffffff;
}

.promo-strip__inner {
    display: grid;
    gap: 20px;
    padding: 28px 0;
}

.promo-item {
    display: grid;
    gap: 8px;
}

.promo-item h2,
.promo-item p {
    margin: 0;
}

.promo-code {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
}

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

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 36, 33, 0.07);
}

.product-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--soft);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
}

.product-card__body p {
    margin: 0;
    color: var(--muted);
}

.product-card__category {
    color: var(--gold) !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-meta {
    color: var(--green-dark) !important;
    font-size: 0.92rem;
    font-weight: 700;
}

.product-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.price-row--large {
    margin: 18px 0;
}

.price {
    color: var(--green);
    font-size: 1.18rem;
    font-weight: 800;
}

.price-row--large .price {
    font-size: 1.55rem;
}

.price--sale {
    color: var(--coral);
}

.price--old {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: line-through;
}

.unit {
    color: var(--muted);
    font-size: 0.92rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: start;
}

.commitments {
    display: grid;
    gap: 14px;
}

.commitments div {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-left: 4px solid var(--green);
    background: #ffffff;
}

.commitments span,
.muted {
    color: var(--muted);
}

.site-footer {
    color: #ffffff;
    background: var(--ink);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 44px 0;
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.82);
}

.footer-brand,
.footer-heading {
    color: #ffffff !important;
    font-weight: 800;
}

.product-detail__grid,
.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: start;
}

.product-detail__media {
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
    box-shadow: var(--shadow);
}

.product-detail__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.product-facts div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-facts dt {
    color: var(--muted);
    font-size: 0.88rem;
}

.product-facts dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.product-copy {
    color: var(--muted);
}

.order-panel,
.order-aside,
.empty-state,
.login-panel,
.admin-section,
.admin-stats div,
.admin-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.order-panel,
.order-aside {
    padding: 24px;
}

.order-aside {
    position: sticky;
    top: 96px;
}

.form,
.admin-form {
    display: grid;
    gap: 16px;
}

.form label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.optional-label {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.form input,
.form select,
.form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

.order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--green-dark);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.alert p {
    margin: 0;
}

.alert--error {
    color: #7f1d1d;
    border-color: #efb4aa;
    background: #fff0ee;
}

.alert--success {
    color: #174234;
    border-color: #a9d7c8;
    background: #eefaf4;
}

.empty-state {
    max-width: 760px;
    padding: 44px;
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.admin-login-body,
.admin-body {
    background: var(--soft);
}

.login-panel {
    width: min(440px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 28px;
    box-shadow: var(--shadow);
}

.login-panel h1 {
    margin: 22px 0;
    font-size: 2rem;
    text-align: center;
}

.admin-main {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stats div {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.admin-stats span {
    color: var(--muted);
}

.admin-stats strong {
    font-size: 2rem;
}

.admin-tabs {
    position: sticky;
    top: 72px;
    z-index: 20;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
    background: var(--soft);
}

.admin-tabs a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
}

.admin-section {
    margin-top: 18px;
    padding: 22px;
}

.admin-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-section h1,
.admin-section h2 {
    font-size: 1.6rem;
}

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

.admin-fieldset {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-fieldset legend {
    padding: 0 6px;
    font-weight: 800;
}

.admin-repeat-list {
    display: grid;
    gap: 14px;
}

.admin-repeat-item {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.admin-repeat-item h3 {
    margin: 0;
    font-size: 1rem;
}

.admin-details {
    margin-top: 14px;
    overflow: hidden;
}

.admin-details summary {
    padding: 14px 16px;
    font-weight: 800;
    cursor: pointer;
    background: #fbfcfa;
}

.admin-details .admin-form,
.delete-form {
    padding: 18px;
    border-top: 1px solid var(--line);
}

.delete-form {
    display: flex;
    justify-content: flex-end;
    background: #fffafa;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.admin-thumb {
    width: 120px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-hero-preview {
    width: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

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

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

.admin-table th {
    color: var(--muted);
    font-size: 0.88rem;
}

.inline-form {
    display: grid;
    gap: 8px;
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .site-header,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 16px;
    }

    .site-nav,
    .admin-nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 66vh;
        padding: 64px 0;
    }

    .product-grid,
    .split-layout,
    .product-detail__grid,
    .order-layout,
    .site-footer__inner,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .order-aside {
        position: static;
    }

    .admin-tabs {
        top: 109px;
    }
}

@media (max-width: 620px) {
    .container,
    .admin-main,
    .site-footer__inner {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero__subtitle,
    .lead {
        font-size: 1rem;
    }

    .hero__actions,
    .product-card__actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .product-facts,
    .admin-form__grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .order-panel,
    .order-aside,
    .empty-state,
    .login-panel,
    .admin-section {
        padding: 18px;
    }

    .admin-tabs {
        position: static;
    }
}
