/* ==========================================================================
   WordPress-specific additions. Design styles are in style.css.
   ========================================================================== */

/* Keep the sticky header below the admin bar for logged-in users. */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .search-overlay { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .search-overlay { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .site-header,
  body.admin-bar .search-overlay { top: 0; }
}

/* Accessibility helpers used by WordPress core output. */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000;
  display: block; padding: 12px 20px; background: #fff; color: #111; left: 6px; top: 6px;
}

/* Editor content (pages, posts, product descriptions). */
.entry-content img, .legal-content img, .pd-description img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption { font-size: .875em; color: var(--muted, #6b7280); }
.pd-description > *:last-child { margin-bottom: 0; }
.legal-content h2 { scroll-margin-top: calc(var(--hdr, 140px) + 24px); }

/* Post pagination (index.php). */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; font-weight: 600; color: inherit; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--ink, #141414); color: #fff; border-color: transparent; }

/* WooCommerce notices on the theme's own templates. */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 16px 0 0; padding: 14px 18px; border-radius: 10px; background: var(--bg-2, #f6f6f3); border: 1px solid var(--line, #e5e7eb); }
