@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap");

:root {
    --moss: #6f7f4f;
    --sage: #9fb38a;
    --forest: #1d2b22;
    --bark: #5d3c2d;
    --clay: #b07a58;
    --linen: #e9dfcd;
    --ink: #f2ebdc;
    --gold-dust: #c5a461;
    --danger: #9e2a2b;
    --ok: #2a7f62;
    --radius: 14px;
    --shadow: 0 14px 34px rgba(7, 11, 9, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 12%, rgba(197, 164, 97, 0.22) 0%, rgba(197, 164, 97, 0) 30%),
        radial-gradient(circle at 86% 84%, rgba(109, 84, 61, 0.32) 0%, rgba(109, 84, 61, 0) 44%),
        linear-gradient(170deg, #111a14 0%, #19261e 40%, #121b16 100%);
    color: var(--ink);
    line-height: 1.55;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

/* Soft drifting mist and subtle forest grain texture */
body::before {
    background:
        radial-gradient(ellipse at 18% 24%, rgba(239, 229, 210, 0.09), transparent 46%),
        radial-gradient(ellipse at 74% 12%, rgba(223, 191, 128, 0.08), transparent 38%),
        radial-gradient(ellipse at 56% 76%, rgba(198, 220, 192, 0.07), transparent 42%),
        repeating-linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.015) 0,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 9px
        );
    opacity: 0.85;
}

body::after {
    background:
        linear-gradient(to bottom, rgba(6, 10, 8, 0.45), rgba(6, 10, 8, 0.05) 30%, rgba(6, 10, 8, 0.5)),
        radial-gradient(circle at 35% 108%, rgba(20, 29, 24, 0.85) 0, rgba(20, 29, 24, 0) 48%);
}

h1,
h2,
h3,
h4,
.brand-text {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    letter-spacing: 0.02em;
}

h1 {
    font-weight: 700;
}

h2,
h3,
h4 {
    font-weight: 600;
}

a {
    color: #d9be80;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.shell {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(6px);
    background:
        linear-gradient(180deg, rgba(10, 15, 12, 0.92), rgba(10, 15, 12, 0.82)),
        radial-gradient(circle at 10% 10%, rgba(223, 191, 128, 0.12), transparent 30%);
    border-bottom: 1px solid rgba(205, 180, 122, 0.24);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f0e5d0;
    font-weight: 700;
}

.brand-logo {
    width: clamp(140px, 20vw, 250px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.45));
}

.brand-text {
    font-size: clamp(14px, 1.7vw, 18px);
    color: #d9be80;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(218, 190, 128, 0.12);
    border: 1px solid rgba(218, 190, 128, 0.34);
    color: #f3e6cf;
    font-size: 14px;
}

.main-nav a:hover {
    background: rgba(218, 190, 128, 0.24);
    text-decoration: none;
}

.site-main {
    padding: 24px 0 48px;
}

.panel {
    background: linear-gradient(145deg, rgba(30, 40, 33, 0.94), rgba(22, 31, 25, 0.96));
    border: 1px solid rgba(205, 180, 122, 0.2);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero {
    padding: 32px;
    border-radius: 20px;
    background:
        linear-gradient(140deg, rgba(52, 67, 55, 0.84), rgba(31, 40, 33, 0.9)),
        radial-gradient(circle at 80% 10%, rgba(197, 164, 97, 0.26), transparent 36%);
    border: 1px solid rgba(205, 180, 122, 0.3);
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
    color: #f4ead6;
    text-shadow: 0 2px 14px rgba(7, 11, 9, 0.45);
}

.hero p {
    margin: 0;
    max-width: 72ch;
}

.button,
button,
input[type="submit"] {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #7f6840, #5f4b31);
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.button.secondary {
    background: linear-gradient(135deg, #35513f, #2a4032);
}

.button.warn {
    background: var(--danger);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.products {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
    background: linear-gradient(155deg, rgba(35, 46, 38, 0.96), rgba(22, 30, 24, 0.98));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(205, 180, 122, 0.2);
    box-shadow: var(--shadow);
    backdrop-filter: blur(1px);
}

.product-media {
    aspect-ratio: 4 / 3;
    background: #2a372f;
    display: grid;
    place-items: center;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 12px;
}

.price {
    color: #e0bf7a;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(223, 191, 128, 0.14);
    color: #e7d3aa;
    margin-right: 6px;
}

.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

label {
    font-size: 13px;
    color: #d8c8a4;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(205, 180, 122, 0.28);
    padding: 10px;
    background: rgba(16, 24, 19, 0.94);
    color: #f3ecdd;
}

textarea {
    min-height: 110px;
}

.notice,
.error,
.success {
    border-radius: 10px;
    padding: 10px 12px;
}

.notice {
    background: rgba(223, 191, 128, 0.18);
    color: #f0dfbc;
}

.error {
    background: #f7dada;
    color: #5f1819;
}

.success {
    background: rgba(44, 118, 95, 0.3);
    color: #d6f4e8;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(24, 33, 27, 0.96);
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid rgba(31, 27, 24, 0.08);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(218, 190, 128, 0.16);
}

.site-footer {
    border-top: 1px solid rgba(205, 180, 122, 0.24);
    background: #101813;
    padding: 18px 0 26px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.footer-note {
    opacity: 0.8;
}

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid.products {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile-landscape / large-phone ─────────────────────── */
@media (max-width: 780px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 0;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 120px;
    }

    .brand-text {
        font-size: 13px;
        letter-spacing: 0.06em;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 7px 11px;
    }

    .hero {
        padding: 20px;
    }

    .hero h1 {
        font-size: clamp(26px, 7vw, 38px);
    }

    .panel {
        padding: 14px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Mobile-portrait ─────────────────────────────────────── */
@media (max-width: 480px) {
    .shell {
        width: 94vw;
    }

    .site-main {
        padding-top: 12px;
    }

    .brand {
        gap: 6px;
    }

    .brand-logo {
        width: 96px;
    }

    .brand-text {
        display: none;
    }

    .grid.products {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero {
        padding: 16px;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: clamp(22px, 8vw, 32px);
    }

    .button,
    button,
    input[type="submit"] {
        width: 100%;
        text-align: center;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 8px 6px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 7px;
    }

    .panel {
        padding: 12px;
        border-radius: 10px;
    }
}

/* ── Very small phones (≤ 360px) ─────────────────────────── */
@media (max-width: 360px) {
    .brand-logo {
        width: 88px;
    }

    .grid.products {
        grid-template-columns: 1fr;
    }

    .main-nav a {
        font-size: 12px;
        padding: 6px 9px;
    }
}
