/* Shop, cart and checkout (WooCommerce + Fluid Checkout). Same palette as account.css / Home v2. */
body.woocommerce-page, body.woocommerce-cart, body.woocommerce-checkout {
	--yd-or: #f26a1b; --yd-or-dark: #d9550c; --yd-ink: #1f2a37; --yd-muted: #6b7684; --yd-line: #e3e8ee; --yd-soft: #f7f9fb;
	/* Fluid Checkout buttons and accents */
	--fluidcheckout--button--primary--background-color: #f26a1b;
	--fluidcheckout--button--primary--border-color: #f26a1b;
	--fluidcheckout--button--primary--text-color: #fff;
	--fluidcheckout--button--primary--background-color--hover: #d9550c;
	--fluidcheckout--button--primary--border-color--hover: #d9550c;
	--fluidcheckout--button--primary--text-color--hover: #fff;
	--fluidcheckout--button--border-radius: 12px;
	--fluidcheckout--button--font-weight: 800;
	--fluidcheckout--field--border-radius: 12px;
}
/* The blue page background comes from a Fluid Checkout design setting: use the site's grey like every other page */
body.has-fluid-checkout, :root body.woocommerce-page[class*="theme-"][class*="has-fc-design-template"] {
	background-color: #f4f4f4 !important;
	background-image: none !important;
}
/* Order summary: white card instead of light blue */
body.has-fluid-checkout .fc-checkout-order-review,
body.has-fluid-checkout .fc-checkout-order-review__inner,
body.has-fluid-checkout .fc-sidebar__inner {
	background-color: #fff !important;
}

/* ---------- Shop: one card per package ---------- */
.woocommerce ul.products {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 0 0 30px !important; padding: 0 !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; clear: none !important; }
.woocommerce ul.products li.product {
	background: #fff; border: 1px solid var(--yd-line); border-radius: 16px; padding: 18px 14px !important;
	text-align: center; box-shadow: 0 2px 8px rgba(31, 42, 55, .04); transition: border-color .15s, box-shadow .15s;
}
.woocommerce ul.products li.product:hover { border-color: var(--yd-or); box-shadow: 0 10px 24px rgba(242, 106, 27, .12); }
.woocommerce ul.products li.product a.woocommerce-loop-product__link { text-decoration: none; display: block; }
.yd-pack { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 14px; color: var(--yd-ink); }
.yd-pack-credit { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--yd-or); }
.yd-pack-label { font-size: 14px; font-weight: 700; color: var(--yd-muted); text-transform: uppercase; letter-spacing: .04em; }
.yd-pack-price { margin-top: 10px; font-size: 15px; color: var(--yd-muted); }
.yd-pack-price strong, .yd-pack-price .amount { color: var(--yd-ink); font-weight: 800; }
.woocommerce ul.products li.product .button {
	display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 46px; height: auto !important;
	line-height: 1.2 !important; margin: 0 !important; padding: 10px !important; border-radius: 12px !important;
	background: var(--yd-or) !important; color: #fff !important; font-weight: 800 !important; font-size: 16px !important; border: 0 !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--yd-or-dark) !important; }

/* ---------- Cart (WooCommerce cart block) ---------- */
.wc-block-components-product-price__regular, .wc-block-components-sale-badge { display: none !important; }
.wc-block-components-product-price__value.is-discounted { background: none !important; color: inherit !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--yd-or) !important; color: #fff !important; border-radius: 12px !important; font-weight: 800 !important; border: 0 !important;
}
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--yd-or-dark) !important; }

/* Empty shop for guests */
.yd-shop-empty {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 10px auto 30px; max-width: 460px;
	background: #fff; border: 1px solid var(--yd-line); border-radius: 16px; padding: 28px 22px; color: var(--yd-muted);
}
.yd-shop-empty strong { color: var(--yd-ink); font-size: 22px; }
.yd-shop-empty-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.yd-shop-empty-btns .button {
	display: inline-flex !important; align-items: center; justify-content: center; min-width: 170px; min-height: 46px; height: auto !important;
	line-height: 1.2 !important; margin: 0 !important; border-radius: 12px !important; padding: 10px 20px !important;
	font-weight: 800 !important; background: var(--yd-or) !important; color: #fff !important; border: 1px solid var(--yd-or) !important;
}
.yd-shop-empty-btns .button.alt { background: #fff !important; color: var(--yd-or) !important; border: 1px solid var(--yd-or) !important; }

/* Checkout: the country is filled in automatically, so its (empty) field is not shown */
.yd-hidden-field, #billing_country_field { display: none !important; }
/* ...and the "Billing address" section has nothing else in it */
.fc-step__substep[data-substep-id="billing_address"] { display: none !important; }
/* Read-only account e-mail */
#billing_email[readonly] { background: var(--yd-soft) !important; color: var(--yd-ink) !important; cursor: not-allowed; }

@media (max-width: 480px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.woocommerce ul.products li.product { padding: 14px 10px !important; }
	.yd-pack-credit { font-size: 32px; }
	.yd-pack-label { font-size: 12px; }
}
