*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --parch: #F7F3EA; --paper: #FFFEFA; --ink: #1D2330; --navy: #1F3A5F; --navy-2: #2E5283;
  --deep: #14263F; --gold: #D9B45A; --line: #E4DCCB; --muted: #5E6573; --sky: #C9D3E0; --warn: #8A2C2C;
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--parch); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* header */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(247,243,234,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 0 2rem; display: flex; align-items: center; gap: 2rem; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.nav-logo:hover { text-decoration: none; color: var(--ink); }
.nav-logo img { width: 42px; height: 42px; flex: none; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-word { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
.nav-logo-word span { color: var(--navy); font-weight: 400; }
.nav-logo-sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; list-style: none; }
.nav-links a { color: var(--ink); font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 0.3rem 0; border-bottom: 1.5px solid transparent; transition: border-color 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--navy); border-bottom-color: var(--navy); text-decoration: none; }

/* hero */
.hero { position: relative; background: var(--deep); color: var(--parch); text-align: center; padding: 5.5rem 2rem 5rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(217,180,90,0.13), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(46,82,131,0.75), transparent 70%); pointer-events: none; }
.hero > * { position: relative; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.hero-tag::before, .hero-tag::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.7; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1.25rem; color: var(--parch); }
.hero p { font-size: 1.1rem; color: var(--sky); max-width: 600px; margin: 0 auto 2.25rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn { background: var(--parch); color: var(--deep); }
.hero .btn:hover { background: #fff; color: var(--deep); }
.hero .btn-outline { background: transparent; color: var(--parch); border-color: rgba(247,243,234,0.45); }
.hero .btn-outline:hover { border-color: var(--parch); color: var(--parch); background: rgba(247,243,234,0.06); }

/* trust strip */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; max-width: 1140px; margin: 0 auto; padding: 1.5rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 1rem; border-left: 2px solid var(--gold); }
.trust strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.trust span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* layout */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem 5rem; }
.home .container { padding-top: 3.5rem; }
.section-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1.2; margin: 1rem 0 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.section-more { text-align: center; margin: 2rem 0 3.5rem; }
.divider { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--navy); color: var(--parch); border: 1px solid transparent; border-radius: 3px; padding: 0.8rem 1.5rem; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { background: var(--deep); color: var(--parch); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: transparent; border-color: var(--navy); color: var(--navy); }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 3.5rem; }
.cat-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1.25rem 2.5rem 1.25rem 1.25rem; transition: border-color 0.2s; }
.cat-card::after { content: "→"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--navy); opacity: 0; transition: opacity 0.2s, right 0.2s; }
.cat-card:hover { border-color: var(--navy); text-decoration: none; }
.cat-card:hover::after { opacity: 1; right: 1rem; }
.cat-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); line-height: 1.25; margin-bottom: 0.3rem; }
.cat-card span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* catalog layout */
.catalog { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.cat-side { position: sticky; top: 90px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.1rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.cat-side h2 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.cat-side ul { list-style: none; }
.cat-side li a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.42rem 0; font-size: 0.86rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.cat-side li:last-child a { border-bottom: 0; }
.cat-side li a span { color: var(--muted); font-size: 0.78rem; }
.cat-side li a:hover, .cat-side li a[aria-current] { color: var(--navy); text-decoration: none; font-weight: 600; }
.cat-side ul ul { padding-left: 0.85rem; }

/* product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.product-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, border-color 0.2s; }
.product-card:hover { border-color: #D3C9B4; box-shadow: 0 10px 28px -12px rgba(20,38,63,0.28); }
.product-card .thumb { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.product-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 0.75rem; background: #fff; transition: transform 0.3s; }
.product-card:hover img { transform: scale(1.03); }
.no-img { width: 100%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; background: linear-gradient(135deg, #FFFEFA, #EFE8DA); color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.no-img img { width: 30%; max-width: 72px; height: auto; aspect-ratio: 1; padding: 0; opacity: 0.35; background: none; }
.product-card:hover .no-img img { transform: none; }
.product-card-body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-cat { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.4rem; }
.product-card h3 { font-size: 0.88rem; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 0.75rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card h3 a:hover { color: var(--navy); }
.product-price { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-top: auto; }
.product-price.on-request { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.badge { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1; background: var(--paper); border: 1px solid var(--line); color: var(--warn); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 2px; }

/* page headers & articles */
.post-header { padding: 3.25rem 2rem 2rem; max-width: 1140px; margin: 0 auto; }
.post-header h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; color: var(--ink); line-height: 1.12; margin-bottom: 0.75rem; }
.post-header .lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.post-meta { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.article-content { max-width: 760px; font-size: 1.02rem; }
.article-content h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: var(--ink); line-height: 1.2; margin: 2.25rem 0 0.75rem; }
.article-content h3, .article-content h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 1.75rem 0 0.5rem; }
.article-content p { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1.1rem 1.5rem; }
.article-content li { margin-bottom: 0.35rem; }
.article-content img { border-radius: 3px; margin: 1rem 0; }
.article-content figure { margin: 1.5rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.article-content th { background: var(--paper); font-weight: 600; }
.article-content iframe { max-width: 100%; }
.article-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-content .alignleft { float: left; margin: 0.3rem 1.25rem 1rem 0; }
.article-content .alignright { float: right; margin: 0.3rem 0 1rem 1.25rem; }
.article-content::after { content: ""; display: block; clear: both; }
.article-content .product-grid { margin: 1rem 0 2.25rem; }
.article-content .product-card h3 { font-family: var(--sans); font-size: 0.88rem; font-weight: 500; margin: 0 0 0.75rem; }
.article-content .product-card img { margin: 0; border-radius: 0; }
.wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-box { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; padding: 1.5rem; margin: 1.75rem 0; }
.cta-box h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 0 0 0.4rem; }
.cta-box p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }

/* product detail */
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.75rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; margin-bottom: 3rem; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; }
.gallery-main img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumbs a { display: block; width: 72px; height: 72px; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 4px; }
.gallery-thumbs a:hover { border-color: var(--navy); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-cats { margin-bottom: 1rem; }
.product-detail-cats a { display: inline-block; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; padding: 0.2rem 0.6rem; font-size: 0.66rem; color: var(--muted); font-weight: 600; letter-spacing: 0.1em; margin: 0 0.3rem 0.3rem 0; text-transform: uppercase; }
.product-detail-cats a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.product-detail-info h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; color: var(--ink); line-height: 1.18; margin-bottom: 0.5rem; }
.product-detail-price { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--navy); margin: 0.75rem 0 0.25rem; }
.product-detail-price.on-request { font-family: var(--sans); font-size: 1.1rem; color: var(--muted); }
.product-meta { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.product-meta .stock-out { color: var(--warn); font-weight: 600; }
.product-short { margin-bottom: 1.25rem; font-size: 0.95rem; }
.product-short p { margin-bottom: 0.5rem; }
.attr-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1rem 0; }
.attr-table th, .attr-table td { border-bottom: 1px solid var(--line); padding: 0.45rem 0; text-align: left; }
.attr-table th { color: var(--muted); font-weight: 500; width: 40%; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: border-color 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--navy); }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.blog-card-body { padding: 1.25rem 1.4rem 1.4rem; }
.blog-card h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.25; margin-bottom: 0.5rem; }
.blog-card h2 a { color: var(--ink); }
.blog-card h2 a::after { content: ""; position: absolute; inset: 0; }
.blog-card p { font-size: 0.88rem; color: var(--muted); }

/* footer */
footer { background: var(--deep); color: var(--sky); font-size: 0.85rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 3rem 2rem 2rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; max-width: 480px; }
.footer-brand img { width: 44px; height: 44px; flex: none; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--parch); margin-bottom: 0.35rem; }
.footer-brand p { line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem 2.5rem; align-content: start; }
footer a { color: var(--parch); }
footer a:hover { color: var(--gold); text-decoration: none; }
.footer-legal { max-width: 1140px; margin: 0 auto; padding: 1.25rem 2rem 2rem; border-top: 1px solid rgba(201,211,224,0.2); font-size: 0.75rem; }

@media (max-width: 860px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .cat-side { position: static; max-height: 240px; }
}
@media (max-width: 700px) {
  .site-nav { padding: 0.6rem 1rem 0; gap: 0; height: auto; flex-wrap: wrap; }
  .nav-logo img { width: 36px; height: 36px; }
  .nav-logo-word { font-size: 1.25rem; }
  .nav-logo-sub { display: none; }
  .nav-links { width: 100%; margin: 0.5rem 0 0; justify-content: space-between; gap: 0; border-top: 1px solid var(--line); padding: 0.35rem 0; }
  .nav-links a { font-size: 0.85rem; display: block; padding: 0.35rem 0; }
  .hero { padding: 3.5rem 1rem 3.25rem; }
  .trust ul { padding: 1.25rem 1rem; gap: 1rem; }
  .container { padding: 0 1rem 3rem; }
  .post-header { padding: 2rem 1rem 1.5rem; }
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-card h3 { font-size: 0.82rem; }
  .article-content .alignleft, .article-content .alignright { float: none; margin: 1rem 0; }
  .footer-inner { padding: 2.5rem 1rem 1.5rem; }
  .footer-legal { padding: 1rem 1rem 1.5rem; }
}
