/* ==========================================================================
   Ariya – machine pages (KOBELCO / SAKAI / XCMG / used machines):
   page banner, page title + text, machine list (filter + cards + page numbers).
   Sizes measured from the old site at 1440 / 768 / 320 px.
   ========================================================================== */

/* ---- Page banner ---- */
.ar-phero {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	line-height: 0;
}
.ar-phero picture {
	display: block;
}
.ar-phero .ar-phero__shade {
	position: absolute;
	inset: 0;
	background-color: #000000;
	opacity: 0.25;
	pointer-events: none;
}
.ar-phero .ar-phero__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 455px;
	object-fit: cover;
	object-position: center center;
}

/* ---- Page title + text ---- */
.ar-pintro {
	padding: 60px var(--ar-gutter) 0;
	background: var(--ar-white);
}
.ar-pintro .ar-pintro__inner {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.ar-pintro .ar-pintro__title {
	color: var(--ar-ink);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.35;
}
.ar-pintro .ar-pintro__title + .ar-pintro__text {
	margin-top: 14px;
}
.ar-pintro .ar-pintro__text p {
	color: var(--ar-muted);
	font-size: 18px;
	font-weight: 300;
	line-height: 27px;
}
.ar-pintro .ar-pintro__text p + p {
	margin-top: 14px;
}

/* ---- Machine list: filter ---- */
.ar-mlist .ar-mlist__filter {
	padding: 78px var(--ar-gutter) 80px;
	background: var(--ar-white);
}
.ar-mlist .ar-mlist__tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	max-width: 1280px;
	margin: 0 auto;
}
.ar-mlist .ar-mlist__tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-width: 0;
	gap: clamp(6px, 0.9vw, 12px);
	min-height: 120px;
	padding: 0 clamp(10px, 1.8vw, 26px);
	color: var(--ar-muted);
	text-decoration: none;
	cursor: pointer;
}
.ar-mlist .ar-mlist__tab + .ar-mlist__tab::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	height: 100%;
	background: #4a4a4a;
}
.ar-mlist .ar-mlist__tab-icon {
	flex: none;
	width: clamp(56px, 6.6vw, 95px);
	height: auto;
	aspect-ratio: 95 / 89;
	object-fit: contain;
}
.ar-mlist .ar-mlist__tab-label {
	color: var(--ar-muted);
	font-size: clamp(15px, 1.25vw, 18px);
	white-space: nowrap;
	font-weight: 500;
	line-height: 1.3;
}
.ar-mlist .ar-mlist__tab.is-active .ar-mlist__tab-label {
	color: var(--ar-ink);
	font-weight: 600;
}

/* ---- Machine list: cards ---- */
.ar-mlist .ar-mlist__body {
	padding: 60px var(--ar-gutter) 40px;
	background: #f4f4f4;
}
.ar-mlist .ar-mlist__body[aria-busy="true"],
.ar-mlist[aria-busy="true"] {
	cursor: progress;
}
/* Loading overlay (no spinner) over the cards while a filter / page is being fetched.
   Shows only if it takes longer than ~150ms, so cached results do not flash. */
.ar-mlist .ar-mlist__body {
	position: relative;
}
.ar-mlist[aria-busy="true"] .ar-mlist__body::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(244, 244, 244, 0.7);
	opacity: 0;
	animation: ar-ml-fade 0.2s ease 0.15s forwards;
}
@keyframes ar-ml-fade {
	to { opacity: 1; }
}
.ar-mlist .ar-mlist__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px 26px;
	max-width: 1280px;
	margin: 0 auto;
}
.ar-mlist .ar-mlist__card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-bottom: 25px;
	padding: 35px 50px 70px;
	border: 1px solid #3a3a3a;
	background: var(--ar-white);
}
.ar-mlist .ar-mlist__card:hover {
	border-color: var(--ar-red);
}
.ar-mlist .ar-mlist__media {
	display: block;
	margin: 0 auto;
}
.ar-mlist .ar-mlist__img {
	display: block;
	width: 70%;
	max-width: 100%;
	height: 215px;
	margin: 0 auto;
	object-fit: contain;
}
.ar-mlist .ar-mlist__name {
	margin-top: 28px;
	color: var(--ar-ink);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
}
.ar-mlist .ar-mlist__name a {
	color: inherit;
	text-decoration: none;
}
.ar-mlist .ar-mlist__specs {
	margin-top: 22px;
	color: var(--ar-ink);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	text-align: left;
}
.ar-mlist .ar-mlist__specs p {
	margin: 0 0 14px;
}
.ar-mlist .ar-mlist__specs :is(ul, ol) {
	margin: 0 0 14px 1.2em;
	padding: 0;
}
.ar-mlist .ar-mlist__specs > :last-child {
	margin-bottom: 0;
}
.ar-mlist .ar-mlist__btn {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 158px;
	min-height: 50px;
	padding: 6px 30px;
	border: 1px solid var(--ar-red);
	border-radius: 30px;
	background: var(--ar-red);
	color: var(--ar-white);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}
.ar-mlist .ar-mlist__card:hover .ar-mlist__btn,
.ar-mlist .ar-mlist__btn:focus-visible {
	background: var(--ar-white);
	color: var(--ar-red);
}
.ar-mlist .ar-mlist__empty {
	max-width: 1280px;
	margin: 0 auto;
	padding: 10px 0 30px;
	color: var(--ar-dark);
	font-family: var(--ar-font);
	font-size: 16px;
	font-weight: 500;
}

/* ---- Machine list: page numbers ---- */
.ar-mlist .ar-mlist__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 15px;
}
.ar-mlist .ar-mlist__pager :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--ar-ink);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}
.ar-mlist .ar-mlist__pager .ar-mlist__arrow {
	color: #555555;
}
.ar-mlist .ar-mlist__pager .ar-mlist__arrow .ar-icon {
	width: 20px;
	height: 20px;
}
.ar-mlist .ar-mlist__pager .is-current {
	background: var(--ar-red);
	color: var(--ar-white);
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.ar-phero .ar-phero__img {
		height: 610px;
	}
	.ar-pintro {
		padding-top: 50px;
	}
	.ar-mlist .ar-mlist__filter {
		padding: 30px var(--ar-gutter) 40px;
	}
	.ar-mlist .ar-mlist__tabs {
		flex-wrap: wrap;
		gap: 20px;
		max-width: 700px;
	}
	.ar-mlist .ar-mlist__tab {
		flex: 0 0 calc(50% - 10px);
		justify-content: flex-start;
		min-height: 116px;
		padding: 12px 25px;
		border-radius: 15px;
		background: var(--ar-white);
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
	}
	.ar-mlist .ar-mlist__tab + .ar-mlist__tab::before {
		display: none;
	}
	.ar-mlist .ar-mlist__tab-icon {
		width: 90px;
	}
	.ar-mlist .ar-mlist__tab-label {
		font-size: 18px;
		white-space: normal;
	}
	.ar-mlist .ar-mlist__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 50px 26px;
	}
	.ar-mlist .ar-mlist__card {
		padding: 30px 20px 60px;
	}
	.ar-mlist .ar-mlist__img {
		height: 180px;
	}
	.ar-mlist .ar-mlist__name {
		margin-top: 20px;
		font-size: 26px;
	}
	.ar-mlist .ar-mlist__specs {
		font-size: 14px;
		line-height: 22px;
	}
	.ar-mlist .ar-mlist__btn {
		min-width: 150px;
		min-height: 46px;
		font-size: 18px;
	}
}

/* ---- Phone ---- */
@media (max-width: 767px) {
	.ar-phero .ar-phero__img {
		height: 400px;
	}
	.ar-pintro {
		padding: 30px var(--ar-gutter) 0;
	}
	.ar-pintro .ar-pintro__title {
		font-size: 22px;
	}
	.ar-pintro .ar-pintro__text p {
		font-size: 16px;
		line-height: 24px;
	}
	.ar-mlist .ar-mlist__tab {
		flex-basis: 100%;
		min-height: 120px;
	}
	.ar-mlist .ar-mlist__tab-label {
		font-size: 16px;
	}
	.ar-mlist .ar-mlist__body {
		padding: 40px 30px 30px;
	}
	.ar-mlist .ar-mlist__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 45px;
	}
	.ar-mlist .ar-mlist__name {
		font-size: 24px;
	}
	.ar-mlist .ar-mlist__specs {
		font-size: 16px;
		line-height: 24px;
	}
	.ar-mlist .ar-mlist__btn {
		min-width: 140px;
		font-size: 18px;
	}
}

/* ==========================================================================
   Machine detail page (Single Product template)
   ========================================================================== */

/* ---- Back button "‹ กลับ" ---- */
:is(.ar-mtop, .ar-mrows) .ar-back-wrap {
	display: flex;
	justify-content: flex-start;
}
:is(.ar-mtop, .ar-mrows) .ar-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 158px;
	min-height: 48px;
	padding: 6px 30px;
	border: 1px solid var(--ar-red);
	border-radius: 30px;
	background: var(--ar-red);
	color: var(--ar-white);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}
:is(.ar-mtop, .ar-mrows) .ar-back:hover,
:is(.ar-mtop, .ar-mrows) .ar-back:focus-visible {
	background: var(--ar-white);
	color: var(--ar-red);
}
:is(.ar-mtop, .ar-mrows) .ar-back__icon {
	width: 12px;
	height: 12px;
}

/* ---- Top part ---- */
.ar-mtop {
	position: relative;
	padding: 100px var(--ar-gutter) 90px;
	background-color: var(--ar-white);
	background-image: var(--ar-mtop-bg, none);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: min(1340px, 100%) auto;
}
.ar-mtop .ar-mtop__back {
	max-width: 1240px;
	margin: 0 auto 100px;
}
.ar-mtop .ar-mtop__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	max-width: 1240px;
	margin: 0 auto;
}
.ar-mtop .ar-mtop__gallery {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.ar-mtop .ar-mtop__gallery.is-single {
	grid-template-columns: minmax(0, 1fr);
}
.ar-mtop .ar-mtop__thumbs {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-height: 500px;
	overflow-y: auto;
	scrollbar-width: none;
}
.ar-mtop .ar-mtop__thumbs::-webkit-scrollbar {
	display: none;
}
.ar-mtop .ar-mtop__thumb {
	flex: none;
	display: block;
	width: 100%;
	height: 110px;
	padding: 0;
	border: 0;
	background: transparent;
	opacity: 0.35;
	cursor: pointer;
}
.ar-mtop .ar-mtop__thumb.is-active {
	opacity: 1;
}
.ar-mtop .ar-mtop__thumb:focus-visible {
	outline: 2px solid var(--ar-red);
	outline-offset: 2px;
}
.ar-mtop .ar-mtop__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ar-mtop .ar-mtop__stage {
	position: relative;
	height: 470px;
	overflow: hidden;
}
.ar-mtop .ar-mtop__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
}
.ar-mtop .ar-mtop__slide.is-active {
	opacity: 1;
	visibility: visible;
}
.ar-mtop [data-ar-zoom] .ar-mtop__slide {
	cursor: zoom-in;
}
.ar-mtop .ar-mtop__img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}
/* slide up/down, no fade (next photo comes up from below, previous comes down from above) */
.ar-mtop .ar-mtop__slide.is-out-next,
.ar-mtop .ar-mtop__slide.is-out-prev {
	visibility: visible;
	opacity: 1;
}
.ar-mtop .ar-mtop__slide.is-in-next { animation: ar-mslide-in-next .4s ease both; }
.ar-mtop .ar-mtop__slide.is-in-prev { animation: ar-mslide-in-prev .4s ease both; }
.ar-mtop .ar-mtop__slide.is-out-next { animation: ar-mslide-out-next .4s ease both; }
.ar-mtop .ar-mtop__slide.is-out-prev { animation: ar-mslide-out-prev .4s ease both; }
@keyframes ar-mslide-in-next { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes ar-mslide-in-prev { from { transform: translate3d(0, -100%, 0); } to { transform: none; } }
@keyframes ar-mslide-out-next { from { transform: none; } to { transform: translate3d(0, -100%, 0); } }
@keyframes ar-mslide-out-prev { from { transform: none; } to { transform: translate3d(0, 100%, 0); } }

.ar-mtop .ar-mtop__zoom {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8a8a8a;
	cursor: pointer;
}
.ar-mtop .ar-mtop__zoom .ar-icon {
	width: 20px;
	height: 20px;
}
.ar-mtop .ar-mtop__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ar-red);
	transform: translateY(-50%);
	cursor: pointer;
}
.ar-mtop .ar-mtop__arrow .ar-icon {
	width: 22px;
	height: 22px;
}
.ar-mtop .ar-mtop__arrow--prev { left: 0; }
.ar-mtop .ar-mtop__arrow--next { right: 0; }

.ar-mtop .ar-mtop__info {
	padding-left: 14%;
	text-align: left;
}
.ar-mtop .ar-mtop__name {
	color: var(--ar-ink);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
}
.ar-mtop .ar-mtop__specs {
	margin-top: 20px;
	color: var(--ar-ink);
	font-size: 18px;
	font-weight: 300;
	line-height: 24px;
}
.ar-mtop .ar-mtop__specs p {
	margin: 0 0 17px;
}
.ar-mtop .ar-mtop__specs > :last-child {
	margin-bottom: 0;
}
.ar-mtop .ar-mtop__btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 45px;
}
.ar-mtop .ar-mtop__cat,
.ar-mtop .ar-mtop__video {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 50px;
	border: 1px solid var(--ar-red);
	border-radius: 34px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}
.ar-mtop .ar-mtop__cat {
	width: 208px;
	min-height: 66px;
	padding: 6px 40px;
	background: var(--ar-red);
	color: var(--ar-white);
}
.ar-mtop .ar-mtop__cat:hover,
.ar-mtop .ar-mtop__cat:focus-visible {
	background: var(--ar-white);
	color: var(--ar-red);
}
.ar-mtop .ar-mtop__video {
	min-width: 195px;
	padding: 6px 28px;
	background: var(--ar-white);
	color: var(--ar-red);
}
.ar-mtop .ar-mtop__video:hover,
.ar-mtop .ar-mtop__video:focus-visible {
	background: var(--ar-red);
	color: var(--ar-white);
}
.ar-mtop .ar-mtop__play {
	width: 16px;
	height: 18px;
}

/* ---- Detail rows ---- */
.ar-mrows {
	padding: 60px var(--ar-gutter) 60px;
	background: #f4f4f4;
}
.ar-mrows .ar-mrows__inner {
	max-width: 1256px;
	margin: 0 auto;
}
.ar-mrows .ar-mrows__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	margin-bottom: 80px;
}
.ar-mrows .ar-mrows__row--img-left .ar-mrows__media {
	order: -1;
}
.ar-mrows .ar-mrows__row.is-text-only,
.ar-mrows .ar-mrows__row.is-img-only {
	grid-template-columns: minmax(0, 1fr);
}
.ar-mrows .ar-mrows__row.is-text-only .ar-mrows__text {
	max-width: 640px;
	margin: 0 auto;
}
.ar-mrows .ar-mrows__img {
	display: block;
	width: 100%;
	height: auto;
}
.ar-mrows .ar-mrows__text {
	padding: 0 25px;
	color: var(--ar-dark);
	font-size: 18px;
	font-weight: 300;
	line-height: 30px;
	text-align: center;
}
.ar-mrows .ar-mrows__text :is(p, ul, ol) {
	margin: 0 0 22px;
}
.ar-mrows .ar-mrows__text :is(ul, ol) {
	padding-left: 1.2em;
	list-style-position: inside;
}
.ar-mrows .ar-mrows__text > :last-child {
	margin-bottom: 0;
}
.ar-mrows .ar-mrows__text :is(strong, b) {
	color: var(--ar-dark);
	font-weight: 600;
}
.ar-mrows .ar-mrows__text :is(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 22px;
	color: var(--ar-dark);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}
.ar-mrows .ar-mrows__text img {
	max-width: 100%;
	height: auto;
}
.ar-mrows .ar-mrows__back {
	justify-content: center;
	margin-top: 20px;
}
.ar-mrows.is-empty .ar-mrows__back {
	margin-top: 0;
}

/* ---- Big photo viewer ---- */
.ar-viewer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	background: rgba(0, 0, 0, 0.88);
	font-family: var(--ar-font);
}
.ar-viewer[hidden] {
	display: none;
}
html.ar-viewer-open {
	overflow: hidden;
}
.ar-viewer .ar-viewer__fig {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}
.ar-viewer .ar-viewer__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: var(--ar-white);
}
.ar-viewer .ar-viewer__close,
.ar-viewer .ar-viewer__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}
.ar-viewer .ar-viewer__close:hover,
.ar-viewer .ar-viewer__nav:hover {
	background: var(--ar-red);
}
.ar-viewer .ar-viewer__close { top: 14px; right: 14px; }
.ar-viewer .ar-viewer__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ar-viewer .ar-viewer__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.ar-viewer .ar-viewer__nav[hidden] { display: none; }
.ar-viewer .ar-viewer__count {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	margin: 0;
	color: #ffffff;
	font-size: 15px;
	text-align: center;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.ar-mtop {
		padding-top: 60px;
	}
	.ar-mtop .ar-mtop__back {
		margin-bottom: 50px;
	}
	.ar-mtop .ar-mtop__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		max-width: 700px;
	}
	.ar-mtop .ar-mtop__info {
		padding-left: 0;
	}
	.ar-mtop .ar-mtop__stage {
		height: 420px;
	}
	.ar-mrows .ar-mrows__text {
		font-size: 16px;
		line-height: 26px;
	}
}

/* ---- Phone ---- */
@media (max-width: 767px) {
	.ar-mtop {
		padding: 50px 30px 60px;
	}
	.ar-mtop .ar-mtop__back {
		justify-content: center;
		margin-bottom: 40px;
	}
	.ar-mtop .ar-mtop__gallery {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
	.ar-mtop .ar-mtop__stage {
		order: -1;
		height: 300px;
		padding: 0 30px;
	}
	.ar-mtop .ar-mtop__slide {
		inset: 0 30px;
	}
	.ar-mtop .ar-mtop__arrow {
		display: inline-flex;
	}
	.ar-mtop .ar-mtop__thumbs {
		flex-direction: row;
		gap: 12px;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}
	.ar-mtop .ar-mtop__thumb {
		width: calc((100% - 24px) / 3);
		height: 80px;
	}
	.ar-mtop .ar-mtop__name {
		font-size: 34px;
	}
	.ar-mtop .ar-mtop__specs {
		font-size: 16px;
	}
	.ar-mtop .ar-mtop__btns {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		margin-top: 35px;
	}
	.ar-mtop .ar-mtop__cat {
		width: auto;
		min-width: 218px;
		min-height: 50px;
		padding: 6px 28px;
		font-size: 16px;
	}
	.ar-mtop .ar-mtop__video {
		min-width: 250px;
		min-height: 45px;
		font-size: 14px;
	}
	.ar-mtop .ar-mtop__cat br {
		display: none;
	}
	.ar-mrows {
		padding: 50px 30px;
	}
	.ar-mrows .ar-mrows__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		margin-bottom: 60px;
	}
	.ar-mrows .ar-mrows__media {
		order: -1;
	}
	.ar-mrows .ar-mrows__text {
		padding: 0;
		font-size: 16px;
		line-height: 24px;
	}
	.ar-viewer {
		padding: 60px 10px;
	}
	.ar-viewer .ar-viewer__nav--prev { left: 4px; }
	.ar-viewer .ar-viewer__nav--next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.ar-mtop .ar-mtop__slide {
		animation: none;
	}
}

/* Keep these buttons the same on mouse-over (general button reset / site button styles). */
.ar-mtop .ar-mtop__zoom.ar-mtop__zoom:is(:hover, :focus) {
	background: transparent;
	color: #8a8a8a;
}
.ar-mtop .ar-mtop__arrow.ar-mtop__arrow:is(:hover, :focus) {
	background: transparent;
	color: var(--ar-red);
}
.ar-mtop .ar-mtop__thumb.ar-mtop__thumb:is(:hover, :focus) {
	padding: 0;
	border: 0;
	background: transparent;
}
.ar-viewer .ar-viewer__close.ar-viewer__close,
.ar-viewer .ar-viewer__nav.ar-viewer__nav {
	border: 0;
	color: #ffffff;
	box-shadow: none;
}
.ar-viewer .ar-viewer__close.ar-viewer__close:is(:hover, :focus-visible),
.ar-viewer .ar-viewer__nav.ar-viewer__nav:is(:hover, :focus-visible) {
	background: var(--ar-red);
	color: #ffffff;
}

/* Filter tabs and page numbers have no href (nothing shows on hover), so give them the pointer. */
.ar-mlist [data-ar-ml-link] {
	cursor: pointer;
}

/* ---- 0.6.2: AR Machine Detail Text – "รายละเอียด" + product Detail text (old site, phones) ---- */
.ar-mdetail {
	padding: 40px var(--ar-gutter) 45px;
	background: #f4f4f4;
	font-family: var(--ar-font);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.ar-mdetail * {
	box-sizing: border-box;
}
.ar-mdetail .ar-mdetail__inner {
	max-width: 1440px;
	margin: 0 auto;
}
.ar-mdetail .ar-mdetail__title {
	margin: 0 0 22px;
	padding: 0;
	color: var(--ar-ink);
	font-family: var(--ar-font);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}
.ar-mdetail .ar-mdetail__text {
	color: #555555;
	font-family: var(--ar-font);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
	overflow-wrap: break-word;
}
.ar-mdetail .ar-mdetail__text :is(p, ul, ol) {
	margin: 0 0 14px;
}
.ar-mdetail .ar-mdetail__text :is(ul, ol) {
	padding-left: 24px;
}
.ar-mdetail .ar-mdetail__text > :last-child {
	margin-bottom: 0;
}
.ar-mdetail .ar-mdetail__text :is(strong, b) {
	color: #333333;
	font-weight: 500;
}
.ar-mdetail .ar-mdetail__text :is(h1, h2, h3, h4, h5, h6) {
	margin: 20px 0 10px;
	color: #333333;
	font-family: var(--ar-font);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.4;
}
.ar-mdetail .ar-mdetail__text img {
	max-width: 100%;
	height: auto;
}
@media (max-width: 767px) {
	.ar-mdetail {
		padding: 30px var(--ar-gutter) 35px;
	}
	.ar-mdetail .ar-mdetail__title {
		margin-bottom: 16px;
		font-size: 26px;
	}
	.ar-mdetail .ar-mdetail__text {
		font-size: 15px;
		line-height: 1.8;
	}
}

/* ---- 0.6.4: AR Machine Detail Rows – "รายละเอียด" + product Detail text above the rows (old site, phones) ---- */
.ar-mrows .ar-mrows__detail {
	margin: 0 0 70px;
}
.ar-mrows .ar-mrows__detail-title {
	margin: 0 0 34px;
	color: var(--ar-ink);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.3;
}
.ar-mrows .ar-mrows__detail-text {
	color: #333333;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	text-align: left;
	overflow-wrap: break-word;
}
.ar-mrows .ar-mrows__detail-text :is(p, ul, ol) {
	margin: 0 0 16px;
}
.ar-mrows .ar-mrows__detail-text ol {
	padding-left: 24px;
	list-style: decimal;
}
.ar-mrows .ar-mrows__detail-text ul {
	padding-left: 24px;
	list-style: disc;
}
.ar-mrows .ar-mrows__detail-text > :last-child {
	margin-bottom: 0;
}
.ar-mrows .ar-mrows__detail-text :is(strong, b) {
	font-weight: 500;
}
@media (min-width: 768px) {
	.ar-mrows .ar-mrows__detail.is-phone-only {
		display: none;
	}
}
@media (max-width: 767px) {
	.ar-mrows .ar-mrows__detail {
		margin-bottom: 60px;
	}
	.ar-mrows .ar-mrows__detail-title {
		margin-bottom: 28px;
		font-size: 30px;
	}
	.ar-mrows .ar-mrows__detail-text {
		font-size: 16px;
		line-height: 1.7;
	}
}
.ar-mrows .ar-mrows__detail-text li + li {
	margin-top: 16px;
}

/* ---- 0.7.0: phones – photo slides left / right (next comes from the right, previous from the left).
   Tablet + PC keep up / down. ---- */
@media (max-width: 767px) {
	.ar-mtop .ar-mtop__slide.is-in-next { animation-name: ar-mslide-in-next-x; }
	.ar-mtop .ar-mtop__slide.is-in-prev { animation-name: ar-mslide-in-prev-x; }
	.ar-mtop .ar-mtop__slide.is-out-next { animation-name: ar-mslide-out-next-x; }
	.ar-mtop .ar-mtop__slide.is-out-prev { animation-name: ar-mslide-out-prev-x; }
}
@keyframes ar-mslide-in-next-x { from { transform: translate3d(100%, 0, 0); } to { transform: none; } }
@keyframes ar-mslide-in-prev-x { from { transform: translate3d(-100%, 0, 0); } to { transform: none; } }
@keyframes ar-mslide-out-next-x { from { transform: none; } to { transform: translate3d(-100%, 0, 0); } }
@keyframes ar-mslide-out-prev-x { from { transform: none; } to { transform: translate3d(100%, 0, 0); } }
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.ar-mtop .ar-mtop__slide { animation: none; }
}
