/* ==========================================================================
   HyväArabic — premium WooCommerce cart & checkout styling.
   Uses the same design tokens as the theme (colors, fonts, radius).
   ========================================================================== */

.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-account {
	background:
		radial-gradient(700px 320px at 90% -10%, color-mix(in srgb, var(--ha-accent) 16%, transparent), transparent 65%),
		var(--ha-surface);
}

/* Intro banner above the forms. */
.ha-checkout-intro {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-block: 18px 26px;
	padding: 20px 24px;
	border: 1px solid color-mix(in srgb, var(--ha-primary) 28%, var(--ha-border));
	border-radius: var(--ha-radius);
	background: linear-gradient(120deg, color-mix(in srgb, var(--ha-primary) 10%, var(--ha-card)), var(--ha-card));
	box-shadow: var(--ha-shadow);
}
.ha-checkout-intro__thumb {
	flex: 0 0 auto;
	width: 78px;
	height: 78px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: var(--ha-primary-soft);
	color: var(--ha-primary);
}
.ha-checkout-intro__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.ha-checkout-intro__text { flex: 1 1 260px; min-width: 0; }
.ha-checkout-intro__text h2 { margin: 0 0 4px; font-size: 1.15rem; font-family: var(--ha-font-heading); }
.ha-checkout-intro__text p { margin: 0; color: var(--ha-muted); font-size: .88rem; }
.ha-checkout-intro__price { font-size: 1.4rem; font-weight: 800; color: var(--ha-primary); white-space: nowrap; direction: ltr; }
.ha-checkout-intro__chips { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.ha-checkout-intro__chips span {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px; border-radius: 999px;
	background: var(--ha-card); border: 1px solid var(--ha-border);
	color: var(--ha-muted); font-size: .76rem; font-weight: 700;
}
.ha-checkout-intro__chips .ha-icon { color: var(--ha-primary); }

/* Checkout columns. */
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
	background: var(--ha-card);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	padding: 24px;
	box-shadow: var(--ha-shadow);
}
.woocommerce-checkout #order_review_heading { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.woocommerce-checkout #order_review { border-top-left-radius: 0; border-top-right-radius: 0; margin-bottom: 20px; }
.woocommerce-checkout .woocommerce-checkout-review-order-table { border: 0; margin: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
	background: var(--ha-primary-soft); color: var(--ha-primary-strong);
	font-family: var(--ha-font-heading); font-size: .9rem;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th { border-color: var(--ha-border); padding: 12px 10px; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th { font-weight: 700; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total strong { color: var(--ha-primary); font-size: 1.2rem; }

/* Form fields. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page select {
	border: 1px solid var(--ha-border) !important;
	border-radius: 12px !important;
	background: var(--ha-card) !important;
	color: var(--ha-ink) !important;
	padding: 12px 14px !important;
	min-height: 48px;
	box-shadow: none !important;
}
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--ha-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ha-primary) 16%, transparent) !important;
	outline: 0 !important;
}
.woocommerce form .form-row label { font-weight: 700; color: var(--ha-ink); margin-bottom: 6px; }
.woocommerce form .form-row .required { color: #e11d48; text-decoration: none; }

/* Payment methods as selectable cards. */
.woocommerce-checkout #payment { background: var(--ha-card); border: 1px solid var(--ha-border); border-radius: var(--ha-radius); padding: 0; overflow: hidden; }
.woocommerce-checkout #payment .payment_methods { border: 0; padding: 18px 24px; margin: 0; }
.woocommerce-checkout #payment .payment_methods li {
	border: 1px solid var(--ha-border) !important;
	border-radius: 14px !important;
	background: var(--ha-surface) !important;
	margin-bottom: 10px !important;
	padding: 14px 16px !important;
}
.woocommerce-checkout #payment .payment_methods li:last-child { margin-bottom: 0 !important; }
.woocommerce-checkout #payment .payment_methods li input[type="radio"] { margin-inline-end: 10px; accent-color: var(--ha-primary); width: 18px; height: 18px; }
.woocommerce-checkout #payment .payment_methods li label { font-weight: 800; font-size: .95rem; }
.woocommerce-checkout #payment .payment_methods li .payment_box {
	background: var(--ha-card) !important; border-radius: 10px; padding: 14px; margin-top: 12px;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .place-order {
	background: var(--ha-surface); border-top: 1px solid var(--ha-border);
	padding: 18px 24px; margin: 0;
}
.woocommerce-checkout #payment .place-order .button,
.woocommerce-cart .wc-proceed-to-checkout .button,
.woocommerce-account .woocommerce-MyAccount-content .button {
	background: linear-gradient(120deg, var(--ha-primary), var(--ha-primary-strong));
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font-family: var(--ha-font-button);
	font-weight: 800;
	font-size: .98rem;
	box-shadow: 0 12px 26px color-mix(in srgb, var(--ha-primary) 28%, transparent);
	transition: transform .2s var(--ha-ease), box-shadow .2s;
}
.woocommerce-checkout #payment .place-order .button:hover,
.woocommerce-cart .wc-proceed-to-checkout .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px color-mix(in srgb, var(--ha-primary) 35%, transparent);
	color: #fff !important;
}

/* Cart page. */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals .cart_totals {
	background: var(--ha-card);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	box-shadow: var(--ha-shadow);
	padding: 22px;
}
.woocommerce-cart table.cart thead th { background: var(--ha-primary-soft); color: var(--ha-primary-strong); font-family: var(--ha-font-heading); }
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th { border-color: var(--ha-border); padding: 14px 12px; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-family: var(--ha-font-heading); }
.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td { border-color: var(--ha-border); padding: 10px 0; }
.woocommerce-cart .cart-collaterals .cart_totals .order-total strong { color: var(--ha-primary); font-size: 1.3rem; }
.woocommerce-cart .product-name a { font-weight: 800; color: var(--ha-ink); }
.woocommerce-cart .woocommerce-remove-coupon { color: #e11d48; }

/* My Account. */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none; margin: 0; padding: 10px;
	background: var(--ha-card); border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius); box-shadow: var(--ha-shadow);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block; padding: 11px 14px; border-radius: 10px;
	font-weight: 700; color: var(--ha-muted); text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--ha-primary-soft); color: var(--ha-primary-strong); }
.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--ha-card); border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius); padding: 24px; box-shadow: var(--ha-shadow);
}

@media (max-width: 768px) {
	.ha-checkout-intro { padding: 16px; gap: 12px; }
	.ha-checkout-intro__thumb { width: 56px; height: 56px; }
	.woocommerce-checkout .col2-set,
	.woocommerce-checkout #order_review,
	.woocommerce-checkout #payment,
	.woocommerce-cart .woocommerce-cart-form,
	.woocommerce-cart .cart-collaterals .cart_totals { padding: 16px; }
	.woocommerce-checkout #payment .place-order .button,
	.woocommerce-cart .wc-proceed-to-checkout .button { width: 100%; }
}

/* ==========================================================================
   Addons store & product page
   ========================================================================== */
.ha-store-hero {
	position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) 0;
	color: #fff;
	background:
		radial-gradient(600px 300px at 88% 0%, rgba(244,183,64,.25), transparent 65%),
		linear-gradient(125deg, #052a24, #0e7c66 70%);
}
.ha-store-hero__aurora {
	position: absolute; inset-block-start: -180px; inset-inline-start: 20%;
	width: 620px; height: 620px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.12), transparent 68%);
	filter: blur(20px); pointer-events: none;
}
.ha-store-hero .ha-container { position: relative; z-index: 1; }
.ha-store-hero h1 { margin: 14px 0 8px; color: #fff; font-family: var(--ha-font-heading); font-size: clamp(2rem, 4vw, 3rem); }
.ha-store-hero p { max-width: 46em; margin: 0; color: rgba(255,255,255,.82); }
.ha-store-hero__points { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.ha-store-hero__points li { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; color: rgba(255,255,255,.9); }
.ha-store-hero__points .ha-icon { color: #ffd98a; }
.ha-store-hero .ha-hero-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }

.ha-store-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ha-store-cat {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 14px; border-radius: 999px;
	background: var(--ha-card); border: 1px solid var(--ha-border);
	font-size: .84rem; font-weight: 700; color: var(--ha-muted); text-decoration: none;
	box-shadow: var(--ha-shadow);
}
.ha-store-cat:hover, .ha-store-cat:focus { border-color: var(--ha-primary); color: var(--ha-primary); }
.ha-store-cat span { padding: 1px 7px; border-radius: 999px; background: var(--ha-primary-soft); color: var(--ha-primary); font-size: .72rem; }

.ha-store-wrap ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px; margin: 0; padding: 0; list-style: none;
}
.ha-store-wrap ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	background: var(--ha-card); border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius); overflow: hidden; box-shadow: var(--ha-shadow);
	transition: transform .25s var(--ha-ease), box-shadow .25s;
}
.ha-store-wrap ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--ha-shadow-lg); }
.ha-store-wrap ul.products li.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; margin: 0 !important; }
.ha-store-wrap ul.products li.product .woocommerce-loop-product__title { padding: 16px 16px 0; font-family: var(--ha-font-heading); font-size: 1.02rem; }
.ha-store-wrap ul.products li.product .price { display: block; padding: 6px 16px 0; color: var(--ha-primary); font-size: 1.1rem; font-weight: 800; }
.ha-store-wrap ul.products li.product .button { margin: 14px 16px 18px; border-radius: 999px; background: var(--ha-primary); color: #fff !important; font-weight: 800; text-align: center; }
.ha-store-wrap ul.products li.product .ha-product-links { padding-inline: 16px; }
.ha-store-wrap .woocommerce-result-count, .ha-store-wrap .woocommerce-ordering { color: var(--ha-muted); }
.ha-store-wrap .woocommerce-pagination { margin-top: 28px; }

.ha-addon-page .woocommerce-breadcrumb { margin-block: 20px; color: var(--ha-muted); font-size: .84rem; }
.ha-addon-hero { padding-block: 10px 40px; }
.ha-addon-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.ha-addon-gallery .woocommerce-product-gallery { border: 1px solid var(--ha-border); border-radius: var(--ha-radius); overflow: hidden; background: var(--ha-card); box-shadow: var(--ha-shadow); }
.ha-addon-summary { padding: 8px 0; }
.ha-addon-summary .product_title { font-family: var(--ha-font-heading); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ha-addon-summary .price { color: var(--ha-primary); font-size: 1.6rem; font-weight: 800; }
.ha-addon-summary .woocommerce-product-details__short-description { color: var(--ha-muted); line-height: 1.9; }
.ha-addon-highlight { display: flex; align-items: center; gap: 8px; margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--ha-primary-soft); color: var(--ha-primary-strong); font-weight: 700; font-size: .9rem; }
.ha-addon-highlight .ha-icon { color: var(--ha-primary); flex: 0 0 auto; }
.ha-addon-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.ha-addon-meta li { display: flex; flex-direction: column; padding: 10px 16px; border: 1px solid var(--ha-border); border-radius: 12px; background: var(--ha-card); }
.ha-addon-meta span { color: var(--ha-muted); font-size: .75rem; }
.ha-addon-meta strong { font-size: .9rem; }
.ha-addon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ha-addon-page .ha-feature p { margin: 0; }
.ha-addon-page .woocommerce-tabs { margin-top: 26px; }

@media (max-width: 1024px) {
	.ha-addon-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.ha-store-wrap ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ha-store-wrap ul.products { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Premium checkout polish (settings-driven)
   ========================================================================== */
.ha-checkout-intro__steps { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 6px; }
.ha-checkout-intro__steps span {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255,255,255,.16); color: rgba(255,255,255,.75);
	font-size: .75rem; font-weight: 800; direction: ltr;
}
.ha-checkout-intro__steps span.is-active { background: var(--ha-accent); color: #3a2a05; }
.ha-checkout-intro__steps i { flex: 0 0 34px; height: 2px; background: rgba(255,255,255,.24); border-radius: 2px; }
.ha-checkout-intro__item { display: block; margin-top: 6px; color: #ffd98a; font-size: .92rem; }
.ha-checkout-intro--empty .ha-checkout-intro__chips { width: auto; }
.ha-checkout-intro--empty .ha-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.ha-checkout-intro--empty .ha-btn--primary { background: var(--ha-accent); border-color: var(--ha-accent); color: #3a2a05; }

.ha-checkout-trust {
	margin-block: 22px; padding: 18px 22px;
	border: 1px solid var(--ha-border); border-radius: var(--ha-radius);
	background: var(--ha-card); box-shadow: var(--ha-shadow);
}
.ha-checkout-trust .ha-checkout-intro__chips { width: auto; }
.ha-checkout-trust .ha-checkout-intro__chips span { background: var(--ha-surface); color: var(--ha-primary-strong); }

.ha-checkout-sticky .woocommerce-checkout #order_review_heading,
.ha-checkout-sticky .woocommerce-checkout #order_review {
	position: sticky; inset-block-start: calc(var(--ha-header-h) + 16px);
}
.ha-checkout-sticky .woocommerce-checkout #order_review_heading { z-index: 3; }
.ha-checkout-sticky .woocommerce-checkout #order_review { z-index: 2; max-height: calc(100vh - var(--ha-header-h) - 90px); overflow-y: auto; }

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-thumbnail img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.woocommerce-checkout #payment .payment_methods li.selected,
.woocommerce-checkout #payment .payment_methods li:hover {
	border-color: var(--ha-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ha-primary) 14%, transparent);
}
.woocommerce-checkout #payment .payment_methods li label { cursor: pointer; }
.woocommerce-cart .wc-proceed-to-checkout { text-align: end; }
.woocommerce-cart .cart-collaterals .cart_totals .checkout-button { display: inline-block; }

/* ==========================================================================
   Wishlist & compare
   ========================================================================== */
.ha-store-wrap ul.products li.product { position: relative; }
.ha-store-actions { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 5; display: flex; flex-direction: column; gap: 7px; }
.ha-store-action {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: color-mix(in srgb, var(--ha-card) 92%, transparent); color: var(--ha-ink);
	border: 1px solid var(--ha-border); box-shadow: var(--ha-shadow);
	backdrop-filter: blur(8px); transition: transform .2s var(--ha-ease), color .2s, background .2s;
}
.ha-store-action:hover { transform: scale(1.08); color: var(--ha-primary); }
.ha-store-action.is-active { background: var(--ha-primary); border-color: var(--ha-primary); color: #fff; }
.ha-store-action.is-active .ha-icon { fill: currentColor; }

.ha-list-empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--ha-border); border-radius: var(--ha-radius); background: var(--ha-card); }
.ha-list-empty .ha-icon { color: var(--ha-primary); }
.ha-list-empty h2 { margin: 14px 0 6px; font-family: var(--ha-font-heading); }
.ha-list-empty p { color: var(--ha-muted); margin-bottom: 20px; }
.ha-list-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ha-list-card { border: 1px solid var(--ha-border); border-radius: var(--ha-radius); background: var(--ha-card); overflow: hidden; box-shadow: var(--ha-shadow); }
.ha-list-card__image { display: block; }
.ha-list-card__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ha-list-card__body { padding: 16px; }
.ha-list-card__body h3 { margin: 0 0 6px; font-size: 1rem; font-family: var(--ha-font-heading); }
.ha-list-card__price { color: var(--ha-primary); font-weight: 800; margin: 0 0 12px; }
.ha-list-card__body .button { display: block; width: 100%; margin-bottom: 10px; border-radius: 999px; background: var(--ha-primary); color: #fff !important; font-weight: 800; text-align: center; }
.ha-list-card__remove { display: inline-flex; align-items: center; gap: 4px; color: #e11d48; font-size: .8rem; font-weight: 700; }
.ha-compare-table-wrap { overflow-x: auto; border: 1px solid var(--ha-border); border-radius: var(--ha-radius); background: var(--ha-card); box-shadow: var(--ha-shadow); }
.ha-compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.ha-compare-table th, .ha-compare-table td { border: 1px solid var(--ha-border); padding: 14px; vertical-align: top; text-align: start; }
.ha-compare-table thead th { background: var(--ha-primary-soft); color: var(--ha-primary-strong); }
.ha-compare-table thead th img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.ha-compare-table tbody th { width: 160px; background: var(--ha-surface); font-weight: 800; }
.ha-compare-table .ha-check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ha-compare-table .ha-check-list li { display: flex; align-items: flex-start; gap: 6px; font-size: .82rem; }
.ha-compare-table .ha-check-list .ha-icon { color: var(--ha-primary); flex: 0 0 auto; }
@media (max-width: 900px) { .ha-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ha-list-grid { grid-template-columns: 1fr; } }

/* PDP — no quantity selector: one license per order. */
.single-product div.product form.cart div.quantity,
.single-product form.cart div.quantity { display: none !important; }
