/**
 * Thin WP-specific overrides on top of HTML theme global.css.
 */

/* Custom logo inside hdr-logo anchor */
.site .hdr-logo .custom-logo-link {
	display: block;
	line-height: 0;
}

/* WordPress menu current item parity with HTML mockup */
.site .adm-nav-links .current-menu-item > a,
.site .nav-links .current-menu-item > a {
	color: var(--red-ink, #f5a623);
}

/* Mobile shell logo image */
.site .m-logo img {
	height: 40px;
	max-width: min(160px, 42vw);
	width: auto;
	display: block;
	object-fit: contain;
}

.site .m-drawer-head .m-logo img {
	height: 40px;
	max-width: min(180px, 55vw);
}

/* Sales panel reopen tab — match HTML mockup radius */
.site .sales-reopen {
	border-radius: 0 6px 6px 0;
}

/* Sales item: separate tel / Zalo links */
.site .sales-item .call,
.site .sales-item .num {
	text-decoration: none;
	color: inherit;
}
.site .sales-item .call svg {
	stroke: #ffffff;
}
.site .sales-item .zbadge {
	text-decoration: none;
}

/* Search page: catalog filter sidebar inside .rfilter */
.site.pg-search .rfilter .filter-side {
	width: 100%;
}

/* Autocomplete panel anchor */
.site .nav-search,
.site .hh-search,
.site .adm-search,
.site .big-search.search {
	position: relative;
}

.swiper-slide .e-con-boxed, .swiper-slide .e-con-boxed .e-con-inner {
    padding: 0 !important;
}

/* WordPress media alignment — classic-theme-styles / block-library are dequeued. */
.entry-content img,
.bd-sec img {
	height: auto;
	max-width: 100%;
}

.alignnone {
	margin: 0.5em 0 1.25em;
}

.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	float: none;
	margin-left: auto;
	margin-right: auto;
}

.alignleft,
img.alignleft {
	float: left;
	margin: 0.35em 1.25em 1em 0;
}

.alignright,
img.alignright {
	float: right;
	margin: 0.35em 0 1em 1.25em;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 100%;
}

.wp-caption-text {
	color: var(--ink-2, #6b6b6b);
	font-size: 13px;
	line-height: 1.5;
	margin: 0.5em 0 1.25em;
	text-align: center;
}

.entry-content::after {
	clear: both;
	content: "";
	display: table;
}

/* Logo CLS: reserve the displayed box so the image cannot reflow the header. */
.site .hdr-logo,
.site .hdr-logo .custom-logo-link {
	display: block;
	height: 116px;
	min-width: 80px;
	line-height: 0;
}
.site .hdr-logo img,
.site .hdr-logo .custom-logo {
	height: 116px;
	width: auto;
	max-height: 116px;
	display: block;
}
@media (max-width: 1024px) {
	.site .hdr-logo,
	.site .hdr-logo .custom-logo-link { height: 88px; }
	.site .hdr-logo img,
	.site .hdr-logo .custom-logo { height: 88px; max-height: 88px; }
}

/* Mobile PDP: keep conversion CTAs reachable; cap hero image. */
.pdp-sticky-cta { display: none; }
@media (max-width: 768px) {
	.pg-product-detail .stage {
		aspect-ratio: 4 / 3;
		max-height: 42vh;
	}
	.pdp-sticky-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 62px;
		z-index: 230;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--line, #e6e6e6);
		box-shadow: 0 -4px 16px rgba(0,0,0,.08);
	}
	.pdp-sticky-cta a,
	.pdp-sticky-cta button {
		flex: 1;
		height: 44px;
		border: 0;
		border-radius: 4px;
		font: inherit;
		font-weight: 700;
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: .4px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}
	.pdp-sticky-cta .call-primary { background: var(--red, #ec2324); color: #fff; }
	.pdp-sticky-cta .call-dark { background: var(--ink, #1c1f24); color: #fff; }
	body.pg-product-detail { padding-bottom: 118px; }
	.pg-product-detail .m-call,
	.pg-product-category .m-call { display: none !important; }
}

.ap-contact-maps,
.ap-branch-maps {
	display: grid;
	gap: 16px;
}
.ap-contact-map-block,
.ap-branch-map-card {
	border: 1px solid var(--line, #e6e6e6);
	border-radius: 8px;
	padding: 16px 18px;
	background: #fff;
}
.ap-contact-map-block h3,
.ap-branch-map-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
}
