:root {
    --ink: #2c3338;
    --muted: #6b7480;
    --line: #e4e8ec;
    --accent: #8b6f47;
    --bg: #faf9f7;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}
.header-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; justify-content: space-between; }
.brand { text-decoration: none; display: block; align-self: center; }
.brand-logo { display: block; height: auto; width: auto; max-width: 260px; max-height: 61px; }
.main-nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .95rem; }
.main-nav a { text-decoration: none; color: var(--muted); }
.main-nav a:hover { color: var(--accent); }

.hero { padding: 3rem 0 2rem; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.hero p { color: var(--muted); max-width: 46rem; margin: 0 auto; }

.section-title { margin: 2.5rem 0 1rem; font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.08); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card > span { padding: .75rem .9rem; }
.product-name { font-weight: bold; }
.product-price { color: var(--accent); }

.breadcrumb { font-size: .85rem; color: var(--muted); margin: 1.2rem 0; }
.breadcrumb span { color: var(--ink); }

.category-head { margin: 1rem 0 1.5rem; }

.product-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr); gap: 2.5rem; margin: 1.5rem 0 3rem; }
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } .category-head { flex-direction: column; } }
.main-image { border: 1px solid var(--line); border-radius: 6px; width: 100%; height: auto; display: block; }
.thumbs { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }

.short-desc { color: var(--muted); font-style: italic; }
.price-big { font-size: 1.5rem; font-weight: bold; }

.inquiry-form { display: grid; gap: .8rem; margin-top: 1rem; }
.inquiry-form label { display: grid; gap: .25rem; font-size: .9rem; color: var(--muted); }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
    font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.inquiry-form fieldset {
    border: 0; border-top: 1px solid var(--line);
    margin: 1.2rem 0 0; padding: .9rem 0 0;
    display: grid; gap: .8rem;
}
.inquiry-form fieldset:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.inquiry-form legend {
    font-weight: bold; font-size: .95rem; color: var(--accent);
    padding: 0 .5rem 0 0;
}
.inquiry-form .sr-only {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.btn {
    background: var(--accent); color: #fff; border: 0; padding: .7rem 1.4rem;
    font: inherit; border-radius: 4px; cursor: pointer; justify-self: start;
}
.btn:hover { filter: brightness(.94); }

.notice { padding: .8rem 1rem; border-radius: 4px; margin: 1rem 0; }
.notice.success { background: #e8f5ec; border: 1px solid #b8e0c4; }

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

/* image gallery / lightbox */
.main-image.zoomable { cursor: zoom-in; }
.thumbs button {
    display: block; flex: 0 0 auto; line-height: 0;
    padding: 0; border: 1px solid var(--line); border-radius: 4px;
    background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(20, 18, 15, .92);
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox .lb-img {
    max-width: 92vw; max-height: 86vh; width: auto; height: auto;
    border-radius: 4px; box-shadow: 0 6px 40px rgba(0,0,0,.5);
}
.lightbox .lb-counter { color: #cfc8bd; font-size: .9rem; margin-top: .6rem; }
.lightbox button {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.08); color: #f5f2ec; border: 0;
    font-size: 2.4rem; line-height: 1; padding: .8rem 1rem; cursor: pointer; border-radius: 6px;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
.lightbox .lb-close { top: 1rem; right: 1rem; transform: none; font-size: 2rem; }
body.lb-open { overflow: hidden; }

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    margin-top: 3rem;
    padding: 1.5rem 0 2rem;
    font-size: .9rem;
    text-align: center;
    color: var(--muted);
    display: grid;
    gap: .2rem;
}
