/* ==========================================================================
   VALKYRIE — store: buy form, cart, checkout, account, policy pages
   WooCommerce's own stylesheets are disabled; everything here follows main.css.
   ========================================================================== */

/* ------------------------------------------------------------------ header cart */
.cart-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(230,228,223,.3); transition: border-color .3s, color .3s; }
.cart-link:hover { border-color: var(--accent); color: var(--accent); }
.cart-link svg { width: 20px; height: 20px; }
.cart-link__n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 700 10px/18px var(--f-mono); text-align: center; }
.cart-link__n.is-empty { display: none; }

/* ------------------------------------------------------------------ prices */
.price--sale { flex-wrap: wrap; }
.price s { font-size: .62em; color: var(--mute); text-decoration-thickness: 1.5px; text-decoration-color: var(--accent); }
.p-price-note, .card__note { color: var(--accent); font-size: 11px; letter-spacing: .06em; }
.card__note { margin-top: 6px; }
.p-note a { text-decoration: underline; text-underline-offset: 3px; }
.p-note a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ buy form */
.buy-form { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.buy-form--compact { display: flex; }
.qty, .quantity { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 52px; overflow: hidden; }
.qty button, .quantity button { width: 42px; height: 100%; font: 400 20px/1 var(--f-mono); color: inherit; transition: background .2s, color .2s; }
.qty button:hover, .quantity button:hover { background: var(--fg); color: var(--bg); }
.qty input, .quantity input { width: 44px; height: 100%; border: 0; background: transparent; color: inherit; text-align: center; font: 500 16px var(--f-mono); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity { height: 42px; }
.quantity button { width: 34px; font-size: 17px; }
.buybar .buy-form { flex: none; }
.buybar { gap: 10px; }
.buybar .price { margin-inline-start: auto; }
@media (max-width: 420px) { .buybar .price s { display: none; } }

/* ------------------------------------------------------------------ page head + steps */
.page-head--sm { padding: calc(var(--head) + clamp(40px, 7vw, 88px)) 0 clamp(32px, 5vw, 56px); }
.page-head__title--sm { font-size: clamp(40px, 7vw, 96px); }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; color: var(--mute); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 10px; }
.steps li.is-on { color: var(--fg); }
.steps li.is-on span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.steps li.is-done span { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.page-body { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 10vw, 140px); }

/* ------------------------------------------------------------------ policy pages */
.legal__grid { display: grid; gap: 32px; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
.legal__nav a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute); transition: color .2s, border-color .2s; text-transform: none; }
.legal__nav a:hover, .legal__nav a[aria-current] { color: var(--fg); border-color: var(--fg); }
.legal__nav a[aria-current] { background: var(--fg); color: var(--bg); }
@media (min-width: 1000px) {
	.legal__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
	.legal__nav { flex-direction: column; position: sticky; top: calc(var(--head) + 32px); }
	.legal__nav a { border-radius: var(--r); }
}
.legal__body { max-width: 76ch; font-size: 17px; line-height: 1.95; }
.legal__body > * + * { margin-top: 1em; }
.legal__body .lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.7; font-weight: 500; }
.legal__body h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.legal__body h2 .mono { color: var(--accent); font-size: 12px; }
.legal__body h3 { font-size: 17px; font-weight: 700; margin-top: 1.4em; }
.legal__body ul, .legal__body ol { padding-inline-start: 1.3em; display: grid; gap: .4em; }
.legal__body li::marker { color: var(--accent); }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--accent); }
.legal__body strong { font-weight: 700; }
.legal__body .note { background: var(--paper-2); border-radius: var(--r); padding: 18px 22px; border-inline-start: 3px solid var(--accent); }
.legal__body .facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.legal__body .facts > div { background: var(--bg); padding: 16px 20px; display: grid; gap: 4px; }
.legal__body .facts b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
@media (min-width: 700px) { .legal__body .facts { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ WooCommerce base */
.shop__body { font-size: 16px; }
.shop__body a:not(.button):not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.shop__body a:not(.button):not(.btn):hover { color: var(--accent); }
.woocommerce .screen-reader-text, .shop__body .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.shop__body .button, .shop__body button[type="submit"], .shop__body input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-2);
	background: transparent; color: var(--fg); font: 500 15px var(--f-sans); cursor: pointer;
	transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.shop__body .button:hover, .shop__body button[type="submit"]:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.shop__body .button:active { transform: scale(.97); }
.shop__body .button.alt, .shop__body #place_order, .shop__body .checkout-button {
	background: var(--accent); border-color: var(--accent); color: var(--ink); min-height: 56px; font-size: 17px; width: 100%;
}
.shop__body .button.alt:hover, .shop__body #place_order:hover, .shop__body .checkout-button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop__body .button:disabled, .shop__body .button[disabled] { opacity: .4; cursor: not-allowed; }
.shop__body .button:disabled:hover { background: transparent; color: var(--fg); border-color: var(--line-2); }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 20px; margin-bottom: 24px; border-radius: var(--r);
	background: var(--paper-2); border-inline-start: 3px solid var(--volt); font-size: 15px;
}
.woocommerce-info { border-inline-start-color: var(--mute); }
.woocommerce-error { border-inline-start-color: var(--danger); display: grid; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 38px; padding: 0 16px; font-size: 14px; order: 2; }
.woocommerce-notice--success { border-inline-start-color: var(--volt); font-size: 18px; font-weight: 500; }

/* Forms */
.shop__body .form-row { display: grid; gap: 6px; margin: 0 0 16px; }
.shop__body .form-row label { font-size: 14px; color: var(--mute); }
.shop__body .form-row .required { color: var(--accent); text-decoration: none; border: 0; }
.shop__body .form-row .optional { font-size: 12px; opacity: .8; }
.shop__body .input-text, .shop__body select, .shop__body textarea, .shop__body input[type="email"], .shop__body input[type="tel"], .shop__body input[type="password"] {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r);
	border: 1px solid var(--line-2); background: rgba(255,255,255,.35); color: var(--fg);
	font: 400 16px var(--f-sans); transition: border-color .2s, background .2s;
}
.shop__body textarea { min-height: 110px; resize: vertical; }
.shop__body .input-text:focus, .shop__body select:focus, .shop__body textarea:focus { outline: 0; border-color: var(--fg); background: #fff; }
.shop__body .woocommerce-invalid .input-text { border-color: var(--danger); }
.shop__body input[type="tel"], .shop__body input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .shop__body input[type="tel"], [dir="rtl"] .shop__body input[type="email"] { text-align: right; }
.shop__body input[type="checkbox"], .shop__body input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: middle; margin-inline-end: 8px; }
.shop__body fieldset { border: 0; padding: 0; margin: 0; }
.shop__body h2, .shop__body h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.shop__body .clear { clear: both; }
.woocommerce-form-coupon-toggle .woocommerce-info { border-inline-start-color: var(--accent); }
.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 28px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.checkout_coupon p:first-child { flex-basis: 100%; }
.checkout_coupon .form-row { margin: 0; flex: 1 1 200px; }

/* ------------------------------------------------------------------ tables */
.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shop_table th, .shop_table td { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.shop_table thead th { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.shop_table .amount, .shop_table bdi { font-family: var(--f-mono); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.shop_table tfoot th { font-weight: 500; color: var(--mute); }
.shop_table .order-total th, .shop_table .order-total td { font-size: 18px; color: var(--fg); border-bottom: 0; }
.shop_table .order-total .amount { font-size: 22px; }
.shop_table del { color: var(--mute); }
.shop_table ins { text-decoration: none; }

/* Cart */
.woocommerce-cart-form .product-remove { width: 36px; }
.woocommerce-cart-form a.remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); text-decoration: none !important; font-size: 18px; line-height: 1; color: var(--mute); transition: all .2s; }
.woocommerce-cart-form a.remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.product-thumbnail { width: 110px; }
.cart-thumb { display: block; width: 96px; aspect-ratio: 1; background: var(--ink); border-radius: var(--r); color: var(--paper); overflow: hidden; }
.cart-thumb .render, .cart-thumb .product-photo { width: 100%; height: 100%; object-fit: cover; }
.shop_table .product-name a { font-weight: 500; text-decoration: none !important; font-size: 17px; }
.shop_table .variation { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.shop_table .variation dd, .shop_table .variation p { margin: 0; }
.shop_table td.actions { padding-top: 20px; }
.shop_table td.actions .coupon { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-inline-end: 12px; }
.shop_table td.actions .coupon .input-text { width: 200px; min-height: 48px; }
.shop_table td.actions > .button { float: inline-end; }
.cart-collaterals { margin-top: 48px; display: grid; }
.cart_totals { width: 100%; max-width: 520px; justify-self: end; padding: 28px; border-radius: calc(var(--r) * 2); background: var(--paper-2); }
.cart_totals .shop_table th { width: 40%; }
.wc-proceed-to-checkout { margin-top: 20px; }
.woocommerce-shipping-methods { list-style: none; display: grid; gap: 6px; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 13px; color: var(--mute); }
.shipping-calculator-button { display: none !important; }
.cart-empty.woocommerce-info { font-size: 20px; padding: 28px; }
.return-to-shop .button { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Checkout: details | order */
form.checkout { display: grid; gap: 32px; align-items: start; }
.col2-set { display: grid; gap: 8px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .form-row-first { grid-column: 1; }
.woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 2; }
.shop__body .form-row.hidden, .shop__body #billing_country_field.hidden { display: none; }
#billing_country_field strong, #shipping_country_field strong { font-weight: 500; }
#order_review_heading { margin: 0; }
#order_review { padding: 28px; border-radius: calc(var(--r) * 2); background: var(--paper-2); }
#order_review .shop_table td.product-name { font-size: 15px; }
#order_review .product-quantity { font-family: var(--f-mono); color: var(--mute); }
@media (min-width: 1000px) {
	form.checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
	form.checkout #order_review { position: sticky; top: calc(var(--head) + 24px); }
}

/* Payment */
#payment { margin-top: 24px; }
#payment .wc_payment_methods { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
#payment .wc_payment_method { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; background: var(--bg); }
#payment .wc_payment_method > label { font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#payment .wc_payment_method img { max-height: 26px; display: inline-block; }
#payment .payment_box { margin-top: 10px; font-size: 14px; color: var(--mute); }
#payment .woocommerce-info { margin: 0 0 16px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; margin-bottom: 18px; }
.woocommerce-privacy-policy-text { color: var(--mute); margin-bottom: 12px; }
.woocommerce-terms-and-conditions-checkbox-text { color: var(--fg); }
.woocommerce-terms-and-conditions { max-height: 240px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.blockUI.blockOverlay { background: rgba(230,228,223,.6) !important; }

/* Order received */
.woocommerce-order { display: grid; gap: 32px; }
ul.order_details { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ul.order_details li { background: var(--bg); padding: 16px 20px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--mute); letter-spacing: .06em; }
ul.order_details li strong { display: block; margin-top: 4px; font-size: 16px; color: var(--fg); text-transform: none; letter-spacing: 0; }
@media (min-width: 760px) { ul.order_details { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.woocommerce-customer-details address { font-style: normal; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); line-height: 1.9; }

/* Account */
.woocommerce-account .shop__body { display: grid; gap: 32px; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none !important; font-size: 14px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (min-width: 1000px) {
	.woocommerce-account .shop__body:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 240px 1fr; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; }
	.woocommerce-MyAccount-navigation a { border-radius: var(--r); width: 100%; }
}
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword { max-width: 460px; padding: 28px; border: 1px solid var(--line); border-radius: calc(var(--r) * 2); }
.u-columns { display: grid; gap: 32px; }
@media (min-width: 900px) { .u-columns.col2-set { grid-template-columns: 1fr 1fr; } }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; margin-inline-end: 16px; }

/* ------------------------------------------------------------------ responsive tables (small screens) */
@media (max-width: 760px) {
	.shop_table_responsive thead { display: none; }
	.shop_table_responsive tr { display: grid; grid-template-columns: 1fr; padding-block: 12px; border-bottom: 1px solid var(--line); }
	.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: end; }
	.shop_table_responsive td::before { content: attr(data-title); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--mute); text-align: start; }
	.shop_table_responsive td.product-remove, .shop_table_responsive td.product-thumbnail { justify-content: flex-start; }
	.shop_table_responsive td.product-remove::before, .shop_table_responsive td.product-thumbnail::before, .shop_table_responsive td.actions::before { display: none; }
	.shop_table_responsive td.actions { display: grid; gap: 10px; }
	.shop_table td.actions .coupon { display: grid; grid-template-columns: 1fr auto; margin: 0; }
	.shop_table td.actions .coupon .input-text { width: 100%; }
	.shop_table td.actions > .button { float: none; width: 100%; }
	.cart_totals, #order_review { padding: 20px; }
	.cart_totals .shop_table_responsive tr { grid-template-columns: 1fr; }
	.woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 1; }
	.buy-form { grid-template-columns: auto 1fr; }
}

/* ------------------------------------------------------------------ vault: released files */
.vcard--open .vcard__num { -webkit-text-stroke-color: rgba(184,242,58,.3); }
.vcard__files li.is-open a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.vcard__files li.is-open a:hover { color: var(--accent); }
.vcard__files li.is-open small { display: inline-flex; align-items: center; gap: 6px; color: var(--volt); }
.vcard__files li.is-open small svg { width: 12px; height: 12px; }
.drop-group + .drop-group { padding-top: 0; }
.shop__body .quantity .input-text, .shop__body .quantity .qty { width: 44px; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font: 500 15px var(--f-mono); }
.shop__body .quantity .input-text:focus { background: transparent; }
.shop__body .product-quantity .quantity { width: auto; }
