/* ═══════════════════════════════════════════════════════════════
   INTELLEGY HUB — WooCommerce (catalog + single product + cart)
   ═══════════════════════════════════════════════════════════════ */

/* ── MINI-CART DRAWER ITEMS ── */
.woocommerce-mini-cart__total,
.woocommerce-mini-cart__total strong { color: var(--color-text); }
.mini-cart-items ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.mini-cart-items .woocommerce-mini-cart-item { display: flex; gap: 12px; align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); position: relative; }
.mini-cart-items img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-cart-items a { color: var(--color-text); text-decoration: none; }
.mini-cart-items a:hover { color: var(--color-primary); }
.mini-cart-items .quantity { color: var(--color-text-muted); font-size: 13px; }
.mini-cart-items .remove_from_cart_button { color: var(--color-text-muted) !important; font-size: 16px; text-decoration: none; margin-left: auto; }

/* ── WC BUTTONS / PRICES ── */
.woocommerce a.button, .woocommerce button.button, .woocommerce .button, .woocommerce #respond input#submit {
	background: var(--color-primary); color: var(--color-bg); border-radius: var(--radius-sm);
	font-family: var(--font-heading); font-weight: 700; border: none; padding: 12px 24px;
	transition: all var(--transition-base);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover { box-shadow: 0 8px 24px var(--color-accent-glow); transform: translateY(-2px); }
.woocommerce .price, .woocommerce-Price-amount { color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; }

/* WooCommerce core ships its own ".button.alt" rule (the default purple
   "Add to cart" fill) with HIGHER selector specificity (3 classes) than
   our base ".woocommerce button.button" rule above (2 classes) — CSS
   specificity wins over source order, so core's purple was overriding our
   blue regardless of load order. Match that specificity here to win. */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--color-primary);
	color: var(--color-bg);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: var(--color-primary);
	filter: brightness(1.08);
}
/* Disabled / "select a variation first" state — muted panel look instead
   of a half-transparent purple button, on-brand and clearly inert. */
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt[disabled],
.woocommerce .single_add_to_cart_button.wc-variation-selection-needed,
.woocommerce .single_add_to_cart_button.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled:hover {
	background: var(--color-bg-card);
	color: var(--color-text-muted);
	border: 1px solid var(--color-border);
	opacity: 1;
	box-shadow: none;
	cursor: not-allowed;
}

/* ── STATUS BADGE ── */
.ihl-status-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ihl-status-badge.is-instock { color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.3); }
.ihl-status-badge.is-backorder { color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.3); }
.ihl-status-badge.is-outofstock { color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }

/* ═══ CATALOG (archive) ═══ */
.ihl-catalog__layout { display: flex; align-items: flex-start; gap: var(--space-8); }
.ihl-catalog__sidebar { flex: 0 0 220px; position: sticky; top: 120px; }
.ihl-catalog__sidebar-title { font-size: 18px; margin-bottom: var(--space-4); }
.ihl-catalog__cats { list-style: none; line-height: 2.2; font-size: 15px; margin: 0; padding: 0; }
.ihl-catalog__cats a { color: var(--color-text-body); text-decoration: none; transition: color var(--transition-fast); }
.ihl-catalog__cats a:hover, .ihl-catalog__cats a.is-active { color: var(--color-primary); font-weight: 600; }
.ihl-catalog__count { color: var(--color-text-muted); font-size: 12px; }
.ihl-catalog__main { flex: 1; min-width: 0; }
.ihl-catalog__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.ihl-catalog__heading { margin-bottom: 0; font-size: 24px; }
.ihl-catalog__view-toggle { display: flex; align-items: center; gap: 12px; }
.ihl-catalog__view-toggle button { background: none; border: none; cursor: pointer; color: var(--color-text-muted); padding: 4px; line-height: 0; }
.ihl-catalog__view-toggle button.is-active { color: var(--color-primary); }

.ihl-catalog__grid.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-8); }

.ihl-catalog__grid.is-list .catalog-card__add {
	margin-top: 25px
}

.woocommerce div.product form.cart .variations select {
	display: none;
}

.ihl-catalog__grid.is-list { display: flex; flex-direction: column; gap: var(--space-4); }
.ihl-catalog__grid.is-list .catalog-card { flex-direction: row; }
.ihl-catalog__grid.is-list .catalog-card-img-wrap { width: 220px; height: 160px; flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--color-border-accent); }
.ihl-catalog__grid.is-list .catalog-card__link { display: flex; flex-direction: row; width: 100%; }
@media (max-width: 640px) {
	.ihl-catalog__grid.is-list .catalog-card { flex-direction: column; }
	.ihl-catalog__grid.is-list .catalog-card-img-wrap { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--color-border-accent); }
	.ihl-catalog__grid.is-list .catalog-card__link { flex-direction: column; }
}

/* CATALOG CARD (from mockup) */
.catalog-card {
	cursor: pointer; padding: 0; overflow: hidden;
	background: rgba(20, 24, 32, 0.4); backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius-lg);
	display: flex; flex-direction: column;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative;
}
.catalog-card::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(74, 144, 226, 0); transition: box-shadow 0.4s ease; z-index: 10; pointer-events: none;
}
.catalog-card:hover { transform: translateY(-8px); background: rgba(26, 31, 46, 0.8); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 144, 226, 0.15); }
.catalog-card:hover::after { box-shadow: inset 0 0 0 1px rgba(74, 144, 226, 0.5); }
.catalog-card__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.catalog-card-img-wrap { width: 100%; height: 220px; position: relative; overflow: hidden; border-bottom: 1px solid var(--color-border-accent); background: var(--color-bg); }
.catalog-card .catalog-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.catalog-card:hover .catalog-img { transform: scale(1.05); }
.catalog-card-btn {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%); opacity: 0;
	background: rgba(74, 144, 226, 0.95); color: #fff; padding: 10px 20px; border-radius: 20px;
	font-size: 11px; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px;
	font-weight: 700; transition: all 0.4s ease; z-index: 5; white-space: nowrap; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.catalog-card:hover .catalog-card-btn { opacity: 1; transform: translate(-50%, -50%); }
.catalog-info { padding: var(--space-6); display: flex; flex-direction: column; gap: 8px; }
.catalog-info__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.catalog-info__title { margin: 0; font-size: 18px; }
.catalog-info__excerpt { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin: 0; }
.catalog-info__price { font-family: var(--font-heading); color: var(--color-text); font-weight: 600; }
.catalog-card__add { padding: 0 var(--space-6) var(--space-6); }
.catalog-card__add .button { width: 100%; text-align: center; }

.ihl-catalog__pagination { margin-top: var(--space-12); }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-body); text-decoration: none; }
.woocommerce-pagination .current { background: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }

/* ═══ SINGLE PRODUCT ═══ */
.ihl-product__back { margin-bottom: var(--space-12); }
.ihl-product__split { display: flex; gap: clamp(40px, 5vw, 80px); flex-wrap: wrap; align-items: flex-start; }
.ihl-product__gallery { flex: 1; min-width: min(100%, 400px); }
.ihl-product__summary { flex: 1; min-width: min(100%, 400px); }
.ihl-product__main-img { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg); cursor: zoom-in; }
.ihl-product__main-img img { width: 100%; height: 100%; object-fit: cover; }
.ihl-product__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ihl-product__thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); cursor: pointer; opacity: 0.6; transition: opacity var(--transition-fast), border-color var(--transition-fast); }
.ihl-product__thumb:hover, .ihl-product__thumb.is-active { opacity: 1; border-color: var(--color-primary); }
.ihl-product__certs { margin-top: var(--space-12); display: flex; gap: var(--space-4); flex-wrap: wrap; color: var(--color-text-muted); font-size: 12px; font-family: var(--font-heading); letter-spacing: 1px; text-transform: uppercase; }

.ihl-product__title { font-size: clamp(2rem, 3vw, 2.5rem); margin-bottom: var(--space-4); line-height: 1.2; font-family: var(--font-heading); }
.ihl-product__short { color: var(--color-text-body); font-size: 16px; line-height: 1.8; margin-bottom: var(--space-6); }
.ihl-product__price { font-family: var(--font-heading); font-size: 28px; color: var(--color-primary); font-weight: 700; margin-bottom: var(--space-6); }
.ihl-product__summary .quantity input { background: var(--color-bg-card); border: 1px solid var(--color-border); color: var(--color-text); border-radius: var(--radius-sm); padding: 10px; width: 70px; transition: border-color var(--transition-fast); }
.ihl-product__summary .quantity input:focus { outline: none; border-color: var(--color-primary); }
.ihl-product__summary form.cart {
	display: flex; gap: var(--space-4); align-items: stretch; flex-wrap: wrap; margin-bottom: var(--space-8);
}
.ihl-product__summary form.cart .quantity { display: flex; align-items: stretch; }
.ihl-product__summary form.cart .quantity input { height: 100%; min-height: 52px; text-align: center; font-family: var(--font-heading); font-weight: 600; }

/* Primary "Add to cart" button — bigger, on-brand CTA matching .btn--lg */
.ihl-product__summary .single_add_to_cart_button {
	flex: 1; min-width: 200px; text-align: center; padding: 16px 40px !important; font-size: 16px;
	letter-spacing: 0.3px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	box-shadow: 0 4px 14px rgba(74, 144, 226, 0.25);
}
.ihl-product__summary .single_add_to_cart_button:hover:not(.disabled) {
	box-shadow: 0 10px 28px var(--color-accent-glow); transform: translateY(-2px);
}
.ihl-product__summary .single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--color-primary); outline-offset: 2px;
}
.ihl-product__summary .single_add_to_cart_button.disabled,
.ihl-product__summary .single_add_to_cart_button:disabled {
	opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none;
}

/* Ajax loading state set by cart.js while the request is in flight */
.ihl-product__summary .single_add_to_cart_button.ihl-adding { pointer-events: none; opacity: 0.85; }
.ihl-spinner {
	width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(10, 13, 20, 0.35); border-top-color: var(--color-bg);
	display: inline-block; animation: ihl-spin 0.7s linear infinite;
}
@keyframes ihl-spin { to { transform: rotate(360deg); } }

/* Native (non-Ajax) "View cart" link WooCommerce appends after add-to-cart */
.ihl-product__summary .added_to_cart {
	display: inline-flex; align-items: center; color: var(--color-success); font-size: 13px;
	text-decoration: underline; text-underline-offset: 2px; margin-top: var(--space-2);
}
.ihl-product__trust { padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--color-text-body); font-size: 14px; line-height: 1.9; }

/* PRODUCT TABS (native, restyled) */
.ihl-product__tabs { margin-top: var(--space-20); }
.woocommerce-tabs .wc-tabs { display: flex; gap: var(--space-6); list-style: none; padding: 0; margin: 0 0 var(--space-8); border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.woocommerce-tabs .wc-tabs li { margin: 0; }
.woocommerce-tabs .wc-tabs li a { color: var(--color-text-muted); font-family: var(--font-heading); font-weight: 600; text-decoration: none; padding: 10px 0; display: inline-block; border-bottom: 2px solid transparent; }
.woocommerce-tabs .wc-tabs li.active a { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.woocommerce-tabs .panel { color: var(--color-text-body); line-height: 1.9; max-width: 1000px; }
.woocommerce-tabs .panel h2 { font-size: 1.25rem; }
.woocommerce-tabs table.shop_attributes th { color: var(--color-text); }
.woocommerce-tabs table.shop_attributes td { color: var(--color-text-body); }

.ihl-product__related { margin-top: var(--space-20); }
.ihl-product__related > h2 { margin-bottom: var(--space-8); }
.ihl-product__related ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-6); list-style: none; padding: 0; }

@media (max-width: 900px) {
	.ihl-catalog__layout { flex-direction: column; }
	.ihl-catalog__sidebar { position: static; flex: 1; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE — Account / Cart / Checkout / Variations / Notices
   ═══════════════════════════════════════════════════════════════ */

/* Generic WC page wrapper inside our container */
.woocommerce, .woocommerce-page { color: var(--color-text-body); }

/* NOTICES */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .woocommerce-NoticeGroup {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border-accent);
	border-left: 3px solid var(--color-primary);
	border-radius: var(--radius-sm);
	color: var(--color-text-body);
	padding: 14px 18px;
	list-style: none;
	margin-bottom: var(--space-6);
}
.woocommerce-error { border-left-color: var(--color-danger); }
.woocommerce-message { border-left-color: var(--color-success); }

/* FORM FIELDS (login/register/checkout/account) */
.woocommerce form .form-row label,
.woocommerce-account label { color: var(--color-text-muted); font-size: 13px; margin-bottom: 6px; display: block; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection,
.woocommerce #order_comments {
	width: 100%; background: var(--color-bg-card); border: 1px solid var(--color-border);
	border-radius: var(--radius-sm); padding: 12px 14px; color: var(--color-text); font-family: var(--font-body);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { outline: none; border-color: var(--color-primary); }
.woocommerce .select2-dropdown { background: var(--color-bg-secondary); border-color: var(--color-border); color: var(--color-text); }

/* MY ACCOUNT */
.woocommerce-account .woocommerce { display: flex; gap: var(--space-12); flex-wrap: wrap; align-items: flex-start; }
.woocommerce-account .woocommerce-MyAccount-navigation { flex: 0 0 240px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li {
	border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	margin-bottom: 8px; transition: all var(--transition-fast);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; color: var(--color-text-body); text-decoration: none; font-family: var(--font-heading); font-size: 14px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active,
.woocommerce-account .woocommerce-MyAccount-navigation li:hover { border-color: var(--color-primary); background: rgba(74, 144, 226, 0.06); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--color-primary); }
.woocommerce-account .woocommerce-MyAccount-content { flex: 1; min-width: min(100%, 420px); }
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 { color: var(--color-text); }

/* Login / Register split */
.woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password {
	border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); background: var(--color-bg-card);
}

/* TABLES (orders / cart / addresses) */
.woocommerce table.shop_table {
	border: 1px solid var(--color-border); border-radius: var(--radius-lg);
	border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%;
}
.woocommerce table.shop_table th { background: var(--color-bg-card); color: var(--color-text); font-family: var(--font-heading); padding: 14px 16px; text-align: left; }
.woocommerce table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--color-border); color: var(--color-text-body); }
.woocommerce table.shop_table .product-name a { color: var(--color-text); text-decoration: none; }
.woocommerce table.shop_table .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.woocommerce table.shop_table tr:last-child td { border-bottom: none; }
.woocommerce table.shop_table .product-quantity .qty { width: 60px; }
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce .woocommerce-button { padding: 8px 16px; }

/* CART PAGE */
.woocommerce .cart-collaterals .cart_totals { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.woocommerce .cart-collaterals .cart_totals h2 { margin-bottom: var(--space-4); }
.woocommerce .quantity .qty {
	background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text);
	border-radius: var(--radius-sm); padding: 8px; width: 72px; text-align: center;
}
.woocommerce a.remove {
	font-size: 18px;
    line-height: 1;
    width: 22px;
    height: 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    font-weight: 500 !important;
    color: var(--color-text-muted) !important;
    text-decoration: none;
    margin-left: auto;
}
.woocommerce a.remove:hover { background: none;
    color: var(--color-text-muted) !important; }

/* CHECKOUT */
.woocommerce-checkout #payment { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--color-border); }
.woocommerce-checkout #payment div.payment_box { background: var(--color-bg-secondary); color: var(--color-text-body); }
.woocommerce-checkout .woocommerce-checkout-review-order-table { margin-bottom: var(--space-6); }

/* SINGLE PRODUCT VARIATIONS */
.ihl-product__summary .variations { width: 100%; margin-bottom: var(--space-6); border-collapse: collapse; }
.ihl-product__summary .variations th { text-align: left; color: var(--color-text-muted); font-size: 13px; padding: 8px 0 12px; vertical-align: top; }
.ihl-product__summary .variations td { padding: 8px 0 12px; }
.ihl-product__summary .variations select {
	width: 100%; background: var(--color-bg-card); border: 1px solid var(--color-border);
	border-radius: var(--radius-sm); padding: 10px 12px; color: var(--color-text);
}
.ihl-product__summary .variations select.ihl-tiles-active { display: none; }
.ihl-product__summary .reset_variations { color: var(--color-text-muted); font-size: 12px; margin-left: 8px; }
.ihl-product__summary .woocommerce-variation-price { margin-bottom: var(--space-4); }
.ihl-product__summary .woocommerce-variation-price .price { font-size: 24px; }
.ihl-product__summary .woocommerce-variation-availability { color: var(--color-text-muted); font-size: 14px; margin-bottom: var(--space-4); }

/* Variation tile buttons — progressive enhancement over the native
   <select> (kept in the DOM, visually hidden, so WooCommerce's own
   variation-matching script keeps working unchanged; see cart.js). */
.ihl-variation-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.ihl-variation-tile {
	font-family: var(--font-heading); font-size: 13.5px; font-weight: 600;
	background: var(--color-bg-card); color: var(--color-text);
	border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	padding: 9px 16px; cursor: pointer; transition: all var(--transition-fast);
}
.ihl-variation-tile:hover:not(.is-disabled) { border-color: var(--color-primary); color: #fff; }
.ihl-variation-tile.is-selected {
	background: var(--color-primary); border-color: var(--color-primary); color: #fff;
	box-shadow: 0 4px 14px rgba(74, 144, 226, 0.3);
}
.ihl-variation-tile.is-disabled {
	opacity: 0.4; cursor: not-allowed; text-decoration: line-through;
}
.ihl-variation-tile:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Add-to-cart loading state */
.ihl-adding { position: relative; pointer-events: none; opacity: 0.75; }
.ihl-added-tick { color: var(--color-success); margin-left: 8px; }

/* Mini-cart qty stepper */
.ihl-qty-stepper { display: inline-flex; align-items: center; gap: 6px; }
.ihl-qty-stepper button {
	width: 26px; height: 26px; border: 1px solid var(--color-border); background: var(--color-bg-card);
	color: var(--color-text); border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1;
}
.ihl-qty-stepper button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ihl-qty-stepper .ihl-qty-val { min-width: 24px; text-align: center; color: var(--color-text); }

/* Mini-cart item layout (custom template) */
.mini-cart-items .woocommerce-mini-cart-item { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-4) 0!important; border-bottom: 1px solid var(--color-border); position: relative; }
.mini-cart-items .mini-cart-thumb img, .woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img, .woocommerce-page ul.cart_list li img, .woocommerce-page ul.product_list_widget li img, .woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); margin: 0; float: none;}
.mini-cart-item__info { flex: 1; min-width: 0; }
.mini-cart-item__name { display: block; color: var(--color-text); text-decoration: none; font-size: 14px; margin-bottom: 6px; font-weight: 500!important; }
.mini-cart-item__name:hover { color: var(--color-primary); }
.mini-cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.mini-cart-item__total { color: var(--color-primary); font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
.mini-cart-items .woocommerce-mini-cart-item .remove { position: absolute; top: var(--space-4); right: 0; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: var(--space-4) 0; margin: 0; font-family: var(--font-heading); }

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE BLOCKS — Cart & Checkout (wp:woocommerce/cart,
   wp:woocommerce/checkout). These are the React-rendered block
   versions of Cart/Checkout, used automatically since WooCommerce
   auto-inserts them on new Cart/Checkout pages — a completely
   different markup/class set from the classic [woocommerce_cart]
   / [woocommerce_checkout] shortcode templates styled above, so
   none of the .shop_table / #payment / .col2-set rules above ever
   matched them. This block covers that markup specifically.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared layout: sidebar-layout grid used by both Cart and Checkout ── */
.wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: var(--space-12);
	align-items: start;
}
.wc-block-components-main { 
	width: 100%!important;
	min-width: 0; 

}
.wc-block-components-sidebar {
	width: 100%;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	position: sticky;
	top: calc(var(--header-height) + 24px);
}

.wc-block-components-radio-control__option-layout {
	margin-left: 35px
}

.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-form .wc-block-components-text-input.is-active input[type=email], .wc-block-components-form .wc-block-components-text-input.is-active input[type=number], .wc-block-components-form .wc-block-components-text-input.is-active input[type=password], .wc-block-components-form .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-form .wc-block-components-text-input.is-active input[type=text], .wc-block-components-form .wc-block-components-text-input.is-active input[type=url], .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-text-input.is-active input[type=email], .wc-block-components-text-input.is-active input[type=number], .wc-block-components-text-input.is-active input[type=password], .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-text-input.is-active input[type=text], .wc-block-components-text-input.is-active input[type=url], .wc-blocks-components-select .wc-blocks-components-select__select {
	background: var(--color-bg-card);
    border: 1px solid var(--color-border);
	color: #fff;
}

@media (max-width: 900px) {
	.wc-block-components-sidebar-layout { grid-template-columns: 1fr; }
	.wc-block-components-sidebar { position: static; }
}

/* Buttons used throughout both blocks */
.wc-block-components-button.wp-element-button {
	background: var(--color-primary); color: var(--color-bg);
	border: none; border-radius: var(--radius-sm);
	font-family: var(--font-heading); font-weight: 700;
	padding: 14px 24px; transition: all var(--transition-base);
}
.wc-block-components-button.wp-element-button:hover {
	box-shadow: 0 8px 24px var(--color-accent-glow); transform: translateY(-2px);
}
.wc-block-components-button.wp-element-button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ═══ CART BLOCK ═══ */
.wc-block-cart-items { width: 100%; border-collapse: collapse; }
.wc-block-cart-items__header th {
	text-align: left; color: var(--color-text-muted); font-family: var(--font-heading);
	font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
	padding: 0 0 var(--space-4); border-bottom: 1px solid var(--color-border);
}
.wc-block-cart-items__row td {
	padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border);
	vertical-align: top; color: var(--color-text-body);
}
.wc-block-cart-item__image img {
	width: 72px; height: 72px; object-fit: cover;
	border-radius: var(--radius-sm); border: 1px solid var(--color-border);
}
.wc-block-components-product-name {
	color: var(--color-text); text-decoration: none;
	font-family: var(--font-heading); font-weight: 600; font-size: 15px;
	display: inline-block; margin-bottom: 6px;
}
.wc-block-components-product-name:hover { color: var(--color-primary); }
.wc-block-cart-item__prices .price,
.wc-block-formatted-money-amount { color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; }
.wc-block-components-product-metadata__description p { color: var(--color-text-muted); font-size: 13px; line-height: 1.6; margin: 6px 0; }

.wc-block-cart-item__quantity { display: flex; align-items: center; gap: 14px; margin-top: var(--space-4); }
.wc-block-components-quantity-selector {
	display: inline-flex; align-items: stretch;
	border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden;
	background: var(--color-bg);
}
.wc-block-components-quantity-selector__input {
	width: 44px; border: none; background: transparent; color: var(--color-text);
	text-align: center; font-family: var(--font-heading); font-weight: 600;
}
.wc-block-components-quantity-selector__button {
	background: var(--color-bg-card); border: none; color: var(--color-text-body);
	width: 32px; cursor: pointer; font-size: 15px; transition: all var(--transition-fast);
}
.wc-block-components-quantity-selector__button:hover:not(:disabled) { background: rgba(74,144,226,.12); color: var(--color-primary); }
.wc-block-components-quantity-selector__button:disabled { opacity: .35; cursor: not-allowed; }
.wc-block-cart-item__remove-link {
	background: none; border: none; color: var(--color-text-muted); cursor: pointer;
	display: inline-flex; padding: 4px; border-radius: 50%; transition: all var(--transition-fast);
}
.wc-block-cart-item__remove-link:hover { color: var(--color-danger); background: rgba(244,87,76,.1); }
.wc-block-cart-item__remove-link svg { width: 18px; height: 18px; fill: currentColor; }
.wc-block-cart-item__total .price { font-size: 15px; }

.wc-block-cart__totals-title { color: var(--color-text); margin-bottom: var(--space-4); }
.wc-block-components-totals-item__label { color: var(--color-text-body); font-size: 14px; }
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount.wc-block-components-totals-footer-item-tax-value {
	color: var(--color-text); font-family: var(--font-heading); font-weight: 700;
}
.wc-block-components-totals-wrapper {
	padding: var(--space-4) 0; border-top: 1px solid var(--color-border);
}
.wc-block-components-totals-wrapper:first-of-type { border-top: none; }
.wc-block-components-totals-item { display: flex; justify-content: space-between; align-items: baseline; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 16px; color: var(--color-text); font-weight: 600; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item-tax-value { font-size: 22px; color: var(--color-primary); }

.wc-block-cart__submit-button.wp-element-button { width: 100%; text-align: center; padding: 16px; font-size: 15px; margin-top: var(--space-4); }

/* ═══ CHECKOUT BLOCK ═══ */
.wc-block-components-checkout-step {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-8); margin-bottom: var(--space-8);
}
.wc-block-components-checkout-step:last-of-type { border-bottom: none; }
.wc-block-components-checkout-step__title { color: var(--color-text); font-size: 20px; margin-bottom: var(--space-6); }

/* Floating-label text inputs (Material-style: label overlaps border when filled) */
.wc-block-components-text-input {
	position: relative; margin-bottom: var(--space-4);
}
.wc-block-components-text-input input {
	width: 100%; background: var(--color-bg-card); border: 1px solid var(--color-border);
	border-radius: var(--radius-sm); padding: 18px 14px 8px; color: var(--color-text);
	font-family: var(--font-body); font-size: 15px;
}
.wc-block-components-text-input input:focus { outline: none; border-color: var(--color-primary); }
.wc-block-components-text-input label {
	position: absolute; left: 14px; top: 14px; color: var(--color-text-muted);
	font-size: 15px; pointer-events: none; transition: all var(--transition-fast);
	transform-origin: left top;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label {
	top: 6px; font-size: 11px; color: var(--color-text-muted);
}

/* Address "already filled" summary card + Edit link */
.wc-block-components-address-card {
	background: var(--color-bg-card); border: 1px solid var(--color-border);
	border-radius: var(--radius-md); padding: var(--space-6);
	display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4);
}
.wc-block-components-address-card address { font-style: normal; color: var(--color-text-body); font-size: 14px; line-height: 1.7; }
.wc-block-components-address-card__address-section--primary { display: block; color: var(--color-text); font-weight: 600; }
.wc-block-components-address-card__edit {
	color: var(--color-primary); font-size: 13px; cursor: pointer; text-decoration: underline;
	white-space: nowrap; flex-shrink: 0;
}
.wc-block-components-address-card__edit:hover { text-decoration: none; }

/* Custom <select> wrapper (country/state) with its own SVG chevron */
.wc-blocks-components-select { position: relative; margin-bottom: var(--space-4); }
.wc-blocks-components-select__label {
	position: absolute; left: 14px; top: 6px; font-size: 11px; color: var(--color-text-muted); pointer-events: none;
}
.wc-blocks-components-select__select {
	width: 100%; background: var(--color-bg-card); border: 1px solid var(--color-border);
	border-radius: var(--radius-sm); padding: 20px 36px 8px 14px; color: var(--color-text);
	font-family: var(--font-body); font-size: 15px; appearance: none; cursor: pointer;
}
.wc-blocks-components-select__select:focus { outline: none; border-color: var(--color-primary); }
.wc-blocks-components-select__expand { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); fill: var(--color-text-muted); pointer-events: none; }

.wc-block-components-address-form__address_2-toggle,
span.wc-block-components-address-form__address_2-toggle {
	display: inline-block; color: var(--color-primary); font-size: 13px; cursor: pointer; margin-bottom: var(--space-4);
}

/* Payment method radio accordion */
.wc-block-components-radio-control { display: flex; flex-direction: column; gap: 10px; }
.wc-block-components-radio-control-accordion-option {
	border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
	transition: border-color var(--transition-fast);
}
.wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--color-primary); }
.wc-block-components-radio-control__option {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; margin: 0;
}
.wc-block-components-radio-control__input { accent-color: var(--color-primary); width: 18px; height: 18px; }
.wc-block-components-radio-control__label,
.wc-block-components-payment-method-label { color: var(--color-text); font-size: 14.5px; font-weight: 500; }
.wc-block-components-radio-control-accordion-content {
	padding: 0 16px 16px 46px; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.7;
}

/* Checkboxes (order note, terms) */
.wc-block-components-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--space-4); }
.wc-block-components-checkbox__input { accent-color: var(--color-primary); width: 18px; height: 18px; margin-top: 2px; }
.wc-block-components-checkbox__label,
.wc-block-checkout__terms .wc-block-components-checkbox__label { color: var(--color-text-body); font-size: 13.5px; }
.wc-block-checkout__terms--with-separator { border-top: 1px solid var(--color-border); padding-top: var(--space-6); margin-top: var(--space-6); }
.wc-block-checkout__terms a { color: var(--color-primary); }

.wc-block-components-checkout-place-order-button.wp-element-button { width: 100%; padding: 16px; font-size: 15px; }

/* Order summary sidebar on Checkout: item thumb + quantity badge overlay */
.wc-block-components-checkout-order-summary__title-text { color: var(--color-text); font-size: 18px; margin: 0; }
.wc-block-components-checkout-order-summary__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); cursor: pointer; }
.wc-block-components-checkout-order-summary__title-price { color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; }
.wc-block-components-order-summary-item { display: flex; gap: 12px; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.wc-block-components-order-summary-item__image { position: relative; flex-shrink: 0; }
.wc-block-components-order-summary-item__image img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.wc-block-components-order-summary-item__quantity {
	position: absolute; top: -8px; right: -8px; background: var(--color-primary); color: var(--color-bg);
	font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.wc-block-components-product-metadata { display: none; } /* hide long description in the compact sidebar summary */
.wc-block-components-order-summary-item h3.wc-block-components-product-name { font-size: 13.5px; margin-bottom: 2px; }
.wc-block-components-order-summary-item__individual-price,
.wc-block-components-order-summary-item__total-price .price { font-size: 13px; }

/* ═══ ORDER RECEIVED / THANK YOU (classic hook output) ═══
   If your Order Confirmation page is ALSO block-based (WooCommerce
   9+ "Order Confirmation" blocks), the class names differ from this
   — paste that page's HTML the same way you did for Cart/Checkout
   and I'll add matching rules for it specifically. */
.woocommerce-order { padding: var(--space-8) 0; }
.woocommerce-order .woocommerce-notice,
.woocommerce-order .woocommerce-thankyou-order-received {
	background: var(--color-bg-card); border: 1px solid var(--color-border-accent);
	border-left: 3px solid var(--color-success); border-radius: var(--radius-sm);
	padding: 18px 20px; color: var(--color-text); font-size: 15px; margin-bottom: var(--space-8);
	list-style: none;
}
.woocommerce-order-details, .woocommerce-customer-details {
	background: var(--color-bg-card); border: 1px solid var(--color-border);
	border-radius: var(--radius-lg); padding: var(--space-8); margin-bottom: var(--space-8);
}
.woocommerce-order-details h2, .woocommerce-customer-details h2 { color: var(--color-text); margin-bottom: var(--space-4); }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; }
.woocommerce-table--order-details th { text-align: left; color: var(--color-text-muted); font-family: var(--font-heading); padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.woocommerce-table--order-details td { padding: 10px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-body); }
.woocommerce-table--order-details tfoot th, .woocommerce-table--order-details tfoot td { color: var(--color-text); font-weight: 600; }
.woocommerce-order-overview { list-style: none; display: flex; gap: var(--space-8); flex-wrap: wrap; padding: 0; margin-bottom: var(--space-8); }
.woocommerce-order-overview li { font-size: 13px; color: var(--color-text-muted); }
.woocommerce-order-overview li strong { display: block; color: var(--color-text); font-size: 15px; margin-top: 2px; }
