/* TNOC – WordPress-specific additions to the static design styles. */

/* Admin bar + sticky header */
.admin-bar .site-header.sticky-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.sticky-top { top: 0; } }

/* Accessibility helpers */
.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 !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; background: var(--tnoc-cream); padding: .75rem 1rem; }
.tnoc-skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--tnoc-brown); color: var(--tnoc-white) !important; padding: .6rem 1rem; border-radius: 8px; }
.tnoc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Logo images output by WordPress */
.navbar-brand img { height: auto; }
.footer-logo { height: auto; }

/* Header: dropdowns from WordPress menus */
.site-header .dropdown-menu { background: var(--tnoc-cream); border-color: var(--tnoc-border); border-radius: 14px; padding: .4rem; }
.site-header .dropdown-item { color: var(--tnoc-brown); font-weight: 700; font-size: var(--fs-small); border-radius: 8px; }
.site-header .dropdown-item:hover, .site-header .dropdown-item.active { background: var(--tnoc-soft-gold); color: var(--tnoc-brown); }

/* Shop filters are links (crawlable); keep the button look */
a.filter-btn { display: inline-block; line-height: 1.5; }

/* Images rendered by WordPress keep the design sizing */
.hero-image-wrap img { height: auto; }
.story-page__figure img { height: auto; }
.category-icon img { height: 100%; }
.pdp-gallery__stage img { height: auto; }
.pdp-facts img { height: 64px; }
.product-image-stage img { height: 100%; }
.video-thumb img { height: 100%; }
#why-press.tnoc-why .tnoc-why__model > img { height: auto; }

/* Product card / PDP states */
.quick-add.is-loading, #pdpAdd.is-loading { opacity: .7; pointer-events: none; }
.btn-tnoc:disabled { background: var(--tnoc-gold); border-color: var(--tnoc-gold); color: var(--tnoc-brown); opacity: .55; }
.pdp-tagline p:last-child { margin-bottom: 0; }
.qty-control input { min-height: 44px; }

/* Accordion content from the WYSIWYG editor */
.pdp-accordion .accordion-body ul, .pdp-accordion .accordion-body ol { margin-bottom: 0; }
.pdp-accordion .accordion-body ul + p, .pdp-accordion .accordion-body ol + p { margin-top: 1rem; }
.pdp-accordion .accordion-body li { margin-bottom: .5rem; }
.pdp-accordion .accordion-body li:last-child { margin-bottom: 0; }
.pdp-accordion .accordion-body p { margin-bottom: .5rem; }
.pdp-accordion .accordion-body p:last-child { margin-bottom: 0; }
.pdp-accordion .accordion-body p strong:only-child { color: var(--tnoc-charcoal); }
.pdp-accordion .accordion-body img { height: auto; border-radius: 12px; }

/* Kitchen gallery */
.pdp-photo-grid img { height: auto; }

/* Generic page / post content */
.tnoc-prose { max-width: 860px; }
.tnoc-prose > * + * { margin-top: 1rem; }
.tnoc-prose p, .tnoc-prose li { font-size: 1.0625rem; line-height: 1.75; }
.tnoc-prose h2 { margin-top: 2.25rem; }
.tnoc-prose h3 { margin-top: 1.75rem; }
.tnoc-prose a { color: var(--tnoc-gold); text-decoration: underline; }
.tnoc-prose img { height: auto; border-radius: 14px; }
.tnoc-prose blockquote { border-left: 3px solid var(--tnoc-gold); padding-left: 1rem; color: var(--tnoc-muted); }
.alignleft { float: left; margin: .35rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .35rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: var(--fs-small); color: var(--tnoc-muted); margin-top: .4rem; }

/* Blog cards (index.php) */
.tnoc-post-card { background: var(--tnoc-cream); border: 1px solid var(--tnoc-border); border-radius: 22px; overflow: hidden; }
.tnoc-post-card__image img { width: 100%; height: 220px; object-fit: cover; }

/* Pagination */
.nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: 0; list-style: none; }
.nav-links .page-numbers, .woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 .75rem; border: 1px solid var(--tnoc-border); border-radius: 999px; color: var(--tnoc-brown); font-weight: 700; }
.nav-links .page-numbers.current, .woocommerce-pagination .page-numbers.current { background: var(--tnoc-brown); color: var(--tnoc-white); border-color: var(--tnoc-brown); }

/* Forms (contact / partner) */
.tnoc-form-error:empty { display: none; }
