/*
Theme Name: Athiyaman
Theme URI: https://athiyamanteam.com/
Author: Athiyaman Team
Author URI: https://athiyamanteam.com/
Description: Lightweight classic theme for athiyamanteam.com — card-based, bilingual (Tamil + English), WooCommerce and Elementor friendly, no jQuery, inline SVG icons, mobile bottom bar.
Version: 1.0.52
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: athiyaman
Tags: education, e-commerce, blog, two-columns, custom-logo, custom-menu, featured-images, footer-widgets, translation-ready, accessibility-ready
*/

/* ===== Tokens (prefixed so custom-HTML pages that define --bg/--line etc. never clash) ===== */
:root {
	--ath-navy: #14243a;
	--ath-deep: #0b1120;
	--ath-amber: #f59e0b;
	--ath-amber-d: #d97706;
	--ath-blue: #1d5fd1;
	--ath-text: #17273d;
	--ath-muted: #4a5b73;
	--ath-border: #dfe5ef;
	--ath-bg: #f5f7fb;
	--ath-white: #fff;
	--ath-radius: 12px;
	--ath-radius-s: 8px;
	--ath-shadow: 0 1px 2px rgba(20, 36, 58, .06), 0 2px 8px rgba(20, 36, 58, .06);
	--ath-shadow-h: 0 8px 24px rgba(20, 36, 58, .13);
	--ath-font: "Inter", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ath-font-ta: "Noto Sans Tamil", "Inter", system-ui, sans-serif;
	--ath-wrap: 1200px;
	--ath-read: 760px;
	--ath-header-h: 64px;
	--ath-bnav-h: 62px;
	--ath-focus: 0 0 0 3px rgba(245, 158, 11, .55);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ath-header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--ath-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ath-text);
	background: var(--ath-white);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
:lang(ta), .ta, [lang="ta"] { font-family: var(--ath-font-ta); line-height: 1.8; }
/* Easy Google Fonts prints p { font-family: Arial } site-wide; posts and pages use the
   theme font (Inter for English, Noto Sans Tamil for Tamil). Shop pages keep their own fonts. */
body:not(.woocommerce) p { font-family: inherit; }
body:not(.woocommerce) .ath-entry :is(p, li, td, th, blockquote, figcaption) { font-family: var(--ath-font); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ath-blue); text-underline-offset: 2px; }
a:hover { color: var(--ath-navy); }
h1, h2, h3, h4, h5, h6 { color: var(--ath-navy); line-height: 1.3; margin: 1.6em 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, dl, figure, blockquote, table, pre { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--ath-border); margin: 2em 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ath-amber-d); outline-offset: 2px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ath-amber); color: var(--ath-deep);
	border-radius: var(--ath-radius-s); font-weight: 700; text-decoration: none;
}
.ath-icon { flex: none; vertical-align: middle; }
.ath-container { width: 100%; max-width: var(--ath-wrap); margin: 0 auto; padding: 0 16px; }
.ath-readable { max-width: calc(var(--ath-read) + 32px); }
.ath-narrow { max-width: 720px; }
.ath-content-area:focus { outline: 0; }
html.ath-lock { overflow: hidden; }

/* ===== Buttons ===== */
.ath-btn, .ath-entry .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: var(--ath-radius-s); border: 2px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.ath-btn--amber { background: var(--ath-amber); color: var(--ath-deep); }
.ath-btn--amber:hover { background: var(--ath-amber-d); color: var(--ath-deep); }
.ath-btn--navy { background: var(--ath-navy); color: #fff; }
.ath-btn--navy:hover { background: var(--ath-deep); color: #fff; }
.ath-btn--ghost { background: #fff; color: var(--ath-navy); border-color: var(--ath-border); }
.ath-btn--ghost:hover { border-color: var(--ath-navy); color: var(--ath-navy); }
.ath-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent;
	color: var(--ath-navy); cursor: pointer; text-decoration: none;
}
.ath-iconbtn:hover { background: var(--ath-bg); color: var(--ath-navy); }

/* ===== Top strip ===== */
.ath-strip { background: linear-gradient(90deg, var(--ath-deep), var(--ath-navy)); color: #e7ecf5; font-size: 13.5px; line-height: 1.4; }
.ath-strip__in { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.ath-strip a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ath-strip a:hover { color: var(--ath-amber); }
.ath-strip .ath-countdown { color: var(--ath-amber); font-weight: 800; }
@media (max-width: 480px) { .ath-strip { font-size: 12.5px; } .ath-strip .ath-icon-arrow { display: none; } }

/* ===== Header ===== */
.ath-header { background: #fff; border-bottom: 1px solid var(--ath-border); position: relative; z-index: 1000; }
.ath-sticky .ath-header { position: sticky; top: 0; }
.ath-sticky.admin-bar .ath-header { top: 32px; }
@media (max-width: 782px) { .ath-sticky.admin-bar .ath-header { top: 46px; } }
@media (max-width: 600px) { .ath-sticky.admin-bar .ath-header { top: 0; } }
.ath-header.is-stuck { box-shadow: 0 4px 18px rgba(20, 36, 58, .08); }
html.ath-lock .ath-header { z-index: 1002; }
.ath-header__in { display: flex; align-items: center; gap: 10px; min-height: var(--ath-header-h); max-width: 1340px; }
.ath-brand { flex: none; display: flex; align-items: center; }
.ath-brand .custom-logo-link { display: block; line-height: 0; }
.ath-brand .custom-logo { max-height: 46px; width: auto; height: auto; display: block; }
@media (max-width: 767px) { .ath-brand .custom-logo { max-height: 38px; } }
.ath-brand__text { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.ath-brand__name { font-family: var(--ath-font-ta); font-weight: 800; font-size: 22px; color: var(--ath-navy); line-height: 1.3; }
.ath-brand__tag { font-size: 11px; color: var(--ath-muted); max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ath-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.ath-cart-count {
	position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--ath-amber); color: var(--ath-deep);
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.ath-cart-count.is-empty { display: none; }

/* Primary menu – desktop */
.ath-nav { flex: 1 1 auto; min-width: 0; }
.ath-nav__head { display: none; }
.ath-menu, .ath-menu ul { list-style: none; margin: 0; padding: 0; }
.ath-menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.ath-menu li { position: relative; display: flex; align-items: center; }
.ath-menu a { display: block; padding: 8px 9px; color: var(--ath-navy); font-weight: 600; font-size: 14.5px; line-height: 1.4; text-decoration: none; white-space: nowrap; border-radius: var(--ath-radius-s); }
.ath-menu > li > a:hover, .ath-menu > .current-menu-item > a, .ath-menu > .current-menu-ancestor > a { color: var(--ath-amber-d); }
.ath-subtoggle { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 28px; margin-left: -6px; padding: 0; border: 0; background: none; color: var(--ath-muted); cursor: pointer; border-radius: 6px; }
.ath-subtoggle svg { transition: transform .15s; }
.ath-menu li.is-open > .ath-subtoggle svg { transform: rotate(180deg); }
.ath-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: #fff;
	border: 1px solid var(--ath-border); border-radius: var(--ath-radius); box-shadow: var(--ath-shadow-h);
	visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s; z-index: 20;
	display: block;
}
.ath-menu .sub-menu li { display: flex; }
.ath-menu .sub-menu a { flex: 1; padding: 8px 12px; font-weight: 500; white-space: normal; }
.ath-menu .sub-menu a:hover { background: var(--ath-bg); color: var(--ath-navy); }
.ath-menu .sub-menu .sub-menu { top: -9px; left: 100%; }
.ath-menu .sub-menu .ath-subtoggle { margin-left: 0; transform: rotate(-90deg); }
@media (min-width: 1200px) {
	.ath-menu li:hover > .sub-menu, .ath-menu li:focus-within > .sub-menu, .ath-menu li.is-open > .sub-menu {
		visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s;
	}
	.ath-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
	.ath-menu a { padding: 8px 7px; font-size: 14px; }
}
.ath-menu-toggle { display: none; }
.ath-backdrop { position: fixed; inset: 0; background: rgba(11, 17, 32, .5); z-index: 1001; }

/* Drawer – tablet & phone */
@media (max-width: 1199px) {
	.ath-menu-toggle { display: inline-flex; margin-left: -8px; }
	.ath-nav {
		position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 1002;
		transform: translateX(-102%); transition: transform .22s ease; overflow-y: auto; overscroll-behavior: contain;
		box-shadow: 0 0 40px rgba(11, 17, 32, .2); visibility: hidden;
	}
	.ath-nav.is-open { transform: none; visibility: visible; }
	.admin-bar .ath-nav { top: 46px; }
	.ath-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--ath-border); position: sticky; top: 0; background: #fff; z-index: 2; }
	.ath-nav__title { font-weight: 800; color: var(--ath-navy); }
	.ath-menu { display: block; padding: 8px 0 24px; }
	.ath-menu li { flex-wrap: wrap; border-bottom: 1px solid #eef1f6; }
	.ath-menu a { flex: 1; padding: 13px 18px; font-size: 16px; white-space: normal; border-radius: 0; }
	.ath-subtoggle { width: 48px; height: 48px; margin: 0; color: var(--ath-navy); }
	.ath-menu .sub-menu, .ath-menu .sub-menu .sub-menu {
		position: static; width: 100%; min-width: 0; padding: 0 0 6px 14px; border: 0; border-radius: 0; box-shadow: none;
		visibility: visible; opacity: 1; transform: none; transition: none; display: none; background: #fafbfd;
	}
	.ath-menu li.is-open > .sub-menu { display: block; }
	.ath-menu .sub-menu li { border: 0; }
	.ath-menu .sub-menu a { padding: 10px 14px; font-size: 15px; }
	.ath-menu .sub-menu .ath-subtoggle { transform: none; }
}
@media (max-width: 420px) {
	.ath-brand__tag { display: none; }
	.ath-header__in { gap: 4px; }
	.ath-iconbtn { width: 40px; }
}

/* Search overlay */
.ath-search { position: fixed; inset: 0; z-index: 1003; background: rgba(11, 17, 32, .6); padding: 12vh 16px 16px; }
.ath-search[hidden] { display: none; }
.ath-search__box { max-width: 680px; margin: 0 auto; display: flex; gap: 8px; align-items: center; background: #fff; padding: 12px; border-radius: var(--ath-radius); box-shadow: var(--ath-shadow-h); }
.ath-search__box .ath-searchform { flex: 1; }
.ath-searchform { display: flex; gap: 8px; width: 100%; }
.ath-searchform .search-field, .ath-entry input[type="text"], .ath-entry input[type="email"], .ath-entry input[type="tel"], .ath-entry select, .ath-entry textarea, .ath-comments input[type="text"], .ath-comments input[type="email"], .ath-comments input[type="url"], .ath-comments textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--ath-border); border-radius: var(--ath-radius-s); background: #fff; font-size: 16px;
}
.ath-searchform .search-field { flex: 1; min-width: 0; }
.ath-searchform .search-field:focus, .ath-entry input:focus, .ath-entry textarea:focus, .ath-comments textarea:focus { outline: 0; border-color: var(--ath-amber); box-shadow: var(--ath-focus); }
@media (max-width: 480px) { .ath-searchform .search-submit span { display: none; } }

/* ===== Page title area (no banner image) ===== */
.ath-pagehead { background: linear-gradient(180deg, var(--ath-bg), #fff); border-bottom: 1px solid #edf1f7; padding: 18px 0 20px; }
.ath-pagehead--slim { padding: 12px 0 4px; border: 0; background: none; }
.ath-pagehead__title { margin: 4px 0 0; }
.ath-pagehead__desc { color: var(--ath-muted); max-width: 760px; margin-top: 8px; }
.ath-pagehead__desc p:last-child { margin: 0; }
.ath-breadcrumbs { font-size: 13.5px; color: var(--ath-muted); line-height: 1.5; }
.ath-breadcrumbs a { color: var(--ath-blue); text-decoration: none; }
.ath-breadcrumbs a:hover { text-decoration: underline; }
.ath-breadcrumbs .breadcrumb_last { color: var(--ath-navy); font-weight: 600; }

/* ===== Main / content ===== */
.ath-main { padding-top: 28px; padding-bottom: 48px; }
.ath-main--flush { padding-top: 0; padding-bottom: 0; }
.ath-entry--flush { max-width: none; }
.ath-entry > *:first-child { margin-top: 0; }
.ath-entry img { border-radius: var(--ath-radius-s); }
.ath-entry ul, .ath-entry ol { padding-left: 1.4em; }
.ath-entry li { margin-bottom: .35em; }
.ath-entry blockquote { margin-left: 0; padding: 14px 18px; border-left: 4px solid var(--ath-amber); background: #fffaf0; border-radius: 0 var(--ath-radius-s) var(--ath-radius-s) 0; }
.ath-entry blockquote p:last-child { margin: 0; }
.ath-entry pre { background: var(--ath-deep); color: #e7ecf5; padding: 14px; border-radius: var(--ath-radius-s); overflow-x: auto; }
.ath-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ath-entry th, .ath-entry td { border: 1px solid var(--ath-border); padding: 9px 11px; text-align: left; vertical-align: top; }
.ath-entry thead th, .ath-entry tr:first-child th { background: var(--ath-navy); color: #fff; }
.ath-entry tbody tr:nth-child(even) td { background: #fafbfd; }
.ath-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.1em; border-radius: var(--ath-radius-s); }
.ath-table-wrap table { margin: 0; min-width: 520px; }
.ath-entry .wp-block-image figcaption, .ath-entry .wp-caption-text { font-size: 14px; color: var(--ath-muted); text-align: center; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.ath-entry .alignwide { max-width: 1100px; }
.ath-entry .alignfull { width: 100%; max-width: none; }

/* ===== Single post ===== */
.ath-single__head { padding-top: 22px; }
.ath-single__title, .ath-h1 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.2rem); font-weight: 800; color: var(--ath-navy); line-height: 1.3; margin: 10px 0 12px; }
.ath-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ath-chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #fff4dc; color: #8a4b00; font-size: 12.5px; font-weight: 700; text-decoration: none; line-height: 1.5; }
.ath-chip:hover { background: var(--ath-amber); color: var(--ath-deep); }
.ath-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ath-muted); font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--ath-border); }
.ath-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.ath-single__media { margin: 20px auto 0; }
.ath-single__media img { width: 100%; border-radius: var(--ath-radius); display: block; }
.ath-single .ath-entry { font-size: 17px; line-height: 1.8; margin-top: 22px; }
.ath-single .ath-entry h2 { padding-left: 12px; border-left: 4px solid var(--ath-amber); }
.ath-single .ath-entry h3 { color: #1e3557; }

/* TOC */
.ath-toc { margin: 22px 0 0; border: 1px solid var(--ath-border); border-radius: var(--ath-radius); background: var(--ath-bg); }
.ath-toc[hidden] { display: none; }
.ath-toc__toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; background: none; border: 0; cursor: pointer; font-weight: 800; color: var(--ath-navy); text-align: left; font-size: 15px; }
.ath-toc__toggle span { flex: 1; }
.ath-toc__toggle .ath-icon-chevron { transition: transform .15s; transform: rotate(180deg); }
.ath-toc.is-collapsed .ath-icon-chevron { transform: none; }
.ath-toc__list { margin: 0; padding: 0 16px 14px 36px; font-size: 15px; line-height: 1.55; }
.ath-toc__list ol { padding-left: 18px; margin: 4px 0 0; list-style: lower-alpha; }
.ath-toc__list li { margin: 5px 0; }
.ath-toc__list a { color: var(--ath-text); text-decoration: none; }
.ath-toc__list a:hover { color: var(--ath-blue); text-decoration: underline; }

/* Quiz CTA */
.ath-quiz { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0; padding: 18px 20px; border-radius: var(--ath-radius); color: #fff; background: radial-gradient(circle at 90% 0, rgba(245, 158, 11, .25), transparent 45%), linear-gradient(135deg, var(--ath-navy), var(--ath-deep)); }
.ath-quiz__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; color: var(--ath-amber); flex: none; }
.ath-quiz__txt { flex: 1 1 220px; }
.ath-quiz__title { margin: 0; font-weight: 800; font-size: 18px; color: #fff; }
.ath-quiz__sub { margin: 2px 0 0; color: #c8d3e6; font-size: 14.5px; line-height: 1.5; }

/* Ads (empty by default) */
.ath-ad { margin: 24px 0; text-align: center; min-height: 0; clear: both; }
.ath-ad-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a97ab; margin: 0 0 4px; }

/* Tags, post nav */
.ath-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.ath-tags a { font-size: 13px; padding: 3px 10px; border: 1px solid var(--ath-border); border-radius: 999px; color: var(--ath-muted); text-decoration: none; }
.ath-tags a:hover { border-color: var(--ath-navy); color: var(--ath-navy); }
.ath-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 8px; }
.ath-postnav a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--ath-border); border-radius: var(--ath-radius); text-decoration: none; }
.ath-postnav a:hover { border-color: var(--ath-blue); }
.ath-postnav .nav-next { text-align: right; grid-column: 2; }
.ath-postnav__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ath-muted); }
.ath-postnav__title { display: block; color: var(--ath-navy); font-weight: 700; font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) { .ath-postnav .nav-links { grid-template-columns: 1fr; } .ath-postnav .nav-next { grid-column: 1; } }

/* Jetpack share/likes: keep, tidy spacing */
.ath-entry .sharedaddy, .ath-entry .jp-relatedposts { margin-top: 24px; }
.ath-entry div.sharedaddy h3.sd-title { font-size: 14px; border: 0; padding: 0; }

/* ===== Cards / archives ===== */
.ath-section-title { font-size: 1.35rem; margin: 0 0 16px; }
.ath-grid { display: grid; gap: 16px; }
.ath-grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ath-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ath-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ath-border); border-radius: var(--ath-radius); overflow: hidden; box-shadow: var(--ath-shadow); transition: box-shadow .15s, transform .15s; position: relative; }
.ath-card:hover { box-shadow: var(--ath-shadow-h); transform: translateY(-2px); }
.ath-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ath-bg); }
.ath-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ath-card__body { display: flex; gap: 14px; padding: 16px; flex: 1; }
.ath-card__txt { min-width: 0; flex: 1; }
.ath-card__cat { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ath-amber-d); margin-bottom: 4px; }
.ath-card__title { font-size: 17px; line-height: 1.45; margin: 0 0 6px; font-weight: 700; }
.ath-card__title a { color: var(--ath-navy); text-decoration: none; }
.ath-card__title a::after { content: ""; position: absolute; inset: 0; }
.ath-card__title a:hover { color: var(--ath-blue); }
.ath-card__excerpt { margin: 0; color: var(--ath-muted); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ath-card--compact .ath-card__title { font-size: 15.5px; }
.ath-badge { flex: none; width: 54px; height: 58px; border-radius: 10px; background: var(--ath-navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ath-badge b { font-size: 21px; font-weight: 800; color: var(--ath-amber); }
.ath-badge span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.ath-related { margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--ath-border); }
.ath-empty { text-align: center; padding: 30px 0; }
.ath-empty .ath-searchform { max-width: 560px; margin: 14px auto; }
.ath-404-code { font-size: 84px; font-weight: 800; color: var(--ath-amber); line-height: 1; margin: 0 0 10px; }
.ath-quicklinks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.ath-search-again { max-width: 640px; margin: 0 0 22px; }

/* Pagination (core + WP-PageNavi) */
.ath-pagination { margin: 32px 0 0; }
.ath-pagination .nav-links, .ath-pagination .wp-pagenavi { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.ath-pagination .page-numbers, .ath-pagination .wp-pagenavi a, .ath-pagination .wp-pagenavi span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0;
	border: 1px solid var(--ath-border); border-radius: 10px; background: #fff; color: var(--ath-navy); text-decoration: none; font-weight: 600;
}
.ath-pagination .page-numbers.current, .ath-pagination .wp-pagenavi .current { background: var(--ath-navy); border-color: var(--ath-navy); color: #fff; }
.ath-pagination a.page-numbers:hover, .ath-pagination .wp-pagenavi a:hover { border-color: var(--ath-amber); color: var(--ath-amber-d); }

/* Sidebar layout (optional template) */
.ath-layout-sidebar { display: grid; gap: 32px; }
@media (min-width: 1000px) { .ath-layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }
.ath-sidebar { padding: 28px 0; }
.ath-sidebar .widget { background: var(--ath-bg); border: 1px solid var(--ath-border); border-radius: var(--ath-radius); padding: 16px; margin-bottom: 16px; }
.ath-sidebar .widget-title { font-size: 16px; margin: 0 0 10px; }

/* Comments */
.ath-comments { margin: 28px 0 40px; padding-top: 24px; border-top: 1px solid var(--ath-border); }
.ath-comment-list, .ath-comment-list .children { list-style: none; padding: 0; margin: 0; }
.ath-comment-list .children { padding-left: 22px; border-left: 2px solid var(--ath-border); margin-left: 6px; }
.ath-comment-list .comment-body { padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--ath-border); border-radius: var(--ath-radius); background: #fff; }
.ath-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ath-navy); }
.ath-comment-list .comment-author .says { display: none; }
.ath-comment-list .avatar { border-radius: 50%; }
.ath-comment-list .comment-metadata { font-size: 12.5px; margin: 2px 0 8px; }
.ath-comment-list .comment-metadata a { color: var(--ath-muted); text-decoration: none; }
.ath-comment-list .reply a { font-size: 13px; font-weight: 700; text-decoration: none; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form p { margin-bottom: 14px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* ===== Footer ===== */
.ath-footer { background: var(--ath-deep); color: #b9c4d6; font-size: 14.5px; margin-top: 0; }
.ath-footer a { color: #e7ecf5; text-decoration: none; }
.ath-footer a:hover { color: var(--ath-amber); }
.ath-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 44px; padding-bottom: 32px; }
.ath-footer .widget-title, .ath-footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.ath-footer__brand { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.ath-footer__about { line-height: 1.65; margin: 0 0 14px; }
.ath-footer__links, .ath-footer__contact, .ath-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.ath-footer__links li, .ath-footer .widget li { margin: 0 0 8px; }
.ath-footer__contact li { margin: 0 0 8px; }
.ath-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.ath-footer__contact .ath-icon-whatsapp { color: #25d366; }
.ath-footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.ath-footer__barin { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.ath-footer__copy { margin: 0; font-size: 13.5px; }
.ath-social { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.ath-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.ath-social a:hover { background: var(--ath-amber); color: var(--ath-deep); }
.ath-footer__barlinks { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; font-size: 13.5px; }
.ath-footer__barlinks a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ath-footer__barlinks a:hover { color: var(--ath-amber); }
@media (max-width: 900px) { .ath-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ath-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; } .ath-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ===== Mobile bottom bar ===== */
.ath-bottomnav { display: none; }
@media (max-width: 768px) {
	.ath-bnav { padding-bottom: calc(var(--ath-bnav-h) + env(safe-area-inset-bottom, 0px)); }
	.ath-bottomnav {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		background: #fff; border-top: 1px solid var(--ath-border); box-shadow: 0 -4px 16px rgba(20, 36, 58, .07);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.ath-bottomnav ul { list-style: none; margin: 0; padding: 0; display: flex; height: var(--ath-bnav-h); }
	.ath-bottomnav li { flex: 1 1 0; min-width: 0; }
	.ath-bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--ath-muted); text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; padding: 0 2px; }
	.ath-bottomnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ath-bottomnav a.is-current, .ath-bottomnav a:hover { color: var(--ath-navy); }
	.ath-bottomnav a.is-current svg { color: var(--ath-amber-d); }
	/* Keep floating plugin UI above the bar instead of under it (not while a test runs: the bar is hidden then). */
	body.ath-bnav:not(.aa-testing) .joinchat { --bottom: calc(var(--ath-bnav-h) + 12px + env(safe-area-inset-bottom, 0px)); }
	body.ath-bnav:not(.aa-testing) #aa-pwa { bottom: calc(var(--ath-bnav-h) + 10px + env(safe-area-inset-bottom, 0px)) !important; }
	body.ath-bnav:not(.aa-testing) .xoo-wsc-basket { bottom: calc(var(--ath-bnav-h) + 12px) !important; }
	body.ath-bnav:not(.aa-testing) #onesignal-bell-container.onesignal-reset.onesignal-bell-container-bottom-right,
	body.ath-bnav:not(.aa-testing) #onesignal-bell-container.onesignal-reset.onesignal-bell-container-bottom-left { bottom: calc(var(--ath-bnav-h) + 8px) !important; }
	/* While the PWA install banner is showing, lift the WhatsApp bubble above it too. */
	body.ath-bnav:not(.aa-testing):has(#aa-pwa[style*="flex"]) .joinchat { --bottom: calc(var(--ath-bnav-h) + 86px + env(safe-area-inset-bottom, 0px)); }
}
}

/* ===== Test mode (aax_ plugin adds body.aa-testing): hide theme chrome ===== */
body.aa-testing .ath-strip,
body.aa-testing .ath-header,
body.aa-testing .ath-bottomnav,
body.aa-testing .ath-backdrop,
body.aa-testing .ath-ad { display: none !important; }
body.aa-testing.ath-bnav { padding-bottom: 0; }
html:has(body.aa-testing) { scroll-padding-top: 0; }

/* Canvas template */
.ath-canvas { padding-bottom: 0 !important; }
.ath-canvas__main:focus { outline: 0; }

/* ===== WooCommerce (styles on top of WooCommerce's own CSS, no template overrides) ===== */
.ath-woo { padding-top: 20px; }
.woocommerce .ath-woo .woocommerce-products-header, .woocommerce-products-header__title { display: none; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin: 0 0 24px; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	float: none !important; width: auto !important; margin: 0 !important; padding: 12px 12px 16px; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--ath-border); border-radius: var(--ath-radius); box-shadow: var(--ath-shadow); transition: box-shadow .15s;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--ath-shadow-h); }
.woocommerce ul.products li.product a img { border-radius: var(--ath-radius-s); margin-bottom: 10px; aspect-ratio: 1 / 1; object-fit: contain; background: var(--ath-bg); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; line-height: 1.45; color: var(--ath-navy); font-weight: 700; padding: 0 !important; margin: 0 0 6px; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { text-decoration: none; flex: 1; }
.woocommerce ul.products li.product .price { color: var(--ath-text) !important; font-size: 16px !important; font-weight: 800; }
.woocommerce ul.products li.product .button { margin-top: 10px; width: 100%; text-align: center; }
.woocommerce .price del { color: #8a97ab; font-weight: 400; font-size: .85em; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce span.onsale { background: var(--ath-amber) !important; color: var(--ath-deep) !important; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 6px 10px !important; font-size: 12px; font-weight: 800; top: 10px !important; left: 10px !important; right: auto !important; margin: 0 !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page .wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--ath-amber) !important; color: var(--ath-deep) !important; border-radius: var(--ath-radius-s) !important; font-weight: 700 !important; padding: 11px 18px; border: 0; line-height: 1.3;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page .wc-block-components-button:not(.is-link):hover { background: var(--ath-amber-d) !important; }
.woocommerce a.added_to_cart { display: block; text-align: center; font-size: 13px; margin-top: 6px; }
.woocommerce .woocommerce-ordering select, .woocommerce .quantity .qty { min-height: 42px; border: 1px solid var(--ath-border); border-radius: var(--ath-radius-s); padding: 6px 10px; }
.woocommerce .woocommerce-result-count { color: var(--ath-muted); font-size: 14px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; grid-column: auto; }
.woocommerce div.product div.images img { border-radius: var(--ath-radius); }
.woocommerce div.product .product_title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ath-navy) !important; font-size: 1.6rem !important; font-weight: 800; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.woocommerce div.product form.cart .button { padding: 13px 26px; font-size: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 1px solid var(--ath-border) !important; border-radius: 999px !important; background: #fff !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 8px 16px !important; color: var(--ath-navy) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ath-navy) !important; border-color: var(--ath-navy) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce div.product .woocommerce-tabs .panel { line-height: 1.8; }
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 { font-size: 1.35rem; }
@media (max-width: 768px) {
	.woocommerce div.product { grid-template-columns: 1fr; gap: 18px; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.woocommerce ul.products li.product { padding: 8px 8px 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
}
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { border-radius: var(--ath-radius-s); border-top-width: 3px; background: var(--ath-bg); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ath-blue); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ath-blue); }
.woocommerce table.shop_table { border-radius: var(--ath-radius); border-color: var(--ath-border); overflow: hidden; }
.woocommerce table.shop_table th { background: var(--ath-bg); color: var(--ath-navy); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-page .select2-container .select2-selection { min-height: 44px; border: 1px solid var(--ath-border); border-radius: var(--ath-radius-s); padding: 8px 12px; background: #fff; }
.woocommerce form .form-row label { font-weight: 600; font-size: 14px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border: 1px solid var(--ath-border) !important; border-radius: var(--ath-radius) !important; padding: 20px !important; }
.woocommerce-account .woocommerce { display: grid; gap: 24px; }
.woocommerce-account:not(.logged-in) .ath-entry > .woocommerce { max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px minmax(0, 1fr); } }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--ath-border); border-radius: var(--ath-radius); background: var(--ath-bg); }
.woocommerce-MyAccount-navigation a { display: block; padding: 9px 12px; border-radius: var(--ath-radius-s); color: var(--ath-navy); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: #fff; box-shadow: var(--ath-shadow); }
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.woocommerce-account .u-columns.col2-set .col-1, .woocommerce-account .u-columns.col2-set .col-2 { width: auto; float: none; }
.woocommerce-account .u-columns.col2-set::before, .woocommerce-account .u-columns.col2-set::after { display: none; }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar { box-sizing: border-box; }
.wc-block-cart .wc-block-components-sidebar, .wc-block-checkout__sidebar { background: var(--ath-bg); border-radius: var(--ath-radius); padding: 16px !important; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--ath-amber); }

/* ===== Elementor compatibility ===== */
.elementor-page .ath-main { padding-top: 0; padding-bottom: 0; }
.elementor-template-full-width .ath-content-area > .elementor, .elementor-template-full-width .ath-content-area > [data-elementor-type] { width: 100%; }

/* ===== Print ===== */
@media print {
	.ath-strip, .ath-header, .ath-bottomnav, .ath-footer, .ath-ad, .ath-quiz, .ath-related, .ath-toc, .ath-comments, .sharedaddy, .joinchat, #aa-pwa { display: none !important; }
	.ath-bnav { padding: 0; }
	a { color: inherit; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Desktop: logo + actions on the first row, the primary menu on its own row
   underneath, wrapping onto a second line when the menu is long. */
@media (min-width: 1200px) {
	.ath-header__in { flex-wrap: wrap; row-gap: 0; }
	.ath-brand { order: 1; padding: 8px 0; }
	.ath-actions { order: 2; }
	.ath-nav { order: 3; flex: 1 0 100%; border-top: 1px solid var(--ath-border); }
	.ath-menu { flex-wrap: wrap; justify-content: flex-start; padding: 4px 0; margin-left: -9px; }
	.ath-menu > li > .sub-menu { left: 0; right: auto; }
	.ath-menu > li:nth-last-child(-n+2) > .sub-menu { left: 0; right: auto; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
	.ath-menu a { padding: 8px 9px; font-size: 14.5px; }
}

/* Ad Inserter / AdSense blocks dropped into a post grid take a full row
   instead of one card slot. */
.ath-grid > .code-block, .ath-grid > .google-auto-placed, .ath-grid > ins.adsbygoogle { grid-column: 1 / -1; }

/* Fixed-size ad units (728x90 etc.) and plugin sliders must never widen the
   page on phones. overflow-x: clip keeps the sticky header working. */
html, body { overflow-x: clip; }
/* A site snippet adds "body { overflow: auto !important }", which makes body its own scroller and lets pages slide sideways. */
html body { overflow-x: clip !important; overflow-y: visible !important; }
.code-block, .ath-content-area ins.adsbygoogle { max-width: 100%; overflow: hidden; }
.ath-content-area [id^="aswift_"][id$="_host"], .ath-content-area iframe[id^="aswift_"] { max-width: 100% !important; }

/* ---------- Phone buy bar (product pages) ---------- */
.ath-buybar { display: none; }
@media (max-width: 768px) {
	.ath-buybar:not([hidden]) {
		display: flex; align-items: center; gap: 10px; justify-content: space-between;
		position: fixed; left: 0; right: 0; bottom: calc(var(--ath-bnav-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 990;
		padding: 8px 12px; background: #fff; border-top: 1px solid var(--ath-border); box-shadow: 0 -6px 18px rgba(11, 17, 32, .08);
	}
	.ath-buybar__price { font-weight: 800; color: var(--ath-navy); font-size: 17px; line-height: 1.2; min-width: 0; }
	.ath-buybar__price del { font-weight: 500; color: var(--ath-muted); font-size: 13px; }
	.ath-buybar__price ins { text-decoration: none; }
	.ath-buybar__actions { display: flex; gap: 8px; flex: 0 0 auto; }
	.ath-buybar__wa, .ath-buybar__cart { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 0; cursor: pointer; }
	.ath-buybar__wa { background: #25d366; color: #fff; }
	.ath-buybar__cart { background: var(--ath-amber); color: var(--ath-deep); }
	body.ath-has-buybar { padding-bottom: 64px; }
}

/* ---------- Instant search suggestions ---------- */
.ath-search__panel { max-width: 680px; margin: 8px auto 0; background: #fff; border-radius: var(--ath-radius); box-shadow: var(--ath-shadow-h); overflow: hidden; }
.ath-search__panel[hidden] { display: none; }
.ath-suggest { list-style: none; margin: 0; padding: 6px 0; max-height: 60vh; overflow-y: auto; }
.ath-suggest a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: var(--ath-text); text-decoration: none; line-height: 1.35; }
.ath-suggest a:hover, .ath-suggest a:focus { background: var(--ath-bg); outline: 0; }
.ath-suggest__tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 7px; border-radius: 6px; background: var(--ath-bg); color: var(--ath-navy); }
.ath-suggest__tag--book { background: #fff3d6; color: #8a5a00; }
.ath-suggest__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ath-suggest__price { margin-left: auto; flex: 0 0 auto; font-weight: 700; color: var(--ath-navy); font-size: 14px; }
.ath-suggest__all, .ath-suggest__empty { display: block; padding: 10px 14px; border-top: 1px solid var(--ath-border); font-weight: 700; font-size: 14px; }
.ath-suggest__empty { color: var(--ath-muted); font-weight: 500; border-top: 0; }
@media (max-width: 768px) {
	body.ath-has-buybar .joinchat { --bottom: calc(var(--ath-bnav-h, 0px) + 76px + env(safe-area-inset-bottom, 0px)) !important; }
	body.ath-has-buybar.ath-bnav:not(.aa-testing) .xoo-wsc-basket, body.ath-has-buybar .xoo-wsc-basket { bottom: calc(var(--ath-bnav-h, 0px) + 76px) !important; }
}

/* The side-cart plugin's floating basket duplicates the header cart and the
   phone bottom bar, and covers content. The side cart still opens on
   "Add to cart" and from the header cart icon. */
html body .xoo-wsc-basket[class] { display: none !important; }
/* Belt and braces for the Jetpack share/like blocks on pages. */
body.page .ath-content-area .sharedaddy { display: none !important; }

/* WhatsApp: end-of-article line on posts */
.ath-wa-doubt { margin: 22px 0 0; padding: 12px 14px; border: 1px solid #c8ecd4; background: #f1fbf4; border-radius: 10px; font-size: 15px; }
.ath-wa-doubt a { color: #128c4b; font-weight: 700; text-decoration: none; }
@media (max-width: 768px) {
	/* Book pages: the buy bar's green "Order" button replaces the bubble. */
	body.ath-has-buybar .joinchat { display: none !important; }
	/* Icon only — the "Whatsapp us" label covers text on small screens. */
	.joinchat__tooltip { display: none !important; }
}

/* Shop: Baloo Thambi 2 for Tamil headings, categories and book titles; Anek Tamil for all other shop text. */
body.woocommerce { --ath-font-shop: "Baloo Thambi 2", "Noto Sans Tamil", "Inter", system-ui, sans-serif; --ath-font-shop-text: "Anek Tamil", "Noto Sans Tamil", "Inter", system-ui, sans-serif; }
body.woocommerce .ath-main, body.woocommerce .ath-main :is(p, li, span, a, td, th, label, input, select, textarea, button, .price, .woocommerce-product-details__short-description, .woocommerce-Tabs-panel), body.woocommerce .ath-main :lang(ta), body.woocommerce .ath-main .ta { font-family: var(--ath-font-shop-text); }
body.woocommerce .ath-main :is(p, li, .woocommerce-product-details__short-description, .woocommerce-Tabs-panel) { line-height: 1.7; }
body.woocommerce :is(h1, h2, h3, .page-title, .woocommerce-products-header__title),
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce div.product .product_title,
body.woocommerce :is(.ash-badge, .ash-cat-ta, .ash-go, .ash-medbadge, .ashf-chip) {
	font-family: var(--ath-font-shop) !important;
	letter-spacing: 0;
}
body.woocommerce :is(h1, h2, h3, .page-title, .product_title) { font-weight: 800; line-height: 1.3; }
body.woocommerce ul.products li.product .woocommerce-loop-product__title { font-weight: 700; font-size: 16px !important; line-height: 1.35; }
body.woocommerce :is(.ash-cat-ta, .ash-badge, .ash-medbadge, .ashf-chip) { font-weight: 700; }
@media (max-width: 600px) {
	body.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
}

/* ---------- Shop home (main /shop/ page only, template-parts/shop-home.php) ---------- */
.ath-shophome { --sh-navy: #0b2447; --sh-amber: #f59e0b; --sh-amber-d: #b45309; --sh-line: #e3e8f0; --sh-mute: #5b6b82; padding-top: 18px; }
.ath-shophome :is(h1, h2, .sh-exam b, .sh-t, .sh-why b, .sh-help b) { font-family: var(--ath-font-shop); }
.ath-shophome button { cursor: pointer; font: inherit; }
.sh-hero { background: linear-gradient(135deg, #0b2447 0%, #19376d 60%, #27509b 100%); color: #fff; border-radius: 18px; padding: 22px 18px; display: grid; gap: 16px; }
.sh-badge { display: inline-block; background: #fcd34d; color: #1c2431; font-weight: 700; font-size: 12.5px; border-radius: 20px; padding: 3px 12px; margin-bottom: 10px; }
.sh-hero h1 { color: #fff; font-size: 26px; line-height: 1.25; margin: 0 0 6px; font-weight: 800; }
.sh-hero h1 em { font-style: normal; color: #fcd34d; }
.sh-hero p { margin: 0; color: #d6e0f5; font-size: 15px; line-height: 1.6; }
.sh-search { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.sh-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font-size: 15px; outline: 0; background: #fff; color: #17273d; border-radius: 0; box-shadow: none; }
.sh-search button { border: 0; background: var(--sh-amber); color: #111; font-weight: 700; padding: 0 18px; border-radius: 0; }
.sh-trust { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sh-trust span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; padding: 3px 11px; font-size: 12.5px; color: #fff; }
.sh-trust b { color: #fcd34d; }
.sh-sec { padding: 22px 0 4px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.sh-head h2 { margin: 0; font-size: 20px; color: var(--sh-navy); }
.sh-head p { margin: 0; color: var(--sh-mute); font-size: 13px; }
.sh-head > a { color: var(--sh-amber-d); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.sh-exams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.sh-exam { background: #fff; border: 1.5px solid var(--sh-line); border-radius: 14px; padding: 10px 6px 9px; text-align: center; color: inherit; }
.sh-exam:hover { border-color: #c7d2e3; }
.sh-exam.on { border-color: var(--sh-amber); background: #fffbeb; box-shadow: 0 0 0 3px rgba(253, 230, 138, .45); }
.sh-exam .e { width: 38px; height: 38px; border-radius: 12px; margin: 0 auto 5px; display: grid; place-items: center; font-size: 19px; background: #eef3fb; }
.sh-exam b { display: block; font-weight: 700; font-size: 14.5px; color: var(--sh-navy); line-height: 1.25; }
.sh-exam > span:last-child { display: block; font-size: 12px; color: var(--sh-mute); }
.sh-seg { display: inline-flex; background: #e8edf6; border-radius: 12px; padding: 3px; gap: 2px; }
.sh-seg button { border: 0; background: transparent; border-radius: 9px; padding: 6px 14px; font-weight: 600; color: var(--sh-mute); font-size: 14px; }
.sh-seg button.on { background: #fff; color: var(--sh-navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sh-row { display: flex; gap: 11px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-row::-webkit-scrollbar { display: none; }
.sh-set { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; background: #fff; border: 1px solid var(--sh-line); border-radius: 16px; overflow: hidden; display: flex; text-decoration: none; color: inherit; }
.sh-set img { width: 112px; height: 140px; object-fit: cover; background: #eef3fb; flex: none; }
.sh-setb { padding: 10px 11px; display: flex; flex-direction: column; min-width: 0; }
.sh-set .sh-t { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--sh-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-save { align-self: flex-start; background: #dcfce7; color: #166534; font-weight: 700; font-size: 12px; border-radius: 6px; padding: 1px 7px; margin: 6px 0 auto; }
.sh-save--none { background: none; padding: 0; }
.sh-pr { font-weight: 800; font-size: 17px; color: #17273d; }
.sh-pr s { font-weight: 500; font-size: 12.5px; color: #94a3b8; margin-right: 5px; }
.sh-chips { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chip { flex: none; border: 1.5px solid var(--sh-line); background: #fff; border-radius: 20px; padding: 5px 13px; font-weight: 600; font-size: 13.5px; color: var(--sh-navy); }
.sh-chip.on { background: var(--sh-navy); border-color: var(--sh-navy); color: #fff; }
.sh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.sh-card { background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; margin: 0; }
.sh-im { display: block; aspect-ratio: 1 / 1; background: #eef3fb; }
.sh-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-b { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sh-card .sh-t { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--sh-navy); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.sh-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 7px; background: #eef3fb; color: #27509b; }
.sh-tag.ta { background: #fff3d6; color: #92400e; }
.sh-off { position: absolute; top: 8px; left: 8px; z-index: 1; background: #dc2626; color: #fff; font-weight: 700; font-size: 11px; border-radius: 6px; padding: 2px 6px; }
.sh-buy { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; gap: 6px; }
.sh-buy .sh-pr { font-size: 15.5px; }
.sh-buy .sh-pr s { display: block; font-size: 11.5px; margin: 0; }
.sh-add { background: var(--sh-amber); color: #111 !important; font-weight: 700; border-radius: 10px; padding: 7px 12px; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.sh-add.loading { opacity: .6; }
.sh-add.added { background: #16a34a; color: #fff !important; }
.sh-card a.added_to_cart { display: block; text-align: center; font-size: 12.5px; font-weight: 700; color: #16a34a; padding: 0 10px 9px; }
.sh-more { display: block; width: 100%; margin: 12px 0 0; border: 1.5px solid var(--sh-navy); background: #fff; color: var(--sh-navy); font-weight: 700; border-radius: 12px; padding: 11px; }
.sh-more[hidden] { display: none; }
.sh-none { color: var(--sh-mute); padding: 6px 0; margin: 0; grid-column: 1 / -1; }
.sh-why { display: grid; gap: 9px; }
.sh-why > div { background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; padding: 11px 13px; display: flex; gap: 11px; align-items: flex-start; }
.sh-why i { font-style: normal; font-size: 22px; }
.sh-why p { margin: 0; }
.sh-why b { color: var(--sh-navy); display: block; font-size: 15px; }
.sh-why span { font-size: 13px; color: var(--sh-mute); }
.sh-help { margin: 16px 0 6px; background: linear-gradient(135deg, #ecfdf5, #fff); border: 1.5px solid #86efac; border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sh-help p { margin: 0; }
.sh-help b { font-size: 17px; color: #14532d; display: block; }
.sh-help span { font-size: 13.5px; color: #3f6b52; }
.sh-help a { background: #16a34a; color: #fff !important; font-weight: 700; border-radius: 11px; padding: 10px 16px; text-decoration: none; }
.sh-pagetext { margin-top: 24px; }
.sh-pick { scroll-margin-top: calc(var(--ath-header-h) + 12px); }
.sh-step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sh-navy); color: #fff; font-size: 11.5px; font-weight: 700; margin-right: 4px; vertical-align: 1px; }
.sh-medrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; padding: 10px 12px; }
.sh-medrow p { margin: 0; font-weight: 700; color: var(--sh-navy); font-size: 14.5px; }
.sh-medrow p span { font-weight: 500; color: var(--sh-mute); font-size: 13px; }
.sh-medrow .sh-seg button { padding: 7px 14px; }
.sh-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 12px; padding: 8px 12px; font-size: 14px; color: #78350f; }
.sh-picked[hidden] { display: none; }
.sh-picked b { color: var(--sh-navy); }
.sh-picked button { border: 0; background: #fff; border: 1px solid #fcd34d; border-radius: 9px; padding: 4px 10px; font-weight: 700; font-size: 13px; color: #78350f; white-space: nowrap; }
/* Out of stock, Start here, sticky choice bar, add-to-cart note */
.sh-card--oos .sh-im img { opacity: .55; filter: grayscale(.6); }
.sh-oos { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; background: rgba(23, 39, 61, .88); color: #fff; font-weight: 700; font-size: 11px; border-radius: 6px; padding: 3px 7px; text-align: center; }
.sh-add--view { background: #e8edf6; }
.sh-startcard { display: flex; gap: 14px; background: linear-gradient(135deg, #fffbeb, #fff); border: 2px solid var(--sh-amber); border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(245, 158, 11, .15); }
.sh-startim { flex: none; width: 120px; }
.sh-startim img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; display: block; background: #eef3fb; }
.sh-startb { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.sh-rec { align-self: flex-start; background: var(--sh-navy); color: #fcd34d; font-weight: 700; font-size: 12px; border-radius: 20px; padding: 2px 10px; }
.sh-startb .sh-t { font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--sh-navy); text-decoration: none; }
.sh-startb .sh-save { margin: 0; }
.sh-startb .sh-buy { margin-top: auto; align-items: center; }
.sh-add--big { padding: 10px 18px; font-size: 15px; }
.sh-stick { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-bottom: 1px solid var(--sh-line); box-shadow: 0 4px 12px rgba(20, 36, 58, .1); padding: 8px max(14px, calc((100vw - 1200px) / 2 + 14px)); font-size: 13.5px; color: var(--sh-mute); }
.sh-stick[hidden] { display: none; }
.sh-stick b { color: var(--sh-navy); }
.sh-stick button { flex: none; border: 1.5px solid var(--sh-navy); background: #fff; color: var(--sh-navy); font-weight: 700; border-radius: 10px; padding: 5px 11px; font-size: 13px; }
.sh-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 14px; background: #14532d; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 24px); }
.sh-toast[hidden] { display: none; }
.sh-toast a { color: #fcd34d !important; font-weight: 800; white-space: nowrap; text-decoration: none; }
/* WhatsApp bubble: the shop home has its own WhatsApp box, so the floating bubble stays out of the way on phones. */
@media (max-width: 899px) {
	body.ath-shop-home .joinchat { display: none !important; }
}
@media (min-width: 900px) {
	.sh-toast { bottom: 24px; }
	.sh-startim, .sh-startim img { width: 150px; }
	.sh-startim img { height: 190px; }
	.sh-startb .sh-t { font-size: 20px; }
}
/* Promo bar on shop listing pages: no endless scrolling text; swipe to read. */
body.woocommerce .atk { overflow-x: auto; scrollbar-width: none; }
body.woocommerce .atk::-webkit-scrollbar { display: none; }
body.woocommerce .atk-track { animation: none !important; transform: none !important; padding: 0 12px; }
body.woocommerce .atk-track > .atk-item ~ .atk-item { display: none; }
@media (max-width: 520px) {
	.sh-medrow { flex-direction: column; align-items: stretch; }
	.sh-medrow .sh-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
	.sh-medrow .sh-seg button { padding: 8px 4px; white-space: nowrap; font-size: 13.5px; }
	.sh-picked { font-size: 13px; padding: 7px 10px; }
	.sh-stick { font-size: 12.5px; padding: 7px 12px; }
	.sh-stick > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sh-stick button { padding: 4px 9px; font-size: 12.5px; }
	.sh-picked button { padding: 4px 8px; font-size: 12.5px; }
}
@media (min-width: 900px) {
	.sh-hero { grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 34px 32px; }
	.sh-hero h1 { font-size: 36px; }
	.sh-hero p { font-size: 16.5px; }
	.sh-head h2 { font-size: 24px; }
	.sh-exams { grid-template-columns: repeat(5, 1fr); }
	.sh-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
	.sh-set { flex-basis: 340px; }
	.sh-why { grid-template-columns: repeat(3, 1fr); }
	.sh-card .sh-t { font-size: 15px; min-height: 40px; }
}
