/* Svarog theme: parts of the live site that the prototype did not cover. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.theme-ico-sun, .theme-ico-moon { place-items: center; }
.theme-ico-sun { display: grid; }
.icon-btn { text-decoration: none; }
a.icon-btn { color: var(--fg); }

/* Search bar under the header */
.search-bar { border-top: 1px solid var(--line); background: var(--bg); }
.search-bar .wrap { display: flex; gap: 10px; padding-block: 12px; }
.search-bar input[type="search"] { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; }

/* Language filter as links on the shop page */
.seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 500; text-decoration: none; color: var(--fg); white-space: nowrap; transition: background-color .25s var(--ease), box-shadow .25s; }
.seg a[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 3px oklch(0.2 0.02 45 / 0.16); }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .price .amount, .book .price bdi { font-weight: 600; }
.book .price del { opacity: .55; font-weight: 400; margin-right: 4px; }
.book a.buy { text-decoration: none; display: inline-flex; align-items: center; }
.book a.buy.added { display: none; }
.book .added_to_cart { font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.book .meta a.t { color: inherit; }

/* Pagination */
.pagination, .woocommerce-pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav-links .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Author archive intro */
.author-intro { padding-block: 0 clamp(24px, 4vw, 40px); }

/* Book page */
.product-media { gap: 16px; }
.product-media .thumbs { display: flex; gap: 10px; justify-content: center; }
.product-media .thumbs img { width: 56px; height: auto; border-radius: 6px; }
.product-lede p { margin: 0; }
.product-price { font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.product-price del { opacity: .55; font-weight: 400; margin-right: 6px; }
.buy-box form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 0; }
.buy-box form.variations_form { display: block; }
.buy-box .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-box .single_variation_wrap .woocommerce-variation-price { font-size: var(--step-1); font-weight: 600; margin: 0 0 12px; }
.buy-box .quantity { display: inline-flex; }
.buy-box .quantity input.qty { width: 72px; height: 46px; text-align: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit; font-variant-numeric: tabular-nums; }
.buy-box .single_add_to_cart_button, .woo-area .button, .woo-area button.button, .woo-area #place_order, .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent) !important; color: var(--on-accent) !important; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; transition: background-color .2s, transform .25s var(--ease);
}
.buy-box .single_add_to_cart_button { flex: 1 1 220px; }
.buy-box .single_add_to_cart_button:hover, .woo-area .button:hover, .wpcf7-submit:hover { background: var(--accent-ink) !important; transform: translateY(-1px); }
.buy-box .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.buy-box .stock { font-size: 0.88rem; color: var(--muted); margin: 0; }
.buy-box .reset_variations { display: none !important; }
/* Format buttons from the e-books module, in this theme's style */
.svarog-formats .svarog-format { border-color: var(--line) !important; color: var(--fg) !important; background: var(--bg) !important; border-radius: 14px !important; }
.svarog-formats .svarog-format:hover { border-color: var(--muted) !important; }
.svarog-formats .svarog-format[aria-pressed="true"] { background: var(--bg) !important; color: var(--fg) !important; border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent) !important; }
.svarog-formats .svarog-format-price { color: var(--muted) !important; opacity: 1; }
.svarog-formats .svarog-format:focus-visible { outline-color: var(--accent) !important; }

/* Running text from the editor */
.entry > * + * { margin-top: 1.1em; }
.entry img { border-radius: 12px; height: auto; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .35em; }
.entry a { color: var(--accent-ink); text-underline-offset: 3px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { font-weight: 600; }
.entry blockquote { margin: 1.6em 0; font-family: var(--serif); font-size: var(--step-1); }
.entry h2 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.015em; margin-top: 2em; }
.entry h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.6em; }

/* Cart, checkout, account */
.page-head.compact { padding-block: clamp(28px, 4vw, 48px) 8px; }
.page-head.compact h1 { font-size: var(--step-2); }
.shop-flow { padding-bottom: clamp(56px, 8vw, 104px); }
.woo-area { color: var(--fg); }
.woo-area table.shop_table { border: 1px solid var(--line); border-radius: 14px; border-collapse: separate; overflow: hidden; width: 100%; }
.woo-area table.shop_table th, .woo-area table.shop_table td { border-color: var(--line); padding: 14px 16px; }
.woo-area table.shop_table img { width: 56px; border-radius: 4px; }
.woo-area input.input-text, .woo-area select, .woo-area textarea, .woo-area .select2-selection { border: 1px solid var(--line) !important; border-radius: 10px !important; background: var(--bg) !important; color: var(--fg) !important; padding: 10px 12px !important; min-height: 44px; font: inherit; }
.woo-area label { font-size: 0.88rem; font-weight: 500; }
.woo-area .woocommerce-info, .woo-area .woocommerce-message, .woo-area .woocommerce-error, .woocommerce-notices-wrapper > * {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); color: var(--fg); padding: 14px 18px; list-style: none; margin: 0 0 20px;
}
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }
.woo-area #payment { background: var(--bg-alt) !important; border-radius: 14px; }
.woo-area #payment div.payment_box { background: var(--bg) !important; color: var(--fg); }
.woo-area #payment div.payment_box::before { border-bottom-color: var(--bg) !important; }
.woo-area .cart-collaterals .cart_totals { width: 100%; max-width: 460px; margin-left: auto; }
.woo-area .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.woo-area .woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.woo-area .woocommerce-MyAccount-navigation .is-active a { background: var(--bg-alt); font-weight: 600; }
.woo-area a { color: var(--accent-ink); }

/* Contact Form 7 inside the contact card */
.contact-form .wpcf7 form { display: grid; gap: 14px; }
.contact-form .wpcf7 p { margin: 0; display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; }
.contact-form .wpcf7 br { display: none; }
.contact-form .wpcf7 input:not([type="submit"]):not([type="checkbox"]), .contact-form .wpcf7 textarea, .contact-form .wpcf7 select { width: 100%; font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.contact-form .wpcf7-response-output { margin: 0 !important; border-radius: 10px; font-size: 0.9rem; }
.contact-form .wpcf7-not-valid-tip { color: var(--accent-ink); font-size: 0.82rem; }
.contact-form a { color: var(--accent-ink); }
.big a { text-decoration: none; }

/* Dark theme for WooCommerce bits that set their own colours */
:root[data-theme="dark"] .woocommerce-message, :root[data-theme="dark"] .woocommerce-info { color: var(--fg); }

/* Admin bar offset for the sticky header */
.admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .nav { top: calc(env(safe-area-inset-top, 0px) + 46px); } }
@media (max-width: 600px) { .admin-bar .nav { top: env(safe-area-inset-top, 0px); } }
.tinv-wraper, .tinvwl_add_to_wishlist_button { display: none !important; }
.feature-text h2 { font-size: var(--step-2); line-height: 1.12; }

/* Header on small phones */
.links .menu-only { display: none; }
@media (max-width: 900px) { .nav.open .links .menu-only { display: block; } }
@media (max-width: 480px) {
  .nav .wrap { gap: 12px; }
  .tools { gap: 0; margin-left: auto; }
  .tools .icon-btn { width: 34px; height: 34px; }
  .tools .account-btn { display: none; }
  .brand { font-size: 0.92rem; gap: 8px; }
}

/* Book reviews */
.product-rating { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.product-rating:hover span { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.star-rating { position: relative; display: inline-block; width: 5.6em; height: 1.1em; line-height: 1; font-size: 0.95rem; overflow: hidden; vertical-align: middle; }
.star-rating::before, .star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; top: 0; left: 0; letter-spacing: 0.12em; }
.star-rating::before { color: var(--line); }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1.6em; }
.star-rating span::before { color: var(--accent); }
.reviews-band { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.reviews-band .woocommerce-Reviews { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.reviews-band .woocommerce-Reviews-title, .reviews-band .comment-reply-title { display: block; font-size: var(--step-1); font-weight: 650; letter-spacing: -0.015em; margin: 0 0 18px; }
.reviews-band .woocommerce-noreviews { color: var(--muted); margin: 0; }
.reviews-band ol.commentlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reviews-band ol.commentlist > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.reviews-band ol.commentlist > li:first-child { padding-top: 0; }
.reviews-band .comment_container { display: block; }
.reviews-band .comment_container img.avatar { display: none; }
.reviews-band .comment-text .meta { margin: 8px 0 6px; font-size: 0.86rem; color: var(--muted); }
.reviews-band .comment-text .meta strong { color: var(--fg); font-weight: 600; }
.reviews-band .woocommerce-review__verified { font-style: normal; color: var(--accent-ink); }
.reviews-band .comment-text .description p { margin: 0; }
.reviews-band #review_form_wrapper { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.reviews-band .comment-form { display: grid; gap: 14px; }
.reviews-band .comment-form p { margin: 0; }
.reviews-band .comment-notes, .reviews-band .comment-form-cookies-consent { font-size: 0.85rem; color: var(--muted); }
.reviews-band .comment-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.reviews-band .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.reviews-band .comment-form-cookies-consent label { display: inline; font-weight: 400; margin: 0; }
.reviews-band .comment-form input[type="text"], .reviews-band .comment-form input[type="email"], .reviews-band .comment-form textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.reviews-band .comment-form textarea { height: 140px; min-height: 100px; resize: vertical; }
.reviews-band .comment-form .submit { display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
.reviews-band .comment-form .submit:hover { background: var(--accent-ink); }
.reviews-band .comment-form-rating select { display: none; }
.reviews-band p.stars { margin: 0; line-height: 1; }
.reviews-band p.stars span { display: inline-flex; gap: 2px; }
.reviews-band p.stars a { position: relative; display: inline-block; width: 1.5em; height: 1.5em; font-size: 1.15rem; text-indent: -999em; overflow: hidden; text-decoration: none; }
.reviews-band p.stars a::before { content: "\2605"; position: absolute; inset: 0; text-indent: 0; text-align: center; line-height: 1.5em; color: var(--muted); opacity: .45; transition: color .15s, opacity .15s; }
.reviews-band p.stars:hover a::before, .reviews-band p.stars.selected a:not(.active)::before, .reviews-band p.stars.selected a.active::before { color: var(--accent); opacity: 1; }
.reviews-band p.stars a:hover ~ a::before, .reviews-band p.stars.selected a.active ~ a::before { color: var(--muted); opacity: .45; }
.reviews-band p.stars:hover a:hover ~ a::before { color: var(--muted); opacity: .45; }
.reviews-band p.stars a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 860px) { .reviews-band .woocommerce-Reviews { grid-template-columns: minmax(0, 1fr); } }
