:root {
    --green: #1f4938;
    --green-dark: #143329;
    --cream: #fff9ef;
    --gold: #c59a45;
    --terracotta: #b75032;
    --text: #27251f;
    --muted: #716d64;
    --white: #ffffff;
    --border: rgba(39, 37, 31, .12);
    --shadow: 0 22px 60px rgba(31, 73, 56, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--cream);
}

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

button,
input {
    font: inherit;
}

.site-header {
    min-height: 78px;
    padding: 14px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255, 249, 239, .94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo span,
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--white);
    font-weight: 800;
}

.site-logo strong {
    font-family: Georgia, serif;
    font-size: 21px;
}

.site-header nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
}

.hero {
    min-height: 680px;
    padding: 80px clamp(24px, 7vw, 110px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
    background:
        radial-gradient(circle at 80% 20%, rgba(197,154,69,.18), transparent 30%),
        linear-gradient(135deg, #fffaf0 0%, #f6ead4 100%);
}

.eyebrow {
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 800;
}

.hero h1 {
    max-width: 720px;
    margin: 20px 0 14px;
    font-family: Georgia, serif;
    font-size: clamp(52px, 7vw, 92px);
    line-height: .98;
    color: var(--green-dark);
}

.hero p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(22px, 3vw, 34px);
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.primary-button,
.secondary-button {
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

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

.secondary-button {
    border: 1px solid var(--green);
    color: var(--green);
}

.hero-art {
    min-height: 480px;
    display: grid;
    place-items: center;
    border-radius: 42% 58% 60% 40% / 45% 38% 62% 55%;
    background:
        linear-gradient(145deg, rgba(31,73,56,.95), rgba(20,51,41,.98));
    box-shadow: var(--shadow);
}

.art-circle {
    width: min(330px, 70vw);
    aspect-ratio: 1;
    border: 2px solid rgba(255,255,255,.45);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: inset 0 0 0 18px rgba(255,255,255,.06);
}

.art-circle span,
.art-circle small {
    text-transform: uppercase;
    letter-spacing: .28em;
}

.art-circle strong {
    margin: 12px 0;
    font-family: Georgia, serif;
    font-size: 70px;
    color: #f1d698;
}

.section {
    padding: 100px clamp(24px, 7vw, 110px);
}

.section-heading {
    max-width: 660px;
    margin-bottom: 42px;
}

.section-heading h2,
.story-section h2 {
    margin: 12px 0;
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 62px);
    color: var(--green-dark);
}

.section-heading p,
.story-section p,
.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(39,37,31,.06);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f3e6c9;
    color: var(--green);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 800;
}

.category-card h3 {
    margin: 22px 0 8px;
    font-family: Georgia, serif;
    font-size: 24px;
}

.story-section {
    margin: 0 clamp(24px, 7vw, 110px) 100px;
    padding: 60px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--green);
    color: var(--white);
}

.story-section h2 {
    color: var(--white);
}

.story-section p {
    color: rgba(255,255,255,.78);
    font-size: 18px;
}

footer {
    padding: 30px clamp(24px, 7vw, 110px);
    display: flex;
    justify-content: space-between;
    background: var(--green-dark);
    color: var(--white);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(197,154,69,.35), transparent 30%),
        var(--green-dark);
}

.login-card {
    width: min(440px, 100%);
    padding: 38px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 20px 0 4px;
}

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

.login-card form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.login-card label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.login-card button {
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: var(--white);
    font-weight: 800;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--green);
    font-weight: 700;
}

.alert {
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    background: #fde8e5;
    color: #9c2f22;
}

.admin-body {
    min-height: 100vh;
    background: #f3f1ec;
}

.admin-header {
    min-height: 76px;
    padding: 16px clamp(20px, 5vw, 70px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--green-dark);
    color: var(--white);
}

.admin-header div {
    display: grid;
    gap: 4px;
}

.admin-header span {
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.admin-main {
    padding: 34px clamp(20px, 5vw, 70px) 70px;
}

.welcome-panel {
    padding: 34px;
    border-radius: 24px;
    background: var(--white);
}

.welcome-panel p,
.welcome-panel h1 {
    margin: 0 0 8px;
}

.stats-grid,
.module-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid article,
.module-grid article {
    padding: 24px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border);
}

.stats-grid article {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-grid strong {
    font-size: 34px;
    color: var(--green);
}

.module-grid {
    grid-template-columns: repeat(2, 1fr);
}

.module-grid h2 {
    margin-top: 0;
}

.module-grid p {
    color: var(--muted);
    line-height: 1.6;
}

.module-grid button {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
}

@media (max-width: 850px) {
    .site-header nav {
        display: none;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 55px;
        gap: 45px;
    }

    .hero-art {
        min-height: 360px;
    }

    .category-grid,
    .stats-grid,
    .module-grid,
    .story-section {
        grid-template-columns: 1fr;
    }

    .story-section {
        padding: 34px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
    }
}

.admin-header-actions {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    gap: 18px !important;
}

.admin-header-actions a {
    font-size: 14px;
    font-weight: 700;
}

.products-admin-main {
    padding: 32px clamp(18px, 4vw, 60px) 70px;
}

.admin-page-title {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--border);
}

.admin-page-title span {
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.admin-page-title h1 {
    margin: 8px 0;
    font-family: Georgia, serif;
    font-size: clamp(36px, 5vw, 54px);
    color: var(--green-dark);
}

.admin-page-title p {
    margin: 0;
    color: var(--muted);
}

.product-count {
    min-width: 120px;
    padding: 18px;
    display: grid;
    text-align: center;
    border-radius: 20px;
    background: var(--green);
    color: var(--white);
}

.product-count strong {
    font-size: 36px;
}

.product-count span {
    color: rgba(255,255,255,.75);
    text-transform: none;
    letter-spacing: 0;
}

.success-message,
.error-message {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 700;
}

.success-message {
    background: #e4f4e9;
    color: #176b36;
}

.error-message {
    background: #fde8e5;
    color: #9c2f22;
}

.product-admin-layout {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.product-form-card {
    padding: 26px;
    position: sticky;
    top: 92px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--border);
}

.card-heading span {
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.card-heading h2 {
    margin: 8px 0 24px;
    font-family: Georgia, serif;
    color: var(--green-dark);
}

.product-form-card form {
    display: grid;
    gap: 17px;
}

.product-form-card label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.product-form-card input,
.product-form-card select,
.product-form-card textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    font: inherit;
}

.product-form-card textarea {
    resize: vertical;
}

.product-form-card small {
    color: var(--muted);
    font-weight: 400;
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-group {
    display: grid;
    gap: 12px;
}

.checkbox-label {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    gap: 10px !important;
}

.checkbox-label input {
    width: 19px;
    height: 19px;
}

.current-product-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-product-image img {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
}

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

.save-product-button,
.cancel-button {
    padding: 13px 16px;
    border-radius: 12px;
    border: 0;
    font-weight: 800;
    text-align: center;
}

.save-product-button {
    flex: 1;
    background: var(--green);
    color: var(--white);
}

.cancel-button {
    background: #efede8;
}

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

.admin-product-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--border);
}

.admin-product-image {
    min-height: 210px;
    position: relative;
    display: grid;
    place-items: center;
    background: #eee7d9;
}

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

.admin-product-image > span {
    font-family: Georgia, serif;
    font-size: 66px;
    color: var(--green);
}

.product-status-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.product-status-badges span {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-active {
    background: #dff4e5;
    color: #176b36;
}

.status-inactive {
    background: #eee;
    color: #666;
}

.status-featured {
    background: #f7e8b9;
    color: #7c5610;
}

.admin-product-content {
    padding: 20px;
}

.product-category-name {
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.admin-product-content h3 {
    margin: 8px 0 14px;
    font-family: Georgia, serif;
    font-size: 25px;
}

.product-price-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price-line strong {
    color: var(--green);
    font-size: 22px;
}

.product-price-line del {
    color: var(--muted);
}

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

.admin-product-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-product-actions form {
    margin: 0;
}

.edit-product-button,
.toggle-product-button,
.delete-product-button {
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

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

.toggle-product-button {
    background: #eee9de;
    color: var(--text);
}

.delete-product-button {
    background: #fde4df;
    color: #a03224;
}

.empty-products {
    min-height: 330px;
    padding: 40px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--border);
}

.empty-products div {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-weight: 800;
}

.empty-products h2 {
    margin-bottom: 0;
}

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

@media (max-width: 980px) {
    .product-admin-layout {
        grid-template-columns: 1fr;
    }

    .product-form-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .admin-page-title {
        align-items: flex-start;
    }

    .product-count {
        min-width: 88px;
    }

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

    .products-admin-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .product-form-card {
        padding: 20px;
    }

    .admin-header-actions {
        gap: 10px !important;
    }

    .admin-header-actions a:first-child {
        display: none;
    }
}

.public-products-section {
    background: #f7f2e8;
}

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

.public-product-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 35px rgba(39,37,31,.07);
}

.public-product-image {
    min-height: 260px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eee7d9;
}

.public-product-image img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.public-product-image > span {
    font-family: Georgia, serif;
    font-size: 72px;
    color: var(--green);
}

.public-product-badges {
    position: absolute;
    top: 14px;
    left: 14px;
}

.public-badge-featured {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7e8b9;
    color: #7c5610;
    font-size: 12px;
    font-weight: 800;
}

.public-product-content {
    padding: 22px;
}

.public-product-category {
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.public-product-content h3 {
    margin: 8px 0 12px;
    font-family: Georgia, serif;
    font-size: 28px;
    color: var(--green-dark);
}

.public-product-content p {
    min-height: 48px;
    color: var(--muted);
    line-height: 1.6;
}

.public-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.public-product-price strong {
    color: var(--green);
    font-size: 24px;
}

.public-product-price del {
    color: var(--muted);
}

.public-product-stock {
    margin-top: 12px;
    color: var(--muted);
}

.public-product-content button {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 0;
    border-radius: 12px;
    background: #ece8de;
    color: #8a857b;
    font-weight: 800;
}

.public-products-empty {
    padding: 30px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}

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

@media (max-width: 650px) {
    .public-products-grid {
        grid-template-columns: 1fr;
    }

    .public-product-image img {
        height: 250px;
    }
}

.category-products-section {
    background: #f7f2e8;
}

.public-category-list {
    display: grid;
    gap: 42px;
}

.public-category-block {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,.62);
    border: 1px solid var(--border);
}

.public-category-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.public-category-heading h3 {
    margin: 0 0 6px;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    color: var(--green-dark);
}

.public-category-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.category-empty-message {
    padding: 22px;
    border-radius: 16px;
    background: var(--white);
    border: 1px dashed var(--border);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 650px) {
    .public-category-block {
        padding: 18px;
    }

    .public-category-heading {
        align-items: flex-start;
    }
}

.categories-admin-main {
    padding: 32px clamp(18px, 4vw, 60px) 70px;
}

.category-admin-layout {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

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

.admin-category-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--border);
}

.admin-category-image {
    height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eee7d9;
}

.admin-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-category-image span {
    font-family: Georgia, serif;
    font-size: 64px;
    color: var(--green);
}

.admin-category-content {
    padding: 20px;
}

.category-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.category-card-topline > span:first-child {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.category-card-topline .status-active,
.category-card-topline .status-inactive {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.admin-category-content h3 {
    margin: 16px 0 8px;
    font-family: Georgia, serif;
    font-size: 28px;
    color: var(--green-dark);
}

.admin-category-content p {
    min-height: 44px;
    color: var(--muted);
    line-height: 1.5;
}

.category-product-count {
    margin-top: 14px;
    font-weight: 800;
    color: var(--green);
}

@media (max-width: 980px) {
    .category-admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .categories-list {
        grid-template-columns: 1fr;
    }

    .categories-admin-main {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.dashboard-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-catalog-actions .primary-button,
.dashboard-catalog-actions .secondary-button {
    display: inline-block;
}
