/*
 * Lala Essential Oils — mobile & tablet layer
 * ------------------------------------------------------------------
 * The site's desktop pages are fixed-width (1002px) HTML tables. Below
 * 1020px this file:
 *   1. swaps the legacy table header for a real mobile header + drawer
 *      (include/mobile-header.php),
 *   2. stacks layout tables into one column, keeps data tables as
 *      sideways-scrolling tables,
 *   3. raises text to readable sizes (15–16px) and touch targets to 44px,
 *   4. adds visible focus states and respects reduced motion.
 * Desktop (>= 1020px) is untouched except that the mobile header is hidden.
 * Loaded last in include/header.php and include/header-home.php.
 */

:root {
	--lala-green: #21b18e;          /* brand (menu) green — accents only   */
	--lala-green-dark: #0f7a62;     /* white text on this passes 4.5:1      */
	--lala-green-ink: #0b5e4b;
	--lala-orange: #e4741c;         /* "FIND IT" orange — prices/highlights */
	--lala-text: #1f2933;
	--lala-muted: #52606d;
	--lala-border: #dfe5e3;
	--lala-bg-soft: #f4f8f7;
	--lala-radius: 10px;
	--lala-tap: 44px;
	--lala-header-h: 60px;
}

/* ---------- always: hide mobile-only UI on desktop ---------- */
.lala-mh, .lala-drawer, .lala-drawer-backdrop { display: none; }

.lala-skip {
	position: absolute; left: 8px; top: -60px; z-index: 10001;
	background: var(--lala-green-dark); color: #fff; padding: 10px 14px;
	border-radius: 6px; font: 600 15px/1.2 Arial, sans-serif; text-decoration: none;
}
.lala-skip:focus { top: 8px; color: #fff; }
.lala-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--lala-green-dark);
	outline-offset: 2px;
}

/* ---------- category page A–Z jump index (all widths) ---------- */
.lala-az {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	margin: 4px 20px 14px; font-family: Arial, Helvetica, sans-serif;
}
.lala-az__count { margin-right: 6px; font-size: 13px; color: var(--lala-muted); }
.lala-az a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px;
	border: 1px solid var(--lala-border); background: #fff;
	font-size: 13px; font-weight: 700; color: var(--lala-green-ink); text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}
.lala-az a:hover { background: var(--lala-bg-soft); border-color: var(--lala-green); }
.lala-prod-letter { scroll-margin-top: 16px; }

/* ======================================================================
   Home page intro (include/mobile-home.php) — all screen sizes
   ====================================================================== */
/* ================= home page ================= */
.lala-home { display: block; margin: 0; font-family: Arial, Helvetica, sans-serif; }
.lala-home-legacy-top:not(#lala-boost), .marquee:not(#lala-boost), .lala-home-catlinks:not(#lala-boost) { display: none !important; }

/* hero */
.lala-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background: #0b3d31; }
.lala-hero__img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important;
	max-width: none !important; object-fit: cover; object-position: right center; /* the photo is on the right; baked-in slogan text is on the left */
}
.lala-hero::after {                       /* keeps white text readable on the photo */
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(6, 40, 32, .15) 0%, rgba(6, 40, 32, .55) 45%, rgba(6, 40, 32, .92) 100%);
}
.lala-hero__body { position: relative; z-index: 1; padding: 28px 16px 22px; color: #fff; max-width: 640px; }
.lala-hero__eyebrow {
	display: inline-block; margin: 0 0 10px !important; padding: 4px 10px; border-radius: 999px;
	background: rgba(255, 255, 255, .16); font-size: 13px !important; font-weight: 700; letter-spacing: .02em; color: #fff;
}
.lala-hero__title { margin: 0 0 8px !important; font: 800 28px/1.15 Arial, Helvetica, sans-serif; color: #fff; text-align: left !important; }
.lala-hero__text { margin: 0 0 18px !important; font-size: 15px !important; line-height: 1.5 !important; color: rgba(255, 255, 255, .92); }
.lala-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.lala-cta {
	display: inline-flex; align-items: center; justify-content: center; flex: 1 1 140px;
	min-height: 48px; padding: 0 18px; border-radius: var(--lala-radius);
	font: 700 16px/1 Arial, sans-serif; text-decoration: none !important;
	transition: transform .15s ease, background-color .15s ease;
}
.lala-cta:active { transform: scale(.98); }
.lala-cta--primary { background: var(--lala-orange); color: #fff !important; }
.lala-cta--ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border: 2px solid rgba(255, 255, 255, .85); }

/* wider screens (tablets): text on the left, photo on the right, so the
   slogan baked into the left of the photo never shows */
@media (min-width: 560px) {
	.lala-hero { min-height: 340px; align-items: center; }
	.lala-hero__img { left: auto !important; right: 0; width: 58% !important; }
	.lala-hero::after {
		background: linear-gradient(90deg, #0b3d31 0%, #0b3d31 42%, rgba(11, 61, 49, .55) 56%, rgba(11, 61, 49, 0) 78%);
	}
	.lala-hero__body { max-width: 52%; padding: 32px 24px; }
	.lala-hero__title { font-size: 34px; }
	.lala-home .lala-cats { grid-template-columns: repeat(3, 1fr); }
}

/* trust strip */
.lala-trust {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
	margin: 0 !important; padding: 0 !important; list-style: none;
	background: var(--lala-bg-soft); border-bottom: 1px solid var(--lala-border);
}
.lala-trust li { margin: 0; padding: 14px 8px; text-align: center !important; border-right: 1px solid var(--lala-border); }
.lala-trust li:last-child { border-right: 0; }
.lala-trust strong { display: block; font-size: 16px; color: var(--lala-green-ink); }
.lala-trust span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--lala-muted); }

/* sections */
.lala-section { padding: 22px 16px 6px; scroll-margin-top: calc(var(--lala-header-h) + 8px); }
.lala-section__title { margin: 0 0 12px !important; padding: 0 !important; font: 800 20px/1.25 Arial, Helvetica, sans-serif !important; color: var(--lala-text); text-align: left !important; }

/* category tiles */
.lala-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.lala-cats li { margin: 0 !important; }
.lala-cats a {
	display: flex; align-items: center; gap: 10px; height: 100%; min-height: 64px;
	padding: 12px; border: 1px solid var(--lala-border); border-radius: 12px; background: #fff;
	text-decoration: none !important; color: var(--lala-text) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: border-color .15s ease, background-color .15s ease;
}
.lala-cats a:active { background: var(--lala-bg-soft); border-color: var(--lala-green); }
.lala-cats__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px;
	border-radius: 10px; background: #e6f5f0; color: var(--lala-green-dark);
}
.lala-cats__name { font-size: 14px; font-weight: 700; line-height: 1.25; }

/* industry chips */
.lala-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.lala-chips li { margin: 0 !important; }
.lala-chips a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--lala-border); background: #fff; font-size: 14px; font-weight: 600;
	color: var(--lala-green-ink) !important; text-decoration: none !important;
}

/* WhatsApp bulk-quote band */
.lala-wa-band {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 20px 16px 8px; padding: 16px; border-radius: 12px;
	background: #e8f6ee; border: 1px solid #b9e3c9; color: #14532d !important;
	font-size: 15px; line-height: 1.35; text-decoration: none !important;
}
.lala-wa-band strong { display: block; font-size: 16px; }


/* ======================================================================
   Desktop (>= 1020px)
   ====================================================================== */
@media screen and (min-width: 1020px) {
	/* stylesheet.css fixes <body> at 1002px, which leaves wide empty grey
	   gutters on today's screens. Use the full width up to 1400px. */
	body { width: auto !important; max-width: none; margin: 0 !important; }
	table[width="1002"], table[WIDTH="1002"] { width: 100% !important; }
	/* header + hero run full width; page content sits in a centred column
	   so text lines and product grids don't stretch across very wide screens */
	body > table, body > .container-fluid, body > .lala-cat, body > div.lala-cat {
		max-width: 1440px; margin-left: auto !important; margin-right: auto !important;
		padding-left: 24px; padding-right: 24px; box-sizing: border-box;
	}

	/* home intro on desktop */
	.lala-home { margin: 0 0 8px; }
	/* photo: a 520px block at the right of a centred 1280px area; its left edge
	   fades into the green, so the slogan printed in the photo never shows */
	.lala-hero { min-height: 400px; background: linear-gradient(90deg, #0b3d31 0%, #0f5a47 100%); }
	.lala-hero::after { display: none; }
	.lala-hero__img {
		left: auto !important; right: max(0px, calc((100% - 1440px) / 2 + 24px)); width: 500px !important; /* 500px: crop starts right of the printed slogan */
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
	}
	.lala-hero__body { max-width: none; width: 100%; padding: 48px max(24px, calc((100% - 1440px) / 2 + 24px)); }
	.lala-hero__body > * { max-width: 600px; }
	.lala-section, .lala-trust { padding-left: max(24px, calc((100% - 1440px) / 2 + 24px)) !important; padding-right: max(24px, calc((100% - 1440px) / 2 + 24px)) !important; }
	.lala-wa-band { margin-left: max(24px, calc((100% - 1440px) / 2 + 24px)) !important; margin-right: max(24px, calc((100% - 1440px) / 2 + 24px)) !important; }
	.lala-hero__eyebrow { font-size: 14px !important; }
	.lala-hero__title { font-size: 44px; line-height: 1.1; }
	.lala-hero__text { font-size: 17px !important; max-width: 520px; }
	.lala-hero__ctas { flex-wrap: nowrap; }
	.lala-cta { flex: 0 0 auto; min-width: 180px; }
	.lala-cta--primary:hover { background: #cc6312; }
	.lala-cta--ghost:hover { background: rgba(255, 255, 255, .22); }
	.lala-trust li { padding: 18px 12px; }
	.lala-trust strong { font-size: 20px; }
	.lala-trust span { font-size: 13px; }
	.lala-section { padding: 32px 32px 8px; }
	.lala-section__title { font-size: 24px !important; }
	.lala-home .lala-cats { grid-template-columns: repeat(5, 1fr); gap: 14px; }
	.lala-cats a { min-height: 72px; padding: 14px 16px; }
	.lala-cats a:hover { border-color: var(--lala-green); background: var(--lala-bg-soft); box-shadow: 0 4px 14px rgba(15, 122, 98, .12); }
	.lala-cats__name { font-size: 15px; }
	.lala-chips a:hover { border-color: var(--lala-green); background: var(--lala-bg-soft); }
	.lala-wa-band { margin: 28px 32px 12px; padding: 18px 24px; font-size: 16px; }
	.lala-wa-band:hover { background: #dcf1e4; }
}

@media screen and (max-width: 1019px) {

	/* ================= base ================= */
	html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	/* overflow-x on <html> only: on <body> it would make body its own scroll
	   container and break position:sticky (header, A–Z bar) */
	html { overflow-x: hidden; }
	body { max-width: 100%; }
	@supports (overflow: clip) { html { overflow-x: clip; } }
	body {
		color: var(--lala-text);
		font-size: 16px;
		line-height: 1.55;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	html.lala-no-scroll, html.lala-no-scroll body { overflow: hidden; }

	img, video, embed, object { max-width: 100% !important; height: auto !important; }
	/* 1px spacer gifs: with height:auto they would grow into big squares */
	img[src*="zero.gif"], img[height="1"], img[HEIGHT="1"], img[height="2"] { display: none !important; }
	iframe { max-width: 100% !important; }

	/* legacy header is replaced by the mobile header */
	.lala-desktop-header { display: none !important; }

	/* ================= mobile header ================= */
	.lala-mh {
		display: block;
		position: sticky; top: 0; z-index: 1000;
		background: #fff;
		box-shadow: 0 1px 0 var(--lala-border), 0 2px 8px rgba(0, 0, 0, .06);
	}
	.lala-mh__bar {
		display: flex; align-items: center; gap: 4px;
		height: var(--lala-header-h); padding: 0 6px;
		max-width: 1000px; margin: 0 auto;
	}
	.lala-mh__icon-btn {
		position: relative;
		display: inline-flex; align-items: center; justify-content: center;
		width: var(--lala-tap); height: var(--lala-tap); flex: 0 0 var(--lala-tap);
		border: 0; border-radius: 50%; background: transparent;
		color: var(--lala-green-ink); cursor: pointer;
		transition: background-color .15s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.lala-mh__icon-btn:hover, .lala-mh__icon-btn:active { background: var(--lala-bg-soft); }
	.lala-mh__brand {
		display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto;
		text-decoration: none !important; color: var(--lala-text);
	}
	.lala-mh__brand img { width: 44px !important; height: 36px !important; object-fit: contain; flex: 0 0 auto; }
	.lala-mh__name {
		display: flex; flex-direction: column; min-width: 0;
		font: 700 16px/1.15 Arial, Helvetica, sans-serif; color: var(--lala-green-ink);
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}
	.lala-mh__name small { font: 400 12px/1.3 Arial, Helvetica, sans-serif; color: var(--lala-muted); }
	.lala-mh__badge {
		position: absolute; top: 4px; right: 2px;
		min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
		background: var(--lala-orange); color: #fff;
		font: 700 11px/18px Arial, sans-serif; text-align: center;
	}

	.lala-mh__search {
		display: flex; gap: 8px; padding: 0 12px 12px;
		max-width: 1000px; margin: 0 auto;
	}
	.lala-mh__search[hidden] { display: none; }
	.lala-mh__search input {
		flex: 1 1 auto; min-width: 0; height: var(--lala-tap);
		padding: 0 14px; border: 1px solid var(--lala-border); border-radius: var(--lala-radius);
		font-size: 16px; /* 16px stops iOS zooming into the field */
		background: var(--lala-bg-soft);
	}
	.lala-mh__search button {
		height: var(--lala-tap); padding: 0 18px; border: 0; border-radius: var(--lala-radius);
		background: var(--lala-green-dark); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
	}

	/* ================= drawer ================= */
	.lala-drawer-backdrop {
		display: block; position: fixed; inset: 0; z-index: 1001;
		background: rgba(15, 23, 42, .45);
	}
	.lala-drawer-backdrop[hidden] { display: none; }
	.lala-drawer {
		display: flex; flex-direction: column;
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 1002;
		width: min(86vw, 340px); background: #fff;
		transform: translateX(-102%); visibility: hidden;
		transition: transform .25s ease-out, visibility 0s linear .25s;
		box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
	}
	.lala-drawer.is-open {
		transform: translateX(0); visibility: visible;
		transition: transform .25s ease-out, visibility 0s;
	}
	.lala-drawer__head {
		display: flex; align-items: center; justify-content: space-between;
		height: var(--lala-header-h); padding: 0 6px 0 16px;
		border-bottom: 1px solid var(--lala-border);
	}
	.lala-drawer__title { font: 700 17px/1 Arial, sans-serif; color: var(--lala-text); }
	.lala-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 0 16px; overscroll-behavior: contain; }
	.lala-drawer__label {
		margin: 14px 16px 4px; font: 700 12px/1.2 Arial, sans-serif;
		letter-spacing: .06em; text-transform: uppercase; color: var(--lala-muted);
	}
	.lala-drawer__list { list-style: none; margin: 0; padding: 0; }
	.lala-drawer__list a {
		display: flex; align-items: center; min-height: var(--lala-tap);
		padding: 10px 16px; font: 500 16px/1.3 Arial, Helvetica, sans-serif;
		color: var(--lala-text) !important; text-decoration: none !important;
		border-left: 3px solid transparent;
	}
	.lala-drawer__list a:hover, .lala-drawer__list a:active { background: var(--lala-bg-soft); }
	.lala-drawer__list a[aria-current="page"] {
		border-left-color: var(--lala-green); background: var(--lala-bg-soft);
		color: var(--lala-green-ink) !important; font-weight: 700;
	}
	.lala-drawer__cta {
		display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--lala-border);
	}
	.lala-btn {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		min-height: var(--lala-tap); padding: 0 14px; border-radius: var(--lala-radius);
		font: 700 15px/1 Arial, sans-serif; text-decoration: none !important;
	}
	.lala-btn--wa { background: #1f8f4e; color: #fff !important; }
	.lala-btn--call { background: #fff; color: var(--lala-green-ink) !important; border: 2px solid var(--lala-green-dark); }

	/* ================= layout tables -> one column ================= */
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]),
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]) > tbody,
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]) > tbody > tr,
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]) > tr {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;          /* legacy HEIGHT= attributes cause overlaps */
		box-sizing: border-box;
	}
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]) > tbody > tr > td,
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]) > tbody > tr > th,
	table:not([border="1"]):not(.table):not(.lala-keep-table):not([class*="cart"]) > tr > td {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		height: auto !important;
	}

	/* decorative spacer / edge / divider images */
	td:has(> img[src*="zero.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="link-left.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="link-right.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="top-right.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="top-left.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="devider.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="divider.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="line.jpg"]:only-child):not(#lala-boost),
	td:has(> img[src*="/cor1.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/cor2.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/cor3.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/cor4.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/tab-top.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/tab-bottom.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/tab-left.gif"]:only-child):not(#lala-boost),
	td:has(> img[src*="/tab-right.gif"]:only-child):not(#lala-boost),
	td:empty:not(#lala-boost) {
		display: none !important;
	}
	/* decorative picture strips beside a full-width content cell */
	tr:has(> td[width="100%"]) > td:not([width="100%"]):has(> img:only-child):not(:has(a)):not(:has(img[name="SlideShow"])):not(#lala-boost),
	tr:has(> td[WIDTH="100%"]) > td:not([WIDTH="100%"]):has(> img:only-child):not(:has(a)):not(:has(img[name="SlideShow"])):not(#lala-boost) {
		display: none !important;
	}

	/* page content gets comfortable side padding */
	.lala-desktop-header ~ table,
	.lala-desktop-header ~ div:not(.lala-drawer):not(.lala-drawer-backdrop) {
		padding-left: 12px !important;
		padding-right: 12px !important;
		box-sizing: border-box;
	}

	/* ================= product picture grids ================= */
	table:has(> tbody > tr > td > table > tbody > tr > td > .h-pro-links-new) > tbody:not(#lala-boost) {
		display: grid !important;
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
		gap: 12px 8px;
	}
	table:has(> tbody > tr > td > table > tbody > tr > td > .h-pro-links-new) > tbody > tr:not(#lala-boost) { display: contents !important; }
	table:has(> tbody > tr > td > table > tbody > tr > td > .h-pro-links-new) > tbody > tr > td:not(#lala-boost) { width: auto !important; min-width: 0; }
	table:has(> tbody > tr > td > table > tbody > tr > td > .h-pro-links-new) > tbody > tr > td:not(:has(table)):not(#lala-boost) { display: none !important; }
	.h-pro-links-new a { display: block; padding: 6px 0; font-size: 14px !important; line-height: 1.3; }

	/* ================= data tables ================= */
	table[border="1"], table.table {
		display: block;
		width: 100% !important;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	table[border="1"] td, table[border="1"] th, table.table td, table.table th { padding: 10px 8px !important; }

	div, ul, li, p, form { max-width: 100%; box-sizing: border-box; }
	[style*="width: 768px"], [style*="width:768px"] { width: 100% !important; }

	/* prices never split mid-number */
	.price, [class*="price"], td[style*="color:#900"], td[style*="color: #900"] { white-space: nowrap; }

	/* ================= readable text ================= */
	/* legacy classes set 11–12px; on phones that is below Google's
	   "legible font size" bar, so they are raised to 15px */
	.links,
	.links1,
	.htop-link,
	.h-top-nav,
	.industries,
	.certificate,
	.hc-text,
	.h-customer-satisfaction,
	.n-customer-satisfaction,
	.ficates,
	.h-pro-links,
	.h-pro-links-new,
	.h-pro-links1,
	.h-page,
	.h-page b.wh,
	.h-bot-nav,
	.hbottom-link,
	.footer,
	.enquiry,
	.cart,
	.cart-1,
	.cart1,
	.cart1 b.wh,
	.top-link,
	.customer-satisfaction1,
	.customer-satisfaction1 b.wo,
	.breadcrump,
	.in-pro-links,
	.in-pro-links b.wo,
	.industry,
	.in-bot-nav,
	.certificate1,
	.txt,
	.buy-now,
	.buy-now a,
	.product-text,
	.product-text b.wh,
	.specification1,
	.specification,
	.specification b.wh,
	.specifications,
	.analysis,
	.analysis1,
	.description,
	.description b.wh,
	.bottom-pro-navhead,
	.bottom-pro-nav,
	.essential,
	.in-page,
	.in-page b.wh,
	.profile-2,
	.profile,
	.profile-4,
	.profile-5,
	.profile-1,
	.contact,
	.hbottom-link1,
	.frtxt,
	.refer,
	.currency,
	.bread,
	.shop,
	.total,
	.shipping,
	.product-mk,
	.ref-mk,
	.qu,
	.sitemap,
	.sitemap1,
	.sitemap2,
	.sitemap3,
	.marquee {
		font-size: 15px !important;
		line-height: 1.55 !important;
	}
	h1, .h-p-new-head, .en-head { font-size: 24px !important; line-height: 1.25 !important; }
	h2, h2.h2, .h-pro-links-head, .customer-satisfaction-head { font-size: 20px !important; line-height: 1.3 !important; }
	h3, h4, .industries b.wh, .industries b.wo, .industry b.wh, .industry b.wo, .analysis b.wh,
	.essential b.wh, .cn-name, .customer-head, .product-head { font-size: 18px !important; line-height: 1.35 !important; }
	p { margin: 0 0 12px; }
	/* justified text on a narrow screen leaves big gaps between words */
	p, li, .essential, .hc-text, .profile, .in-page, .description, .product-text,
	.specification, .analysis, .customer-satisfaction1, [align="justify"], [ALIGN="JUSTIFY"] {
		text-align: left !important;
	}

	/* ================= touch targets ================= */
	/* stacked link lists (side menus, footer, A–Z) */
	.h-pro-links a, .h-pro-links1 a, .in-pro-links a, .links a, .links1 a,
	.h-bot-nav a, .in-bot-nav a, .bottom-pro-nav a, .hbottom-link a, .hbottom-link1 a,
	.industries a, .industry a, td > ul > li > a, .h-page a {
		display: inline-block;
		min-height: 36px;
		padding: 8px 4px;
		line-height: 1.3;
	}
	li { margin-bottom: 2px; }

	/* green category bars repeated in the footer: 2-column grid of 44px tiles */
	tr:has(> td > .h-top-nav):not(#lala-boost) {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1px;
		background: rgba(255, 255, 255, .35);
	}
	tr:has(> td > .h-top-nav) > td:not(:has(.h-top-nav)):not(#lala-boost) { display: none !important; }
	tr:has(> td > .h-top-nav) > td:has(.h-top-nav):not(#lala-boost) { background: var(--lala-green-dark); }
	.h-top-nav a {
		display: flex !important; align-items: center; justify-content: center; text-align: center;
		min-height: var(--lala-tap); padding: 6px 8px; color: #fff !important;
		font: 600 14px/1.25 Arial, sans-serif !important; text-decoration: none !important;
	}
	td:has(> table tr > td > .h-top-nav) { background: none !important; padding: 0 !important; }

	/* Bootstrap columns nested inside the (already padded) page: drop the
	   stacked 15px gutters so content uses the full phone width */
	.lala-desktop-header ~ * [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
	.lala-desktop-header ~ * .row { margin-left: 0 !important; margin-right: 0 !important; }
	/* tablets (768–1019px): Bootstrap would split product / details / sidebar
	   into three cramped columns inside the stacked layout — stack them */
	.lala-desktop-header ~ * [class*="col-sm-"]:not([class*="col-xs-"]),
	.lala-desktop-header ~ * [class*="col-md-"]:not([class*="col-xs-"]) {
		width: 100% !important; float: none !important;
	}
	.lala-desktop-header ~ * .product-img, .lala-desktop-header ~ * .product-view img.img-responsive {
		max-width: min(100%, 480px) !important; margin: 0 auto; display: block;
	}
	.product, .product-view { padding-left: 0 !important; padding-right: 0 !important; }
	.product-detail { padding: 12px 0 !important; }

	/* ---------- product page: size / price picker ---------- */
	#product_size_table {
		display: table !important; width: 100% !important; overflow: visible;
		border-collapse: separate; border-spacing: 0 6px; border: 0 !important;
	}
	#product_size_table tr > td {
		border: 1px solid var(--lala-border) !important; background: #fff;
		vertical-align: middle !important; padding: 0 !important;
	}
	#product_size_table tr > td:first-child { border-right: 0 !important; border-radius: var(--lala-radius) 0 0 var(--lala-radius); }
	#product_size_table tr > td:last-child {
		border-left: 0 !important; border-radius: 0 var(--lala-radius) var(--lala-radius) 0;
		padding: 0 12px !important; text-align: right; white-space: nowrap; font-size: 16px !important;
	}
	#product_size_table td.filter-list { white-space: nowrap; }
	#product_size_table td.filter-list label {
		display: inline-block; width: calc(100% - 44px); white-space: normal; min-height: 48px; margin: 0;
		padding: 13px 4px; font-size: 15px; font-weight: 600; line-height: 1.35; cursor: pointer;
		vertical-align: middle;
	}
	#product_size_table td.filter-list input[type="radio"] { margin: 0 6px 0 12px; vertical-align: middle; accent-color: var(--lala-green-dark); }
	#product_size_table tr:has(input:checked) > td { background: var(--lala-bg-soft); border-color: var(--lala-green) !important; }

	/* quantity stepper: 44px buttons */
	.input-group:has(> .input-group-addon.minus) { display: inline-flex !important; width: auto !important; }
	.input-group-addon.minus, .input-group-addon.plus {
		display: inline-flex !important; align-items: center; justify-content: center;
		width: var(--lala-tap) !important; height: var(--lala-tap); padding: 0 !important; cursor: pointer;
	}
	.input-group:has(> .input-group-addon.minus) input.count { width: 56px !important; height: var(--lala-tap); text-align: center; }
	/* Buy Now / Add to Cart: two equal, thumb-friendly buttons */
	.product-detail .btn, .product-detail input[type="submit"].btn {
		width: 100%; min-height: 48px; font-weight: 700; border-radius: var(--lala-radius);
	}
	.product-detail .row:has(> [class*="col-xs-6"] .btn) { display: flex; flex-wrap: wrap; gap: 12px 10px; }
	.product-detail .row:has(> [class*="col-xs-6"] .btn) > [class*="col-xs-12"] { flex: 0 0 100%; }
	.product-detail .row:has(> [class*="col-xs-6"] .btn) > [class*="col-xs-6"] { flex: 1 1 0; width: auto; float: none; min-width: 0; }
	.product-detail #add_button { width: 100%; }
	.margin_top_60 { margin-top: 24px !important; }

	/* product specification rows: "Name : Value" -> 2-column grid */
	tr:has(> td > strong:only-child):has(> td > p):not(#lala-boost) {
		display: grid !important;
		grid-template-columns: minmax(110px, 40%) 1fr;
		column-gap: 12px;
		padding: 10px 0;
		border-bottom: 1px solid var(--lala-border);
	}
	tr:has(> td > strong:only-child):has(> td > p) > td:not(#lala-boost) { width: auto !important; padding: 0 !important; }
	tr:has(> td > strong:only-child):has(> td > p) > td:has(> strong:only-child):not(#lala-boost),
	tr:has(> td > strong:only-child):has(> td > p) > td:first-child:not(:has(*)):not(#lala-boost) { display: none !important; }
	tr:has(> td > strong:only-child):has(> td > p) p { margin: 0; }

	/* breadcrumb + small cart widget links */
	.breadcrumb, .breadcrumb a, .breadcrumb li { font-size: 14px !important; }
	.breadcrumb a, .cart a, .cart1 a, .cart-1 a { display: inline-block; padding: 10px 2px; }

	/* "Join us" social icons: one centred row instead of a vertical stack */
	tr:has(> td > a > img[src*="/icon/"]):not(#lala-boost) {
		display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100% !important;
	}
	tr:has(> td > a > img[src*="/icon/"]) > td:not(#lala-boost) { display: block !important; width: auto !important; }
	tr:has(> td > a > img[src*="/icon/"]) a { display: inline-flex; padding: 2px; }
	tr:has(> td > a > img[src*="/icon/"]) img { width: 40px !important; height: 40px !important; margin: 0 !important; }
	table:has(> tbody > tr > td > a > img[src*="/icon/"]) { width: 100% !important; }

	/* legacy home blocks that remain below the new intro */
	td[background*="aw-n.gif"], td[BACKGROUND*="aw-n.gif"] { background: none !important; }
	h1.home-rv { margin: 24px 0 4px !important; font: 800 22px/1.25 Arial, Helvetica, sans-serif !important; color: var(--lala-text) !important; text-align: left !important; }
	td[background*="aw-n.gif"] .line { display: none; }
	.serving { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--lala-border); border-radius: 12px; background: #fff; }
	.serving ul { margin: 0 !important; padding-left: 20px !important; }
	.serving li { margin: 0 0 6px; }
	.serving br { display: none; }

	/* ================= category page ================= */
	/* products first, then testimonial, then the sidebar content */
	.lala-cat { display: flex !important; flex-direction: column; }
	.lala-cat > .lala-cat__main  { order: 1; }
	.lala-cat > .lala-cat__intro { order: 2; margin-top: 24px; }
	.lala-cat > .lala-cat__aside { order: 3; float: none !important; margin-top: 8px; }
	.lala-cat__main h1 { margin: 8px 0 4px !important; text-align: left; }
	.lala-cat__main .breadcrump { padding: 4px 0 0; }

	/* product page: testimonial strip moves below the product */
	body:has(> .lala-pd-intro) { display: flex; flex-direction: column; }
	body:has(> .lala-pd-intro) > .lala-pd-intro { order: 1; margin-top: 16px; }
	body:has(> .lala-pd-intro) > .lala-pd-intro ~ .container-fluid ~ * { order: 2; }
	body:has(> .lala-pd-intro) > .lala-mh,
	body:has(> .lala-pd-intro) > .lala-drawer,
	body:has(> .lala-pd-intro) > .lala-drawer-backdrop { order: 0; }

	/* A–Z index: one sticky, swipeable row under the header */
	.lala-az {
		position: sticky; top: var(--lala-header-h); z-index: 900;
		flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
		margin: 0 -12px 8px; padding: 8px 12px; gap: 6px;
		background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--lala-border);
	}
	.lala-az::-webkit-scrollbar { display: none; }
	.lala-az__count { flex: 0 0 auto; font-size: 13px !important; }
	.lala-az a { flex: 0 0 auto; min-width: 40px; height: 40px; font-size: 15px; }
	.lala-prod-letter { scroll-margin-top: calc(var(--lala-header-h) + 64px); }

	/* product list: table rows -> tappable cards */
	.lala-prod-table, .lala-prod-table > tbody {
		display: block !important; border: 0 !important; overflow: visible !important; width: 100% !important;
	}
	.lala-prod-table .lala-prod-head { display: none !important; }
	.lala-cat-prefix { display: none; }
	.lala-prod-table .lala-prod-letter { display: block !important; }
	.lala-prod-table .lala-prod-letter > td {
		display: block !important; border: 0 !important; background: none !important; padding: 18px 2px 6px !important;
		text-align: left !important;
	}
	.lala-prod-letter .in-pro-links1 { text-align: left !important; }
	.lala-prod-letter .in-pro-links1, .lala-prod-letter .in-pro-links1 b {
		font: 800 22px/1 Arial, Helvetica, sans-serif !important; color: var(--lala-green-ink) !important;
	}
	.lala-prod-table .lala-prod-row {
		position: relative;
		display: grid !important;
		grid-template-columns: 1fr auto;
		grid-template-areas: "name name" "bot sku";
		gap: 4px 12px; align-items: center;
		margin: 0 0 8px; padding: 12px 40px 12px 14px;
		border: 1px solid var(--lala-border); border-radius: var(--lala-radius); background: #fff;
		box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
		transition: border-color .15s ease, background-color .15s ease;
	}
	.lala-prod-table .lala-prod-row:active { background: var(--lala-bg-soft); border-color: var(--lala-green); }
	.lala-prod-table .lala-prod-row::after {          /* chevron */
		content: ""; position: absolute; right: 16px; top: 50%;
		width: 9px; height: 9px; margin-top: -5px;
		border-right: 2px solid var(--lala-muted); border-bottom: 2px solid var(--lala-muted);
		transform: rotate(-45deg);
	}
	.lala-prod-table .lala-prod-row > td {
		display: block !important; border: 0 !important; padding: 0 !important; width: auto !important; min-width: 0;
	}
	.lala-prod-row > td:nth-child(1) { grid-area: sku; }
	.lala-prod-row > td:nth-child(2) { grid-area: name; }
	.lala-prod-row > td:nth-child(3) { grid-area: bot; }
	.lala-prod-row > td:nth-child(2) a {
		font: 700 16px/1.35 Arial, Helvetica, sans-serif !important; color: var(--lala-text) !important;
		text-decoration: none !important; display: inline !important; padding: 0 !important; min-height: 0 !important;
	}
	.lala-prod-row > td:nth-child(2) a::before {      /* whole card is the link */
		content: ""; position: absolute; inset: 0; border-radius: var(--lala-radius);
	}
	.lala-prod-row > td:nth-child(3) .in-pro-links {
		font-style: italic; color: var(--lala-muted); font-size: 14px !important; line-height: 1.3 !important;
	}
	.lala-prod-row > td:nth-child(1) .in-pro-links {
		display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--lala-bg-soft);
		font: 600 12px/1.6 Arial, sans-serif !important; color: var(--lala-muted); white-space: nowrap;
	}
	.lala-prod-row > td:nth-child(1) .in-pro-links:empty { display: none; }

	/* stray <br> tags between page blocks create empty gaps */
	body > br { display: none; }

	/* "Browse all oils by alphabet": letters become tappable chips */
	.h-page:has(> a[href*="oils-by-name/"]) {
		display: flex; flex-wrap: wrap; gap: 6px; font-size: 0 !important; /* hides the " | " separators */
	}
	.h-page:has(> a[href*="oils-by-name/"]) > *:not(a) { font-size: 18px !important; flex-basis: 100%; }
	.h-page > a[href*="oils-by-name/"] {
		display: inline-flex !important; align-items: center; justify-content: center;
		width: 40px; height: 40px; padding: 0 !important; min-height: 0;
		border: 1px solid var(--lala-border); border-radius: 8px; background: #fff;
		font: 600 15px/1 Arial, sans-serif !important; color: var(--lala-green-ink) !important;
		text-decoration: none !important;
	}
	.h-page > a[href*="oils-by-name/"]:active { background: var(--lala-bg-soft); }

	/* buttons & form controls */
	button, input[type="submit"], input[type="button"], input[type="image"],
	.btn, .buy-now a, a.btn {
		min-height: var(--lala-tap);
		font-size: 16px !important;
	}
	input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
	input[type="number"], input[type="search"], select, textarea {
		max-width: 100% !important;
		min-height: var(--lala-tap);
		font-size: 16px !important;         /* prevents iOS auto-zoom on focus */
		box-sizing: border-box;
	}
	input[type="radio"], input[type="checkbox"] {
		width: 22px; height: 22px; vertical-align: middle; margin-right: 6px;
	}
}

@media screen and (max-width: 1019px) and (prefers-reduced-motion: reduce) {
	.lala-drawer, .lala-drawer.is-open, .lala-mh__icon-btn { transition: none; }
}
