/* JMJ Shop core: basket, checkout, account and product screens. Colours come from the --cs-* tokens (with fallbacks). */
.woocommerce { --j-green: var(--cs-green, #186038); --j-ink: var(--cs-ink, #17201a); --j-muted: var(--cs-muted, #59615a); --j-line: var(--cs-line, #d9d6cc); --j-surface: var(--cs-surface, #fbfaf6); --j-bad: var(--cs-bad, #9b2c22); color: var(--j-ink); }
.woocommerce *, .woocommerce *::before, .woocommerce *::after { box-sizing: border-box; }
.woocommerce .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.woocommerce h2, .woocommerce h3 { margin: 1.75rem 0 .75rem; font-size: 1.3rem; line-height: 1.2; }

/* Buttons */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border: 1px solid var(--j-green); border-radius: 6px; background: var(--j-green); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .1s; }
.woocommerce .button:hover { background: var(--cs-green-press, #0f4528); color: #fff; }
.woocommerce .button:active { transform: translateY(1px); }
.woocommerce .button:disabled, .woocommerce form.processing .button { opacity: .6; cursor: wait; }
.woocommerce .button.jmj-btn-quiet { background: transparent; color: var(--j-green); }
.woocommerce .button.jmj-btn-quiet:hover { background: var(--cs-green-tint, #e4efe7); color: var(--j-green); }
.woocommerce #place_order, .woocommerce .checkout-button { width: 100%; min-height: 54px; font-size: 1.05rem; }

/* Notices */
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 6px; border-left: 4px solid var(--j-green); background: var(--cs-green-tint, #e4efe7); color: var(--j-ink); }
.woocommerce-error { border-color: var(--j-bad); background: var(--cs-bad-tint, #f8e4e1); }
.woocommerce-info { border-color: var(--cs-info, #24507a); background: var(--cs-info-tint, #e3ecf5); }
.woocommerce-error li + li, .woocommerce-message li + li { margin-top: .35rem; }
.woocommerce-message .button { min-height: 0; padding: .3rem .8rem; margin-left: .5rem; font-size: .9rem; }

/* Forms */
.woocommerce .form-row { margin: 0 0 1rem; display: block; }
.woocommerce .form-row label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .95rem; }
.woocommerce .form-row label.checkbox, .woocommerce label.woocommerce-form__label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.woocommerce .required { color: var(--j-bad); text-decoration: none; }
.woocommerce .optional, .woocommerce .description { color: var(--j-muted); font-weight: 400; font-size: .875rem; }
.woocommerce .description { display: block; margin-top: .3rem; }
.woocommerce .woocommerce-input-wrapper { display: block; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select { width: 100%; min-height: 46px; padding: .6rem .75rem; border: 1px solid var(--j-line); border-radius: 6px; background: var(--j-surface); color: var(--j-ink); font: inherit; font-size: 16px; }
.woocommerce textarea { min-height: 84px; }
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { outline: none; border-color: var(--j-green); box-shadow: var(--cs-focus, 0 0 0 3px rgba(240, 152, 32, .5)); }
.woocommerce .woocommerce-invalid input.input-text, .woocommerce .woocommerce-invalid textarea { border-color: var(--j-bad); }
.woocommerce input[type="checkbox"], .woocommerce input[type="radio"] { width: 20px; height: 20px; flex: none; margin: .1rem 0 0; accent-color: var(--j-green); }
.woocommerce fieldset { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--j-line); border-radius: 8px; }
.woocommerce fieldset legend { padding: 0 .4rem; font-weight: 650; }
@media (min-width: 600px) {
	.woocommerce .woocommerce-billing-fields__field-wrapper, .woocommerce .woocommerce-shipping-fields__field-wrapper, .woocommerce .woocommerce-address-fields__field-wrapper, .woocommerce .jmj-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
	.woocommerce .form-row, .woocommerce .jmj-form > * { grid-column: 1 / -1; }
	.woocommerce .form-row-first { grid-column: 1; }
	.woocommerce .form-row-last { grid-column: 2; }
}

/* Tables */
.woocommerce table.shop_table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; border: 1px solid var(--j-line); border-radius: 8px; background: var(--j-surface); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: .8rem .9rem; border-bottom: 1px solid var(--j-line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table tr:last-child > * { border-bottom: 0; }
.woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td, .woocommerce .cart_totals th { font-weight: 600; }
.woocommerce table.shop_table td.product-total, .woocommerce table.shop_table th.product-total, .woocommerce table.shop_table tfoot td, .woocommerce .cart_totals td { text-align: right; }
.woocommerce .order-total td, .woocommerce .order-total th { font-size: 1.1rem; }
.woocommerce dl.variation, .woocommerce .wc-item-meta { margin: .3rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--j-muted); }
.woocommerce dl.variation dt, .woocommerce dl.variation dd { display: inline; margin: 0; }
.woocommerce dl.variation dd::after { content: ""; display: block; }
.woocommerce dl.variation dd p { display: inline; margin: 0; }
.woocommerce #shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; justify-items: end; }
.woocommerce #shipping_method li { display: flex; gap: .5rem; align-items: center; }
.woocommerce #shipping_method label { margin: 0; font-weight: 500; }
.woocommerce .jmj-noimg { display: block; aspect-ratio: 1; background: var(--cs-green-tint, #e4efe7); border-radius: 6px; }

/* Basket */
.woocommerce td.product-thumbnail { width: 76px; }
.woocommerce td.product-thumbnail img, .woocommerce td.product-thumbnail .jmj-noimg { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }
.woocommerce td.product-name a { color: var(--j-ink); font-weight: 600; text-decoration: none; }
.woocommerce input.qty { width: 84px; text-align: center; }
.woocommerce a.remove { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--j-bad); font-size: 1.4rem; line-height: 1; text-decoration: none; }
.woocommerce a.remove:hover { background: var(--cs-bad-tint, #f8e4e1); }
.woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce .cart_totals { width: min(100%, 440px); }
.woocommerce .jmj-cart-actions { display: grid; gap: .6rem; }
@media (max-width: 700px) {
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tbody tr { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; padding: .6rem; border-bottom: 1px solid var(--j-line); }
	.woocommerce table.shop_table_responsive tbody td { border: 0; padding: .25rem .4rem; }
	.woocommerce table.cart td.product-thumbnail { grid-row: span 3; }
	.woocommerce table.cart td.product-name { grid-column: 2; }
	.woocommerce table.cart td.product-remove { grid-column: 3; grid-row: 1; }
	.woocommerce table.cart td.product-price { display: none; }
	.woocommerce table.cart td.product-quantity { grid-column: 2; }
	.woocommerce table.cart td.product-subtotal { grid-column: 3; font-weight: 650; }
	.woocommerce table.my_account_orders tbody tr { grid-template-columns: 1fr 1fr; }
	.woocommerce table.my_account_orders td::before { content: attr(data-title); display: block; font-size: .75rem; color: var(--j-muted); }
}

/* Checkout */
.woocommerce form.checkout { display: grid; gap: 0 2.5rem; }
.woocommerce .jmj-checkout__main, .woocommerce .jmj-checkout__side { min-width: 0; }
.woocommerce #customer_details .col-1, .woocommerce #customer_details .col-2 { margin-bottom: 1rem; }
.woocommerce #ship-to-different-address { font-size: 1rem; }
.woocommerce [hidden] { display: none !important; }
.woocommerce #payment { padding: 1rem; border: 1px solid var(--j-line); border-radius: 8px; background: var(--j-surface); }
.woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
.woocommerce #payment li.wc_payment_method > label { display: inline; font-weight: 650; }
.woocommerce #payment .payment_box { margin: .5rem 0 0; color: var(--j-muted); font-size: .95rem; }
.woocommerce #payment .payment_box p { margin: 0 0 .5rem; }
.woocommerce #payment .place-order { margin: 0; }
@media (min-width: 960px) {
	.woocommerce form.checkout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
	.woocommerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.woocommerce .jmj-checkout__side { position: sticky; top: 96px; }
	.woocommerce .jmj-checkout__side > h3, .woocommerce .woocommerce-billing-fields > h3 { margin-top: 0; }
}
.woocommerce ul.order_details { list-style: none; margin: 0 0 1.5rem; padding: 1rem; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--j-line); border-radius: 8px; background: var(--j-surface); }
.woocommerce ul.order_details strong { display: block; font-size: 1.05rem; }
.woocommerce .woocommerce-thankyou-order-received { font-size: 1.15rem; font-weight: 600; }
.woocommerce .woocommerce-columns.addresses { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.woocommerce address { font-style: normal; line-height: 1.55; }

/* Account */
.woocommerce .col2-set#customer_login { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; gap: 1.5rem 2.5rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; overflow-x: auto; }
.woocommerce-MyAccount-navigation a { display: block; padding: .6rem .9rem; border-radius: 999px; color: var(--j-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--cs-green-tint, #e4efe7); color: var(--j-green); }
.woocommerce mark { background: none; color: inherit; font-weight: 650; }
.woocommerce .jmj-note { margin: 0 0 1rem; padding: .75rem 1rem; border-left: 4px solid var(--cs-orange, #f09820); background: var(--cs-orange-tint, #fcf0dc); }
@media (min-width: 860px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; }
	.woocommerce-MyAccount-navigation a { border-radius: 6px; }
}

/* Product grid and product page */
.jmj-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (min-width: 700px) { .jmj-grid { gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.jmj-card { display: flex; flex-direction: column; gap: .45rem; }
.jmj-card__media { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--cs-green-tint, #e4efe7); aspect-ratio: 1; }
.jmj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.jmj-card:hover .jmj-card__media img { transform: scale(1.04); }
.jmj-card.is-out .jmj-card__media img { opacity: .55; }
.jmj-tag { position: absolute; top: .6rem; left: .6rem; padding: .2rem .6rem; border-radius: 999px; background: var(--cs-ink, #17201a); color: #fff; font-size: .78rem; font-weight: 650; }
.jmj-tag--sale { background: var(--cs-orange, #f09820); color: #17201a; }
.jmj-card__name { margin: .25rem 0 0; font-size: 1.02rem; line-height: 1.25; font-weight: 650; font-family: inherit; }
.jmj-card__name a { color: inherit; text-decoration: none; }
.jmj-card__price { margin: 0; font-weight: 650; }
.jmj-card__price del, .woocommerce .price del { color: var(--cs-muted, #59615a); font-weight: 400; margin-right: .3rem; }
.jmj-card__price ins, .woocommerce .price ins { text-decoration: none; }
.jmj-card .button { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--cs-green, #186038); border-radius: 6px; background: var(--cs-green, #186038); color: #fff; font-weight: 650; text-decoration: none; }
.jmj-card .button.jmj-btn-quiet { background: transparent; color: var(--cs-green, #186038); }
.jmj-card .button.is-busy { opacity: .6; pointer-events: none; }
.jmj-muted { color: var(--cs-muted, #59615a); font-size: .9rem; }
.jmj-product__grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 860px) { .jmj-product__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .jmj-product__gallery { position: sticky; top: 96px; } }
.jmj-product__main img, .jmj-product__main .jmj-noimg { width: 100%; height: auto; border-radius: 10px; display: block; }
.jmj-product__thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.jmj-thumb { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; overflow: hidden; cursor: pointer; }
.jmj-thumb.is-on { border-color: var(--cs-green, #186038); }
.jmj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jmj-product__cats { margin: 0 0 .4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.jmj-product__cats a { color: var(--cs-muted, #59615a); text-decoration: none; }
.jmj-product .product_title { margin: 0 0 .5rem; }
.jmj-product .price { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 700; }
.jmj-product .stock { font-weight: 650; }
.jmj-product .out-of-stock { color: var(--cs-bad, #9b2c22); }
.jmj-product .in-stock { color: var(--cs-orange-ink, #8a5300); }
.jmj-buy { display: flex; gap: .6rem; margin: 1rem 0; }
.jmj-buy .button { flex: 1; min-height: 52px; }
.jmj-product__description, .jmj-related { margin-top: 3rem; }

/* v2.0.4 polish */
.woocommerce #shipping_method li { justify-content: flex-end; text-align: right; }
.woocommerce #shipping_method input[type="radio"] { margin: 0; }
.woocommerce #ship-to-different-address { margin: 1.25rem 0 .75rem; font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.woocommerce #ship-to-different-address label { margin: 0; align-items: center; }
.woocommerce .woocommerce-terms-and-conditions-wrapper { margin: 0 0 1rem; }
.woocommerce .woocommerce-terms-and-conditions-wrapper label { align-items: flex-start; flex-wrap: nowrap; }
.woocommerce .woocommerce-terms-and-conditions-wrapper label > span { flex: 1; }
.woocommerce #payment li.wc_payment_method { display: grid; grid-template-columns: auto 1fr; gap: .25rem .55rem; align-items: center; }
.woocommerce #payment li.wc_payment_method .payment_box { grid-column: 1 / -1; }
.woocommerce dl.variation dt { margin-right: .3em; }
.woocommerce .wc-item-meta-label { margin-right: .2em; }
.woocommerce .jmj-track { max-width: 520px; }
.woocommerce .jmj-track__status { padding: 1rem; border: 1px solid var(--j-line); border-radius: 8px; background: var(--j-surface); margin-bottom: 1.5rem; }
.woocommerce .jmj-track__status strong { font-size: 1.15rem; }
@media (max-width: 700px) {
	.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: .7rem .75rem; }
	.woocommerce #shipping_method { justify-items: start; }
	.woocommerce #shipping_method li { justify-content: flex-start; text-align: left; }
	.woocommerce tr.shipping, .woocommerce tr.shipping > th, .woocommerce tr.shipping > td { display: block; text-align: left !important; }
	.woocommerce tr.shipping > th { padding-bottom: 0; border-bottom: 0; }
	.woocommerce tr.shipping { border-bottom: 1px solid var(--j-line); }
	.woocommerce tr.shipping > td { border-bottom: 0; }
	.woocommerce .button { min-height: 48px; }
}

/* v2.0.5: account pages fit the phone screen (the tab row scrolls on its own, nothing else does) */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { min-width: 0; max-width: 100%; }
.woocommerce-MyAccount-navigation ul { scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.woocommerce-MyAccount-navigation li { flex: none; scroll-snap-align: start; }
.woocommerce-MyAccount-content { overflow-wrap: anywhere; }
.woocommerce-MyAccount-content table { max-width: 100%; }
@media (min-width: 860px) { .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 220px minmax(0, 1fr); } }
.woocommerce .jmj-country { display: block; padding: .6rem .75rem; border: 1px dashed var(--j-line); border-radius: 6px; font-weight: 600; }
