/* ==========================================================================
   AsianTrade theme — global layout
   Values match the previous Avada setup: Lato 18px body, Saira headings,
   blue #147ace, red #f73b41, footer #e9eaee, content width 1500px.
   ========================================================================== */

:root {
	--at-blue: #147ace;
	--at-blue-dark: #005eab;
	--at-red: #f73b41;
	--at-text: #747474;
	--at-heading: #6f727b;
	--at-border: #ebeaea;
	--at-footer-bg: #e9eaee;
	--at-site-width: 1500px;
	--at-gutter: 30px;
	--at-header-height: 84px;
	--at-sticky-height: 84px;
	--at-font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
	--at-font-heading: "Saira", "Helvetica Neue", Arial, sans-serif;
	--at-font-condensed: "Saira Condensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Never let one element widen the page on phones (iOS zooms the whole page out
   otherwise). "clip" keeps position: sticky working, unlike "hidden". */
html, body { overflow-x: clip; }
/* Long unbroken strings in content (e.g. "......Coming Soon!!!......") must wrap. */
.post-content, .fusion-text, .fusion-title, .at-footer { overflow-wrap: anywhere; }

body {
	margin: 0;
	font-family: var(--at-font-body);
	font-size: 18px;
	line-height: 1.78; /* 32px at 18px, as on the Avada site */
	color: var(--at-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	/* Horizontal overflow is handled by "overflow-x: clip" on html/body above; "hidden"
	   here would turn body into a scroll container and break the sticky header. */
}

img { max-width: 100%; height: auto; vertical-align: middle; }
iframe { max-width: 100%; }

a { color: var(--at-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--at-red); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--at-font-heading);
	font-weight: 400;
	color: var(--at-heading);
	line-height: 1.1;
	margin: 0 0 .5em;
}
h1 { font-size: 52px; letter-spacing: -1px; }
h2 { font-size: 50px; letter-spacing: -1px; }
h3 { font-family: var(--at-font-condensed); font-size: 36px; line-height: 1.25; letter-spacing: -1px; margin: 25px 0; }
h4 { font-size: 24px; line-height: 1.3; }
h5 { font-size: 20px; line-height: 1.3; }
h6 { font-size: 16px; line-height: 1.4; }
p { margin: 0 0 20px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 8px; left: 8px;
	padding: 10px 16px; background: #fff; color: #000;
}

.fusion-wrapper { position: relative; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.at-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
.admin-bar .at-header { top: 32px; }

.at-header-bar { transition: background-color .3s ease, box-shadow .3s ease; }

.at-header-inner {
	max-width: var(--at-site-width);
	margin: 0 auto;
	padding: 0 var(--at-gutter);
	height: var(--at-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.at-logo { display: flex; align-items: center; flex-shrink: 0; margin: 10px 0; }
.at-logo img { max-height: 50px; width: auto; }
.at-logo-sticky,
.at-logo-mobile { display: none; }
.at-logo-text { font-family: var(--at-font-heading); font-size: 28px; color: #fff; }

.at-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.at-menu li { position: relative; }
.at-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s ease; z-index: 10;
}
.at-menu li:hover > .sub-menu,
.at-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.at-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.at-menu .sub-menu a { display: block; padding: 8px 18px; color: #333; font-size: 14px; letter-spacing: .5px; }
.at-menu .sub-menu a:hover { color: var(--at-red); background: #f7f7f7; }

/* Transparent header (top of page) */
.at-nav-main .at-menu > li > a {
	display: flex;
	align-items: center;
	height: var(--at-header-height);
	padding: 0 0 0 45px;
	font-family: var(--at-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #f7f7f7;
}
.at-nav-main .at-menu > li > a:hover,
.at-nav-main .at-menu > .current-menu-item > a,
.at-nav-main .at-menu > .current-menu-parent > a { color: var(--at-red); }

.at-nav-sticky { display: none; }

/* Pages without a hero/title bar: header sits on white */
body:not(.has-hero-slider):not(.has-title-bar) .at-header { position: relative; }
body:not(.has-hero-slider):not(.has-title-bar) .at-header-bar { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
body:not(.has-hero-slider):not(.has-title-bar) .at-nav-main .at-menu > li > a { color: #333; }

/* Pages with a solid header colour (Avada page option), e.g. products */
body.has-header-bg .at-header { position: relative; }
body.has-header-bg:not(.has-hero-slider):not(.has-title-bar) .at-nav-main .at-menu > li > a { color: #f7f7f7; }
body.has-header-bg:not(.has-hero-slider):not(.has-title-bar) .at-nav-main .at-menu > li > a:hover,
body.has-header-bg:not(.has-hero-slider):not(.has-title-bar) .at-nav-main .at-menu > .current-menu-item > a { color: var(--at-red); }
body.has-header-bg .at-header.is-sticky .at-header-bar { background-color: rgba(255,255,255,.97) !important; }
body.has-header-bg .at-burger,
body.has-header-bg .at-burger::before,
body.has-header-bg .at-burger::after { background: #fff; }

/* Sticky state (added by JS after scrolling) */
.at-header.is-sticky { position: fixed; }
.at-header.is-sticky .at-header-bar {
	background: rgba(255,255,255,.97);
	box-shadow: 0 1px 6px rgba(0,0,0,.08);
	animation: at-slide-down .3s ease;
}
.at-header.is-sticky .at-header-inner { height: var(--at-sticky-height); }
.at-header.is-sticky .at-logo-standard { display: none; }
.at-header.is-sticky .at-logo-sticky { display: block; max-height: 44px; }
.at-header.is-sticky .at-nav-main { display: none; }
.at-header.is-sticky .at-nav-sticky { display: block; }

@keyframes at-slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* Icon menu (sticky) */
.at-nav-sticky .at-menu > li > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: var(--at-sticky-height);
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #333;
	text-align: center;
	line-height: 1.3;
}
.at-nav-sticky .at-menu > li { padding-right: 50px; }
.at-nav-sticky .at-menu > li:last-child { padding-right: 0; }
.at-nav-sticky .menu-icon { color: var(--at-blue); font-size: 16px; line-height: 24px; transition: color .2s ease; }
.at-nav-sticky .menu-text { display: flex; flex-direction: column; align-items: center; }
.at-nav-sticky .menu-description {
	font-size: 11.2px; line-height: 1; font-weight: 400; letter-spacing: 0; text-transform: none;
	color: var(--at-blue-dark); margin-top: 3px;
}
.at-nav-sticky .at-menu > li > a:hover,
.at-nav-sticky .at-menu > .current-menu-item > a,
.at-nav-sticky .at-menu > .current-menu-parent > a,
.at-nav-sticky .at-menu > li > a:hover .menu-icon,
.at-nav-sticky .at-menu > .current-menu-item > a .menu-icon,
.at-nav-sticky .at-menu > .current-menu-parent > a .menu-icon,
.at-nav-sticky .at-menu > li > a:hover .menu-description,
.at-nav-sticky .at-menu > .current-menu-item > a .menu-description { color: var(--at-red); }

/* Mobile menu */
.at-menu-toggle {
	display: none;
	background: none; border: 0; padding: 10px; cursor: pointer;
	width: 44px; height: 44px;
}
.at-burger,
.at-burger::before,
.at-burger::after {
	display: block; width: 24px; height: 2px; background: #fff;
	position: relative; transition: transform .2s ease, background .2s ease;
}
.at-burger::before, .at-burger::after { content: ""; position: absolute; left: 0; }
.at-burger::before { top: -7px; }
.at-burger::after { top: 7px; }
.at-header.is-sticky .at-burger,
.at-header.is-sticky .at-burger::before,
.at-header.is-sticky .at-burger::after,
body:not(.has-hero-slider):not(.has-title-bar) .at-burger,
body:not(.has-hero-slider):not(.has-title-bar) .at-burger::before,
body:not(.has-hero-slider):not(.has-title-bar) .at-burger::after { background: #333; }
.at-menu-toggle[aria-expanded="true"] .at-burger { background: transparent !important; }
.at-menu-toggle[aria-expanded="true"] .at-burger::before { transform: translateY(7px) rotate(45deg); }
.at-menu-toggle[aria-expanded="true"] .at-burger::after { transform: translateY(-7px) rotate(-45deg); }

.at-mobile-menu { background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.1); max-height: calc(100vh - 70px); overflow-y: auto; }
.at-mobile-menu .at-menu { flex-direction: column; padding: 8px 0; }
.at-mobile-menu .at-menu a {
	display: block; padding: 13px var(--at-gutter);
	color: #333; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	border-bottom: 1px solid #f0f0f0;
}
.at-mobile-menu .at-menu .current-menu-item > a,
.at-mobile-menu .at-menu a:hover { color: var(--at-red); }
.at-mobile-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }

@media (max-width: 1100px) {
	.at-nav-main .at-menu > li > a { padding-left: 24px; letter-spacing: 1px; }
	.at-nav-sticky .at-menu > li > a { padding: 0 10px; }
}

@media (max-width: 960px) {
	:root { --at-gutter: 20px; --at-header-height: 70px; }
	.at-nav-main, .at-nav-sticky, .at-header.is-sticky .at-nav-sticky { display: none !important; }
	.at-menu-toggle { display: block; }
	.at-logo-standard, .at-header.is-sticky .at-logo-sticky { display: none !important; }
	.at-logo-mobile { display: block; max-height: 44px; }
	.at-header-bar { background: rgba(255,255,255,.97); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
	.at-burger, .at-burger::before, .at-burger::after { background: #333; }
	.at-header { position: sticky; top: 0; }
	/* Follow the WordPress admin bar: 32px above 782px, 46px down to 601px, and
	   below that it scrolls away with the page, so the header sticks to the top. */
	.admin-bar .at-header { top: 32px; }
}
@media (max-width: 782px) {
	.admin-bar .at-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .at-header { top: 0; }
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */

.at-hero {
	position: relative;
	height: min(var(--at-hero-height, 900px), 62vw);
	min-height: 260px;
	overflow: hidden;
	background: #222;
}
.at-hero-slides { list-style: none; margin: 0; padding: 0; height: 100%; }
/* Parallax slider: stays put while the content scrolls over it. */
@media (min-width: 961px) {
	.at-hero.is-parallax { position: sticky; top: 0; z-index: 0; }
	.has-hero-slider .at-main,
	.has-hero-slider .at-footer { position: relative; z-index: 1; background: #fff; }
	.has-hero-slider .at-footer { background: var(--at-footer-bg); }
}
.at-hero-slide {
	position: absolute; inset: 0;
	opacity: 0; transition: opacity var(--at-hero-fade, 600ms) ease;
}
.at-hero-slide.is-active { opacity: 1; z-index: 1; }
.at-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.at-hero-video, .at-hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; object-fit: cover; }
.at-hero-dots { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 4; display: flex; justify-content: center; gap: 10px; }
.at-hero-dots button { width: 11px; height: 11px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.at-hero-dots button.is-active { background: #fff; }
.at-hero-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.at-hero-inner { max-width: var(--at-site-width); width: 100%; margin: 0 auto; padding: 0 var(--at-gutter); }
.at-hero-content-center .at-hero-inner { text-align: center; }
.at-hero-content-right .at-hero-inner { text-align: right; }
.at-hero-heading { color: #fff; font-size: clamp(32px, 5vw, 64px); text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.at-hero-caption { color: #fff; font-size: clamp(16px, 2vw, 24px); }
.at-hero-link { position: absolute; inset: 0; z-index: 3; }
.at-hero-prev, .at-hero-next {
	position: absolute; top: 50%; z-index: 4;
	width: 63px; height: 63px; margin-top: -32px;
	border: 0; background: rgba(0,0,0,.25); color: #fff; cursor: pointer;
	opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.at-hero:hover .at-hero-prev, .at-hero:hover .at-hero-next { opacity: 1; }
.at-hero-prev { left: 0; }
.at-hero-next { right: 0; }
.at-hero-prev::before, .at-hero-next::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 25px;
}
.at-hero-prev::before { content: "\f104"; }
.at-hero-next::before { content: "\f105"; }
.at-hero-prev:hover, .at-hero-next:hover { background: rgba(0,0,0,.5); }

@media (max-width: 960px) {
	.at-hero { height: min(var(--at-hero-height, 900px), 70vw); }
}

/* --------------------------------------------------------------------------
   Page title bar
   -------------------------------------------------------------------------- */

.fusion-page-title-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--at-title-height, 700px);
	padding: 0 var(--at-gutter);
	background-color: #5c5b5c;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	text-align: center;
	color: #fff;
}
.fusion-page-title-bar h1 {
	color: inherit;
	font-size: 52px;
	line-height: 1.4;
	margin: 0;
	text-shadow: 0 1px 10px rgba(0,0,0,.25);
}
@media (max-width: 800px) {
	.fusion-page-title-bar { height: auto; min-height: var(--at-title-height-mobile, 200px); padding-top: 24px; padding-bottom: 24px; background-size: cover !important; }
	.fusion-page-title-bar h1 { font-size: 34px; }
}

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */

.at-main { display: block; min-height: 40vh; }

.at-boxed {
	max-width: var(--at-site-width);
	margin: 0 auto;
	padding: 60px var(--at-gutter);
}
.at-content .post-content > :last-child { margin-bottom: 0; }

/* Single product */
.at-product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 50px; align-items: start; }
.at-product-media img { width: 100%; border: 1px solid var(--at-border); background: #fff; }
.at-product-title { font-size: 40px; margin-bottom: 8px; color: #333; }
.at-product-cats { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.at-product .fusion-content-sep { border-top: 1px dotted var(--at-blue); margin: 0 0 20px; }
.at-product-tags { font-size: 14px; color: #999; margin-top: 24px; }
.at-related { margin-top: 70px; }
.at-related-title { text-align: center; margin-bottom: 30px; }
@media (max-width: 800px) {
	.at-product-grid { grid-template-columns: 1fr; gap: 24px; }
	.at-product-title { font-size: 30px; }
}

/* Blog / archive list */
.at-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.at-post-card { border: 1px solid var(--at-border); border-bottom-width: 3px; background: #fff; }
.at-post-thumb img { width: 100%; }
.at-post-body { padding: 20px 24px; }
.at-post-title { font-size: 22px; letter-spacing: 0; }
.at-post-excerpt { font-size: 15px; }
.at-empty { text-align: center; }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span,
.nav-links a, .nav-links span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px;
	border: 1px solid var(--at-border); color: var(--at-text); font-size: 15px;
}
.pagination .current, .nav-links .current { background: var(--at-blue); border-color: var(--at-blue); color: #fff; }

/* 404 */
.at-404 { text-align: center; }
.at-404-code { font-family: var(--at-font-heading); font-size: 140px; line-height: 1; color: var(--at-blue); margin: 0 0 10px; }

/* Search form */
.search-form { display: flex; gap: 8px; justify-content: center; margin: 20px auto; max-width: 480px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #d2d2d2; font: inherit; font-size: 15px; }
.search-submit { height: 44px; padding: 0 20px; border: 0; background: var(--at-blue); color: #fff; font: inherit; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.search-submit:hover { background: var(--at-red); }

/* Forms (Contact Form 7 etc.) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], textarea, select {
	font: inherit; font-size: 15px; color: #333;
	border: 1px solid #d2d2d2; background: #fff; padding: 10px 14px; max-width: 100%;
}
textarea { width: 100%; min-height: 160px; }
input[type="submit"], button.wpcf7-submit {
	font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	border: 0; background: var(--at-blue); color: #fff; padding: 12px 28px; cursor: pointer; transition: background .2s ease;
}
input[type="submit"]:hover, button.wpcf7-submit:hover { background: var(--at-red); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] { width: 100%; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.at-footer { background: var(--at-footer-bg); color: var(--at-text); }
.at-footer-inner { max-width: var(--at-site-width); margin: 0 auto; padding: 0 var(--at-gutter); }
.at-footer-widgets { padding: 40px 0 30px; }
.at-footer-columns {
	display: grid;
	grid-template-columns: repeat(var(--at-footer-columns, 6), minmax(0, 1fr));
	gap: 30px;
}
.at-footer .widget { margin-bottom: 20px; }
.at-footer .widget-title { font-family: var(--at-font-condensed); font-size: 22px; color: #333; letter-spacing: 0; }
.at-footer a { color: var(--at-text); }
.at-footer a:hover { color: var(--at-red); }
.at-footer img { max-width: 150px; }

.at-footer-copyright { padding: 40px 0; border-top: 1px solid rgba(0,0,0,.04); }
.at-footer-copyright .at-footer-inner { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; text-align: center; }
.at-copyright { font-size: 11px; text-transform: uppercase; line-height: 1.5; }
.at-copyright p { margin: 0; }
.at-social { display: flex; gap: 18px; font-size: 16px; }
.at-social a { color: #46494a; }
.at-social a:hover { color: var(--at-red); }

@media (max-width: 1024px) {
	.at-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.at-footer-columns { grid-template-columns: 1fr; }
}

/* Back to top */
.at-to-top {
	position: fixed; right: 20px; bottom: 0; z-index: 90;
	width: 44px; height: 32px; display: flex; align-items: center; justify-content: center;
	background: #333; color: #fff; border-radius: 4px 4px 0 0;
	opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.at-to-top.is-visible { opacity: .85; visibility: visible; }
.at-to-top:hover { opacity: 1; color: #fff; background: var(--at-red); }

/* Lightbox */
.at-lightbox {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(0,0,0,.85);
	display: flex; align-items: center; justify-content: center; padding: 40px;
}
.at-lightbox[hidden] { display: none; }
.at-lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #fff; }
.at-lightbox-close {
	position: absolute; top: 12px; right: 18px;
	background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer;
}

/* WordPress core alignment / captions */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; text-align: center; }
