/*!
 * mtjr 2 — main stylesheet (logical properties: one file for RTL + LTR).
 *
 *  1. Tokens        6. Hero / slideshow     11. Blog
 *  2. Base          7. Sections & grids     12. Comments
 *  3. Layout        8. Category tiles       13. Footer
 *  4. Header        9. Sidebar & widgets    14. Utilities
 *  5. Navigation   10. Forms & buttons      15. Responsive
 */

/* 1. Tokens ------------------------------------------------------------ */
:root {
	--top-bar-bg: #283848;
	--header-bg: #212F3D;
	--nav-bg: #283848;
	--top-bar-text: #9badbd;
	--header-text: #ffffff;
	--nav-text: #ffffff;
	--header-accent: #F08804;
	--nav-active: #F08804;
	--submenu-bg: #ffffff;
	--submenu-text: #4A4A4A;
	--submenu-active: #F08804;
	--link: #00A8DE;
	--accent: #F08804;
	--text: #4A4A4A;
	--text-secondary: #394E64;
	--price: #B12704;
	--border: #DDDDDD;
	--btn-bg: #F08804;
	--btn-text: #ffffff;
	--btn-hover-bg: #a85f02;
	--btn-hover-text: #ffffff;
	--footer-bg: #283848;
	--footer-text: #ffffff;
	--footer-link: #ffffff;
	--footer-border: #42505d;
	--footer-bottom-bg: #212F3D;
	--footer-bottom-text: #ffffff;
	--footer-bottom-link: #F08804;
	--footer-titles: #ffffff;

	--text-light: color-mix(in srgb, var(--text) 68%, #fff);
	--border-dark: color-mix(in srgb, var(--border) 78%, #000);
	--surface: #ffffff;
	--surface-2: #f5f7f9;
	--radius: 8px;
	--radius-sm: 4px;
	--container: 1290px;
	--gutter: clamp(14px, 2.5vw, 24px);
	--shadow: 0 2px 10px rgba(16, 32, 48, .08);
	--shadow-lg: 0 14px 40px rgba(16, 32, 48, .16);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--font-heading: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.35; color: var(--text-secondary); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img, svg, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
blockquote { margin: 1.5em 0; padding: 4px 22px; border-inline-start: 4px solid var(--accent); font-size: 1.12em; color: var(--text-secondary); }
blockquote cite { display: block; margin-top: 8px; font-size: .85em; color: var(--text); font-style: normal; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 10px 12px; border: 1px solid var(--border); text-align: start; }
th { background: var(--surface-2); color: var(--text-secondary); }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { padding: 16px; overflow: auto; background: var(--surface-2); border-radius: var(--radius-sm); direction: ltr; text-align: left; }
mark, .text-theme { color: var(--accent); background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mtjr-icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.125em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100000; padding: 12px 18px; background: #fff; color: var(--text-secondary); box-shadow: var(--shadow-lg); }

/* 3. Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.header-fullwidth .container, .footer-fullwidth .container { max-width: none; }
.main { padding-block: 32px 56px; }


.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 290px; }
.layout.has-sidebar.sidebar-left { grid-template-columns: 290px minmax(0, 1fr); }
.layout.has-sidebar.sidebar-left .sidebar-col { order: -1; }
/* RTL: physical "right" means the reading start. */
[dir="rtl"] .layout.has-sidebar.sidebar-right { grid-template-columns: 290px minmax(0, 1fr); }
[dir="rtl"] .layout.has-sidebar.sidebar-right .sidebar-col { order: -1; }
[dir="rtl"] .layout.has-sidebar.sidebar-left { grid-template-columns: minmax(0, 1fr) 290px; }
[dir="rtl"] .layout.has-sidebar.sidebar-left .sidebar-col { order: 0; }
.layout.no-sidebar > .content-col { max-width: 100%; }
body:not(.woocommerce-page) .layout.no-sidebar > .content-col { width: min(100%, 880px); margin-inline: auto; }
.content-col { min-width: 0; }

.page-header { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-title { margin: 0; }
.page-title span { color: var(--accent); }
.archive-description { margin-top: 8px; color: var(--text-light); }

/* 4. Header ------------------------------------------------------------ */
.header { position: relative; z-index: 900; }
.top-head-wrap { background: var(--top-bar-bg); color: var(--top-bar-text); font-size: 13px; }
.top-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.top-head .list-social-icons { gap: 2px; }
.top-head .social-icon { width: 28px; height: 28px; border: 0; color: var(--top-bar-text); font-size: 13px; background: none; }
.top-head .social-icon:hover { color: #fff; background: none; }
.navigation-top { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.navigation-top a { color: var(--top-bar-text); }
.navigation-top a:hover { color: #fff; }

.head-mast { background: var(--header-bg); color: var(--header-text); padding-block: 14px; }
.head-mast-row { display: flex; align-items: center; gap: 22px; }
.header-branding-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding { display: flex; flex-direction: column; justify-content: center; }
.site-logo { margin: 0; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.site-logo a { color: var(--header-text); }
.site-logo a:hover { color: var(--header-accent); }
.site-tagline { margin: 2px 0 0; font-size: 12px; color: var(--header-text); opacity: .75; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 56px; width: auto; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.mobile-nav-trigger { display: none; color: var(--header-text); }

/* Header search */
.head-search { flex: 1; min-width: 0; }
.hide-search .head-search { display: none; }
.category-search-form { position: relative; display: flex; align-items: stretch; height: 44px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 0 var(--header-accent); transition: box-shadow .2s; }
.category-search-form:focus-within { box-shadow: 0 0 0 3px var(--header-accent); }
.category-search-select-wrap { position: relative; flex-shrink: 0; max-width: 34%; background: #f3f3f3; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); border-inline-end: 1px solid #ddd; }
.category-search-select {
	height: 100%; width: 100%; max-width: 220px; padding-inline: 12px 26px; border: 0; background: transparent;
	color: #555; font-size: 13px; cursor: pointer; -webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
	background-size: 5px 5px; background-repeat: no-repeat;
}
[dir="rtl"] .category-search-select { background-position: 14px 50%, 9px 50%; padding-inline: 12px 26px; }
.category-search-input-wrap { position: relative; flex: 1; min-width: 0; }
.category-search-input { width: 100%; height: 100%; padding-inline: 14px; border: 0; background: transparent; font-size: 15px; color: #111; }
.category-search-input:focus { outline: none; }
.category-search-btn {
	flex-shrink: 0; width: 52px; border: 0; background: var(--header-accent); color: #111; font-size: 1.15rem; cursor: pointer;
	border-start-end-radius: var(--radius); border-end-end-radius: var(--radius);
}
.category-search-btn:hover { filter: brightness(1.08); }

.category-search-results {
	position: absolute; inset-inline: 0; inset-block-start: calc(100% + 6px); z-index: 30;
	margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.category-search-results[hidden] { display: none; }
.category-search-results-item a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.category-search-results-item img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.category-search-results-item .r-title { flex: 1; font-weight: 600; line-height: 1.4; }
.category-search-results-item .r-price { color: var(--price); font-weight: 700; font-size: 14px; white-space: nowrap; }
.category-search-results-item a:hover, .category-search-results-item.highlighted a { background: var(--surface-2); color: var(--accent); }
.category-search-results .r-empty, .category-search-results .r-all { padding: 10px; font-size: 14px; color: var(--text-light); }
.category-search-results .r-all a { color: var(--link); font-weight: 600; }
.category-search-spinner { position: absolute; inset-inline-end: 12px; inset-block-start: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #ddd; border-top-color: var(--header-accent); border-radius: 50%; opacity: 0; transition: opacity .2s; }
.category-search-spinner.visible { opacity: 1; animation: mtjr-spin .7s linear infinite; }
@keyframes mtjr-spin { to { transform: rotate(360deg); } }

/* Mini cart */
.head-mini-cart-wrap { flex-shrink: 0; margin-inline-start: auto; }
.head-search + .head-mini-cart-wrap { margin-inline-start: 0; }
.header-mini-cart { position: relative; }
.header-mini-cart-trigger { position: relative; display: inline-grid; place-items: center; width: 50px; height: 46px; color: var(--header-text); font-size: 1.75rem; border-radius: var(--radius-sm); }
.header-mini-cart-trigger:hover { color: var(--header-accent); background: rgba(255, 255, 255, .06); }
.cart-count {
	position: absolute; inset-block-start: 0; inset-inline-end: 0; min-width: 21px; height: 21px; padding: 0 5px;
	border-radius: 999px; background: var(--header-accent); color: #111; font-size: 12px; font-weight: 700; line-height: 21px; text-align: center;
	transition: transform .25s var(--ease);
}
.cart-count.is-bumped { transform: scale(1.35); }
.header-mini-cart-contents {
	position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; z-index: 40; width: 340px; max-width: calc(100vw - 24px);
	padding: 18px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.header-mini-cart-contents[hidden] { display: none; }
.header-mini-cart-contents .widget-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; color: var(--text-secondary); font-family: var(--font-heading); }

/* 5. Navigation -------------------------------------------------------- */
.head-nav { background: var(--nav-bg); }
.head-nav.is-stuck { position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 950; box-shadow: var(--shadow); }
.admin-bar .head-nav.is-stuck { inset-block-start: 32px; }
.head-nav .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; }
.navigation-main { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.navigation-main > li { position: relative; }
.navigation-main > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: var(--nav-text); font-weight: 600; font-size: 15px; }
.navigation-main > li:hover > a, .navigation-main > li > a:focus, .navigation-main > .current-menu-item > a,
.navigation-main > .current-menu-parent > a, .navigation-main > .current-menu-ancestor > a { color: var(--nav-active); }
.navigation-main .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-inline-start: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.navigation-main > li[class*="fa-"]::before { position: absolute; inset-inline-start: 0; inset-block-start: 50%; transform: translateY(-50%); color: var(--header-accent); font-size: 13px; }
.navigation-main > li[class*="fa-"] > a { padding-inline-start: 22px; }
.navigation-main .nav-button > a { margin-inline: 6px; padding: 6px 14px; border: 2px solid var(--header-accent); border-radius: var(--radius-sm); }
.navigation-main .nav-button > a:hover { background: var(--header-accent); color: #111; }
.navigation-main ul {
	position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 30; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
	background: var(--submenu-bg); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.navigation-main ul ul { inset-block-start: -8px; inset-inline-start: 100%; border-radius: var(--radius); }
.navigation-main li:hover > ul, .navigation-main li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.navigation-main li.nav-open-left > ul { inset-inline-start: auto; inset-inline-end: 0; }
.navigation-main li li { position: relative; }
.navigation-main li li a { display: block; padding: 8px 18px; color: var(--submenu-text); font-size: 14px; }
.navigation-main li li:hover > a, .navigation-main li li > a:focus, .navigation-main li .current-menu-item > a { color: var(--submenu-active); background: var(--surface-2); }
.navigation-secondary { margin-inline-start: auto; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 10000; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(10, 16, 24, .55); }
.mobile-menu__panel {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 86vw); overflow-y: auto;
	background: #fff; box-shadow: var(--shadow-lg); animation: mtjr-slide-in .25s var(--ease);
}
[dir="rtl"] .mobile-menu__panel { animation-name: mtjr-slide-in-rtl; }
@keyframes mtjr-slide-in { from { transform: translateX(-100%); } }
@keyframes mtjr-slide-in-rtl { from { transform: translateX(100%); } }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--header-bg); color: var(--header-text); }
.mobile-menu__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.mobile-menu__list { margin: 0; padding: 6px 0; list-style: none; border-bottom: 1px solid var(--border); }
.mobile-menu__list ul { display: none; margin: 0; padding: 0 0 6px; list-style: none; background: var(--surface-2); }
.mobile-menu__list li.is-open > ul { display: block; }
.mobile-menu__list li { position: relative; }
.mobile-menu__list a { display: block; padding: 11px 18px; color: var(--text-secondary); font-weight: 600; }
.mobile-menu__list ul a { padding-inline-start: 32px; font-weight: 400; }
.mobile-menu__list .submenu-toggle { position: absolute; inset-inline-end: 6px; inset-block-start: 4px; width: 40px; height: 38px; border: 0; background: none; color: var(--text-light); cursor: pointer; }
.mobile-menu__list li.is-open > .submenu-toggle .mtjr-icon { transform: rotate(180deg); }
.mobile-menu__list li[class*="fa-"]::before { display: none; }
body.menu-open { overflow: hidden; }

/* 6. Hero / slideshow -------------------------------------------------- */
.page-hero {
	position: relative; display: flex; align-items: center; min-height: 200px; padding-block: 48px;
	background-color: var(--header-bg); background-position: center; background-size: cover; color: #fff;
}
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.page-hero > .container { position: relative; }
.page-hero-lg { min-height: clamp(320px, 42vw, 520px); }
.page-hero-content { max-width: 760px; }
.page-hero-align-center .page-hero-content { margin-inline: auto; text-align: center; }
.page-hero-align-right .page-hero-content { margin-inline-start: auto; text-align: end; }
[dir="rtl"] .page-hero-align-left .page-hero-content { margin-inline-start: auto; text-align: start; }
[dir="rtl"] .page-hero-align-right .page-hero-content { margin-inline-start: 0; margin-inline-end: auto; text-align: start; }
.page-hero-align-top { align-items: flex-start; }
.page-hero-align-bottom { align-items: flex-end; }
.page-hero-title { margin: 0 0 .3em; color: inherit; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3; }
.page-hero-subtitle { margin: 0; font-size: 1.08rem; opacity: .9; }
.page-hero-subtitle p:last-child { margin: 0; }
.page-hero .btn { margin-top: 22px; }

.page-hero-slideshow { position: relative; overflow: hidden; }
.page-hero-slideshow-track { display: grid; }
.page-hero-slideshow-track > .page-hero { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.page-hero-slideshow-track > .page-hero.is-active { opacity: 1; visibility: visible; }
.page-hero-slideshow-nav-wrap { position: absolute; inset-inline: 0; inset-block-end: 18px; z-index: 2; }
.page-hero-slideshow-nav { display: flex; align-items: center; gap: 8px; }
.page-hero-slideshow-nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--text-secondary); cursor: pointer; }
.page-hero-slideshow-nav .dot { width: 10px; height: 10px; padding: 0; background: rgba(255, 255, 255, .5); }
.page-hero-slideshow-nav .dot[aria-current="true"] { background: #fff; transform: scale(1.3); }

/* 7. Sections & grids -------------------------------------------------- */
.widget-sections { display: grid; gap: 54px; padding-block: 44px 64px; }
.widget-section-padded { padding-block: 44px; }
.widget-sections-footer .widget-section { margin: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section-heading-content { min-width: 0; }
.section-title { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--text-secondary); }
.section-title .section-more { margin-inline-start: 10px; font-size: .62em; font-weight: 600; color: var(--link); }
.section-subtitle { margin: 4px 0 0; color: var(--text-light); }
.row-slider-nav { display: flex; gap: 6px; flex-shrink: 0; }
.row-slider-nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.row-slider-nav button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.row-slider-nav button:disabled { opacity: .35; cursor: default; }

.row-items-cols-1 { --cols: 1; } .row-items-cols-2 { --cols: 2; } .row-items-cols-3 { --cols: 3; } .row-items-cols-4 { --cols: 4; }
.row-items { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.row-items.row-slider, .wc-slider ul.products {
	display: grid !important; grid-auto-flow: column; grid-template-columns: none !important;
	grid-auto-columns: calc((100% - (var(--cols) - 1) * 24px) / var(--cols));
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.row-items.row-slider::-webkit-scrollbar, .wc-slider ul.products::-webkit-scrollbar { display: none; }
.row-slider > *, .wc-slider ul.products > li { scroll-snap-align: start; }

.item { display: flex; flex-direction: column; height: 100%; }
.item-thumb { position: relative; margin-bottom: 14px; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.item-thumb a { display: block; }
.item-thumb img { display: block; width: 100%; transition: transform .5s var(--ease); }
.item:hover .item-thumb img, .entry-item:hover .item-thumb img { transform: scale(1.04); }
.item-meta { margin-bottom: 4px; font-size: 13px; color: var(--text-light); }
.item-meta a { color: var(--text-light); }
.item-title { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.item-title a { color: var(--text-secondary); }
.item-title a:hover { color: var(--accent); }
.item-inset, .item .price { color: var(--price); font-weight: 700; }

/* 8. Category tiles ---------------------------------------------------- */
.block-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.block-item {
	position: relative; grid-column: span var(--span, 6); grid-row: span var(--rows, 1); display: flex; min-height: 230px; overflow: hidden;
	border-radius: var(--radius); background: var(--text-secondary); color: #fff;
}
.block-item-xl { min-height: clamp(260px, 36vw, 420px); }
.block-item-long { min-height: 170px; }
.block-item-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.block-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 65%); }
.block-item:hover .block-item-image { transform: scale(1.05); }
.block-item-content-wrap { position: relative; z-index: 2; display: flex; align-items: flex-end; width: 100%; padding: 24px; }
.block-item-title { margin: 0; font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.3; }
.block-item-subtitle { margin: 4px 0 0; opacity: .9; }
.btn-block-item { margin-top: 14px; }

/* 9. Sidebar & widgets ------------------------------------------------- */
.sidebar { background: var(--sidebar-bg, transparent); color: var(--sidebar-text, inherit); border-radius: var(--radius); }
.sidebar a { color: var(--sidebar-link, var(--text-secondary)); }
.sidebar a:hover { color: var(--sidebar-link-hover, var(--accent)); }
.sidebar .widget-title, .footer .widget-title {
	margin: 0 0 14px; padding-bottom: 10px; font-size: 1.05rem; color: var(--sidebar-titles, var(--text-secondary)); border-bottom: 2px solid var(--border);
	position: relative;
}
.sidebar .widget-title::after { content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--accent); }
.widget { margin-bottom: 32px; }
.widget:last-child { margin-bottom: 0; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget_recent_entries li, .widget_recent_comments li, .widget_rss li, .widget_meta li a, .widget_pages li a, .widget_categories li a, .widget_archive li a, .widget_nav_menu li a, .widget_product_categories li a, .widget_layered_nav li a, .widget_rating_filter li a {
	display: block; padding-block: 7px; border-bottom: 1px solid var(--sidebar-border, var(--border));
}
.widget ul ul { padding-inline-start: 14px; }
.widget li { position: relative; }
.at-count, .widget .count { position: absolute; inset-inline-end: 0; inset-block-start: 8px; font-size: 12px; line-height: 1.7; color: var(--text-light); }
.widget li:has(> .count) > a, .widget li:has(> .at-count) > a { padding-inline-end: 34px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud-link { padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px !important; color: var(--text-light); }
.tag-cloud-link:hover { border-color: var(--accent); color: var(--accent); }

.list-social-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.social-icon:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.widget-items { display: grid; gap: 14px; }
.item-media-sm { flex-direction: row; align-items: center; gap: 12px; }
.item-media-sm .item-thumb { flex-shrink: 0; width: 72px; margin: 0; }
.item-media-sm .item-title { font-size: .92rem; margin: 0; }

.at-contact-widget-map iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.at-contact-widget-title { font-weight: 700; }
.at-contact-widget-items { display: grid; gap: 10px; }
.at-contact-widget-item { display: flex; align-items: center; gap: 10px; }
.at-contact-widget-item .mtjr-icon, .at-contact-widget-item i { width: 18px; color: var(--accent); text-align: center; }
.at-schedule-widget-table { margin: 0; }
.at-schedule-widget-table th, .at-schedule-widget-table td { border: 0; border-bottom: 1px solid var(--border); background: none; padding: 8px 0; }
.at-schedule-widget-table td { text-align: end; }

/* Newsletter */
.widget-newsletter-wrap { padding-block: 36px; background: var(--surface-2); }
.widget-section-padded .widget-newsletter-wrap { background: transparent; padding-block: 0; }
.widget-section-padded { color: #fff; }
.widget-newsletter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.widget-newsletter-content-wrap { display: flex; align-items: center; gap: 18px; }
.widget-newsletter-icon { font-size: 2.6rem; color: var(--accent); }
.widget-newsletter-content .section-title { color: inherit; }
.widget-newsletter-content p { margin: 4px 0 0; opacity: .85; }
.widget-newsletter-form { display: flex; gap: 8px; }
.widget-newsletter-form input { flex: 1; min-width: 0; }

/* 10. Forms & buttons -------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
	background: #fff; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 130px; }
label { font-weight: 600; color: var(--text-secondary); }
.btn, .button, button[type="submit"], input[type="submit"], input[type="reset"], .comment-reply-link, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px;
	border: 0; border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-text);
	font: inherit; font-weight: 700; line-height: 1.4; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .15s;
}
.btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover, .comment-reply-link:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); }
.btn:active, .button:active { transform: translateY(1px); }
.btn-sm { padding: 6px 16px; font-size: 14px; }
.btn-lg { padding: 13px 30px; font-size: 1.05rem; }
.searchform { position: relative; display: flex; }
.searchform input { padding-inline-end: 48px; }
.searchform .searchsubmit { position: absolute; inset-inline-end: 0; inset-block: 0; width: 44px; padding: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
[dir="rtl"] .searchform .searchsubmit { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* 11. Blog ------------------------------------------------------------- */
.entries-list { display: grid; gap: 34px; }
.entry-item.item-media { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.entry-item.item-media:not(:has(.item-thumb)) { grid-template-columns: minmax(0, 1fr); }
.entry-item .item-thumb { margin: 0; }
.entry-item .entry-title { font-size: 1.35rem; margin-bottom: 6px; }
.entry-title a { color: var(--text-secondary); }
.entry-title a:hover { color: var(--accent); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; font-size: 13px; color: var(--text-light); }
.entry-meta a { color: var(--text-light); }
.entry-meta a:hover { color: var(--accent); }
.entry-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.entry-sticky { color: var(--accent); font-weight: 700; }
.entry-excerpt p { margin-bottom: 14px; }

.entry-thumb { margin-bottom: 26px; overflow: hidden; border-radius: var(--radius); }
.entry-thumb img { display: block; width: 100%; }
.article-content-container.has-share { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 30px; }
.article-share-col .entry-social-share { position: sticky; top: 80px; }
.entry-social-share-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-light); }
.article-share-col .list-social-icons { flex-direction: column; }
.entry-header { margin-bottom: 22px; }
.entry-header .entry-title { margin-bottom: 8px; }

.entry-content { font-size: 1.06rem; line-height: 1.9; }
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.entry-content-intro { font-size: 1.2em; color: var(--text-secondary); }
.entry-content-column-split { columns: 2 260px; column-gap: 32px; }
.wp-caption-text, figcaption { margin-top: 6px; font-size: 13px; color: var(--text-light); text-align: center; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(var(--g, 3), 1fr); gap: 10px; }
.gallery-columns-2 { --g: 2; } .gallery-columns-4 { --g: 4; } .gallery-columns-5 { --g: 5; }
.gallery-item { margin: 0; }

.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0; }
.entry-tags-label { font-weight: 700; color: var(--text-secondary); }
.entry-tags a { padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-secondary); }
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.entry-author-box { display: flex; gap: 22px; margin: 32px 0; padding: 24px; background: var(--surface-2); border-radius: var(--radius); }
.entry-author-thumbnail { flex-shrink: 0; }
.entry-author-thumbnail img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.entry-author-title { margin: 0 0 2px; }
.entry-author-subtitle { margin: 0 0 8px; color: var(--text-light); font-size: 14px; }
.entry-author-bio p:last-child { margin-bottom: 10px; }

.section-related { margin-block: 40px; }

.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 24px 0; }
.page-links-title { font-weight: 700; margin-inline-end: 6px; }
.page-links a { text-decoration: none; }
.page-number { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); }
.page-links > .page-number, .page-links a:hover .page-number { background: var(--accent); border-color: var(--accent); color: #fff; }

.navigation.pagination, .navigation.posts-navigation { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.posts-navigation .nav-links { justify-content: space-between; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 600; }
.page-numbers.current, a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: 0; }

.breadcrumb, .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 22px; font-size: 13px; color: var(--text-light); }
.breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--text-secondary); }
.breadcrumb-sep { opacity: .5; }

/* 12. Comments --------------------------------------------------------- */
.comments-area { margin-top: 44px; }
.comments-title { font-size: 1.25rem; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { padding-inline-start: clamp(14px, 4vw, 54px); }
.comment-body { position: relative; padding-block: 20px; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-style: normal; font-weight: 700; color: var(--text-secondary); }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 8px; font-size: 13px; }
.comment-metadata a { color: var(--text-light); }
.comment-content { padding-inline-start: 76px; }
.reply { padding-inline-start: 76px; }
.comment-reply-link { padding: 4px 14px; font-size: 13px; }
.comment-respond { margin-top: 30px; }
.comment-form { display: grid; gap: 4px 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comment-form > p { margin-bottom: 12px; }
.comment-form-comment, .comment-notes, .logged-in-as, .comment-form-cookies-consent, .form-submit { grid-column: 1 / -1; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent input { margin-top: .4em; }
.comment-form-cookies-consent label { font-weight: 400; }
.no-comments { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* 13. Footer ----------------------------------------------------------- */
.footer { margin-top: 0; }
.footer-widgets { padding-block: 48px 30px; background: var(--footer-bg); color: var(--footer-text); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px; }
.footer-col { grid-column: span 3; min-width: 0; }
.footer-col.span-4 { grid-column: span 4; } .footer-col.span-6 { grid-column: span 6; } .footer-col.span-9 { grid-column: span 9; } .footer-col.span-12 { grid-column: span 12; }
.footer .widget-title, .footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 { color: var(--footer-titles); }
.footer .widget-title { border-color: var(--footer-border); }
.footer-widgets a { color: var(--footer-link); }
.footer-widgets a:hover { color: var(--accent); }
.footer-widgets .widget li a, .footer-widgets .widget li, .footer .at-schedule-widget-table th, .footer .at-schedule-widget-table td { border-color: var(--footer-border); }
.footer .social-icon { border-color: var(--footer-border); color: var(--footer-text); }
.footer .item-title a { color: var(--footer-link); }
.footer .item-meta { color: var(--footer-text); opacity: .7; }
.footer-info { padding-block: 16px; background: var(--footer-bottom-bg); color: var(--footer-bottom-text); font-size: 14px; }
.footer-info a { color: var(--footer-bottom-link); }
.footer-info-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-copy { margin: 0; }
.list-card-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.card-icon { width: auto; height: auto; border: 0; font-size: 1.75rem; color: var(--footer-bottom-text); opacity: .85; }
.card-icon:hover { background: none; color: var(--footer-bottom-text); opacity: 1; }

.back-to-top {
	position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 800; display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; background: var(--text-secondary); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: #fff; }

/* 14. Utilities -------------------------------------------------------- */
.error-404 { max-width: 640px; margin: 20px auto; text-align: center; }
.error-404__code { margin: 0; font-family: var(--font-heading); font-size: clamp(4rem, 14vw, 7.5rem); font-weight: 700; line-height: 1; color: var(--accent); }
.error-404 form { max-width: 460px; margin: 20px auto; }
.notice-empty { padding: 18px; border: 2px dashed var(--border); border-radius: var(--radius); text-align: center; }

.mtjr-lightbox-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 18, .92); color: #fff; }
.mtjr-lightbox-dialog::backdrop { background: transparent; }
.mtjr-lightbox-dialog figure { display: grid; place-items: center; height: 100%; padding: 56px 64px; }
.mtjr-lightbox-dialog img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius-sm); }
.mtjr-lightbox-dialog figcaption { color: #ddd; margin-top: 10px; }
.mtjr-lightbox-dialog button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.mtjr-lightbox-dialog button:hover { background: rgba(255, 255, 255, .25); }
.mtjr-lightbox-dialog .lb-close { inset-block-start: 14px; inset-inline-end: 14px; }
.mtjr-lightbox-dialog .lb-prev { inset-inline-start: 12px; inset-block-start: 50%; margin-top: -23px; }
.mtjr-lightbox-dialog .lb-next { inset-inline-end: 12px; inset-block-start: 50%; margin-top: -23px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 15. Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
	.row-items.row-items-cols-4 { --cols: 3; }
}

@media (max-width: 991px) {
	.head-nav { display: none; }
	.mobile-nav-trigger { display: inline-grid; }
	.layout.has-sidebar, .layout.has-sidebar.sidebar-left, [dir="rtl"] .layout.has-sidebar.sidebar-right, [dir="rtl"] .layout.has-sidebar.sidebar-left { grid-template-columns: minmax(0, 1fr); }
	.layout.has-sidebar .sidebar-col { order: 2 !important; }
	.row-items.row-items-cols-3, .row-items.row-items-cols-4 { --cols: 2; }
	.block-item { grid-column: span 12 !important; grid-row: auto !important; }
	.block-layout-9 .block-item, .block-layout-8 .block-item, .block-layout-1 .block-item { grid-column: span 6 !important; }
	.footer-col, .footer-col[class*="span-"] { grid-column: span 6; }
	.widget-newsletter-row { grid-template-columns: 1fr; }
	.article-content-container.has-share { grid-template-columns: minmax(0, 1fr); }
	.article-share-col { order: 2; }
	.article-share-col .entry-social-share { position: static; }
	.article-share-col .list-social-icons { flex-direction: row; }
}

@media (max-width: 782px) {
	.admin-bar .head-nav.is-stuck { inset-block-start: 46px; }
}

@media (max-width: 720px) {
	.top-head-wrap { display: none; }
	.head-mast-row { flex-wrap: wrap; gap: 10px 12px; }
	.head-search { order: 3; flex-basis: 100%; }
	.category-search-select-wrap { display: none; }
	.category-search-input { border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
	.site-logo { font-size: 1.4rem; }
	.custom-logo { max-height: 42px; }
	.row-items { gap: 14px; }
	.entry-item.item-media { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.entry-author-box { flex-direction: column; align-items: center; text-align: center; }
	.entry-author-socials .list-social-icons { justify-content: center; }
	.comment-form { grid-template-columns: minmax(0, 1fr); }
	.comment-content, .reply { padding-inline-start: 0; }
	.alignleft, .alignright { float: none; margin-inline: auto; }
	.footer-info-row { flex-direction: column; text-align: center; }
	.widget-newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
	.row-items:not(.row-slider) { --cols: 1; }
	.row-items.row-slider { --cols: 1.25; }
	.footer-col, .footer-col[class*="span-"] { grid-column: span 12; }
	.block-layout .block-item { grid-column: span 12 !important; }
}

@media print {
	.header, .footer, .sidebar-col, .back-to-top, .article-share-col, .section-related, .comments-area, .widget-sections-footer { display: none !important; }
	.layout.has-sidebar { grid-template-columns: 1fr !important; }
}
