/* Keep empty grid tracks so sparse categories retain the same card size as the shop. */
.forma-shop-layout { display: flex; align-items: flex-start; gap: 2rem; }
.forma-shop-sidebar { flex: 0 0 15rem; }
.forma-shop-content { min-width: 0; flex: 1; }
.codplex-forma ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 2rem; padding: 0; list-style: none; clear: both; }
.codplex-forma ul.products::before, .codplex-forma ul.products::after { display: none; }
.codplex-forma.woocommerce ul.products li.product, .codplex-forma .woocommerce ul.products li.product { width: auto; float: none; margin: 0; min-width: 0; }
.codplex-forma ul.products li.product a { text-decoration: none; }
.codplex-forma ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--cog-color-surface-muted); border-radius: var(--cog-radius-md); }
.codplex-forma ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; margin-block: 1rem .5rem; }
.codplex-forma .price { color: var(--cog-color-secondary); font-weight: 600; }
.codplex-forma .woocommerce-result-count { float: none; display: inline-block; margin-block: .5rem 1.5rem; }
.codplex-forma .woocommerce-ordering { float: none; display: inline-block; margin-inline-start: 1rem; margin-block: 0 1.5rem; }
.codplex-forma div.product { display: flow-root; }
.codplex-forma.woocommerce div.product div.images { float: left; width: 48%; }
.codplex-forma.woocommerce div.product div.summary { float: right; width: 46%; }
.codplex-forma.woocommerce div.product .woocommerce-tabs, .codplex-forma.woocommerce div.product .related, .codplex-forma.woocommerce div.product .up-sells { clear: both; padding-block-start: 3rem; }
.codplex-forma.woocommerce div.product .product_title { font-size: clamp(1.8rem, 4vw, 3rem); }
.codplex-forma.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--cog-radius-md); }
.codplex-forma.woocommerce div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-block-start: 1rem; }
.codplex-forma.woocommerce div.product .flex-control-thumbs li { width: auto; float: none; }
.codplex-forma.woocommerce div.product .related ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.codplex-forma.woocommerce div.product form.cart .button, .codplex-forma .woocommerce .button, .codplex-forma.woocommerce .button { background: var(--cog-color-secondary); color: white; border-radius: var(--cog-radius-sm); line-height: 1.4; }
.codplex-forma .woocommerce-tabs ul.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.codplex-forma .woocommerce-tabs ul.tabs li a { padding: .7rem 1rem; }
.codplex-forma .woocommerce-message, .codplex-forma .woocommerce-info, .codplex-forma .woocommerce-error { background: var(--cog-color-surface-muted); border-top-color: var(--cog-color-secondary); }
.codplex-forma .quantity input.qty { min-height: 2.75rem; width: 5rem; }
.codplex-forma.woocommerce div.product p.price,
.codplex-forma.woocommerce div.product span.price,
.codplex-forma.woocommerce ul.products li.product .price,
.codplex-forma .woocommerce ul.products li.product .price { color: var(--cog-color-teal-700); }
.codplex-forma.woocommerce span.onsale,
.codplex-forma .woocommerce span.onsale { background: var(--cog-color-bronze-500); color: var(--cog-color-ivory-50); }
.codplex-forma.woocommerce div.product div.images .flex-control-thumbs li { width: 100%; float: none; }
.codplex-forma.woocommerce div.product div.images .flex-control-thumbs img { border: 1px solid var(--cog-color-border); padding: .25rem; }
.codplex-forma.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--cog-color-bronze-500); }
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 2rem; border-bottom: 1px solid var(--cog-color-border); }
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0; padding: 0; }
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: transparent; border-bottom-color: var(--cog-color-teal-700); }
.codplex-forma.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--cog-color-text); font-weight: 600; }
.codplex-forma.woocommerce .star-rating { color: var(--cog-color-bronze-500); }
.codplex-forma .woocommerce-pagination ul { display: flex; justify-content: center; list-style: none; }
.codplex-forma .woocommerce-pagination a, .codplex-forma .woocommerce-pagination span { display: block; padding: .75rem 1rem; }
@media(max-width: 991px) { .forma-shop-layout { flex-direction: column; } .forma-shop-sidebar { flex: auto; width: 100%; } .codplex-forma ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media(max-width: 600px) { .codplex-forma.woocommerce div.product div.images, .codplex-forma.woocommerce div.product div.summary { float: none; width: 100%; } .codplex-forma.woocommerce div.product .related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .codplex-forma .woocommerce-ordering { margin-inline-start: 0; } .codplex-forma table.shop_table { font-size: .875rem; } }

/* WooCommerce column classes also set percentage widths: reset them for CSS Grid. */
body.codplex-forma ul.products[class*="columns-"] li.product {
 width: 100%; float: none; clear: none; margin: 0; min-width: 0;
}
body.codplex-forma .woocommerce .cart-collaterals {
 display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem;
}
body.codplex-forma .woocommerce .cart-collaterals .cross-sells,
body.codplex-forma .woocommerce .cart-collaterals .cart_totals { width: 100%; float: none; }
body.codplex-forma .woocommerce .cart-collaterals .cross-sells { order: 2; }
body.codplex-forma .woocommerce .cart_totals { max-width: 38rem; justify-self: end; }
body.codplex-forma .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; width: 100%; }
body.codplex-forma :is(.woocommerce, .woocommerce-page) :is(a.button, button.button, input.button),
body.codplex-forma.woocommerce-page :is(a.button, button.button, input.button),
body.codplex-forma .wc-block-components-button:not(.is-link) {
 background: var(--cog-color-teal-700); border: 1px solid var(--cog-color-teal-700);
 color: var(--cog-color-white); border-radius: var(--cog-radius-md);
 min-height: 2.75rem; padding: .8rem 1.25rem; line-height: 1.5;
 white-space: normal; text-decoration: none;
}
body.codplex-forma :is(.woocommerce, .woocommerce-page) :is(a.button, button.button, input.button):hover,
body.codplex-forma.woocommerce-page :is(a.button, button.button, input.button):hover,
body.codplex-forma .wc-block-components-button:not(.is-link):hover {
 background: var(--cog-color-teal-900); border-color: var(--cog-color-teal-900); color: var(--cog-color-white);
}
body.codplex-forma .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
 position: relative; padding: 1.25rem 1.25rem 1.25rem 3.5rem; line-height: 1.7;
 display: flow-root; margin-bottom: 2rem;
}
body.codplex-forma .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before { top: 1.4rem; left: 1.25rem; }
body.codplex-forma .woocommerce :is(.woocommerce-info, .woocommerce-message) .button { margin: 0 0 .5rem 1rem; }
body.codplex-forma .woocommerce .woocommerce-MyAccount-navigation { float: none; width: auto; }
body.codplex-forma .woocommerce .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
body.codplex-forma .woocommerce:has(> .woocommerce-MyAccount-navigation) {
 display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
body.codplex-forma .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.codplex-forma .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--cog-color-border); border-radius: var(--cog-radius-md); overflow: hidden; }
body.codplex-forma .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--cog-color-border); }
body.codplex-forma .woocommerce-MyAccount-navigation li:last-child { border: 0; }
body.codplex-forma .woocommerce-MyAccount-navigation a { display: block; padding: 1rem 1.25rem; text-decoration: none; }
body.codplex-forma .woocommerce-MyAccount-navigation .is-active a { background: var(--cog-color-teal-700); color: white; }
body.codplex-forma .woocommerce-MyAccount-content :is(h2, h3) { font-size: 1.5rem; margin-bottom: 1.25rem; }
body.codplex-forma .woocommerce form .form-row { padding: 0; margin-bottom: 1.25rem; }
body.codplex-forma .woocommerce form .form-row label { display: block; margin-bottom: .5rem; line-height: 1.6; }
body.codplex-forma .woocommerce form .form-row label.checkbox { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
body.codplex-forma .woocommerce form .form-row input.input-text,
body.codplex-forma .woocommerce form .form-row textarea { min-height: 2.75rem; padding: .75rem 1rem; }
body.codplex-forma .woocommerce fieldset { border: 1px solid var(--cog-color-border); margin: 2rem 0; padding: 1.5rem; min-width: 0; }
body.codplex-forma .woocommerce fieldset legend { padding-inline: .5rem; }
body.codplex-forma .woocommerce .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; padding: 1.5rem; border: 1px solid var(--cog-color-border); border-radius: var(--cog-radius-md); }
body.codplex-forma .woocommerce .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
body.codplex-forma .woocommerce .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
body.codplex-forma .woocommerce .woocommerce-Address-title::before,
body.codplex-forma .woocommerce .woocommerce-Address-title::after { display: none; }
body.codplex-forma .woocommerce .woocommerce-Address-title h2 { margin: 0; }
body.codplex-forma .woocommerce address { font-style: normal; line-height: 1.8; }
body.codplex-forma .woocommerce table.shop_table :is(th, td) { padding: 1rem; line-height: 1.6; }
body.codplex-forma .woocommerce td.woocommerce-orders-table__cell-order-actions .button { margin: .25rem; }
body.codplex-forma .woocommerce form.login .woocommerce-form-login__submit { margin: .5rem 1rem .5rem 0; }
body.codplex-forma .woocommerce .select2-container .select2-selection--single { min-height: 2.75rem; height: auto; border-color: var(--cog-color-border); }
body.codplex-forma .woocommerce .select2-container .select2-selection__rendered { line-height: 2.75rem; padding-inline: 1rem 2rem; }
body.codplex-forma .woocommerce .select2-container .select2-selection__arrow { height: 2.75rem; }
@media(max-width: 767px) {
 body.codplex-forma .woocommerce:has(> .woocommerce-MyAccount-navigation),
 body.codplex-forma .woocommerce .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
 body.codplex-forma .woocommerce :is(.woocommerce-info, .woocommerce-message) .button { float: none; display: flex; margin: 0 0 1rem; }
}
@media(max-width: 479px) {
 body.codplex-forma ul.products[class*="columns-"],
 body.codplex-forma .cross-sells ul.products { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
 body.codplex-forma .woocommerce table.shop_table :is(th, td) { padding: .75rem; }
}

/* WooCommerce clearfix pseudo-elements must never become CSS Grid items. */
body.codplex-forma .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
body.codplex-forma .woocommerce:has(> .woocommerce-MyAccount-navigation)::after,
body.codplex-forma .woocommerce .cart-collaterals::before,
body.codplex-forma .woocommerce .cart-collaterals::after,
body.codplex-forma .woocommerce .woocommerce-Addresses::before,
body.codplex-forma .woocommerce .woocommerce-Addresses::after { display: none; }
body.codplex-forma:is(.woocommerce-account,.woocommerce-cart,.woocommerce-checkout) .forma-entry {
 max-width: none; width: 100%; margin-inline: auto;
}
body.codplex-forma:is(.woocommerce-account,.woocommerce-cart,.woocommerce-checkout) .forma-entry > h1 {
 text-align: center; font-size: clamp(2rem,4vw,3.5rem); margin-bottom: clamp(2rem,4vw,3rem);
}
body.codplex-forma .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper:empty { display: none; }
body.codplex-forma .woocommerce .woocommerce-MyAccount-navigation { grid-column: 1; width: 100%; }
body.codplex-forma .woocommerce .woocommerce-MyAccount-content { grid-column: 2; width: 100%; }
body.codplex-forma .woocommerce .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
body.codplex-forma .woocommerce .woocommerce-MyAccount-content {
 padding: clamp(1.25rem,3vw,2rem); border: 1px solid var(--cog-color-border); border-radius: var(--cog-radius-md);
}
body.codplex-forma .cross-sells { text-align: center; }
body.codplex-forma .cross-sells ul.products { grid-template-columns: repeat(auto-fill,minmax(min(100%,15rem),1fr)); max-width: none; text-align: start; }
body.codplex-forma .cross-sells ul.products li.product { max-width: none; }
body.codplex-forma .woocommerce .woocommerce-info::before,
body.codplex-forma .woocommerce .woocommerce-message::before,
body.codplex-forma .woocommerce .woocommerce-error::before {
 font-family: inherit; content: 'i'; font-weight: 700; color: var(--cog-color-teal-700);
}
@media(max-width:767px) {
 body.codplex-forma .woocommerce .woocommerce-MyAccount-content { grid-column: 1; }
 body.codplex-forma .cross-sells ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:479px) { body.codplex-forma .cross-sells ul.products { grid-template-columns: minmax(0,1fr); } }

/* A single centered cart layout: items and summary share the desktop row. */
body.codplex-forma.woocommerce-cart .entry-content > .woocommerce:has(.woocommerce-cart-form) {
 display: grid; grid-template-columns: minmax(0,1.7fr) minmax(20rem,1fr);
 grid-template-areas: "notices notices" "cart totals" "cross cross"; gap: 2.5rem; align-items: start;
}
body.codplex-forma.woocommerce-cart .entry-content > .woocommerce::before,
body.codplex-forma.woocommerce-cart .entry-content > .woocommerce::after { display: none; }
body.codplex-forma.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-area: notices; }
body.codplex-forma.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
body.codplex-forma.woocommerce-cart .woocommerce:has(> .woocommerce-notices-wrapper:empty) {
 grid-template-areas: "cart totals" "cross cross";
}
body.codplex-forma.woocommerce-cart .woocommerce-cart-form { grid-area: cart; min-width: 0; }
body.codplex-forma.woocommerce-cart .woocommerce .cart-collaterals { display: contents; }
body.codplex-forma.woocommerce-cart .woocommerce .cart_totals {
 grid-area: totals; max-width: none; margin: 0; padding: 1.5rem;
 border: 1px solid var(--cog-color-border); border-radius: var(--cog-radius-md);
}
body.codplex-forma.woocommerce-cart .woocommerce .cross-sells { grid-area: cross; width: 100%; margin-top: 1rem; }
body.codplex-forma.woocommerce-cart .woocommerce .cart_totals h2 { font-size: 1.6rem; }
@media(max-width:1100px) {
 body.codplex-forma.woocommerce-cart .entry-content > .woocommerce:has(.woocommerce-cart-form) {
  grid-template-columns: minmax(0,1fr); grid-template-areas: "notices" "cart" "totals" "cross";
 }
 body.codplex-forma.woocommerce-cart .woocommerce:has(> .woocommerce-notices-wrapper:empty) { grid-template-areas: "cart" "totals" "cross"; }
 body.codplex-forma.woocommerce-cart .woocommerce .cart_totals { width: 100%; max-width: 38rem; justify-self: center; }
}
body.codplex-forma.woocommerce-cart .woocommerce table.cart td.product-thumbnail img { width: 4rem; height: 4rem; max-width: none; object-fit: contain; }
body.codplex-forma.woocommerce-cart .woocommerce table.cart td.actions .coupon { display: flex; align-items: center; gap: .75rem; }
body.codplex-forma.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text { width: 10rem; min-width: 0; margin: 0; }
@media(max-width:600px) {
 body.codplex-forma.woocommerce-cart .woocommerce table.cart td.actions .coupon { float: none; width: 100%; }
 body.codplex-forma.woocommerce-cart .woocommerce table.cart td.actions .coupon :is(.input-text,.button) { flex: 1; width: 0; min-width: 0; }
}
body.codplex-forma.woocommerce-account .woocommerce > :is(form.login,form.lost_reset_password) { width: 100%; max-width: 38rem; margin-inline: auto; }
body.codplex-forma.woocommerce-account .woocommerce > h2 { text-align: center; }
