/* A1 Buds Core – shared front-end styles */

:root {
	--a1-brand-50: #ecfdf5;
	--a1-brand-100: #d1fae5;
	--a1-brand-400: #34d399;
	--a1-brand-500: #10b981;
	--a1-brand-600: #059669;
	--a1-brand-700: #047857;
	--a1-brand-900: #064e3b;
	--a1-slate-50: #f8fafc;
	--a1-slate-100: #f1f5f9;
	--a1-slate-200: #e2e8f0;
	--a1-slate-300: #cbd5e1;
	--a1-slate-400: #94a3b8;
	--a1-slate-500: #64748b;
	--a1-slate-600: #475569;
	--a1-slate-700: #334155;
	--a1-slate-800: #1e293b;
	--a1-slate-900: #0f172a;
	--a1-accent: var(--a1-brand-600);
	--a1-font: "Plus Jakarta Sans", sans-serif;
	--a1-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--a1-shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
	--a1-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html { scroll-behavior: smooth; }
body {
	background-color: #fafafa;
	color: var(--a1-slate-900);
	font-family: var(--a1-font);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.a1-lock { overflow: hidden; }

.a1-age-gate *, .a1-cart *, .a1-modal *, .a1-toast *, .a1-menu *, body.a1-checkout .woocommerce *, .a1-thankyou * { box-sizing: border-box; }
.a1-age-gate button, .a1-cart button, .a1-modal button, .a1-menu button, .a1-cart-btn, .a1-terms-link { font-family: inherit; cursor: pointer; }

@keyframes a1-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes a1-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes a1-ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* Buttons */
.a1-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 12px;
	padding: 12px 32px;
	font: 700 16px/24px var(--a1-font);
	text-decoration: none;
	transition: all 0.15s ease;
	cursor: pointer;
}
.a1-btn:active { transform: scale(0.98); }
.a1-btn--block { width: 100%; padding: 16px; }
.a1-btn--lg { font-size: 18px; line-height: 28px; padding: 16px 40px; }
.a1-btn--block.a1-btn--lg { padding: 16px; }
.a1-btn.a1-btn--primary { background: var(--a1-brand-600); color: #fff; box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.2), 0 4px 6px -4px rgba(5, 150, 105, 0.2); }
.a1-btn.a1-btn--primary:hover, .a1-btn.a1-btn--primary:focus { background: var(--a1-brand-700); color: #fff; }
.a1-btn.a1-btn--muted { background: var(--a1-slate-100); color: var(--a1-slate-600); font-weight: 600; }
.a1-btn.a1-btn--muted:hover { background: var(--a1-slate-200); color: var(--a1-slate-600); }
.a1-btn.a1-btn--dark { background: var(--a1-slate-900); color: #fff; box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2); }
.a1-btn.a1-btn--dark:hover, .a1-btn.a1-btn--dark:focus { background: var(--a1-slate-800); color: #fff; }
.a1-btn.is-disabled { opacity: 0.5; box-shadow: none; pointer-events: none; cursor: not-allowed; }

.a1-icon-btn {
	display: inline-flex;
	padding: 8px;
	border: 0;
	border-radius: 9999px;
	background: var(--a1-slate-50);
	color: var(--a1-slate-500);
	transition: background-color 0.15s, color 0.15s;
}
.a1-icon-btn:hover { background: var(--a1-slate-100); color: var(--a1-slate-700); }
.a1-icon-btn svg { width: 20px; height: 20px; }


/* Header cart button */
.a1-cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: var(--a1-slate-700);
	transition: background-color 0.15s, color 0.15s;
}
.a1-cart-btn:hover, .a1-cart-btn:focus { background: var(--a1-slate-100); color: var(--a1-brand-600); }
.a1-cart-btn svg { width: 24px; height: 24px; }
.a1-cart-btn__count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-radius: 9999px;
	background: var(--a1-brand-600);
	color: #fff;
	font: 700 12px/1 var(--a1-font);
	opacity: 0;
	transition: opacity 0.15s;
}
.a1-cart-btn__count.is-visible { opacity: 1; }

/* Product menu */
.a1-menu__head {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 48px;
}
.a1-menu__head > div:first-child { align-self: flex-start; }
@media (min-width: 768px) {
	.a1-menu__head { flex-direction: row; }
	.a1-menu__head > div:first-child { align-self: auto; }
}
.a1-menu__title { margin: 0 0 8px; font: 800 36px/40px var(--a1-font); letter-spacing: -0.025em; color: var(--a1-slate-900); }
.a1-menu__subtitle { margin: 0; font-weight: 500; font-size: 16px; line-height: 24px; color: var(--a1-slate-500); }
.a1-menu__filters {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 4px 8px;
	border-radius: 12px;
	background: var(--a1-slate-100);
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.a1-menu__filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .a1-menu__filters { width: auto; } }
.a1-filter {
	padding: 10px 24px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--a1-slate-600);
	font: 500 14px/20px var(--a1-font);
	white-space: nowrap;
	transition: color 0.15s;
}
.a1-filter:hover { color: var(--a1-slate-900); background: transparent; }
.a1-filter.is-active { background: #fff; color: var(--a1-accent); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

.a1-menu__grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 32px;
	min-height: 420px;
}
@media (min-width: 640px) { .a1-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .a1-menu__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.a1-menu__empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--a1-slate-500); font-weight: 500; }

.a1-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--a1-slate-100);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--a1-shadow-soft);
	transform: translateZ(0);
	backface-visibility: hidden;
	transition: transform 0.35s var(--a1-ease), box-shadow 0.35s var(--a1-ease);
	will-change: transform, box-shadow;
	opacity: 0;
	animation: a1-slide-up 0.4s var(--a1-ease) forwards;
}
.a1-card[hidden] { display: none; }
.a1-card:hover { transform: translateY(-6px) translateZ(0); box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.15); }
.elementor-editor-active .a1-card, .a1-card.is-static { opacity: 1; animation: none; }
.a1-card__media { position: relative; height: 224px; padding: 16px 16px 0; overflow: hidden; background: var(--a1-slate-50); }
.a1-card__media a { display: block; height: 100%; }
.a1-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
	transition: transform 0.5s;
}
.a1-card:hover .a1-card__media img { transform: scale(1.05); }
.a1-card__badge {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--a1-slate-800);
	font: 700 12px/16px var(--a1-font);
	letter-spacing: 0.025em;
	text-transform: uppercase;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.a1-card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px; }
.a1-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.a1-card__name { margin: 0; padding-right: 8px; font: 800 20px/1.25 var(--a1-font); color: var(--a1-slate-900); }
.a1-card .a1-card__name a { color: inherit; text-decoration: none; }
.a1-card .a1-card__name a:hover { color: var(--a1-accent); }
.a1-card__price {
	flex-shrink: 0;
	padding: 4px 12px;
	border-radius: 8px;
	background: var(--a1-slate-900);
	color: #fff;
	font: 700 18px/28px var(--a1-font);
	white-space: nowrap;
}
.a1-select, .a1-product .variations select {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 40px 12px 16px;
	border: 1px solid var(--a1-slate-200);
	border-radius: 12px;
	background-color: var(--a1-slate-50);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 1em;
	color: var(--a1-slate-700);
	font: 600 14px/20px var(--a1-font);
	outline: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s;
}
.a1-select:hover { border-color: var(--a1-slate-300); }
.a1-select:focus { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); border-color: var(--a1-brand-500); }
.a1-card__size {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 16px;
	padding: 6px 12px;
	border: 1px solid var(--a1-brand-100);
	border-radius: 8px;
	background: var(--a1-brand-50);
	color: var(--a1-brand-700);
	font: 700 12px/16px var(--a1-font);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.a1-card__desc { flex-grow: 1; margin-bottom: 24px; color: var(--a1-slate-500); font-size: 14px; font-weight: 500; line-height: 1.625; }
.a1-card__desc p { margin: 0; }
.a1-card__add {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	border: 0;
	border-radius: 12px;
	background: var(--a1-slate-100);
	color: var(--a1-slate-800);
	font: 700 16px/24px var(--a1-font);
	transition: all 0.15s;
}
.a1-card__add svg { width: 20px; height: 20px; color: var(--a1-slate-400); transition: color 0.15s; }
.a1-card__add:hover, .a1-card__add:focus { background: var(--a1-accent); color: #fff; }
.a1-card__add:hover svg, .a1-card__add:focus svg { color: #fff; }
.a1-card__add.is-loading { opacity: 0.6; pointer-events: none; }

/* Cart drawer */
.a1-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(15, 23, 42, 0.4);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s;
}
.a1-cart-overlay.is-open { opacity: 1; }
.a1-cart {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99991;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	box-shadow: var(--a1-shadow-2xl);
	transform: translateX(100%);
	transition: transform 0.4s ease-in-out;
	font-family: var(--a1-font);
}
@media (min-width: 640px) { .a1-cart { width: 450px; } }
.a1-cart.is-open { transform: translateX(0); }
.a1-cart__head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--a1-slate-100); }
.a1-cart__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 24px/32px var(--a1-font); color: var(--a1-slate-900); }
.a1-cart__head h2 svg { width: 24px; height: 24px; color: var(--a1-brand-600); }
.a1-cart__items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex-grow: 1;
	overflow-y: auto;
	padding: 24px;
	background: var(--a1-slate-50);
	scrollbar-width: none;
}
.a1-cart__items::-webkit-scrollbar { display: none; }
.a1-cart__items.is-busy { opacity: 0.6; pointer-events: none; }
.a1-cart__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 64px 0; color: var(--a1-slate-400); }
.a1-cart__empty-icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 8px; border-radius: 9999px; background: var(--a1-slate-100); }
.a1-cart__empty-icon svg { width: 40px; height: 40px; color: var(--a1-slate-300); }
.a1-cart__empty p { margin: 0; font-weight: 500; }
.a1-cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--a1-slate-100); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.a1-cart-item img { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.a1-cart-item__info { flex-grow: 1; min-width: 0; }
.a1-cart-item h4 { margin: 0 0 4px; font: 700 14px/1.25 var(--a1-font); color: var(--a1-slate-900); }
.a1-cart-item__price { color: var(--a1-brand-600); font: 800 14px/20px var(--a1-font); }
.a1-cart-item__price span { margin-left: 4px; padding: 2px 6px; border-radius: 4px; background: var(--a1-slate-100); color: var(--a1-slate-400); font-size: 12px; font-weight: 500; }
.a1-qty { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 4px; border: 1px solid var(--a1-slate-200); border-radius: 8px; background: var(--a1-slate-50); }
.a1-qty button { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--a1-slate-500); font: 700 16px/1 var(--a1-font); transition: all 0.15s; }
.a1-qty button:hover { background: var(--a1-slate-200); color: var(--a1-slate-900); }
.a1-qty span { width: 16px; text-align: center; color: var(--a1-slate-900); font: 700 14px/20px var(--a1-font); }
.a1-cart__foot { padding: 24px; border-top: 1px solid var(--a1-slate-100); background: #fff; box-shadow: 0 -10px 20px -10px rgba(0, 0, 0, 0.05); }
.a1-cart__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.a1-cart__total-label { color: var(--a1-slate-500); font: 600 14px/20px var(--a1-font); letter-spacing: 0.05em; text-transform: uppercase; }
.a1-cart__total-label span { font-weight: 400; letter-spacing: normal; text-transform: none; }
.a1-cart__total-value { color: var(--a1-slate-900); font: 800 30px/36px var(--a1-font); }

/* Toast */
.a1-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 16px 24px;
	border-radius: 12px;
	background: var(--a1-slate-900);
	color: #fff;
	font: 600 16px/24px var(--a1-font);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateX(-50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.a1-toast.is-visible { opacity: 1; }
.a1-toast.is-error .a1-toast__icon { background: #ef4444; }
.a1-toast__icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--a1-brand-500); }
.a1-toast__icon svg { width: 16px; height: 16px; }

/* Modal (terms) */
.a1-modal {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	background: rgba(15, 23, 42, 0.6);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 0.3s;
	font-family: var(--a1-font);
}
.a1-modal[hidden] { display: none; }
.a1-modal.is-open { opacity: 1; }
.a1-modal__box {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 512px;
	max-height: 100%;
	overflow: hidden;
	border-radius: 32px;
	background: #fff;
	box-shadow: var(--a1-shadow-2xl);
	transform: scale(0.95);
	transition: transform 0.3s;
}
.a1-modal.is-open .a1-modal__box { transform: scale(1); }
.a1-modal__box--wide { max-width: 768px; }
.a1-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--a1-slate-100); background: rgba(248, 250, 252, 0.5); }
.a1-modal__head h2 { margin: 0; font: 800 20px/28px var(--a1-font); color: var(--a1-slate-900); }
.a1-modal__head .a1-icon-btn { background: #fff; color: var(--a1-slate-400); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.a1-modal__head .a1-icon-btn:hover { color: var(--a1-slate-700); }
.a1-modal__body { flex-grow: 1; overflow-y: auto; padding: 32px; }
.a1-modal__foot { display: flex; justify-content: flex-end; padding: 24px; border-top: 1px solid var(--a1-slate-100); background: var(--a1-slate-50); }
.a1-modal__foot .a1-btn { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.a1-prose { color: var(--a1-slate-600); font-size: 14px; line-height: 1.625; }
.a1-prose p { margin: 0 0 1em; }
.a1-prose h3 { margin: 2em 0 0.75em; color: var(--a1-slate-900); font: 800 1.25rem/1.4 var(--a1-font); letter-spacing: -0.025em; }
.a1-prose > :first-child { margin-top: 0; }
.a1-prose strong { color: var(--a1-brand-700); }
.a1-prose .a1-pill { display: inline-block; padding: 4px 12px; border-radius: 4px; background: var(--a1-slate-100); color: var(--a1-slate-900); font-weight: 700; }

.a1-terms-link { padding: 0; border: 0; background: transparent; color: var(--a1-slate-500); font: 600 14px/20px var(--a1-font); transition: color 0.15s; }
.a1-terms-link:hover, .a1-terms-link:focus { background: transparent; color: var(--a1-brand-400); }

/* Checkout */
body.a1-checkout { background: var(--a1-slate-100); }
body.a1-checkout .a1-wc-main, body.a1-checkout .a1-site-main { max-width: 1040px; padding: 64px 16px 96px; }
body.a1-checkout .woocommerce { font-family: var(--a1-font); color: var(--a1-slate-900); }
body.a1-checkout .woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 32px;
	align-items: start;
}
@media (min-width: 900px) {
	body.a1-checkout .woocommerce form.checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	body.a1-checkout .woocommerce form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	body.a1-checkout .woocommerce form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin-top: 0; }
	body.a1-checkout .woocommerce form.checkout #order_review { grid-column: 2; grid-row: 3; }
}
body.a1-checkout .woocommerce form.checkout > .woocommerce-NoticeGroup,
body.a1-checkout .woocommerce form.checkout > .wc-block-components-notices { grid-column: 1 / -1; grid-row: 1; }
body.a1-checkout .woocommerce .col2-set { width: auto; float: none; margin: 0 0 32px; overflow: hidden; border-radius: 32px; background: #fff; box-shadow: var(--a1-shadow-2xl); }
body.a1-checkout .woocommerce .col2-set::before, body.a1-checkout .woocommerce .col2-set::after { display: none; }
body.a1-checkout .woocommerce .col2-set .col-1, body.a1-checkout .woocommerce .col2-set .col-2 { float: none; width: 100%; }
body.a1-checkout .woocommerce .col2-set .col-2:empty, body.a1-checkout .woocommerce .woocommerce-shipping-fields:empty, body.a1-checkout .woocommerce .woocommerce-additional-fields:empty { display: none; }
body.a1-checkout .woocommerce-billing-fields h3,
body.a1-checkout #order_review_heading {
	margin: 0;
	padding: 24px 32px;
	border-bottom: 1px solid var(--a1-slate-100);
	background: rgba(248, 250, 252, 0.5);
	font: 800 20px/28px var(--a1-font);
	color: var(--a1-slate-900);
}
body.a1-checkout #order_review_heading { border-radius: 32px 32px 0 0; background: #fbfcfd; box-shadow: var(--a1-shadow-2xl); clip-path: inset(-60px -60px 0 -60px); }
body.a1-checkout #order_review { margin-bottom: 32px; padding: 32px; border-radius: 0 0 32px 32px; background: #fff; box-shadow: var(--a1-shadow-2xl); clip-path: inset(0 -60px -60px -60px); }
body.a1-checkout .woocommerce-billing-fields__field-wrapper { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
body.a1-checkout .woocommerce form .form-row { float: none; width: 100%; margin: 0; padding: 0; }
body.a1-checkout .woocommerce form .form-row label { display: block; margin: 0 0 8px; color: var(--a1-slate-700); font: 700 14px/20px var(--a1-font); }
body.a1-checkout .woocommerce form .form-row .required { color: var(--a1-slate-400); text-decoration: none; }
body.a1-checkout .woocommerce form .form-row input.input-text,
body.a1-checkout .woocommerce form .form-row textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--a1-slate-200);
	border-radius: 12px;
	background: var(--a1-slate-50);
	color: var(--a1-slate-900);
	font: 500 16px/24px var(--a1-font);
	outline: none;
	resize: none;
	transition: border-color 0.15s, background-color 0.15s;
}
body.a1-checkout .woocommerce form .form-row textarea { height: auto; min-height: 0; }
body.a1-checkout .woocommerce form .form-row input.input-text::placeholder,
body.a1-checkout .woocommerce form .form-row textarea::placeholder { color: var(--a1-slate-400); }
body.a1-checkout .woocommerce form .form-row input.input-text:focus,
body.a1-checkout .woocommerce form .form-row textarea:focus { border-color: var(--a1-brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
body.a1-checkout .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.a1-checkout .woocommerce form .form-row.woocommerce-invalid textarea { border-color: #ef4444; }
body.a1-checkout .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--a1-slate-200); }
body.a1-checkout .woocommerce form .form-row.woocommerce-validated input.input-text:focus { border-color: var(--a1-brand-500); }

body.a1-checkout table.shop_table { width: 100%; margin: 0 0 24px; border: 0; border-collapse: collapse; border-radius: 0; font-size: 14px; }
body.a1-checkout table.shop_table th, body.a1-checkout table.shop_table td { padding: 12px 0; border: 0; border-top: 1px solid var(--a1-slate-100); background: transparent; color: var(--a1-slate-600); font-weight: 500; text-align: left; }
body.a1-checkout table.shop_table thead th { border-top: 0; padding-top: 0; color: var(--a1-slate-500); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
body.a1-checkout table.shop_table td:last-child, body.a1-checkout table.shop_table th:last-child { text-align: right; }
body.a1-checkout table.shop_table .product-name { color: var(--a1-slate-900); font-weight: 700; }
body.a1-checkout table.shop_table .product-name .variation, body.a1-checkout table.shop_table .product-quantity { color: var(--a1-slate-400); font-weight: 500; }
body.a1-checkout table.shop_table .variation { display: block; margin: 2px 0 0; font-size: 12px; }
body.a1-checkout table.shop_table .variation dt, body.a1-checkout table.shop_table .variation dd, body.a1-checkout table.shop_table .variation p { display: inline; margin: 0; float: none; }
body.a1-checkout table.shop_table .order-total th { color: var(--a1-slate-500); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
body.a1-checkout table.shop_table .order-total td { color: var(--a1-slate-900); font-size: 30px; font-weight: 800; line-height: 36px; }
body.a1-checkout table.shop_table .order-total td strong { font-weight: 800; }

body.a1-checkout #payment { border-radius: 0; background: transparent; }
body.a1-checkout #payment ul.payment_methods { margin: 0 0 16px; padding: 0; border: 0; }
body.a1-checkout.a1-single-gateway #payment ul.payment_methods { display: none; }
body.a1-checkout #payment div.form-row { margin: 0; padding: 0; }
body.a1-checkout #payment .woocommerce-privacy-policy-text { color: var(--a1-slate-500); font-size: 13px; }

.a1-notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--a1-brand-100); border-radius: 12px; background: var(--a1-brand-50); }
.a1-notice svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--a1-brand-600); }
.a1-notice p { margin: 0; color: var(--a1-brand-900); font: 500 14px/1.375 var(--a1-font); }
.a1-notice strong { color: var(--a1-brand-700); font-weight: 800; }
.a1-check { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 0; padding: 16px; border: 1px solid var(--a1-slate-100); border-radius: 12px; background: var(--a1-slate-50); color: var(--a1-slate-600); font: 500 14px/20px var(--a1-font); cursor: pointer; transition: border-color 0.15s; }
.a1-check:hover { border-color: var(--a1-slate-200); }
.a1-check input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.a1-check__box { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--a1-slate-300); border-radius: 4px; background: #fff; transition: all 0.15s; }
.a1-check__box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.a1-check input:checked + .a1-check__box { border-color: var(--a1-brand-600); background: var(--a1-brand-600); }
.a1-check input:checked + .a1-check__box svg { opacity: 1; }
.a1-check input:focus-visible + .a1-check__box { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }

body.a1-checkout #payment #place_order {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 32px;
	padding: 16px;
	border: 0;
	border-radius: 12px;
	background: var(--a1-brand-600);
	color: #fff;
	font: 800 18px/28px var(--a1-font);
	box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3), 0 4px 6px -4px rgba(5, 150, 105, 0.3);
	transition: all 0.15s;
}
body.a1-checkout #payment #place_order:hover { background: var(--a1-brand-700); }
body.a1-checkout #payment #place_order:active { transform: scale(0.98); }

body.a1-checkout .woocommerce-error, body.a1-checkout .woocommerce-info, body.a1-checkout .woocommerce-message {
	margin: 0 0 24px;
	padding: 16px 20px 16px 48px;
	border: 1px solid var(--a1-slate-200);
	border-radius: 12px;
	background: #fff;
	color: var(--a1-slate-700);
	font: 500 14px/20px var(--a1-font);
	list-style: none;
}
body.a1-checkout .woocommerce-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
body.a1-checkout .woocommerce-error::before, body.a1-checkout .woocommerce-info::before, body.a1-checkout .woocommerce-message::before { top: 16px; left: 18px; }
body.a1-checkout .woocommerce-info { border-top-color: var(--a1-brand-500); }
body.a1-checkout .woocommerce-info::before { color: var(--a1-brand-600); }
body.a1-checkout .woocommerce-info a, body.a1-checkout .woocommerce-message a { color: var(--a1-brand-700); font-weight: 700; }
body.a1-checkout .checkout_coupon { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 20px; border: 1px solid var(--a1-slate-200); border-radius: 16px; background: #fff; }
body.a1-checkout .checkout_coupon p:not(.form-row) { flex-basis: 100%; margin: 0; color: var(--a1-slate-500); font-size: 14px; }
body.a1-checkout .checkout_coupon .form-row-first { flex: 1 1 200px; }
body.a1-checkout .checkout_coupon .form-row-last { flex: 0 0 auto; width: auto; }
body.a1-checkout .checkout_coupon .clear { display: none; }
body.a1-checkout .checkout_coupon button.button { height: 100%; padding: 14px 24px; border-radius: 12px; background: var(--a1-slate-900); color: #fff; font: 700 14px/20px var(--a1-font); }
body.a1-checkout .checkout_coupon button.button:hover { background: var(--a1-slate-800); }
body.a1-checkout .cart-discount td, body.a1-checkout .cart-discount th { color: var(--a1-brand-700) !important; }

/* Order confirmation */
body.a1-checkout .woocommerce-order { max-width: 640px; margin: 0 auto; }
.a1-thankyou { display: flex; flex-direction: column; align-items: center; padding: 32px 0; text-align: center; font-family: var(--a1-font); animation: a1-fade-in 0.3s ease-out; }
.a1-thankyou__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; margin-bottom: 32px; border-radius: 9999px; background: var(--a1-brand-50); color: var(--a1-brand-600); }
.a1-thankyou__icon span { position: absolute; inset: 0; border: 4px solid var(--a1-brand-500); border-radius: 9999px; opacity: 0.2; animation: a1-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.a1-thankyou__icon svg { position: relative; width: 56px; height: 56px; }
.a1-thankyou h1 { margin: 0 0 16px; color: var(--a1-slate-900); font: 800 36px/40px var(--a1-font); letter-spacing: -0.025em; }
.a1-thankyou__text { max-width: 448px; margin: 0 0 40px; color: var(--a1-slate-500); font-size: 18px; font-weight: 500; line-height: 1.625; }
.a1-thankyou__summary { width: 100%; margin: 0 0 40px; padding: 24px; border: 1px solid var(--a1-slate-100); border-radius: 24px; background: #fff; text-align: left; box-shadow: var(--a1-shadow-soft); }
.a1-thankyou__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--a1-slate-500); font-size: 14px; font-weight: 500; }
.a1-thankyou__meta strong { color: var(--a1-slate-900); }
.a1-thankyou__summary ul { margin: 0 0 8px; padding: 0; list-style: none; }
.a1-thankyou__summary li, .a1-thankyou__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--a1-slate-100); color: var(--a1-slate-600); font-size: 14px; font-weight: 500; }
.a1-thankyou__summary li em { color: var(--a1-slate-400); font-style: normal; }
.a1-thankyou__summary li strong, .a1-thankyou__row strong { color: var(--a1-slate-900); text-align: right; }
.a1-thankyou__row--order_total strong { font-size: 20px; font-weight: 800; }

/* Single product */
.a1-product .woocommerce-product-gallery { margin: 0 !important; }
.a1-product .woocommerce-product-gallery__image img, .a1-product .flex-viewport { border-radius: 24px; }
.a1-product .flex-control-thumbs { display: flex; gap: 12px; margin: 12px 0 0 !important; }
.a1-product .flex-control-thumbs li { width: 80px !important; }
.a1-product .flex-control-thumbs img { border-radius: 12px; }
.a1-product form.cart { margin: 0; }
.a1-product .variations { width: 100%; margin: 0 0 8px; border: 0; }
.a1-product .variations th, .a1-product .variations td { display: block; padding: 0; border: 0; background: transparent; text-align: left; }
.a1-product .variations th label { display: block; margin: 0 0 8px; color: var(--a1-slate-700); font: 700 14px/20px var(--a1-font); }
.a1-product .variations select { min-width: 0; margin: 0; font-size: 16px; padding-top: 14px; padding-bottom: 14px; }
.a1-product .reset_variations { display: none !important; }
.a1-product .woocommerce-variation-price { margin: 0 0 16px; }
.a1-product .woocommerce-variation-price .price { color: var(--a1-slate-900) !important; font: 800 30px/36px var(--a1-font); }
.a1-product .woocommerce-variation-add-to-cart, .a1-product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 12px; }
.a1-product .quantity { margin: 0 !important; }
.a1-product .quantity .qty { width: 88px; height: 56px; padding: 0 8px; border: 1px solid var(--a1-slate-200); border-radius: 12px; background: var(--a1-slate-50); color: var(--a1-slate-900); font: 700 16px/24px var(--a1-font); text-align: center; }
.a1-product .single_add_to_cart_button {
	flex: 1 1 200px;
	height: 56px;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--a1-brand-600) !important;
	color: #fff !important;
	font: 700 18px/28px var(--a1-font) !important;
	box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.2);
	transition: background-color 0.15s;
}
.a1-product .single_add_to_cart_button:hover { background: var(--a1-brand-700) !important; }
.a1-product .single_add_to_cart_button.disabled { opacity: 0.5; }
.a1-product .single_add_to_cart_button.is-loading { opacity: 0.6; pointer-events: none; }

/* Popup checkout */
.a1-modal--checkout { align-items: flex-start; overflow-y: auto; padding: 80px 16px 40px; }
.a1-modal--checkout .a1-modal__box { max-height: none; margin: auto 0; }
.a1-checkout-form { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.a1-field label { display: block; margin: 0 0 8px; color: var(--a1-slate-700); font: 700 14px/20px var(--a1-font); }
.a1-field input, .a1-field textarea {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--a1-slate-200);
	border-radius: 12px;
	background: var(--a1-slate-50);
	color: var(--a1-slate-900);
	font: 500 16px/24px var(--a1-font);
	outline: none;
	resize: none;
	transition: border-color 0.15s, background-color 0.15s;
}
.a1-field input::placeholder, .a1-field textarea::placeholder { color: var(--a1-slate-400); }
.a1-field input:focus, .a1-field textarea:focus { border-color: var(--a1-brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
.a1-checkout-form .a1-notice, .a1-checkout-form .a1-check { margin: 0; }
.a1-form-errors { padding: 14px 16px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font: 500 14px/20px var(--a1-font); }
.a1-form-errors[hidden] { display: none; }
.a1-form-errors ul { margin: 0; padding: 0 0 0 18px; }
.a1-checkout-submit { gap: 8px; font-weight: 800; box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3), 0 4px 6px -4px rgba(5, 150, 105, 0.3); }
.a1-checkout-submit:disabled { opacity: 0.8; cursor: wait; }
.a1-spinner { display: none; width: 20px; height: 20px; animation: a1-spin 1s linear infinite; }
.a1-checkout-submit.is-loading .a1-spinner { display: block; }
@keyframes a1-spin { to { transform: rotate(360deg); } }

/* Popup order confirmation (full screen, like the original) */
.a1-confirm {
	position: fixed;
	inset: 0;
	z-index: 100003;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 16px;
	background: #fff;
	animation: a1-fade-in 0.3s ease-out forwards;
}
.a1-confirm .a1-thankyou { padding: 0; }

/* Blog archive cards (Elementor Pro Posts "Cards" skin) */
.a1-blog-grid .elementor-post__card {
	border: 1px solid var(--a1-slate-100);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--a1-shadow-soft);
	transition: transform 0.35s var(--a1-ease), box-shadow 0.35s var(--a1-ease);
}
.a1-blog-grid .elementor-post__card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.15); }
.a1-blog-grid .elementor-post__badge {
	margin: 20px !important;
	padding: 4px 12px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--a1-slate-800);
	font: 700 12px/16px var(--a1-font);
	letter-spacing: 0.025em;
	text-transform: uppercase;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.a1-blog-grid .elementor-post__text { padding: 0 28px; margin-top: 24px; }
.a1-blog-grid .elementor-post__title { margin-bottom: 12px; font: 800 20px/1.3 var(--a1-font); letter-spacing: -0.01em; }
.a1-blog-grid .elementor-post__title a { color: var(--a1-slate-900); }
.a1-blog-grid .elementor-post__title a:hover { color: var(--a1-brand-600); }
.a1-blog-grid .elementor-post__excerpt p { margin: 0 0 20px; color: var(--a1-slate-500); font: 500 15px/1.6 var(--a1-font); }
.a1-blog-grid .elementor-post__read-more { margin-bottom: 24px; color: var(--a1-brand-600); font: 700 14px/20px var(--a1-font); text-transform: none; }
.a1-blog-grid .elementor-post__read-more:hover { color: var(--a1-brand-700); }
.a1-blog-grid .elementor-post__meta-data { padding: 16px 28px; border-top: 1px solid var(--a1-slate-100); color: var(--a1-slate-400); font: 500 13px/20px var(--a1-font); }
.a1-blog-grid .elementor-pagination { margin-top: 56px; font: 700 15px/1 var(--a1-font); }
.a1-blog-grid .elementor-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0 4px; border-radius: 10px; color: var(--a1-slate-600); }
.a1-blog-grid .elementor-pagination .page-numbers.current { background: var(--a1-slate-900); color: #fff; }

/* Article body */
.a1-post-content h2 { margin: 1.8em 0 0.6em; color: var(--a1-slate-900); font: 800 26px/1.3 var(--a1-font); letter-spacing: -0.02em; }
.a1-post-content p { margin: 0 0 1.25em; }
.a1-post-content ul { margin: 0 0 1.5em; padding-left: 1.25em; }
.a1-post-content li { margin-bottom: 0.6em; padding-left: 0.25em; }
.a1-post-content li::marker { color: var(--a1-brand-500); }
.a1-post-content strong { color: var(--a1-slate-900); }
.a1-post-content blockquote {
	margin: 2em 0;
	padding: 20px 24px;
	border: 1px solid var(--a1-brand-100);
	border-left: 4px solid var(--a1-brand-500);
	border-radius: 12px;
	background: var(--a1-brand-50);
	color: var(--a1-brand-900);
	font-weight: 600;
}
.a1-post-content blockquote p { margin: 0; }
.a1-post-content a { color: var(--a1-brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* Previous / next post navigation */
.a1-post-nav .elementor-post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.a1-post-nav .elementor-post-navigation__separator-wrapper { display: none; }
.a1-post-nav .elementor-post-navigation__link { width: auto !important; }
.a1-post-nav .elementor-post-navigation__link a {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 24px;
	border: 1px solid var(--a1-slate-200);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--a1-shadow-soft);
	transition: border-color 0.2s, transform 0.35s var(--a1-ease), box-shadow 0.35s var(--a1-ease);
}
.a1-post-nav .elementor-post-navigation__link a:hover { border-color: var(--a1-brand-400); transform: translateY(-4px); box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.15); }
.a1-post-nav .elementor-post-navigation__next a { justify-content: flex-end; text-align: right; }
.a1-post-nav .post-navigation__arrow-wrapper { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 9999px; background: var(--a1-brand-50); }
.a1-post-nav .elementor-post-navigation__link__prev, .a1-post-nav .elementor-post-navigation__link__next { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a1-post-nav .elementor-post-navigation__link .post-navigation__prev--title,
.a1-post-nav .elementor-post-navigation__link .post-navigation__next--title { white-space: normal; overflow: visible; }
.a1-post-nav .elementor-post-navigation__link:empty { visibility: hidden; }
@media (max-width: 767px) {
	.a1-post-nav .elementor-post-navigation { grid-template-columns: 1fr; gap: 16px; }
	.a1-post-nav .elementor-post-navigation__link a { padding: 18px; }
}
/* Beats Elementor's .elementor-fit-height rule so every thumbnail covers the card. */
.a1-blog-grid .elementor-post__thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; }
