/*
Theme Name: Alternafoss Energy
Theme URI: https://alternafoss.com
Author: Alternafoss Energy Pvt. Ltd.
Description: Custom corporate theme for Alternafoss Energy Pvt. Ltd. - TCD plants, Waste Plastic Oil (WPO) and carbon black. Includes a WooCommerce-powered Marketplace.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alternafoss
*/

/* ---------- Tokens ---------- */
:root {
	--af-green: #04613b;
	--af-green-dark: #023a24;
	--af-green-deep: #01261a;
	--af-green-soft: #e8f3ed;
	--af-red: #d9403a;
	--af-red-dark: #b8312c;
	--af-ink: #17241e;
	--af-muted: #5b6b63;
	--af-line: #dfe7e2;
	--af-bg: #ffffff;
	--af-bg-alt: #f5f8f6;
	--af-radius: 14px;
	--af-shadow: 0 10px 30px rgba(2, 58, 36, .08);
	--af-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--af-font-head: "Poppins", var(--af-font);
	--af-wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--af-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--af-ink);
	background: var(--af-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--af-green); text-decoration: none; }
a:hover { color: var(--af-red); }
h1, h2, h3, h4 { font-family: var(--af-font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--af-green-deep); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 6px; }

.af-wrap { width: 100%; max-width: var(--af-wrap); margin: 0 auto; padding: 0 20px; }
.af-section { padding: 80px 0; }
.af-section--alt { background: var(--af-bg-alt); }
.af-section--dark { background: var(--af-green-deep); color: #d6e6dd; }
.af-section--dark h2, .af-section--dark h3 { color: #fff; }
.af-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--af-red); margin-bottom: 10px; }
.af-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.af-section-head p { color: var(--af-muted); font-size: 1.05rem; }
.af-section--dark .af-section-head p { color: #b9d0c3; }
.af-lead { font-size: 1.1rem; color: var(--af-muted); }

/* ---------- Buttons ---------- */
.af-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap;
	font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.af-btn:hover { transform: translateY(-1px); }
.af-btn--primary { background: var(--af-red); color: #fff; }
.af-btn--primary:hover { background: var(--af-red-dark); color: #fff; }
.af-btn--green { background: var(--af-green); color: #fff; }
.af-btn--green:hover { background: var(--af-green-dark); color: #fff; }
.af-btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.af-btn--ghost:hover { background: #fff; color: var(--af-green-deep); }
.af-btn--outline { border-color: var(--af-green); color: var(--af-green); }
.af-btn--outline:hover { background: var(--af-green); color: #fff; }
.af-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.af-topbar { background: var(--af-green-deep); color: #c5dccf; font-size: .85rem; }
.af-topbar .af-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.af-topbar a { color: #fff; }
.af-topbar a:hover { color: #ffb4b0; }
.af-topbar__list { display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.af-topbar__list li { display: flex; align-items: center; gap: 6px; }
.af-icon { width: 16px; height: 16px; flex: none; fill: currentColor; }

/* ---------- Header ---------- */
.af-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--af-line); }
.admin-bar .af-header { top: 32px; }
.af-header .af-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.af-cart {
	position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	color: var(--af-green-deep); background: var(--af-green-soft); transition: background .2s, color .2s;
}
.af-cart:hover { background: var(--af-green); color: #fff; }
.af-cart .af-icon { width: 22px; height: 22px; }
.af-cart__count {
	position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: var(--af-red); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.af-cart__count[data-count="0"] { display: none; }
.af-brand { display: flex; align-items: center; gap: 12px; color: var(--af-green-deep); }
.af-brand img, .af-brand .custom-logo { height: 62px; width: auto; }
.af-brand__name { font-family: var(--af-font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.15; letter-spacing: .02em; white-space: nowrap; }
.af-brand__name small { display: block; font-family: var(--af-font); font-weight: 500; font-size: .72rem; letter-spacing: .1em; color: var(--af-muted); text-transform: uppercase; }
.af-nav { display: flex; align-items: center; gap: 28px; }
.af-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.af-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--af-ink); }
.af-menu a:hover, .af-menu .current-menu-item > a, .af-menu .current_page_item > a { color: var(--af-green); background: var(--af-green-soft); }
.af-menu .sub-menu { display: none; }
.af-nav-toggle { display: none; background: none; border: 1px solid var(--af-line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.af-nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--af-green-deep); transition: transform .2s, opacity .2s; }
.af-nav-open .af-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.af-nav-open .af-nav-toggle span:nth-child(2) { opacity: 0; }
.af-nav-open .af-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.af-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1200px 600px at 85% 20%, rgba(217, 64, 58, .22), transparent 60%), linear-gradient(135deg, var(--af-green-deep) 0%, var(--af-green-dark) 55%, var(--af-green) 100%);
}
.af-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
	background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.af-hero .af-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.af-hero h1 { color: #fff; margin-bottom: .45em; }
.af-hero h1 em { font-style: normal; color: #ff8f88; }
.af-hero p { font-size: 1.15rem; color: #cfe2d7; max-width: 560px; margin-bottom: 30px; }
.af-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; padding: 0; list-style: none; }
.af-hero__badges li { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.af-hero__media { position: relative; }
.af-hero__media img { border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.af-hero__card {
	position: absolute; left: -28px; bottom: 28px; background: #fff; color: var(--af-ink);
	border-radius: 14px; padding: 16px 20px; box-shadow: var(--af-shadow); display: flex; gap: 14px; align-items: center; max-width: 280px;
}
.af-hero__card strong { display: block; font-family: var(--af-font-head); font-size: 1.5rem; color: var(--af-red); line-height: 1; }
.af-hero__card span { font-size: .85rem; color: var(--af-muted); line-height: 1.35; }

/* ---------- Page hero ---------- */
.af-page-hero { background: linear-gradient(135deg, var(--af-green-deep), var(--af-green)); color: #cfe2d7; padding: 64px 0 56px; position: relative; overflow: hidden; }
.af-page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(217, 64, 58, .18); }
.af-page-hero .af-wrap { position: relative; z-index: 1; }
.af-page-hero .h1 { font-family: var(--af-font-head); font-weight: 600; line-height: 1.2; font-size: clamp(2rem, 4.2vw, 3.2rem); color: #fff; margin: 0 0 .3em; }
.af-page-hero p { margin: 0; max-width: 680px; font-size: 1.08rem; }
.af-breadcrumb { font-size: .85rem; margin-bottom: 12px; color: #9fc0ad; }
.af-breadcrumb a { color: #fff; }

/* ---------- Stats ---------- */
.af-stats { background: #fff; border-bottom: 1px solid var(--af-line); }
.af-stats .af-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.af-stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--af-line); }
.af-stat:last-child { border-right: 0; }
.af-stat strong { display: block; font-family: var(--af-font-head); font-size: 1.8rem; color: var(--af-green); line-height: 1.1; }
.af-stat span { font-size: .9rem; color: var(--af-muted); }

/* ---------- Split ---------- */
.af-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.af-split--reverse .af-split__media { order: 2; }
.af-split__media img { border-radius: var(--af-radius); box-shadow: var(--af-shadow); width: 100%; }
.af-checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.af-checklist li { position: relative; padding-left: 30px; }
.af-checklist li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--af-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.af-checklist--2 { grid-template-columns: 1fr 1fr; }

/* ---------- Cards ---------- */
.af-grid { display: grid; gap: 26px; }
.af-grid--3 { grid-template-columns: repeat(3, 1fr); }
.af-grid--4 { grid-template-columns: repeat(4, 1fr); }
.af-grid--2 { grid-template-columns: repeat(2, 1fr); }
.af-card { background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.af-card:hover { box-shadow: var(--af-shadow); transform: translateY(-3px); }
.af-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--af-bg-alt); }
.af-card__img img { width: 100%; height: 100%; object-fit: cover; }
.af-card__img--contain img { object-fit: contain; padding: 18px; }
.af-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.af-card__body p { color: var(--af-muted); }
.af-card__link { margin-top: auto; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.af-feature { background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); padding: 28px; }
.af-section--dark .af-feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.af-feature p { margin: 0; color: var(--af-muted); }
.af-section--dark .af-feature p { color: #b9d0c3; }
.af-feature__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--af-green-soft); color: var(--af-green); margin-bottom: 18px; }
.af-section--dark .af-feature__icon { background: rgba(217, 64, 58, .15); color: #ff8f88; }
.af-feature__icon svg { width: 26px; height: 26px; }

/* ---------- Process ---------- */
.af-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.af-process li { position: relative; background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); padding: 26px 20px; counter-increment: step; }
.af-process li::before {
	content: counter(step, decimal-leading-zero); display: block; font-family: var(--af-font-head); font-weight: 700;
	font-size: 1.6rem; color: var(--af-red); margin-bottom: 8px;
}
.af-process li:not(:last-child)::after {
	content: ""; position: absolute; top: 40px; right: -14px; width: 10px; height: 10px; z-index: 1;
	border-top: 2px solid var(--af-green); border-right: 2px solid var(--af-green); transform: rotate(45deg);
}
.af-process h3 { font-size: 1.02rem; margin-bottom: 6px; }
.af-process p { font-size: .9rem; color: var(--af-muted); margin: 0; }

/* ---------- Timeline ---------- */
.af-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.af-timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--af-line); }
.af-timeline li { position: relative; padding: 0 0 28px 60px; }
.af-timeline li::before {
	content: ""; position: absolute; left: 10px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--af-green); box-shadow: 0 0 0 5px var(--af-green-soft);
}
.af-timeline li.is-next::before { background: var(--af-red); box-shadow: 0 0 0 5px #fbe3e2; }
.af-timeline h3 { font-size: 1.08rem; margin-bottom: 4px; }
.af-timeline p { margin: 0; color: var(--af-muted); }

/* ---------- Product detail ---------- */
.af-product { padding: 70px 0; border-bottom: 1px solid var(--af-line); scroll-margin-top: 100px; }
.af-product:nth-of-type(even) { background: var(--af-bg-alt); }
.af-gallery__stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--af-radius); overflow: hidden; background: #fff; box-shadow: var(--af-shadow); }
.af-gallery__main, .af-gallery__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.af-gallery__main[hidden], .af-gallery__video[hidden] { display: none; }
.af-gallery__video { object-fit: contain; background: #000; }
.af-product__tag { display: inline-block; background: var(--af-green-soft); color: var(--af-green); font-weight: 600; font-size: .8rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.af-specs { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95rem; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--af-line); }
.af-specs th, .af-specs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--af-line); }
.af-specs tr:last-child th, .af-specs tr:last-child td { border-bottom: 0; }
.af-specs th { width: 42%; background: var(--af-green-soft); color: var(--af-green-deep); font-weight: 600; }
.af-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.af-pills li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--af-line); font-weight: 600; font-size: .9rem; color: var(--af-green-deep); }
.af-product h4 { font-family: var(--af-font-head); font-size: 1rem; margin: 22px 0 10px; color: var(--af-green-deep); }

/* ---------- Video ---------- */
.af-video { position: relative; margin: 0; border-radius: var(--af-radius); overflow: hidden; background: #000; box-shadow: var(--af-shadow); }
.af-video__el { display: block; width: 100%; height: 100%; object-fit: cover; }
.af-video figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: .85rem; font-weight: 600; color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7)); pointer-events: none;
}
.af-video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 470px; gap: 18px; }
.af-video--landscape { aspect-ratio: 16 / 9; }
.af-video--tall { max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; }
.af-split--video { grid-template-columns: 1.3fr 1fr; }
.af-split__media--portrait img { max-height: 560px; width: auto; margin: 0 auto; }

/* ---------- Product gallery ---------- */
.af-gallery__main.is-contain { object-fit: contain !important; padding: 24px; }
.af-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.af-gallery__thumb { width: 74px; height: 74px; padding: 0; border: 2px solid var(--af-line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.af-gallery__thumb { position: relative; }
.af-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.af-gallery__thumb--video::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%;
	background: rgba(217, 64, 58, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 14px no-repeat;
}
.af-gallery__thumb[aria-pressed="true"] { border-color: var(--af-red); }
.af-gallery__thumb:focus-visible { outline: 3px solid var(--af-green); outline-offset: 2px; }

/* ---------- CTA band ---------- */
.af-cta { background: linear-gradient(120deg, var(--af-red) 0%, #c2362f 100%); color: #fff; padding: 56px 0; }
.af-cta .af-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.af-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.af-cta p { margin: 0; color: #ffe1df; }
.af-cta .af-btn--ghost:hover { color: var(--af-red); }

/* ---------- Contact ---------- */
.af-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.af-contact-cards { display: grid; gap: 16px; }
.af-contact-card { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); }
.af-contact-card .af-feature__icon { margin: 0; flex: none; }
.af-contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.af-contact-card p { margin: 0; color: var(--af-muted); }
.af-form { background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); padding: 34px; box-shadow: var(--af-shadow); }
.af-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-form__full { grid-column: 1 / -1; }
.af-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--af-green-deep); }
.af-form input, .af-form select, .af-form textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--af-ink); background: var(--af-bg-alt);
	border: 1px solid var(--af-line); border-radius: 10px; transition: border-color .2s, background .2s;
}
.af-form input:focus, .af-form select:focus, .af-form textarea:focus { outline: none; border-color: var(--af-green); background: #fff; }
.af-form textarea { min-height: 140px; resize: vertical; }
.af-form .af-hp { position: absolute; left: -9999px; }
.af-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.af-notice--ok { background: var(--af-green-soft); color: var(--af-green-dark); }
.af-notice--err { background: #fde8e7; color: var(--af-red-dark); }
.af-map { margin-top: 40px; border-radius: var(--af-radius); overflow: hidden; border: 1px solid var(--af-line); }
.af-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Generic content ---------- */
.af-content { max-width: 820px; margin: 0 auto; }
.af-content > *:last-child { margin-bottom: 0; }
.af-content--wide { max-width: none; }
.af-unit { font-size: .8em; font-weight: 500; color: var(--af-muted); }
.af-variation-enquire { margin: 12px 0 0; }
.woocommerce div.product form.cart .variations { margin-bottom: 14px; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0 0 6px; text-align: left; }
.woocommerce div.product form.cart .variations select { min-width: 240px; padding: 11px 12px; border: 1px solid var(--af-line); border-radius: 10px; font: inherit; background: #fff; }
.woocommerce div.product .woocommerce-variation-description p { margin: 8px 0 0; color: var(--af-muted); }
.wc-block-components-button:not(.is-link) { border-radius: 999px !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--af-red) !important; color: #fff !important; }
.af-content img { border-radius: 10px; }
.af-content table { width: 100%; border-collapse: collapse; }
.af-content th, .af-content td { border: 1px solid var(--af-line); padding: 8px 12px; }
.af-posts { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.af-pagination { margin-top: 40px; text-align: center; }
.af-pagination .page-numbers { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--af-line); margin: 0 3px; }
.af-pagination .current { background: var(--af-green); color: #fff; border-color: var(--af-green); }

/* ---------- Footer ---------- */
.af-footer { background: var(--af-green-deep); color: #b9d0c3; font-size: .95rem; }
.af-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 70px 0 50px; }
.af-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.af-footer a { color: #d6e6dd; }
.af-footer a:hover { color: #ff8f88; }
.af-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.af-footer__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.af-footer__logo img { height: 70px; width: auto; }
.af-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.af-footer__contact .af-icon { margin-top: 4px; color: #ff8f88; }
.af-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .85rem; }
.af-footer__bottom .af-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp ---------- */
.af-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.af-wa:hover { color: #fff; transform: scale(1.05); }
.af-wa .af-icon { width: 30px; height: 30px; }

/* ---------- WooCommerce / Marketplace ---------- */
.af-shop-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--af-muted); }
.woocommerce .woocommerce-ordering select { padding: 10px 12px; border: 1px solid var(--af-line); border-radius: 10px; font: inherit; background: #fff; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; list-style: none;
	background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius); overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--af-shadow); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { margin: 0 !important; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--af-bg-alt); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--af-font-head); font-size: 1.08rem !important; color: var(--af-green-deep); padding: 18px 20px 4px !important; }
.woocommerce ul.products li.product .price { display: block; padding: 0 20px; color: var(--af-red) !important; font-weight: 700; font-size: 1.05rem !important; }
.woocommerce ul.products li.product .af-loop-cat { display: block; padding: 0 20px 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--af-muted); }
.woocommerce ul.products li.product .button { margin: auto 20px 20px !important; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: block; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--af-green) !important; color: #fff !important; border-radius: 999px !important; padding: 12px 22px !important;
	font-weight: 600 !important; font-family: var(--af-font) !important; text-align: center; line-height: 1.2 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--af-green-dark) !important; }
.woocommerce a.button.af-enquire-btn, .woocommerce .af-enquire-btn { background: var(--af-red) !important; color: #fff !important; }
.woocommerce a.button.af-enquire-btn:hover { background: var(--af-red-dark) !important; }
.woocommerce span.onsale { background: var(--af-red) !important; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; padding: 4px 12px !important; line-height: 1.5 !important; top: 12px !important; left: 12px !important; right: auto !important; margin: 0 !important; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--af-radius); }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--af-red) !important; font-size: 1.5rem !important; font-weight: 700; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 10px 10px 0 0 !important; background: var(--af-bg-alt) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff !important; }
.woocommerce div.product form.cart .qty { padding: 10px; border-radius: 10px; border: 1px solid var(--af-line); }
.af-single-enquire { margin: 18px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.af-single-enquire p { width: 100%; margin: 0; font-size: .9rem; color: var(--af-muted); }
.woocommerce .woocommerce-breadcrumb { display: none; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--af-green) !important; border-radius: 10px; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--af-green) !important; }
.af-empty-market { text-align: center; padding: 60px 20px; background: var(--af-bg-alt); border-radius: var(--af-radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.af-process { grid-template-columns: repeat(3, 1fr); }
	.af-process li:nth-child(3)::after { display: none; }
	.af-footer__top { grid-template-columns: 1fr 1fr; }
	.af-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
	.af-nav-toggle { display: block; order: 3; }
	.af-cart { order: 2; margin-left: auto; }
	.af-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--af-line);
		flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 22px; display: none; box-shadow: var(--af-shadow);
	}
	.af-nav-open .af-nav { display: flex; }
	.af-menu { flex-direction: column; }
	.af-menu a { padding: 12px 14px; }
	.af-nav .af-btn { justify-content: center; }
}
@media (max-width: 960px) {
	.af-hero .af-wrap { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 70px; gap: 40px; }
	.af-hero__card { left: 16px; }
	.af-split, .af-contact { grid-template-columns: 1fr; gap: 36px; }
	.af-split--reverse .af-split__media { order: 0; }
	.af-grid--3, .af-posts { grid-template-columns: repeat(2, 1fr); }
	.af-stats .af-wrap { grid-template-columns: repeat(2, 1fr); }
	.af-stat:nth-child(2) { border-right: 0; }
	.af-stat:nth-child(-n+2) { border-bottom: 1px solid var(--af-line); }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 30px; }
	.af-video-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
	.af-video-grid .af-video { aspect-ratio: 9 / 16; }
	.af-video-grid .af-video--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	.af-split--video { grid-template-columns: 1fr; }
	.af-product__media { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 782px) {
	.admin-bar .af-header { top: 46px; }
}
@media (max-width: 640px) {
	.af-section { padding: 56px 0; }
	.af-wrap { padding: 0 16px; }
	.af-topbar .af-topbar__hide-sm { display: none; }
	.af-brand img, .af-brand .custom-logo { height: 50px; }
	.af-brand__name { font-size: .92rem; }
	.af-brand__name small { display: none; }
	.af-header .af-wrap { min-height: 70px; }
	.af-grid--3, .af-grid--2, .af-grid--4, .af-posts, .af-process { grid-template-columns: 1fr; }
	.af-process li::after { display: none; }
	.af-checklist--2 { grid-template-columns: 1fr; }
	.af-form { padding: 22px; }
	.af-form__grid { grid-template-columns: 1fr; }
	.af-footer__top { grid-template-columns: 1fr; padding-top: 50px; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.af-hero__card { position: static; margin-top: -40px; margin-left: 16px; position: relative; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
