/* Pirtûk store (book section): header, footer, home, catalogue, book page. Colours = the site's own (--green, --gold, --paper ...). No cart. */
.is-store { background: var(--paper); }
.is-store .utility, .is-store .site-header, .is-store .nav-bar, .is-store .notice { display: none; } /* Native block-mode pieces of the site header. */
.st-wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: 16px; }
.st-page { padding-bottom: 3em; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .6em 1.15em; border-radius: 8px; border: 1.5px solid var(--green); background: var(--green); color: #fff !important; font-weight: 700; font-size: .95em; cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.st-btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.st-btn--line { background: transparent; color: var(--green) !important; }
.st-btn--line:hover { background: var(--mint); color: var(--green-dark) !important; border-color: var(--green); }
.st-btn--sm { padding: .4em .9em; font-size: .88em; }
.st-btn--big { padding: .8em 1.5em; font-size: 1.02em; }
.st-empty { padding: 2em 0; color: var(--muted); }

/* Header */
.st-header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.st-top { background: var(--green-dark); color: #d9e6df; font-size: .82em; }
.st-top-in { display: flex; justify-content: space-between; gap: 1em; padding-block: 6px; }
.st-top a { color: #fff; font-weight: 600; }
.st-top a:hover { color: var(--gold); }
.st-main-in { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.st-logo-img { height: 38px; width: auto; }
.st-brand-name { font-family: var(--serif); font-size: 1.9em; font-weight: 800; color: var(--green); line-height: 1; }
.st-search { flex: 1; display: flex; max-width: 640px; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.st-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7em 1em; font: inherit; font-size: 1rem; outline: none; color: var(--ink); }
.st-search:focus-within { border-color: var(--green); }
.st-search button { border: 0; background: var(--green); color: #fff; padding: 0 1.2em; cursor: pointer; }
.st-search button:hover { background: var(--green-dark); }
.st-fav-link { position: relative; margin-inline-start: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78em; font-weight: 700; color: var(--ink); }
.st-fav-link i { font-size: 1.5em; color: var(--green); }
.st-badge { position: absolute; top: -6px; inset-inline-end: -8px; min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.st-nav { background: var(--green); }
.st-nav-in { display: flex; gap: 2px; margin: 0 auto; padding-block: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.st-nav-in::-webkit-scrollbar { display: none; }
.st-nav-in > li { position: relative; flex: 0 0 auto; }
.st-nav-in a { display: flex; align-items: center; gap: .5em; padding: .85em 1em; color: #fff; font-weight: 700; font-size: .95em; white-space: nowrap; }
.st-nav-in a:hover, .st-nav-in a:focus-visible { background: var(--green-mid); color: var(--gold); }
.st-caret { font-size: .7em; }
.st-sub { display: none; position: absolute; inset-inline-start: 0; top: 100%; z-index: 10; min-width: 200px; margin: 0; padding: 6px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(0,0,0,.15); }
.st-has-sub:hover .st-sub, .st-has-sub:focus-within .st-sub { display: block; }
.st-nav-in .st-sub a { color: var(--ink); font-weight: 600; padding: .55em 1em; }
.st-nav-in .st-sub a:hover { background: var(--mint); color: var(--green); }
@media (max-width: 760px) { .st-main-in { flex-wrap: wrap; gap: 10px; } .st-search { order: 3; flex: 1 0 100%; max-width: none; } .st-brand-name { font-size: 1.6em; } .st-sub { display: none !important; } .st-top span { display: none; } }

/* Home */
.st-hero { position: relative; margin-top: 18px; border-radius: 14px; overflow: hidden; }
.st-hero-track { position: relative; aspect-ratio: 16 / 7; background: var(--green-dark); }
.st-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; display: block; }
.st-slide.is-on { opacity: 1; z-index: 1; }
.st-slide img { width: 100%; height: 100%; object-fit: cover; }
.st-slide-cap { position: absolute; inset: auto 0 0 0; padding: 40px 28px 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: grid; gap: 4px; }
.st-slide-cap small { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-slide-cap strong { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1.15; }
.st-hero-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--green); cursor: pointer; }
.st-prev { inset-inline-start: 12px; } .st-next { inset-inline-end: 12px; }
.st-hero-nav:hover { background: #fff; }
.st-dots { position: absolute; z-index: 2; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.st-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.6); cursor: pointer; transition: width .3s; }
.st-dots button.is-on { width: 22px; background: var(--gold); }
.st-sec { margin-top: 2.6em; }
.st-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-bottom: 1.1em; }
.st-sec-head h2 { font-size: 1.6em; }
.st-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.st-tiles a { display: flex; flex-direction: column; gap: 4px; justify-content: flex-end; min-height: 110px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, var(--mint), var(--surface)); border: 1px solid var(--line); }
.st-tiles a:hover { border-color: var(--green); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.st-tiles strong { font-family: var(--serif); font-size: 1.1em; color: var(--green-dark); }
.st-tiles small, .st-people small { color: var(--muted); }
.st-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.st-people a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.st-people a:hover { border-color: var(--green); }
.st-people i { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--green); }
.st-people span { display: grid; min-width: 0; }
.st-people strong { overflow-wrap: anywhere; }
.st-people--big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 1.4em; }

/* Cards */
.st-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.st-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.st-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.1); transform: translateY(-2px); }
.st-cover { position: relative; display: block; aspect-ratio: 2 / 3; background: var(--mint); overflow: hidden; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-cover-ph { display: flex; align-items: center; justify-content: center; height: 100%; padding: 1em; text-align: center; color: #fff; background: var(--green); font-family: var(--serif); font-size: 1.2em; }
.st-tag { position: absolute; top: 10px; inset-inline-end: 10px; padding: 2px 10px; border-radius: 6px; background: var(--gold); color: var(--green-dark); font-size: .75em; font-weight: 800; }
.st-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.st-card-meta { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: .78em; color: var(--muted); }
.st-card-meta span { text-align: end; }
.st-card-title { font-family: var(--serif); font-size: 1.02em; line-height: 1.3; }
.st-card-title a:hover { color: var(--green); }
.st-card-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 1.4em; }
.st-stars { color: var(--gold); font-size: .85em; letter-spacing: 1px; white-space: nowrap; }
.st-stars .fa-regular { color: #cfc9b8; }
.st-price { color: var(--green); font-weight: 800; }
.st-card-actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-heart { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.st-heart:hover { border-color: var(--red); color: var(--red); }
.st-heart[aria-pressed="true"], .st-favbtn[aria-pressed="true"] i { color: var(--red); font-weight: 900; }
.st-heart[aria-pressed="true"] { border-color: var(--red); }
@media (max-width: 520px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .st-card-body { padding: 10px; } .st-card-actions .st-btn { padding-inline: .6em; } }

/* Page head, crumbs */
.st-crumbs { display: flex; flex-wrap: wrap; gap: .5em; padding: 18px 0 6px; font-size: .88em; color: var(--muted); }
.st-crumbs a:hover { color: var(--green); }
.st-crumbs b { color: var(--ink); font-weight: 600; }
.st-page-head { padding: 6px 0 20px; }
.st-page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.st-kicker { margin: 0 0 4px; color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8em; }
.st-lead { margin: 8px 0 0; max-width: 70ch; color: var(--body); }

/* Catalogue */
.st-layout { display: block; }
.has-filters .st-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.st-filters-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.st-filters-box > summary { cursor: pointer; font-weight: 800; list-style: none; }
.st-filters-box > summary::-webkit-details-marker { display: none; }
.st-fgroup { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.st-fgroup legend { font-family: var(--serif); font-weight: 700; margin-bottom: 8px; padding: 0; }
.st-fsearch { width: 100%; margin-bottom: 8px; padding: .5em .7em; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: inherit; }
.st-fgroup ul { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow: auto; }
.st-fgroup li label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: .92em; }
.st-fgroup li input { accent-color: var(--green); }
.st-fgroup li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-fgroup li small { color: var(--muted); }
.st-factions { display: flex; gap: 8px; margin-top: 18px; }
.st-factions .st-btn { flex: 1; }
.st-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.st-found { font-weight: 700; }
.st-sort { display: flex; align-items: center; gap: 8px; font-size: .9em; }
.st-sort select { padding: .4em .7em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; }
@media (max-width: 860px) { .has-filters .st-layout { grid-template-columns: 1fr; } .st-filters-box:not([open]) form { display: none; } }

/* Book page */
.st-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; padding: 16px 0 10px; align-items: start; }
.st-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.st-gallery:not(:has(.st-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.st-thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-thumbs button { width: 100%; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 2 / 3; }
.st-thumbs button.is-on { border-color: var(--green); }
.st-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.st-main-img { border-radius: 12px; overflow: hidden; background: var(--mint); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.st-main-slide { display: none; }
.st-main-slide.is-on { display: block; }
.st-main-slide img { width: 100%; height: auto; max-height: 640px; object-fit: contain; background: var(--mint); }
.st-info h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.st-by { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; color: var(--muted); }
.st-by a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.st-by a:hover { color: var(--green); border-color: var(--green); }
.st-price-big { margin: 14px 0 0; font-size: 1.9em; font-weight: 800; color: var(--green); }
.st-summary { margin-top: 14px; line-height: 1.7; }
.st-summary p { margin: 0 0 .6em; }
.st-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips a { display: inline-flex; align-items: center; gap: 6px; padding: .3em .85em; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-weight: 700; font-size: .85em; }
.st-chips a:hover { background: var(--green); color: #fff; }
.st-specs { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.st-specs h2 { font-size: 1.05em; margin-bottom: 8px; }
.st-specs ul { list-style: none; margin: 0; padding: 0; }
.st-specs li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.st-specs li:first-child { border-top: 0; }
.st-specs i { color: var(--green); font-size: .85em; }
.st-specs li span { color: var(--muted); }
.st-specs b { font-weight: 700; overflow-wrap: anywhere; }
.st-specs a { color: var(--green); }
.st-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.st-tabs { margin-top: 2.4em; }
.st-tabbar { display: flex; gap: 6px; border-bottom: 2px solid var(--line); }
.st-tabbar button { padding: .8em 1.4em; border: 0; background: none; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.st-tabbar button.is-on { color: var(--green); border-color: var(--green); }
.st-tabpanel { display: none; padding: 22px 0; max-width: 820px; }
.st-tabpanel.is-on { display: block; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th, .st-table td { padding: .65em .8em; border-bottom: 1px solid var(--line); text-align: start; }
.st-table th { width: 38%; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .st-detail { grid-template-columns: 1fr; gap: 22px; } .st-gallery { grid-template-columns: 1fr; } .st-thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; } }

/* Footer */
.st-footer { margin-top: 3em; background: var(--green-dark); color: #cfdcd5; }
.st-foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-block: 40px 26px; }
.st-footer h2 { color: #fff; font-size: 1.05em; margin-bottom: 12px; }
.st-footer p { margin: 0; line-height: 1.7; }
.st-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-footer a { color: #cfdcd5; }
.st-footer a:hover { color: var(--gold); }
.st-foot-bottom { padding-block: 16px 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85em; color: #9fb4a9; }
@media (max-width: 700px) { .st-foot-cols { grid-template-columns: 1fr; } }

/* Dark mode */
html[data-theme="dark"] .st-main-img, html[data-theme="dark"] .st-main-slide img { background: #18211c; }
html[data-theme="dark"] .st-tiles a { background: linear-gradient(135deg, #1b2a22, #151c18); }
html[data-theme="dark"] .st-brand-name { color: var(--gold); }
