/* =========================================================
   AQUABLUE WATER STATION — Core Design System
   Mobile-first. Glassmorphism + water-inspired premium UI.
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
	--ab-primary: #00AEEF;
	--ab-primary-dark: #0089c2;
	--ab-deep: #003C64;
	--ab-white: #FFFFFF;
	--ab-light-gray: #F3F6F8;

	--ab-bg: #F3F6F8;
	--ab-bg-alt: #FFFFFF;
	--ab-text: #0B2436;
	--ab-text-muted: #4C6270;
	--ab-border: rgba(0, 60, 100, 0.10);

	--ab-glass-bg: rgba(255, 255, 255, 0.55);
	--ab-glass-border: rgba(255, 255, 255, 0.6);
	--ab-glass-blur: 16px;
	--ab-shadow-sm: 0 4px 16px rgba(0, 60, 100, 0.06);
	--ab-shadow-md: 0 12px 32px rgba(0, 60, 100, 0.10);
	--ab-shadow-lg: 0 24px 60px rgba(0, 60, 100, 0.16);

	--ab-radius-sm: 12px;
	--ab-radius-md: 20px;
	--ab-radius-lg: 32px;
	--ab-radius-pill: 999px;

	--ab-font-display: 'Sora', 'Segoe UI', sans-serif;
	--ab-font-body: 'Inter', 'Segoe UI', sans-serif;

	--ab-gradient-hero: linear-gradient(135deg, #00AEEF 0%, #0077B6 45%, #003C64 100%);
	--ab-gradient-soft: linear-gradient(135deg, rgba(0,174,239,0.12), rgba(0,60,100,0.08));

	--ab-container: 1240px;
	--ab-transition: 0.35s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
	--ab-bg: #061A28;
	--ab-bg-alt: #0B2436;
	--ab-text: #EAF4FB;
	--ab-text-muted: #9FC0D2;
	--ab-border: rgba(255, 255, 255, 0.08);

	--ab-glass-bg: rgba(11, 36, 54, 0.55);
	--ab-glass-border: rgba(255, 255, 255, 0.08);
	--ab-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
	--ab-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
	--ab-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ab-font-body);
	background: var(--ab-bg);
	color: var(--ab-text);
	line-height: 1.6;
	font-size: 16px;
	transition: background var(--ab-transition), color var(--ab-transition);
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ab-font-display);
	color: var(--ab-text);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}

p { margin: 0 0 1em; color: var(--ab-text-muted); }
a { color: var(--ab-primary); text-decoration: none; transition: color var(--ab-transition); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px; width: 1px;
	word-wrap: normal !important;
}
.skip-link {
	position: fixed; top: -100px; left: 1rem; z-index: 9999;
	background: var(--ab-deep); color: #fff; padding: 0.75rem 1.25rem;
	border-radius: var(--ab-radius-sm);
	transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--ab-primary); outline-offset: 2px; }

/* ---------- 3. Layout ---------- */
.ab-container {
	max-width: var(--ab-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}
.ab-page-narrow { max-width: 860px; }
.ab-section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { .ab-section { padding: 6rem 0; } }

.ab-section-heading { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.ab-section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ab-section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }

.ab-eyebrow {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--ab-primary-dark); background: rgba(0,174,239,0.12);
	padding: 0.35rem 0.9rem; border-radius: var(--ab-radius-pill); margin-bottom: 0.75rem;
}

/* ---------- 4. Glassmorphism ---------- */
.glass-card {
	background: var(--ab-glass-bg);
	backdrop-filter: blur(var(--ab-glass-blur)) saturate(160%);
	-webkit-backdrop-filter: blur(var(--ab-glass-blur)) saturate(160%);
	border: 1px solid var(--ab-glass-border);
	border-radius: var(--ab-radius-md);
	box-shadow: var(--ab-shadow-sm);
	transition: transform var(--ab-transition), box-shadow var(--ab-transition);
}
.glass-card:hover { box-shadow: var(--ab-shadow-md); }

/* ---------- 5. Buttons ---------- */
.ab-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-family: var(--ab-font-display); font-weight: 600; font-size: 0.95rem;
	padding: 0.85rem 1.6rem; border-radius: var(--ab-radius-pill);
	border: none; cursor: pointer; transition: all var(--ab-transition);
	white-space: nowrap;
}
.ab-btn-primary {
	background: var(--ab-gradient-hero); color: #fff;
	box-shadow: 0 8px 24px rgba(0,174,239,0.35);
}
.ab-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,174,239,0.45); color: #fff; }
.ab-btn-glass {
	background: var(--ab-glass-bg); color: var(--ab-text);
	border: 1px solid var(--ab-glass-border); backdrop-filter: blur(10px);
}
.ab-btn-glass:hover { transform: translateY(-2px); color: var(--ab-primary-dark); }
.ab-btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- 6. Header ---------- */
.ab-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ab-glass-bg);
	backdrop-filter: blur(var(--ab-glass-blur));
	-webkit-backdrop-filter: blur(var(--ab-glass-blur));
	border-bottom: 1px solid var(--ab-border);
}
.ab-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; gap: 1rem; }
.ab-logo-text { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--ab-font-display); font-weight: 800; font-size: 1.2rem; color: var(--ab-deep); }
[data-theme="dark"] .ab-logo-text { color: var(--ab-white); }
.ab-logo-icon { width: 26px; height: 26px; color: var(--ab-primary); }

.ab-primary-nav { display: none; }
.ab-nav-menu { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.ab-nav-menu a { color: var(--ab-text); font-weight: 600; font-size: 0.95rem; }
.ab-nav-menu a:hover, .ab-nav-menu .current-menu-item > a { color: var(--ab-primary); }

.ab-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.ab-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent;
	color: var(--ab-text); cursor: pointer; transition: background var(--ab-transition);
}
.ab-icon-btn:hover { background: rgba(0,174,239,0.12); }
.ab-icon { width: 20px; height: 20px; }
.ab-cart-count {
	position: absolute; top: 2px; right: 2px; background: var(--ab-primary); color: #fff;
	font-size: 0.65rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.ab-header-cta { display: none; }
@media (min-width: 992px) { .ab-header-cta { display: inline-flex; } }

.mode-toggle { position: relative; width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: var(--ab-text); }
.mode-toggle-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity var(--ab-transition), transform var(--ab-transition); }
.icon-sun::before { content: "☀"; font-size: 1.1rem; }
.icon-moon::before { content: "☾"; font-size: 1.1rem; }
[data-theme="light"] .icon-moon, [data-theme="dark"] .icon-sun { opacity: 0; transform: scale(0.5) rotate(90deg); position: absolute; }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { opacity: 1; }

.ab-menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.ab-menu-toggle span { width: 20px; height: 2px; background: var(--ab-text); border-radius: 2px; }
@media (min-width: 992px) { .ab-menu-toggle { display: none; } }

.ab-search-panel { max-height: 0; overflow: hidden; transition: max-height var(--ab-transition); }
.ab-search-panel:not([hidden]) { max-height: 100px; padding: 0.75rem 0; }
.ab-search-form { display: flex; align-items: center; gap: 0.5rem; background: var(--ab-bg-alt); border-radius: var(--ab-radius-pill); padding: 0.4rem 0.4rem 0.4rem 1rem; border: 1px solid var(--ab-border); }
.ab-search-field { border: none; background: transparent; flex: 1; font-family: var(--ab-font-body); font-size: 0.95rem; color: var(--ab-text); outline: none; }

@media (max-width: 991px) {
	.ab-primary-nav {
		position: fixed; inset: 0; top: 68px; background: var(--ab-bg-alt);
		display: flex; flex-direction: column; padding: 2rem 1.5rem; transform: translateX(100%);
		transition: transform var(--ab-transition); z-index: 99;
	}
	.ab-primary-nav.is-open { display: flex; transform: translateX(0); }
	.ab-nav-menu { flex-direction: column; gap: 1.25rem; }
}
@media (min-width: 992px) { .ab-primary-nav { display: block; } }

/* ---------- 7. Ripple Background ---------- */
.ab-ripple-bg { position: fixed; inset: 0; z-index: -1; background: var(--ab-bg); overflow: hidden; }
.ab-ripple-bg::before, .ab-ripple-bg::after {
	content: ""; position: absolute; border-radius: 50%;
	background: radial-gradient(circle, rgba(0,174,239,0.18), transparent 70%);
	animation: ab-drift 18s ease-in-out infinite alternate;
}
.ab-ripple-bg::before { width: 60vw; height: 60vw; top: -20vw; left: -15vw; }
.ab-ripple-bg::after { width: 50vw; height: 50vw; bottom: -20vw; right: -10vw; animation-delay: -6s; }
@keyframes ab-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(4%, 6%) scale(1.08); } }

/* ---------- 8. Hero ---------- */
.ab-hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.ab-hero-gradient { position: absolute; inset: 0; background: var(--ab-gradient-soft); z-index: -1; }
.ab-ripple-rings { position: absolute; right: -10%; top: 10%; width: 500px; height: 500px; z-index: -1; }
.ab-ripple-rings span { position: absolute; inset: 0; border: 1px solid rgba(0,174,239,0.25); border-radius: 50%; animation: ab-ripple 4s ease-out infinite; }
.ab-ripple-rings span:nth-child(2) { animation-delay: 1.3s; }
.ab-ripple-rings span:nth-child(3) { animation-delay: 2.6s; }
@keyframes ab-ripple { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.4); opacity: 0; } }

.ab-hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .ab-hero-inner { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }

.ab-hero-title { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--ab-deep); }
[data-theme="dark"] .ab-hero-title { color: var(--ab-white); }
.ab-hero-subtitle { font-size: 1.1rem; max-width: 520px; }
.ab-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0; }
.ab-hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--ab-text-muted); }
.ab-hero-trust-item { display: flex; align-items: center; gap: 0.4rem; }

.ab-hero-visual { position: relative; display: flex; justify-content: center; }
.ab-hero-image-wrap { width: 100%; max-width: 420px; animation: ab-float 6s ease-in-out infinite; }
@keyframes ab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.ab-hero-illustration { width: 100%; }

.ab-hero-floating-card {
	position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem;
	z-index: 2; font-size: 0.85rem; animation: ab-float 5s ease-in-out infinite;
}
.ab-hero-floating-card strong { display: block; font-size: 0.85rem; }
.ab-hero-floating-card span { color: var(--ab-text-muted); font-size: 0.78rem; }
.ab-float-1 { top: 5%; left: -5%; animation-delay: 0.4s; }
.ab-float-2 { bottom: 8%; right: -6%; animation-delay: 1.2s; }
@media (max-width: 767px) { .ab-hero-floating-card { display: none; } }

/* ---------- 9. Feature Cards ---------- */
.ab-features-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ab-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ab-features-grid { grid-template-columns: repeat(3, 1fr); } }

.ab-feature-card { padding: 2rem; opacity: 0; animation: ab-fade-up 0.6s ease forwards; animation-delay: var(--ab-delay, 0s); }
.ab-feature-icon { width: 52px; height: 52px; border-radius: var(--ab-radius-sm); background: var(--ab-gradient-hero); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 1rem; }
.ab-feature-icon .ab-icon { width: 26px; height: 26px; }
@keyframes ab-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 10. Filtration Timeline ---------- */
.ab-filtration-timeline { position: relative; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ab-filtration-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ab-filtration-timeline { grid-template-columns: repeat(3, 1fr); } }
.ab-filtration-line { display: none; }
.ab-filtration-step { padding: 1.75rem; opacity: 0; animation: ab-fade-up 0.6s ease forwards; animation-delay: var(--ab-delay, 0s); }
.ab-filtration-step-number { font-family: var(--ab-font-display); font-weight: 800; color: var(--ab-primary); font-size: 0.85rem; letter-spacing: 0.05em; }
.ab-filtration-note { text-align: center; margin-top: 2rem; font-size: 0.9rem; }

/* ---------- 11. How It Works ---------- */
.ab-how-steps { display: grid; gap: 2rem; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 768px) { .ab-how-steps { grid-template-columns: repeat(4, 1fr); } }
.ab-how-step { opacity: 0; animation: ab-fade-up 0.6s ease forwards; animation-delay: var(--ab-delay, 0s); }
.ab-how-step-badge { position: relative; width: 80px; height: 80px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; color: var(--ab-primary); }
.ab-how-step-badge .ab-icon { width: 32px; height: 32px; }
.ab-how-step-index { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ab-gradient-hero); color: #fff; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- 12. Product Grid ---------- */
.ab-product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
@media (min-width: 640px) { .ab-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .ab-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ab-shop-results { min-width: 0; }

/* The Shop archive uses WooCommerce's own woocommerce_product_loop_start()/
   _end(), which prints a <ul class="products"> directly — style it as the
   grid itself (no wrapping div involved, so there's no double-grid nesting).
   minmax(0, 1fr) instead of bare 1fr is required here: nested grids default
   their tracks' minimum size to content's min-content, which can make a
   1fr track collapse to a fraction of the available width instead of
   filling it. minmax(0, 1fr) forces it to actually fill the container. */
.ab-shop-results ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	width: 100%;
	min-width: 0;
}
@media (min-width: 640px) { .ab-shop-results ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .ab-shop-results ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab-shop-results ul.products > .ab-product-card { margin: 0; min-width: 0; }

.ab-product-card { display: flex; flex-direction: column; overflow: hidden; position: relative; min-width: 0; }
.ab-product-card-media { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--ab-radius-md) var(--ab-radius-md) 0 0; }
.ab-product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ab-product-card:hover .ab-product-card-media img { transform: scale(1.06); }
.ab-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; z-index: 2; }
.ab-badge { font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: var(--ab-radius-pill); color: #fff; text-transform: uppercase; letter-spacing: 0.03em; }
.ab-badge-sale { background: #E63946; }
.ab-badge-featured { background: var(--ab-primary); }
.ab-badge-lowstock { background: #F4A300; }
.ab-wishlist-btn, .ab-quickview-btn {
	position: absolute; z-index: 2; background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
	border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
	cursor: pointer; color: var(--ab-deep); transition: transform var(--ab-transition), color var(--ab-transition);
}
.ab-wishlist-btn { top: 0.75rem; right: 0.75rem; }
.ab-wishlist-btn.is-active, .ab-wishlist-btn:hover { color: #E63946; transform: scale(1.1); }
.ab-quickview-btn { position: static; width: auto; border-radius: var(--ab-radius-pill); padding: 0.5rem 0.9rem; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; }
.ab-quickview-btn .ab-icon { width: 16px; height: 16px; }

.ab-product-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.ab-product-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ab-primary-dark); font-weight: 700; }
.ab-product-title { font-size: 1rem; margin: 0; }
.ab-product-title a { color: var(--ab-text); }
.ab-product-price { font-family: var(--ab-font-display); font-weight: 700; color: var(--ab-deep); }
[data-theme="dark"] .ab-product-price { color: var(--ab-white); }
.ab-product-price del { color: var(--ab-text-muted); font-weight: 400; opacity: 0.7; margin-right: 0.4rem; }
.ab-product-price ins { text-decoration: none; }
.ab-product-card-actions { margin-top: auto; }
.ab-product-card-actions a.button, .ab-add-to-cart-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	background: var(--ab-gradient-hero); color: #fff; border: none; border-radius: var(--ab-radius-pill);
	padding: 0.65rem 1rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: transform var(--ab-transition);
}
.ab-product-card-actions a.button:hover { transform: translateY(-2px); color: #fff; }
.ab-product-card-actions a.button.loading { opacity: 0.6; pointer-events: none; }

/* ---------- 13. Testimonials ---------- */
.ab-testimonials-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ab-testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.ab-testimonial-card { padding: 1.75rem; }
.ab-stars { display: inline-flex; gap: 2px; margin-bottom: 0.75rem; }
.ab-star { width: 16px; height: 16px; color: var(--ab-border); }
.ab-star .ab-icon { width: 16px; height: 16px; fill: currentColor; }
.ab-star.is-filled { color: #F4A300; }
.ab-testimonial-text { font-style: italic; }
.ab-testimonial-author { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ab-testimonial-avatar, .ab-avatar-fallback { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.ab-avatar-fallback { background: var(--ab-gradient-hero); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ab-testimonial-author strong { display: block; font-size: 0.9rem; }
.ab-testimonial-author span { font-size: 0.78rem; color: var(--ab-text-muted); }
.ab-verified-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; font-weight: 700; color: #1E9E62; background: rgba(30,158,98,0.12); padding: 0.25rem 0.55rem; border-radius: var(--ab-radius-pill); }
.ab-verified-badge .ab-icon { width: 12px; height: 12px; }

/* ---------- 14. Stats ---------- */
.ab-stats-section { background: var(--ab-gradient-hero); border-radius: var(--ab-radius-lg); margin: 0 1.25rem; padding: 3rem 1.5rem; }
@media (min-width: 992px) { .ab-stats-section { margin: 0 auto; max-width: var(--ab-container); } }
.ab-stats-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 768px) { .ab-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.ab-stat-number { display: block; font-family: var(--ab-font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.ab-stat-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ---------- 15. App Download ---------- */
.ab-app-inner { display: flex; flex-direction: column; gap: 2rem; align-items: center; padding: 2.5rem; text-align: center; }
@media (min-width: 768px) { .ab-app-inner { flex-direction: row; justify-content: space-between; text-align: left; padding: 3rem; } }
.ab-app-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; justify-content: center; }
@media (min-width: 768px) { .ab-app-buttons { justify-content: flex-start; } }
.ab-app-btn { display: flex; flex-direction: column; background: var(--ab-deep); color: #fff; padding: 0.6rem 1.4rem; border-radius: var(--ab-radius-sm); }
.ab-app-btn-label { font-size: 0.68rem; opacity: 0.8; }
.ab-app-btn strong { font-family: var(--ab-font-display); }
.ab-app-btn-disabled { opacity: 0.5; cursor: not-allowed; }
.ab-qr-frame { width: 120px; height: 120px; padding: 10px; background: #fff; border-radius: var(--ab-radius-sm); margin: 0 auto; }
.ab-app-qr { text-align: center; font-size: 0.8rem; color: var(--ab-text-muted); }

/* ---------- 16. Footer ---------- */
.ab-footer { position: relative; background: var(--ab-deep); color: rgba(255,255,255,0.85); margin-top: 4rem; padding-top: 2rem; }
.ab-footer-wave { position: absolute; top: -1px; left: 0; width: 100%; transform: translateY(-99%); line-height: 0; }
.ab-footer-wave svg { width: 100%; height: 80px; fill: var(--ab-deep); }
.ab-footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding: 2rem 1.25rem; }
@media (min-width: 768px) { .ab-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.ab-footer h4, .footer-widget-title { color: #fff; font-size: 1rem; }
.ab-footer-logo { color: #fff; margin-bottom: 1rem; }
.ab-social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.ab-social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.ab-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ab-footer-menu a { color: rgba(255,255,255,0.8); }
.ab-footer-menu a:hover { color: #fff; }
.ab-footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.ab-newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.ab-newsletter-form input { flex: 1; min-width: 140px; padding: 0.7rem 1rem; border-radius: var(--ab-radius-pill); border: none; }
.ab-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.25rem; text-align: center; font-size: 0.82rem; }

/* ---------- 17. Blog / Page / 404 ---------- */
.ab-page-header { margin: 2rem 0 1.5rem; }
.ab-page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ab-page-content { padding: 2rem; margin-bottom: 2rem; }
.ab-page-featured-image { overflow: hidden; margin-bottom: 2rem; }
.ab-blog-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 768px) { .ab-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.ab-blog-card { overflow: hidden; }
.ab-blog-card-body { padding: 1.5rem; }
.ab-blog-card-date { font-size: 0.78rem; color: var(--ab-text-muted); }
.ab-breadcrumbs ol { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 1.5rem 0 0; font-size: 0.85rem; color: var(--ab-text-muted); flex-wrap: wrap; }
.ab-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; }
.ab-link-arrow { font-weight: 600; }
.ab-404-content { text-align: center; padding: 4rem 0; }
.ab-404-icon .ab-icon { width: 64px; height: 64px; color: var(--ab-primary); margin: 0 auto 1rem; }
.ab-comments-wrap { padding: 2rem; }

/* ---------- 18. Shop Page ---------- */
.ab-shop-header { margin: 2rem 0; }
.ab-shop-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; min-width: 0; }
@media (min-width: 992px) { .ab-shop-layout { grid-template-columns: 280px minmax(0, 1fr); } }
.ab-shop-filters { padding: 1.5rem; align-self: start; position: sticky; top: 90px; }
.ab-shop-search { display: flex; align-items: center; gap: 0.5rem; background: var(--ab-bg-alt); border: 1px solid var(--ab-border); border-radius: var(--ab-radius-pill); padding: 0.5rem 1rem; margin-bottom: 1.5rem; }
.ab-shop-search input { border: none; background: transparent; flex: 1; outline: none; color: var(--ab-text); }
.ab-category-filter { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ab-category-filter a { color: var(--ab-text-muted); font-weight: 500; font-size: 0.92rem; }
.ab-category-filter li.is-active a, .ab-category-filter a:hover { color: var(--ab-primary); font-weight: 700; }
.ab-shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.ab-result-count { margin: 0; font-size: 0.85rem; }
.ab-shop-sort select { border-radius: var(--ab-radius-pill); border: 1px solid var(--ab-border); padding: 0.5rem 1rem; background: var(--ab-bg-alt); color: var(--ab-text); }
.ab-pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.ab-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 0.2rem; border-radius: 50%; background: var(--ab-bg-alt); color: var(--ab-text); border: 1px solid var(--ab-border); }
.ab-pagination .page-numbers.current { background: var(--ab-gradient-hero); color: #fff; border: none; }

/* ---------- 19. Single Product ---------- */
.ab-product-hero { display: grid; gap: 2rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 992px) { .ab-product-hero { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.ab-product-gallery-wrap, .ab-product-summary-wrap { padding: 1.5rem; }
.ab-product-summary-wrap { position: sticky; top: 90px; }
.ab-product-summary .price { font-family: var(--ab-font-display); font-size: 1.8rem; font-weight: 800; color: var(--ab-deep); }
[data-theme="dark"] .ab-product-summary .price { color: var(--ab-white); }
.ab-delivery-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ab-border); }
.ab-delivery-info-item { display: flex; align-items: center; gap: 0.75rem; }
.ab-delivery-info-item .ab-icon { width: 28px; height: 28px; color: var(--ab-primary); flex-shrink: 0; }
.ab-delivery-info-item strong { display: block; font-size: 0.9rem; }
.ab-delivery-info-item span { font-size: 0.8rem; color: var(--ab-text-muted); }
.ab-product-tabs-wrap { padding: 1.5rem; margin: 2rem 0; }
.ab-related-products { margin-top: 3rem; }

/* ---------- 20. Cart Page ---------- */
.ab-cart-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 992px) { .ab-cart-layout { grid-template-columns: 1fr 360px; } }
.ab-cart-items { padding: 1.5rem; }
.ab-cart-row { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--ab-border); }
.ab-cart-row-media img { border-radius: var(--ab-radius-sm); width: 60px; height: 60px; object-fit: cover; }
.ab-cart-row-details { grid-column: 2; }
.ab-cart-row-qty, .ab-cart-row-subtotal, .ab-cart-row-remove { grid-column: 2; justify-self: start; }
@media (min-width: 640px) {
	.ab-cart-row { grid-template-columns: 70px 2fr 1fr 1fr 40px; }
	.ab-cart-row-details, .ab-cart-row-qty, .ab-cart-row-subtotal, .ab-cart-row-remove { grid-column: auto; }
}
.ab-cart-row-qty input { width: 70px; border-radius: var(--ab-radius-sm); border: 1px solid var(--ab-border); padding: 0.4rem; text-align: center; }
.ab-cart-remove-btn { color: #E63946; font-size: 1.3rem; }
.ab-cart-actions-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.ab-coupon-field { display: flex; gap: 0.5rem; flex: 1; }
.ab-coupon-field input { border-radius: var(--ab-radius-pill); border: 1px solid var(--ab-border); padding: 0.65rem 1rem; flex: 1; min-width: 140px; background: var(--ab-bg-alt); color: var(--ab-text); }
.ab-cart-summary { padding: 1.5rem; align-self: start; position: sticky; top: 90px; }
.ab-delivery-estimate { display: flex; align-items: center; gap: 0.6rem; background: rgba(0,174,239,0.1); padding: 0.85rem 1rem; border-radius: var(--ab-radius-sm); font-size: 0.85rem; margin: 1rem 0; }
.ab-delivery-estimate .ab-icon { width: 20px; height: 20px; color: var(--ab-primary); }
.ab-checkout-btn { width: 100%; margin-top: 0.5rem; }

/* ---------- 21. Checkout ---------- */
.ab-checkout-progress { display: flex; justify-content: center; gap: 2rem; margin: 1.5rem 0 2.5rem; }
.ab-checkout-progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--ab-text-muted); }
.ab-checkout-progress-step span { width: 32px; height: 32px; border-radius: 50%; background: var(--ab-bg-alt); border: 2px solid var(--ab-border); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ab-checkout-progress-step.is-active span, .ab-checkout-progress-step.is-done span { background: var(--ab-gradient-hero); color: #fff; border: none; }
.ab-checkout-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .ab-checkout-layout { grid-template-columns: 1fr 380px; } }
.ab-checkout-block { padding: 1.75rem; margin-bottom: 1.5rem; }
.ab-checkout-summary { align-self: start; position: sticky; top: 90px; }

/* ---------- 22. My Account ---------- */
.ab-account-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 992px) { .ab-account-layout { grid-template-columns: 280px 1fr; } }
.ab-account-sidebar { padding: 0; align-self: stretch; }
.ab-account-sidebar-inner { padding: 1.5rem; position: sticky; top: 90px; }
.ab-account-user { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ab-border); }
.ab-account-user img { border-radius: 50%; }
.ab-account-user strong { display: block; font-size: 0.9rem; }
.ab-account-user span { font-size: 0.78rem; color: var(--ab-text-muted); }
.ab-account-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ab-account-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: var(--ab-radius-sm); color: var(--ab-text-muted); font-weight: 600; font-size: 0.9rem; }
.ab-account-nav .ab-icon { width: 18px; height: 18px; }
.ab-account-nav li.is-active a, .ab-account-nav a:hover { background: rgba(0,174,239,0.12); color: var(--ab-primary-dark); }
.ab-account-content { padding: 2rem; }

/* WooCommerce's default My Account content (orders, addresses, downloads,
   account details) has no styling of its own once woocommerce-general.css
   is dequeued — style its standard classes directly so every account
   sub-page matches the theme without needing individual template overrides. */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 { font-size: 1.3rem; margin-bottom: 1rem; }

.woocommerce-orders-table,
.woocommerce-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.woocommerce-orders-table thead th {
	text-align: left; font-family: var(--ab-font-display); font-size: 0.8rem;
	text-transform: uppercase; letter-spacing: 0.03em; color: var(--ab-text-muted);
	padding: 0.85rem 1rem; border-bottom: 2px solid var(--ab-border);
}
.woocommerce-orders-table tbody td {
	padding: 1rem; border-bottom: 1px solid var(--ab-border); font-size: 0.92rem; vertical-align: middle;
}
.woocommerce-orders-table tbody tr:hover { background: rgba(0,174,239,0.05); }
.woocommerce-orders-table__cell-order-number a { font-weight: 700; }
.woocommerce-orders-table__cell-order-status { text-transform: capitalize; }
.woocommerce-orders-table__cell-order-status mark {
	background: rgba(0,174,239,0.12); color: var(--ab-primary-dark); font-weight: 700;
	padding: 0.25rem 0.7rem; border-radius: var(--ab-radius-pill); font-size: 0.78rem;
}
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-Button, .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	background: var(--ab-gradient-hero); color: #fff; border: none; border-radius: var(--ab-radius-pill);
	padding: 0.55rem 1.1rem; font-weight: 600; font-size: 0.82rem; cursor: pointer;
	transition: transform var(--ab-transition); text-decoration: none;
}
.woocommerce-orders-table__cell-order-actions .button:hover, .button:hover { transform: translateY(-2px); color: #fff; }
.woocommerce-orders-table__cell-order-actions .view { background: var(--ab-glass-bg); color: var(--ab-primary-dark); border: 1px solid var(--ab-border); box-shadow: none; }

.woocommerce-Addresses { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .woocommerce-Addresses { grid-template-columns: repeat(2, 1fr); } }
.woocommerce-Address { padding: 1.5rem; border: 1px solid var(--ab-border); border-radius: var(--ab-radius-md); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.woocommerce-Address-title h3 { margin: 0; font-size: 1.05rem; }

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row,
.woocommerce-form-row { margin-bottom: 1.1rem; }
.woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--ab-border); border-radius: var(--ab-radius-sm); padding: 1.25rem; margin-top: 1.5rem;
}
.woocommerce-EditAccountForm legend { padding: 0 0.5rem; font-weight: 700; font-size: 0.9rem; }

.woocommerce-MyAccount-downloads-table th, .woocommerce-MyAccount-downloads-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--ab-border); }

.woocommerce-message, .woocommerce-info { display: flex; align-items: center; gap: 0.6rem; }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; }

/* ---------- 23. Forms (WooCommerce inputs, unstyled by default) ---------- */
.woocommerce-form-row, .form-row { margin-bottom: 1.1rem; }
.form-row-first, .form-row-last { width: 48%; }
.form-row-first { float: left; clear: both; }
.form-row-last { float: right; }
.form-row-wide { width: 100%; clear: both; }
.form-row::after { content: ""; display: table; clear: both; }
@media (max-width: 480px) {
	.form-row-first, .form-row-last { width: 100%; float: none; }
}
.woocommerce-form-row label, .form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.woocommerce-input-wrapper input, .woocommerce-input-wrapper select, .woocommerce-input-wrapper textarea,
input.input-text, select, textarea, .select2-selection {
	width: 100%; padding: 0.75rem 1rem; border-radius: var(--ab-radius-sm); border: 1px solid var(--ab-border);
	background: var(--ab-bg-alt); color: var(--ab-text); font-family: var(--ab-font-body); font-size: 0.95rem;
}
input.input-text:focus, textarea:focus, select:focus { border-color: var(--ab-primary); outline: none; }

/* ---------- 24. Utility & Animation ---------- */
.ab-home-extra-content { padding: 2rem 0; }
.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-notice {
	list-style: none; padding: 1rem 1.5rem; border-radius: var(--ab-radius-sm); background: var(--ab-bg-alt);
	border-left: 4px solid var(--ab-primary); margin: 1.5rem 0;
}
.woocommerce-error { border-left-color: #E63946; }

/* ---------- 25. Quick View Modal ---------- */
.ab-quickview-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.ab-quickview-backdrop { position: absolute; inset: 0; background: rgba(0,20,35,0.55); backdrop-filter: blur(4px); }
.ab-quickview-content { position: relative; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ab-quickview-content { grid-template-columns: 1fr 1fr; } }
.ab-quickview-content .ab-product-card-media { border-radius: var(--ab-radius-md); }
.ab-quickview-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--ab-bg-alt); color: var(--ab-text); font-size: 1.2rem; cursor: pointer; z-index: 2; }

/* ---------- 26. Thank You / Order Received Page ---------- */
.ab-thankyou-page { padding: 2rem 0 3rem; max-width: 900px; margin: 0 auto; }
.ab-thankyou-hero { position: relative; text-align: center; padding: 3rem 2rem; overflow: hidden; }
.ab-thankyou-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 260px; height: 260px; z-index: 0; }
.ab-thankyou-icon {
	position: relative; z-index: 1; width: 76px; height: 76px; margin: 0 auto 1.25rem; border-radius: 50%;
	background: var(--ab-gradient-hero); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 32px rgba(0,174,239,0.35); animation: ab-pop-in 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
.ab-thankyou-icon .ab-icon { width: 36px; height: 36px; stroke-width: 2.4; }
.ab-thankyou-icon--failed { background: #E63946; font-size: 2.2rem; box-shadow: 0 12px 32px rgba(230,57,70,0.35); line-height: 1; }
@keyframes ab-pop-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ab-thankyou-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); position: relative; z-index: 1; }
.ab-thankyou-hero > p { max-width: 480px; margin: 0 auto 1.5rem; position: relative; z-index: 1; }
.ab-thankyou-hero .ab-eyebrow { position: relative; z-index: 1; }

.ab-thankyou-meta {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem;
	border-top: 1px solid var(--ab-border); text-align: left; position: relative; z-index: 1;
}
@media (min-width: 640px) { .ab-thankyou-meta { grid-template-columns: repeat(4, 1fr); } }
.ab-thankyou-meta-item span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ab-text-muted); margin-bottom: 0.25rem; }
.ab-thankyou-meta-item strong { font-family: var(--ab-font-display); font-size: 0.95rem; }

.ab-thankyou-steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 768px) { .ab-thankyou-steps { grid-template-columns: repeat(3, 1fr); } }
.ab-thankyou-step { padding: 1.5rem; text-align: center; }
.ab-thankyou-step .ab-icon { width: 30px; height: 30px; color: var(--ab-primary); margin-bottom: 0.75rem; }
.ab-thankyou-step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.ab-thankyou-step p { font-size: 0.85rem; margin: 0; }

.ab-thankyou-details { padding: 2rem; margin-bottom: 2rem; }
.ab-thankyou-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* WooCommerce's order/order-details.php partial (reused on Thank You +
   View Order in My Account) — style its default classes directly. */
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.woocommerce-table--order-details thead th {
	text-align: left; font-family: var(--ab-font-display); font-size: 0.78rem; text-transform: uppercase;
	letter-spacing: 0.03em; color: var(--ab-text-muted); padding: 0.75rem; border-bottom: 2px solid var(--ab-border);
}
.woocommerce-table--order-details tbody td, .woocommerce-table--order-details tfoot td, .woocommerce-table--order-details tfoot th {
	padding: 0.75rem; border-bottom: 1px solid var(--ab-border);
}
.woocommerce-table--order-details tfoot tr:last-child td, .woocommerce-table--order-details tfoot tr:last-child th { border-bottom: none; font-weight: 700; font-family: var(--ab-font-display); }
.woocommerce-customer-details { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 640px) { .woocommerce-customer-details { grid-template-columns: repeat(2, 1fr); } }
.woocommerce-customer-details address { font-style: normal; border: 1px solid var(--ab-border); border-radius: var(--ab-radius-sm); padding: 1.25rem; font-size: 0.9rem; line-height: 1.7; }
.woocommerce-customer-details h2 { font-size: 1rem; }

/* ---------- 27. Mobile refinements ---------- */
@media (max-width: 991.98px) {
	/* Sticky sidebars/panels make sense in multi-column desktop layouts but
	   just add awkward, hard-to-scroll-past chrome once everything stacks
	   into a single column on smaller screens — turn them off. */
	.ab-shop-filters,
	.ab-product-summary-wrap,
	.ab-cart-summary,
	.ab-checkout-summary,
	.ab-account-sidebar-inner {
		position: static;
		top: auto;
	}
}
@media (max-width: 639.98px) {
	.ab-section { padding: 3rem 0; }
	.ab-hero { padding: 2rem 0 2.5rem; }
	.ab-hero-ctas { flex-direction: column; align-items: stretch; }
	.ab-hero-ctas .ab-btn { width: 100%; }
	.ab-checkout-progress { gap: 1rem; }
	.ab-checkout-progress-step { font-size: 0.68rem; }
	.ab-thankyou-meta { grid-template-columns: 1fr 1fr; }
	.ab-thankyou-actions, .ab-cart-actions-row { flex-direction: column; align-items: stretch; }
	.ab-thankyou-actions .ab-btn, .ab-cart-actions-row .ab-btn { width: 100%; text-align: center; }
	.ab-coupon-field { flex-direction: column; }
	.ab-app-inner { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
