:root {
    --plum: #3d244c;
    --plum-deep: #2a1836;
    --cream: #f3efe7;
    --ink: #241820;
    --muted: #5f5664;
    --line: #e3dcd2;
    --paper: #fffdf9;
    --gold: #b08958;
    --shadow: 0 18px 50px rgba(36, 24, 32, 0.08);
    --sans: "Outfit", "Segoe UI", sans-serif;
    --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
button, input, select, textarea { font: inherit; }
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: white;
    padding: 0.5rem 1rem;
    z-index: 20;
}
.skip:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-bar, .footer-grid, .wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    min-width: 48px;
    min-height: 48px;
}
.nav-list { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a, .sub-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.85rem;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.nav-list a:hover, .sub-toggle:hover, .nav-list a:focus, .sub-toggle:focus { background: var(--cream); }
.has-sub { position: relative; }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.nav-sub a { width: 100%; }
.has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub, .has-sub.open > .nav-sub { display: block; }
.edit-link { font-weight: 650; }
.has-edit-bar { padding-bottom: 108px; }
.edit-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--plum-deep);
    color: white;
    box-shadow: 0 -10px 30px rgba(36, 24, 32, 0.18);
}
.edit-bar p { margin: 0; max-width: 42rem; }
.edit-bar a { color: white; }
.edit-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.edit-bar .button.secondary { color: white; border-color: white; }
.is-editing [data-edit] { outline: 2px dashed #e7c89a; outline-offset: 4px; cursor: text; min-height: 1.2em; }
.is-editing [data-edit="image"] { cursor: pointer; min-height: 72px; background: rgba(255,255,255,0.35); }
.is-editing [data-edit].is-dirty { outline-color: white; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 4.5rem 0 3rem; }
.hero h1, .section h2, .page-title { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.hero-photo { border-radius: 28px; min-height: 360px; object-fit: cover; width: 100%; height: 460px; background: var(--cream); box-shadow: var(--shadow); }
.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.3rem;
    border-radius: 12px;
    background: var(--plum);
    color: white;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 650;
}
.button.secondary { background: transparent; color: var(--plum); border: 1px solid var(--plum); }
.button:hover { background: var(--plum-deep); }
.button.secondary:hover { background: var(--cream); }

.section { padding: 1rem 0 3.5rem; }
.section-head { max-width: 42rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 0 0 0.4rem; }
.card-grid, .steps, .product-grid { display: grid; gap: 1.1rem; }
.card-grid { grid-template-columns: repeat(5, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(4, 1fr); }
.card, .step, .panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}
.card { color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.card img, .product-photo img { width: 100%; height: 190px; object-fit: cover; background: var(--cream); }
.card div, .step, .panel { padding: 1rem 1.1rem 1.2rem; }
.card h2, .card h3, .step h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.card p, .step p { margin: 0; color: var(--muted); }
.step { padding: 1.2rem; }
.step span { color: var(--gold); font-weight: 700; }
.intro-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.intro-split img { border-radius: 24px; width: 100%; height: 360px; object-fit: cover; }

.catalog-layout, .configure { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: start; }
.gallery { display: grid; gap: 0.7rem; }
.gallery img { width: 100%; border-radius: 22px; background: var(--cream); }
.thumbs { display: flex; gap: 0.5rem; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; cursor: pointer; }
.option { margin-bottom: 1rem; }
.option label, .field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
select, input[type="text"], input[type="number"], input[type="email"], textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9d0c6;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    background: white;
}
textarea { min-height: 140px; }
.qty-choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.qty-choices label { border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.8rem; min-height: 44px; display: inline-flex; align-items: center; }
.price-panel { background: var(--cream); border-radius: 18px; padding: 1rem 1.1rem; margin-top: 0.5rem; }
.price-unit, .price-total { display: flex; justify-content: space-between; gap: 1rem; margin: 0.2rem 0; }
.price-total strong { font-size: 1.7rem; }
.price-contact { font-family: var(--serif); font-size: 1.7rem; margin: 0.2rem 0 0.6rem; }
.price-note, .price-meta, .price-error { color: var(--muted); margin: 0.35rem 0; }
.price-lines { margin: 0.4rem 0; padding-left: 1.1rem; }
.notice { padding: 0.8rem 1rem; border-radius: 12px; background: #e7f5ea; margin: 0 0 1rem; }
.notice.error { background: #fdecea; }
.banner { background: #fff4d8; border-radius: 12px; padding: 0.8rem 1rem; }

.site-footer { background: var(--plum-deep); color: #f4efe8; margin-top: 2rem; padding: 2.5rem 0; }
.site-footer a { color: white; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.fine { color: #d9cfc8; font-size: 0.92rem; }

.admin-bar { background: var(--plum-deep); color: white; }
.admin-bar a { color: white; text-decoration: none; margin-right: 1rem; }
.admin-wrap { width: min(1100px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.8rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.help { color: var(--muted); }

@media (max-width: 980px) {
    .hero, .intro-split, .catalog-layout, .configure, .card-grid, .steps, .product-grid, .footer-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .hero-photo, .intro-split img { height: 260px; }
    .nav-toggle { display: inline-flex; }
    .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 92px; background: white; border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 1rem; }
    .nav-panel.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-sub { position: static; display: none; box-shadow: none; border: 0; padding-left: 0.6rem; }
    .has-sub:hover > .nav-sub { display: none; }
    .has-sub.open > .nav-sub, .has-sub:focus-within > .nav-sub { display: block; }
}
@media (max-width: 640px) {
    .card-grid, .product-grid { grid-template-columns: 1fr; }
    .header-bar { min-height: 76px; }
    .logo img { height: 56px; }
    .edit-bar { align-items: stretch; flex-direction: column; }
}
