/*
Theme Name: MarineThai
Theme URI: https://www.marinethai.net/
Author: Phranakorn Soft
Description: ธีม WordPress สำหรับเว็บไซต์ A. & Marine (Thai) — boxed layout บนพื้นหลังทะเล, Bootstrap 5, jQuery, OWL Carousel, GSAP, Lightbox2 และรองรับ WooCommerce
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: marinethai
Tags: custom-menu, custom-logo, custom-background, featured-images, e-commerce, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--mt-blue: #0237bb;
	--mt-blue-dark: #022c8f;
	--mt-red: #eb2228;
	--mt-text: #444;
	--mt-muted: #666;
	--mt-gray: #e1e1e1;
	--mt-line: #dcdcdc;
	--mt-panel: rgba(255, 255, 255, .92);
	--mt-footer: #333;
	--mt-footer-bar: #262626;
	--mt-line-green: #00b900;
	--mt-box: 1040px;
	--mt-font: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mt-admin-bar: var(--wp--admin--admin-bar--height, 0px);
}

/* ==========================================================================
   2. Base — sea background (replace with a photo in Customizer → Background)
   ========================================================================== */
body {
	font-family: var(--mt-font);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mt-text);
	background-color: #1688c2;
	background-image:
		radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 60%),
		radial-gradient(60% 40% at 15% 70%, rgba(255, 255, 255, .08), transparent 70%),
		radial-gradient(50% 35% at 85% 45%, rgba(0, 40, 90, .12), transparent 70%),
		linear-gradient(180deg, #d7eef8 0%, #7fcbea 14%, #2aa7da 32%, #128ac6 58%, #0b6aa6 82%, #08598f 100%);
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mt-font);
	font-weight: 300;
	color: #333;
	line-height: 1.35;
}

a {
	color: var(--mt-blue);
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

a:hover,
a:focus {
	color: var(--mt-red);
}

img {
	max-width: 100%;
	height: auto;
}

@media (min-width: 1100px) {
	.container {
		max-width: calc(var(--mt-box) + 24px);
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 8px 16px;
	clip: auto;
	background: #fff;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
	padding: 18px 0 14px;
}

.mt-header-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 20px;
}

.mt-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mt-brand .custom-logo,
.mt-brand .mt-logo {
	width: auto;
	max-width: 240px;
	max-height: 230px;
}

.mt-brand .mt-logo[src$=".svg"] {
	width: 150px;
}

.site-title {
	margin: 10px 0 0;
	font-size: 1.2rem;
	font-weight: 300;
	color: #1f3a7a;
	text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .9);
}

.site-title a {
	color: inherit;
}

.site-tagline {
	margin: 2px 0 0;
	font-size: .85rem;
	color: #1f3a7a;
}

.mt-header-tools {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	padding-top: 8px;
}

.mt-search-label {
	font-size: .85rem;
	color: #333;
}

.mt-search {
	display: flex;
	gap: 6px;
}

.mt-search input[type="search"] {
	width: 185px;
	height: 30px;
	padding: 2px 8px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: rgba(255, 255, 255, .92);
	font-size: .85rem;
	outline: 0;
}

.mt-search input[type="search"]:focus {
	border-color: var(--mt-blue);
}

.mt-search button {
	height: 30px;
	padding: 0 12px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #f2f2f2;
	color: #333;
	font-size: .8rem;
}

.mt-search button:hover {
	background: #e4e4e4;
}

.mt-line-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 18px;
	border-radius: 3px;
	background: var(--mt-line-green);
	color: #fff;
	font-weight: 400;
	line-height: 1.3;
}

.mt-line-btn:hover,
.mt-line-btn:focus {
	background: #009a00;
	color: #fff;
}

.mt-line-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.mt-lang {
	display: flex;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.mt-lang a {
	display: block;
	line-height: 0;
	opacity: .75;
}

.mt-lang .is-active a,
.mt-lang a:hover {
	opacity: 1;
}

.mt-lang img {
	width: 26px;
	height: 18px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}

/* ==========================================================================
   4. Main navigation (boxed, evenly spread, sticky)
   ========================================================================== */
.mt-nav {
	position: sticky;
	top: var(--mt-admin-bar);
	z-index: 1000;
}

.mt-nav-inner {
	background: rgba(255, 255, 255, .8);
	transition: background-color .2s ease, box-shadow .2s ease;
}

.mt-nav.is-stuck .mt-nav-inner {
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.mt-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 9px 14px;
	border: 0;
	background: transparent;
	color: #333;
	font-weight: 400;
	text-align: left;
}

.mt-menu-toggle .bar,
.mt-menu-toggle .bar::before,
.mt-menu-toggle .bar::after {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.mt-menu-toggle .bar::before { position: absolute; top: -6px; }
.mt-menu-toggle .bar::after  { position: absolute; top: 6px; }

.mt-menu,
.mt-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-menu {
	display: flex;
	flex-wrap: wrap;
}

.mt-menu > li {
	flex: 1 1 auto;
	text-align: center;
}

.mt-menu > li > a {
	white-space: nowrap;
}

.mt-menu li {
	position: relative;
}

.mt-menu a {
	display: block;
	padding: 10px 18px;
	color: #444;
	line-height: 20px;
}

.mt-menu li:hover > a,
.mt-menu li.focus > a,
.mt-menu li:focus-within > a,
.mt-menu .current-menu-item > a,
.mt-menu .current-menu-ancestor > a,
.mt-menu .current_page_item > a,
.mt-menu .current_page_ancestor > a {
	color: #fff;
	background: var(--mt-blue);
}

/* .children = sub list printed by the page-list fallback (wp_list_pages) */
.mt-menu .sub-menu,
.mt-menu .children {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 250px;
	background: #fff;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease, visibility .15s;
}

.mt-menu .sub-menu .sub-menu,
.mt-menu .children .children {
	top: 0;
	left: 100%;
}

.mt-menu li:hover > .sub-menu,
.mt-menu li:focus-within > .sub-menu,
.mt-menu li:hover > .children,
.mt-menu li:focus-within > .children {
	opacity: 1;
	visibility: visible;
}

.mt-menu .sub-menu a,
.mt-menu .children a {
	padding: 8px 16px;
	font-size: .93rem;
	line-height: 1.4;
	white-space: normal;
}

.mt-menu .sub-menu .menu-item-has-children > a::after {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-50%) rotate(-45deg);
	content: "";
}

.mt-sub-toggle {
	display: none;
}

@media (min-width: 992px) {
	.mt-nav-collapse.collapse {
		display: block !important;
		height: auto !important;
		visibility: visible !important;
	}
}

/* ==========================================================================
   5. Content area
   ========================================================================== */
.site-content {
	padding: 20px 0 30px;
}

/* White panel used by every inner page (archives, posts, pages, shop). */
.mt-panel {
	padding: 15px 15px 30px;
	background: var(--mt-panel);
}

.mt-panel-title,
.mt-panel h1.entry-title {
	margin: 10px 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mt-line);
	font-size: 1.9rem;
	color: #444;
}

.mt-archive-desc {
	margin: -10px 0 20px;
	color: var(--mt-muted);
}

.mt-empty {
	padding: 30px 15px;
	color: var(--mt-muted);
	text-align: center;
}

/* ==========================================================================
   6. Section heads — red tab + blue arrows (home page)
   ========================================================================== */
.mt-section {
	margin-bottom: 25px;
}

.mt-section-head {
	display: flex;
	align-items: stretch;
}

.mt-section-title {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 8px 20px;
	background: var(--mt-red);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1.4;
}

.mt-section-title a {
	color: inherit;
}

.mt-section-arrows {
	display: flex;
	background: var(--mt-blue);
}

.mt-arrow {
	display: grid;
	place-items: center;
	width: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	opacity: .85;
}

.mt-arrow + .mt-arrow {
	border-left: 1px solid rgba(255, 255, 255, .25);
}

.mt-arrow:hover,
.mt-arrow:focus-visible {
	background: var(--mt-blue-dark);
	opacity: 1;
}

.mt-arrow svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.mt-more {
	color: var(--mt-red);
	font-size: .85rem;
}

.mt-more:hover {
	color: var(--mt-blue);
}

/* Placeholder artwork when an item has no image */
.mt-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: #6b8fc9;
}

.mt-ph svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   7. Home — hero slider
   ========================================================================== */
.mt-hero {
	position: relative;
	margin-bottom: 20px;
	overflow: hidden;
	background: var(--mt-blue-dark);
}

.mt-hero-slide {
	position: relative;
	height: 450px;
}

.mt-hero-slide img,
.mt-hero-slide .mt-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mt-hero-slide.has-caption::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 20, 70, .65) 0%, rgba(0, 20, 70, .2) 50%, transparent 75%);
	content: "";
}

.mt-hero-caption {
	position: absolute;
	left: 70px;
	bottom: 60px;
	z-index: 2;
	max-width: 600px;
	color: #fff;
}

.mt-hero-kicker {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 12px;
	background: var(--mt-red);
	font-size: .8rem;
}

.mt-hero-title {
	margin: 0 0 8px;
	font-size: 2.1rem;
	font-weight: 400;
	color: #fff;
}

.mt-hero-text {
	margin: 0 0 16px;
	font-size: 1rem;
}

.mt-hero-btn {
	display: inline-block;
	padding: 6px 18px;
	background: var(--mt-red);
	color: #fff;
}

.mt-hero-btn:hover {
	background: #fff;
	color: var(--mt-blue);
}

.mt-hero .owl-nav button.owl-prev,
.mt-hero .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	background: rgba(0, 0, 0, .3) !important;
	color: #fff !important;
	font-size: 26px !important;
	line-height: 1;
}

.mt-hero .owl-nav button:hover {
	background: var(--mt-blue) !important;
}

.mt-hero .owl-nav .owl-prev { left: 10px; }
.mt-hero .owl-nav .owl-next { right: 10px; }

.mt-hero .owl-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.mt-hero .owl-dot span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
}

.mt-hero .owl-dot.active span {
	background: #fff;
}

/* ==========================================================================
   8. Home — news (2-col checkerboard) + about box
   ========================================================================== */
.mt-news-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-news-item {
	display: flex;
	background: #fff;
}

.mt-news-item:nth-child(4n+1),
.mt-news-item:nth-child(4n+2) {
	background: var(--mt-gray);
}

.mt-news-thumb {
	flex: none;
	width: 115px;
	height: 115px;
	overflow: hidden;
	background: #ccc;
}

.mt-news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.mt-news-item:hover .mt-news-thumb img {
	transform: scale(1.06);
}

.mt-news-body {
	min-width: 0;
	padding: 15px;
}

.mt-news-title {
	margin: 0 0 6px;
	font-size: .85rem;
	line-height: 1.55;
}

.mt-news-title a {
	color: #555;
}

.mt-news-title a:hover {
	color: var(--mt-blue);
}

.mt-home-about {
	height: 100%;
	padding: 15px;
	background: var(--mt-blue);
	color: #fff;
}

.mt-home-about .widget-title,
.mt-home-about-title {
	margin: 0 0 12px;
	font-size: 1.4rem;
	color: #fff;
}

.mt-home-about .widget + .widget {
	margin-top: 14px;
}

.mt-home-about p {
	font-size: .9rem;
	line-height: 1.6;
}

.mt-home-about a {
	color: #fff;
	text-decoration: underline;
}

.mt-home-about img {
	display: block;
	margin: 0 auto;
}

.mt-home-about-media {
	padding: 8px;
	background: #fff;
}

.mt-home-about-media img,
.mt-home-about-media .mt-ph {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.mt-home-about-media img.is-contain {
	height: auto;
	max-height: 150px;
	object-fit: contain;
}

/* ==========================================================================
   9. Home — featured slider (image + caption box on the right)
   ========================================================================== */
.mt-feature-slide {
	position: relative;
	height: 450px;
	overflow: hidden;
	background: #ccc;
}

.mt-feature-slide > a,
.mt-feature-slide img,
.mt-feature-slide .mt-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mt-feature-caption {
	position: absolute;
	top: 43px;
	right: 40px;
	width: 350px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, .9);
	color: var(--mt-blue);
}

.mt-feature-caption h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	color: var(--mt-blue);
}

.mt-feature-caption h3 a,
.mt-feature-caption .mt-feature-more {
	color: var(--mt-blue);
}

.mt-feature-caption p {
	margin: 0 0 6px;
	font-size: .88rem;
	line-height: 1.55;
}

.mt-feature-caption .mt-feature-more:hover {
	color: var(--mt-red);
}

/* ==========================================================================
   10. Home — tiles (projects / product categories), flush 4-up
   ========================================================================== */
.mt-tile {
	position: relative;
	height: 175px;
	padding: 30px;
	overflow: hidden;
	color: #fff;
	background: #3d3d3d;
	isolation: isolate;
}

.mt-tile-media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.mt-tile-media img,
.mt-tile-media .mt-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.mt-tile::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(61, 61, 61, .55);
	transition: background-color .3s ease;
	content: "";
}

.mt-tile:hover::before {
	background: rgba(2, 55, 187, .55);
}

.mt-tile:hover .mt-tile-media img {
	transform: scale(1.06);
}

.mt-tile h3 {
	margin: 0;
	font-size: .92rem;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.mt-tile a {
	color: #fff;
}

.mt-tile a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.mt-tile-count {
	display: block;
	font-size: .78rem;
	opacity: .85;
}

/* ==========================================================================
   11. Home — partner logos
   ========================================================================== */
.mt-partners-bar {
	margin: 0;
	padding: 8px 15px;
	background: var(--mt-blue);
	color: #fff;
	font-size: .85rem;
	text-align: center;
}

.mt-partners {
	padding: 18px 10px 12px;
	border-bottom: 5px solid var(--mt-blue);
	background: rgba(255, 255, 255, .85);
}

.mt-partner {
	display: grid;
	place-items: center;
	height: 95px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	background: #fff;
}

.mt-partner img {
	width: auto !important;
	max-height: 80px;
}

.mt-partners .owl-nav {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 8px;
}

.mt-partners .owl-nav button.owl-prev,
.mt-partners .owl-nav button.owl-next {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid #555 !important;
	border-radius: 50%;
	color: #333 !important;
	font-size: 16px !important;
	line-height: 1;
}

.mt-partners .owl-nav button:hover {
	border-color: var(--mt-blue) !important;
	background: var(--mt-blue) !important;
	color: #fff !important;
}

/* ==========================================================================
   12. Archives (list layout) + sidebar
   ========================================================================== */
.mt-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-list-item {
	display: flex;
	gap: 15px;
	padding: 20px 0;
	border-bottom: 1px solid var(--mt-line);
}

.mt-list-item:first-child {
	padding-top: 0;
}

.mt-list-thumb {
	flex: none;
	width: 166px;
	height: 166px;
	overflow: hidden;
	background: #ccc;
}

.mt-list-thumb img,
.mt-list-thumb .mt-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mt-list-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	line-height: 1.45;
}

.mt-list-title a {
	color: var(--mt-blue);
}

.mt-list-title a:hover {
	color: var(--mt-red);
}

.mt-list-meta {
	font-size: .9rem;
	color: var(--mt-muted);
}

.mt-list-excerpt {
	margin-top: 8px;
	font-size: .9rem;
	color: var(--mt-muted);
}

.widget-area {
	padding-top: 30px;
}

.widget-area .widget {
	margin-bottom: 28px;
}

.widget-area .widget-title {
	margin: 0 0 10px;
	padding-left: 6px;
	border-left: 2px solid var(--mt-red);
	font-size: 1.3rem;
	line-height: 1.2;
	color: #444;
}

.widget-area ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-area li {
	font-size: .9rem;
}

.widget-area li a {
	display: block;
	padding: 6px 10px;
	border-bottom: 1px solid var(--mt-line);
	color: var(--mt-blue);
}

.widget-area li a:hover,
.widget-area .current-cat > a,
.widget-area .current_page_item > a {
	color: var(--mt-red);
}

.widget-area .children li a {
	padding-left: 22px;
	border-bottom: 0;
}

.widget-area .children {
	padding-bottom: 6px;
	border-bottom: 1px solid var(--mt-line);
}

.widget-area .mt-search input[type="search"] {
	flex: 1;
	width: auto;
}

/* Pagination (theme fallback + WP-PageNavi) */
.mt-pagination,
.wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 25px;
}

.mt-pagination .page-numbers,
.wp-pagenavi a,
.wp-pagenavi span {
	display: inline-block;
	min-width: 34px;
	margin: 0 !important;
	padding: 4px 10px !important;
	border: 1px solid #ccc !important;
	background: #fff;
	color: #444;
	text-align: center;
}

.mt-pagination .page-numbers.current,
.mt-pagination a.page-numbers:hover,
.wp-pagenavi span.current,
.wp-pagenavi a:hover {
	border-color: var(--mt-blue) !important;
	background: var(--mt-blue);
	color: #fff;
}

/* ==========================================================================
   13. Single posts / pages
   ========================================================================== */
.mt-entry {
	padding: 15px 15px 10px;
}

.mt-entry-title {
	margin: 0 0 14px;
	font-size: 1.45rem;
	color: #444;
}

/* "Post Views: N" line under titles */
.mt-views {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 18px;
	font-size: .85rem;
	color: #555;
}

.mt-views .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: #333;
}

/* Search results — title + excerpt list */
.mt-search-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-search-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--mt-line);
}

.mt-search-title {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

.mt-search-title a {
	color: var(--mt-blue);
}

.mt-search-excerpt {
	margin: 0;
	font-size: .9rem;
	line-height: 1.6;
}

/* เกี่ยวกับเรา sub-pages */
.entry-content .wp-block-image {
	margin: 0 0 20px;
}

.entry-content .wp-block-image img {
	margin: 0 auto;
}

.entry-content .mt-dealer-banner img {
	width: 100%;
	box-shadow: 0 12px 18px -10px rgba(0, 0, 0, .45);
}

.mt-dealers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 40px;
	margin-top: 30px;
}

.mt-dealer {
	padding: 22px 0 26px;
	border-bottom: 1px solid #e3e3e3;
	box-shadow: 0 1px 0 #fff;
}

.entry-content .mt-dealer h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
	color: #444;
}

.mt-dealer p {
	margin: 0 0 4px;
	font-size: .88rem;
}

.mt-brands {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 30px;
}

.mt-brand-item {
	padding: 26px 0;
	border-bottom: 1px solid #e3e3e3;
	text-align: center;
}

.mt-brand-item figure {
	display: grid;
	place-items: center;
	height: 150px;
	margin: 0 0 14px;
}

.mt-brand-item img {
	width: auto;
	max-height: 130px;
	margin: 0;
}

.mt-brand-name {
	margin: 0;
	font-size: .9rem;
	color: #444;
}

.mt-brochures {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-brochures li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--mt-line);
}

.mt-brochures a::before {
	display: inline-block;
	margin-right: 8px;
	padding: 0 5px;
	border-radius: 2px;
	background: var(--mt-red);
	color: #fff;
	font-size: .7rem;
	font-weight: 500;
	content: "PDF";
}

/* Galleries built from the original pages: keep each image's proportions */
.entry-content .mt-gallery.is-natural {
	align-items: start;
}

.entry-content .mt-gallery.is-natural a {
	aspect-ratio: auto;
}

.entry-content .mt-gallery.is-natural img {
	height: auto;
	object-fit: contain;
}

/* Boat / product pages: spec bullets + YouTube videos */
.entry-content .mt-specs {
	margin: 0 0 24px;
	padding: 14px 18px 14px 34px;
	border-left: 3px solid var(--mt-blue);
	background: #f5f7fb;
}

.entry-content .mt-specs li {
	margin: 2px 0;
}

.entry-content .mt-video {
	margin: 0 0 24px;
	aspect-ratio: 16 / 9;
}

.entry-content .mt-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.entry-content .wp-block-table {
	margin: 0 0 24px;
	overflow-x: auto;
}

/* PDPA notice format */
.entry-content .mt-pdpa-title {
	margin-bottom: 14px;
	font-size: 1.15rem;
	line-height: 1.8;
	text-align: center;
}

.entry-content .mt-pdpa-h {
	margin: 1.4em 0 .5em;
	font-size: 1.05rem;
	color: #444;
	text-decoration: underline;
}

.entry-content .mt-indent {
	text-indent: 3em;
}

@media (max-width: 767.98px) {
	.mt-dealers,
	.mt-brands {
		grid-template-columns: 1fr;
	}
}

/* /product/ — product-category list (page-product.php) */
.mt-catlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-catlist > li {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--mt-line);
}

.mt-catlist-img {
	display: block;
	max-width: 160px;
}

.mt-catlist-img img,
.mt-catlist-img .mt-ph {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.mt-catlist-title {
	margin: 10px 0 0;
	font-size: 1.15rem;
}

.mt-catlist-title a {
	color: var(--mt-blue);
}

/* Location page (interim) */
.mt-location-map {
	margin: 0 0 24px;
}

.mt-location-map img {
	display: block;
	width: 100%;
	height: auto;
}

/* WPBakery compatibility (inc/wpbakery-compat.php) */
.entry-content .mt-vc-row {
	margin-bottom: 0;
}

.entry-content .mt-vc-el {
	margin-bottom: 35px;
}

.entry-content .mt-vc-text > :last-child {
	margin-bottom: 0;
}

.entry-content .mt-vc-image {
	margin-left: 0;
	margin-right: 0;
}

.entry-content .mt-vc-image img {
	display: inline-block;
	margin: 0;
}

.entry-content .mt-vc-image.is-center { text-align: center; }
.entry-content .mt-vc-image.is-right  { text-align: right; }
.entry-content .mt-vc-image.vc_box_rounded img { border-radius: 4px; }
.entry-content .mt-vc-image.vc_box_border img,
.entry-content .mt-vc-image.vc_box_border_grey img { padding: 4px; border: 1px solid #ebebeb; }
.entry-content .mt-vc-image.vc_box_shadow img { box-shadow: 0 0 5px rgba(0, 0, 0, .1); }

.entry-content .mt-vc-sep {
	margin: 0 0 35px;
	border: 0;
	border-top: 1px solid #ebebeb;
	opacity: 1;
}

.entry-content .mt-vc-textsep {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 35px;
}

.entry-content .mt-vc-textsep::before,
.entry-content .mt-vc-textsep::after {
	flex: 1;
	border-top: 1px solid #ebebeb;
	content: "";
}

.entry-content .mt-vc-tab h3 {
	margin-top: 0;
}

.entry-content .mt-vc-message {
	padding: 12px 16px;
	border-left: 4px solid var(--mt-blue);
	background: #f3f6fc;
}

/* Single product (sidebar layout like the original) */
.woocommerce div.product .product_meta {
	margin-bottom: 18px;
	font-size: .88rem;
}

.woocommerce div.product .woocommerce-tabs .panel .mt-views {
	margin-top: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.mt-entry-meta {
	margin-bottom: 14px;
	font-size: .85rem;
	color: var(--mt-muted);
}

.mt-share {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
}

.mt-share a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 2px;
	color: #fff;
	font-size: .9rem;
	font-weight: 400;
}

.mt-share a:hover {
	color: #fff;
	opacity: .88;
}

.mt-share svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.mt-share .is-facebook { background: #1877f2; }
.mt-share .is-x        { background: #000; }
.mt-share .is-line     { background: var(--mt-line-green); }

.entry-content {
	font-size: .92rem;
	line-height: 1.7;
}

.entry-content img {
	display: block;
	margin: 14px auto;
}

.entry-content h2,
.entry-content h3 {
	margin: 1.4em 0 .6em;
	color: var(--mt-blue);
}

.entry-content h2 { font-size: 1.3rem; }
.entry-content h3 { font-size: 1.15rem; }

.entry-content table {
	width: 100%;
	margin-bottom: 1.2rem;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 6px 10px;
	border: 1px solid var(--mt-line);
}

.entry-content th {
	background: #f2f2f2;
	font-weight: 400;
}

.entry-content .mt-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
	margin: 1.2rem 0;
}

.entry-content .mt-gallery a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.entry-content .mt-gallery img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.mt-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 26px 15px 0;
	padding-top: 16px;
	border-top: 1px solid var(--mt-line);
	font-size: .9rem;
}

.mt-post-nav small {
	display: block;
	color: var(--mt-muted);
}

.mt-post-nav .is-next {
	display: block;
	text-align: right;
}

/* Contact page — layout of the original contact-us page */
.mt-contact p {
	margin: 0 0 8px;
	font-size: .9rem;
}

.mt-contact-h {
	margin: 10px 0 12px;
	font-size: 1.25rem;
	color: #444;
}

.mt-contact-h + p {
	margin-top: 0;
}

.mt-contact .col-lg-8 .mt-contact-h:not(:first-child) {
	margin-top: 30px;
}

.mt-contact-photo {
	margin: 0;
	padding: 0;
	border: 1px solid #ebebeb;
	border-radius: 4px;
	overflow: hidden;
}

.mt-contact-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.mt-contact-sep {
	margin: 34px 0 30px;
	border: 0;
	border-top: 1px solid #ebebeb;
	opacity: 1;
}

.mt-contact-h2 {
	margin: 0 0 22px;
	font-size: 1.55rem;
	color: #444;
}

.mt-contact .mt-map,
.mt-contact .mt-map iframe {
	min-height: 450px;
}

.mt-contact-mapimg {
	margin: 34px 0 0;
	padding-top: 30px;
	border-top: 1px solid #ebebeb;
}

.mt-contact-mapimg img {
	display: block;
	margin: 0 auto;
}

/* Contact form (Fluent Forms-like look) */
.mt-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.mt-form-field {
	flex: 1 1 100%;
	margin-bottom: 18px;
}

.mt-form-field.is-half {
	flex: 1 1 calc(50% - 8px);
}

.mt-form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: .9rem;
	color: #1e1f21;
}

.mt-form-field .req {
	color: #f56c6c;
}

.mt-form input[type="text"],
.mt-form input[type="email"],
.mt-form textarea {
	width: 100%;
	padding: 9px 15px;
	border: 1px solid #dadbdd;
	border-radius: 7px;
	background: #fff;
	color: #1e1f21;
	font-family: var(--mt-font);
	font-size: .9rem;
	line-height: 1.5;
	transition: border-color .2s, box-shadow .2s;
}

.mt-form input:focus,
.mt-form textarea:focus {
	border-color: #1a7efb;
	box-shadow: 0 0 0 3px rgba(26, 126, 251, .15);
	outline: 0;
}

.mt-form textarea {
	min-height: 90px;
	resize: vertical;
}

.mt-form-submit {
	padding: 10px 20px;
	border: 0;
	border-radius: 7px;
	background: #1a7efb;
	color: #fff;
	font-family: var(--mt-font);
	font-size: 1rem;
	font-weight: 400;
}

.mt-form-submit:hover,
.mt-form-submit:focus-visible {
	background: #1166d8;
}

.mt-form-notice {
	margin-bottom: 18px;
	padding: 10px 14px;
	border-radius: 7px;
	font-size: .9rem;
}

.mt-form-notice.is-ok {
	background: #e7f7ed;
	color: #146c2e;
}

.mt-form-notice.is-error {
	background: #fdecec;
	color: #a61b1b;
}

.mt-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Contact card (used when no theme template applies) */
.mt-contact-card {
	height: 100%;
	padding: 20px;
	background: var(--mt-blue);
	color: #fff;
}

.mt-contact-card h2 {
	margin-bottom: 14px;
	font-size: 1.25rem;
	color: #fff;
}

.mt-contact-card dl {
	margin: 0;
}

.mt-contact-card dt {
	margin-top: 10px;
	font-size: .8rem;
	font-weight: 400;
	opacity: .75;
}

.mt-contact-card dd {
	margin: 0;
}

.mt-contact-card a {
	color: #fff;
}

.mt-map,
.mt-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	border: 0;
}

/* ==========================================================================
   14. WooCommerce (keeps WooCommerce's default buttons, like the original)
   ========================================================================== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .9rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--mt-blue);
}

.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}

.woocommerce a.button,
.woocommerce button.button {
	font-family: var(--mt-font);
	font-weight: 400;
}

.woocommerce div.product .product_title {
	font-size: 1.5rem;
	color: #2b3a67;
}

.woocommerce .woocommerce-result-count {
	font-size: .9rem;
}

.widget-area .woocommerce-product-search {
	display: flex;
	gap: 6px;
}

.widget-area .woocommerce-product-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 30px;
	padding: 2px 8px;
	border: 1px solid #ccc;
	border-radius: 2px;
}

.widget-area .woocommerce-product-search button {
	height: 30px;
	padding: 0 12px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #f2f2f2;
	font-size: .85rem;
}

/* ==========================================================================
   15. Footer (boxed, dark)
   ========================================================================== */
.site-footer {
	padding-bottom: 100px;
}

.mt-footer-box {
	padding: 22px 50px 30px;
	border-top: 5px solid var(--mt-blue);
	background: var(--mt-footer);
	color: #ddd;
}

.mt-footer-col + .mt-footer-col {
	margin-top: 20px;
}

.mt-footer-col h3 {
	margin: 0 0 10px;
	font-size: 1.2rem;
	color: #fff;
}

.mt-footer-col ul {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: none;
}

.mt-footer-col li {
	font-size: .82rem;
	line-height: 1.6;
}

.mt-footer-col li a {
	color: #ddd;
}

.mt-footer-col li a:hover {
	color: #fff;
	text-decoration: underline;
}

.mt-pay {
	padding-left: 20px;
}

.mt-pay-btn {
	display: inline-block;
	padding: 3px 22px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffe17a, #f5b62a);
	color: #0c2a66;
	font-size: .85rem;
	font-weight: 500;
	font-style: italic;
}

.mt-pay-cards {
	display: flex;
	gap: 3px;
	margin-top: 4px;
}

.mt-pay-cards span {
	padding: 0 4px;
	border-radius: 2px;
	background: #fff;
	color: #1a1f71;
	font-size: .6rem;
	font-weight: 600;
	line-height: 14px;
}

.mt-footer-contact {
	font-size: .9rem;
	color: #fff;
}

.mt-footer-contact .mt-footer-logo {
	width: auto;
	max-width: 160px;
	max-height: 125px;
}

.mt-footer-name {
	margin: 12px 0 8px;
	font-size: 1.7rem;
	color: #fff;
}

.mt-footer-contact p {
	margin: 0;
	line-height: 1.6;
}

.mt-footer-contact a {
	color: #fff;
}

.mt-footer-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.mt-footer-social .mt-social-icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 3px;
	color: #fff;
}

.mt-footer-social .mt-social-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.mt-footer-social .is-facebook { background: #3b5998; }
.mt-footer-social .is-youtube  { background: #e62117; }
.mt-footer-social .is-line     { background: var(--mt-line-green); }

.mt-footer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.mt-footer-badges .widget {
	margin: 0;
}

.mt-footer-badges img {
	max-height: 84px;
	width: auto;
	background: #fff;
}

.mt-footer-copy {
	padding: 6px 20px;
	background: var(--mt-footer-bar);
	color: #ddd;
	font-size: .88rem;
}

.mt-footer-copy a {
	color: #ddd;
}

/* Floating buttons */
.mt-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}

.mt-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.mt-to-top:hover {
	background: var(--mt-blue);
	color: #fff;
}

.mt-messenger {
	position: fixed;
	right: 18px;
	bottom: 70px;
	z-index: 999;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(45deg, #0a7cff, #a033ff);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.mt-messenger:hover {
	color: #fff;
}

.mt-to-top svg,
.mt-messenger svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
	body {
		background-attachment: scroll;
	}

	.mt-header-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.mt-header-side {
		display: none;
	}

	.mt-header-tools {
		align-items: center;
		padding-top: 0;
	}

	.mt-menu-toggle {
		display: inline-flex;
	}

	.mt-nav-collapse {
		max-height: calc(100vh - 60px);
		overflow-y: auto;
	}

	.mt-menu {
		display: block;
		padding-bottom: 6px;
	}

	.mt-menu > li {
		text-align: left;
	}

	.mt-menu li {
		border-top: 1px solid rgba(0, 0, 0, .08);
	}

	.mt-menu a {
		padding: 10px 52px 10px 14px;
	}

	.mt-menu .sub-menu .menu-item-has-children > a::after {
		display: none;
	}

	.mt-menu .sub-menu,
	.mt-menu .sub-menu .sub-menu,
	.mt-menu .children,
	.mt-menu .children .children {
		position: static;
		display: none;
		min-width: 0;
		padding-left: 14px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		background: rgba(255, 255, 255, .6);
	}

	.mt-menu li.is-open > .sub-menu,
	.mt-menu li.is-open > .children {
		display: block;
	}

	.mt-menu > li > a {
		white-space: normal;
	}

	.mt-sub-toggle {
		position: absolute;
		top: 0;
		right: 0;
		display: grid;
		place-items: center;
		width: 46px;
		height: 40px;
		border: 0;
		border-left: 1px solid rgba(0, 0, 0, .08);
		background: transparent;
		color: #444;
	}

	.mt-sub-toggle::before {
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s;
		content: "";
	}

	.mt-menu li.is-open > .mt-sub-toggle::before {
		transform: translateY(2px) rotate(-135deg);
	}

	.mt-hero-slide,
	.mt-feature-slide {
		height: 360px;
	}

	.mt-hero-caption {
		left: 24px;
		right: 24px;
		bottom: 44px;
	}

	.mt-hero-title {
		font-size: 1.6rem;
	}

	.mt-footer-box {
		padding: 22px 20px 26px;
	}
}

@media (max-width: 767.98px) {
	.mt-hero-slide {
		height: 260px;
	}

	.mt-hero-title {
		font-size: 1.25rem;
	}

	.mt-hero-text {
		display: none;
	}

	.mt-hero .owl-nav {
		display: none;
	}

	.mt-news-grid {
		grid-template-columns: 1fr;
	}

	.mt-news-item:nth-child(n) {
		background: #fff;
	}

	.mt-news-item:nth-child(odd) {
		background: var(--mt-gray);
	}

	.mt-feature-slide {
		height: auto;
	}

	.mt-feature-slide > a {
		height: 220px;
	}

	.mt-feature-caption {
		position: static;
		width: auto;
		background: #fff;
	}

	.mt-list-thumb {
		width: 110px;
		height: 110px;
	}

	.mt-panel-title,
	.mt-panel h1.entry-title {
		font-size: 1.45rem;
	}

	.mt-post-nav {
		grid-template-columns: 1fr;
	}

	.mt-post-nav .is-next {
		text-align: left;
	}

	.mt-footer-name {
		font-size: 1.35rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
