:root {
    --ink: #2f2724;
    --muted: #746762;
    --brand: #8c3554;
    --brand-dark: #64233c;
    --brand-soft: #f7e9ee;
    --cream: #fffaf7;
    --line: #e8dcd7;
    --green: #466c5a;
    --shadow: 0 14px 36px rgba(66, 39, 48, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.local-banner {
    background: var(--brand-dark);
    color: white;
    padding: .35rem 1rem;
    text-align: center;
    font-size: .82rem;
    letter-spacing: .04em;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem max(1.25rem, calc((100vw - 1180px) / 2));
    background: rgba(255, 250, 247, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; }
.brand span:last-child { display: flex; flex-direction: column; }
.brand small { color: var(--muted); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--brand);
    color: white;
    font: 700 1.3rem Georgia, serif;
}
.basket-link { text-decoration: none; font-weight: 700; }
.basket-link span {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    height: 1.8rem;
    margin-left: .3rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--brand);
    color: white;
}
main { width: min(1380px, calc(100% - 2rem)); margin: 0 auto; }
.catalog-shell {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0 4rem;
}
.catalog-sidebar {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}
.sidebar-heading { padding: 1.2rem 1.15rem .8rem; }
.sidebar-heading h2 { margin: .2rem 0; font-size: 1.6rem; }
.catalog-sidebar nav { display: grid; padding: .35rem; }
.sidebar-link {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: .65rem;
    align-items: center;
    padding: .68rem .75rem;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
}
.sidebar-link:hover { background: #fbf3f6; }
.sidebar-link.active { background: var(--brand); color: white; }
.sidebar-link small { color: var(--muted); font-size: .72rem; }
.sidebar-link.active small { color: #f8dce7; }
.sidebar-initial {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-family: Georgia, serif;
    font-weight: 700;
}
.sidebar-link.active .sidebar-initial { background: rgba(255,255,255,.18); color: white; }
.sidebar-help { display: grid; gap: .35rem; margin: .5rem; padding: 1rem; border-radius: 14px; background: #fff5e5; }
.sidebar-help span { color: var(--muted); font-size: .82rem; }
.catalog-page { min-width: 0; }
.landing-hero {
    padding: 3.4rem;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff 10%, #faedf2 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.landing-hero h1 { max-width: 760px; }
.landing-hero > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; }
.steps-row span { display: flex; gap: .7rem; align-items: center; padding: .9rem; border-radius: 14px; background: white; }
.steps-row strong { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: white; }
.category-overview { padding: 3rem 0 1rem; }
.overview-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem; }
.overview-heading h2 { margin: .2rem 0 0; font-size: 2.1rem; }
.overview-heading > p { max-width: 420px; color: var(--muted); text-align: right; }
.category-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.category-overview-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: .9rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.category-overview-card:hover { transform: translateY(-2px); border-color: #cfa8b6; }
.category-card-initial { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font: 700 1.5rem Georgia, serif; }
.category-overview-card > span:nth-child(2) { display: grid; }
.category-overview-card small { color: var(--muted); }
.category-arrow { color: var(--brand); font-size: 1.5rem; }
.category-page-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.5rem; padding: 1rem 0; }
.category-page-heading h1 { margin-bottom: .6rem; font-size: clamp(2.4rem, 5vw, 4rem); }
.category-page-heading p:not(.eyebrow) { max-width: 720px; color: var(--muted); }
.minimum-note { flex: 0 0 185px; display: grid; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.minimum-note span, .minimum-note small { color: var(--muted); font-size: .78rem; }
.minimum-note strong { color: var(--brand-dark); font-size: 1.25rem; }
.compact-tools { margin-bottom: 1.4rem; }
.hero {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 2rem;
    align-items: center;
    padding: 5rem 0 3rem;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { margin: .25rem 0 1rem; color: var(--brand-dark); font-size: clamp(2.35rem, 6vw, 4.7rem); }
h2 { color: var(--brand-dark); }
.hero p:not(.eyebrow), .page-intro p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.eyebrow { margin: 0; color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-note {
    display: grid;
    gap: .75rem;
    padding: 1.6rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.hero-note span { padding-top: .65rem; border-top: 1px solid var(--line); }
.catalog-tools { margin: 0 0 3rem; }
.catalog-tools > label { display: block; margin-bottom: .5rem; font-weight: 700; }
.catalog-tools input {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}
.category-nav { display: flex; gap: .6rem; margin-top: 1rem; overflow-x: auto; padding-bottom: .4rem; }
.category-nav a {
    flex: 0 0 auto;
    padding: .6rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--brand-dark);
    text-decoration: none;
}
.category-section { padding: 1.5rem 0 4rem; scroll-margin-top: 100px; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem; }
.section-heading h2 { margin: .2rem 0 0; font-size: 2.2rem; }
.section-heading > p { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    min-height: 185px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 24px rgba(70, 45, 53, .05);
}
.product-image-link { display: block; width: 90px; min-height: 185px; background: var(--brand-soft); }
.product-card img, .product-placeholder { width: 90px; height: 100%; min-height: 185px; object-fit: cover; }
.product-image-link img { display: block; }
.product-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f1dce4, #f9f0e8);
    color: var(--brand);
    font: 700 2.5rem Georgia, serif;
}
.product-content { display: flex; flex-direction: column; padding: 1rem; }
.product-content h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.product-price { margin: 0 0 .35rem; color: var(--brand-dark); font-weight: 800; }
.product-content > small { margin-bottom: .65rem; color: var(--muted); line-height: 1.35; }
.product-content form { margin-top: auto; }
.product-content label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.quantity-row { display: grid; grid-template-columns: 62px auto 1fr; gap: .45rem; align-items: center; }
.quantity-row input { width: 62px; padding: .55rem; border: 1px solid var(--line); border-radius: 9px; }
.quantity-row button, .button {
    border: 0;
    border-radius: 10px;
    padding: .65rem .9rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.quantity-row button, .button.primary { background: var(--brand); color: white; }
.button.secondary { border: 1px solid var(--line); background: white; color: var(--brand-dark); }
.button.danger { border: 1px solid #e6c7c7; background: #fff8f8; color: #8c2f2f; }
.floating-basket {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 10;
    padding: .9rem 1.2rem;
    border-radius: 999px;
    background: var(--brand-dark);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.messages { position: fixed; top: 95px; right: 1rem; z-index: 40; width: min(420px, calc(100% - 2rem)); }
.message { margin-bottom: .5rem; padding: .85rem 1rem; border-radius: 12px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.message.success { border-left: 5px solid var(--green); }
.message.error { border-left: 5px solid #b33e3e; }
.page-intro { padding: 3.5rem 0 2rem; }
.page-intro h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.basket-list { display: grid; gap: .75rem; }
.basket-item {
    display: grid;
    grid-template-columns: 1fr 180px 100px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}
.basket-item small { color: var(--muted); }
.basket-item h2 { margin: .15rem 0; font-size: 1.25rem; }
.basket-item label { font-size: .8rem; font-weight: 700; }
.basket-quantity { display: flex; gap: .4rem; align-items: center; }
.basket-quantity input { width: 90px; padding: .6rem; border: 1px solid var(--line); border-radius: 9px; }
.remove-choice { color: #8c2f2f; }
.basket-estimate { display: flex; justify-content: flex-end; gap: 1rem; align-items: baseline; margin-top: 1rem; color: var(--brand-dark); }
.basket-estimate strong, .summary-total strong { font-size: 1.25rem; }
.action-bar { display: flex; justify-content: flex-end; gap: .75rem; margin: 1.5rem 0 4rem; flex-wrap: wrap; }
.request-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.order-summary, .request-form, .success-card, .empty-state {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}
.order-summary { position: sticky; top: 105px; padding: 1.2rem; }
.order-summary h2 { margin-top: 0; }
.order-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.order-summary div small { display: block; color: var(--muted); }
.order-summary .summary-total { color: var(--brand-dark); font-weight: 800; }
.estimate-note { color: var(--muted); font-size: .82rem; }
.order-summary a { display: inline-block; margin-top: 1rem; color: var(--brand); font-weight: 700; }
.request-form { padding: 1.4rem; }
fieldset { margin: 0 0 1.4rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
legend { padding: 0 .4rem; color: var(--brand-dark); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .86rem; font-weight: 700; }
.form-control {
    width: 100%;
    padding: .72rem .8rem;
    border: 1px solid #d8cbc6;
    border-radius: 9px;
    background: #fffdfc;
}
.has-error .form-control { border-color: #a73333; }
.field-error, .form-errors { color: #962f2f; font-size: .83rem; }
.consent-row { display: flex; gap: .65rem; align-items: flex-start; margin: 1rem 0; }
.consent-row input { margin-top: .35rem; }
.wide { width: 100%; padding: .9rem; }
.success-card, .empty-state { margin: 4rem auto; max-width: 760px; padding: 2rem; text-align: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #e4f2e9; color: var(--green); font-size: 2rem; }
.success-card h1 { font-size: 3rem; }
.success-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.5rem 0; }
.success-details span { padding: 1rem; border-radius: 12px; background: var(--brand-soft); }
.success-details strong { display: block; }
.notice-box { margin: 1.2rem 0; padding: 1rem; border-radius: 12px; background: #fff4d9; }
footer { margin-top: 3rem; padding: 2rem max(1rem, calc((100vw - 1180px) / 2)); background: #342b2e; color: #f7edef; text-align: center; }
footer strong { display: block; }

@media (max-width: 900px) {
    .hero, .request-layout, .catalog-shell { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; }
    .sidebar-heading, .sidebar-help { display: none; }
    .catalog-sidebar nav { display: flex; gap: .35rem; overflow-x: auto; padding: .55rem; }
    .sidebar-link { flex: 0 0 auto; grid-template-columns: 30px auto auto; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-summary { position: static; }
}
@media (max-width: 620px) {
    .site-header { padding: .8rem 1rem; }
    .brand small { display: none; }
    .hero { padding-top: 3rem; }
    .product-grid, .form-grid, .category-overview-grid, .steps-row { grid-template-columns: 1fr; }
    .landing-hero { padding: 2rem 1.2rem; }
    .overview-heading, .category-page-heading { align-items: start; flex-direction: column; }
    .overview-heading > p { text-align: left; }
    .minimum-note { width: 100%; }
    .section-heading { align-items: start; flex-direction: column; }
    .basket-item { grid-template-columns: 1fr 1fr; }
    .basket-item > div { grid-column: 1 / -1; }
    .action-bar { flex-direction: column; }
    .action-bar .button { width: 100%; }
    .success-details { grid-template-columns: 1fr; }
}
