/* Candidate density pass. Additional private-only layer over published RC4.3.
   No zoom/transform scaling, hidden content, price logic or commerce JS changes. */
body.fox-v4 .fox-v4-section { max-width: 1280px; margin-left: auto; margin-right: auto; padding-top: 20px; padding-bottom: 24px; }
body.fox-v4 .fox-v4-section-heading { margin-bottom: 14px; }
body.fox-v4 .fox-v4-section-heading h2,
body.fox-v4 .fox-v4-section > h2,
body.fox-v4 .fox-v4-look-intro h2 { font-size: clamp(24px,2.2vw,32px); }
body.fox-v4 .fox-v4-worlds { gap: 12px; }
body.fox-v4 .fox-v4-world { aspect-ratio: 1.5; }
body.fox-v4 .fox-v4-world h3 { left: 16px; right: 16px; bottom: 16px; font-size: clamp(24px,2.2vw,32px); }
body.fox-v4:is(.fox-v4-archive,.fox-v4-tips,.fox-v4-cart,.fox-v4-checkout) .fox-v4-archive-head { padding-top: 14px; padding-bottom: 14px; gap: 6px 16px; }
body.fox-v4:is(.fox-v4-archive,.fox-v4-tips,.fox-v4-cart,.fox-v4-checkout) .fox-v4-archive-head h1 { font-size: clamp(28px,3vw,42px); }
body.fox-v4.fox-v4-archive .fox-v4-cat-hero > a,
body.fox-v4.fox-v4-archive .fox-v4-cat-hero > img,
body.fox-v4.fox-v4-archive .fox-v4-cat-hero > a img { height: 220px; min-height: 0; }
body.fox-v4.fox-v4-archive .fox-v4-cat-hero > div { padding: 18px 24px; }
body.fox-v4.fox-v4-archive .fox-v4-cat-hero h2 { font-size: 30px; margin-bottom: 10px; }
body.fox-v4 .fox-v4-cat-hero p { font-size: 14px; margin-bottom: 10px; }
body.fox-v4.fox-v4-archive #fox-v4-products { padding-top: 18px; }
body.fox-v4 .woocommerce ul.products,
body.fox-v4 ul.products.elementor-grid,
body.fox-v4 ul.products.eael-post-appender { gap: 24px 16px !important; }
body.fox-v4 ul.products li.product a img { aspect-ratio: 1.25; margin-bottom: 8px; }
body.fox-v4 ul.products .woocommerce-loop-product__title,
body.fox-v4 ul.products .theme-loop-product__title,
body.fox-v4 ul.products .eael-product-title h2 { font-size: 15px !important; line-height: 1.35 !important; margin-bottom: 6px !important; }
body.fox-v4 ul.products .price { font-size: 16px !important; line-height: 1.4; margin: 6px 0 !important; }
body.fox-v4 ul.products .price .amount { font-size: inherit !important; line-height: inherit; }
body.fox-v4 ul.products .price del,
body.fox-v4 ul.products .price ins { line-height: 1.4; margin-left: 0; }
body.fox-v4 .fox-v4-tip-grid { gap: 24px 18px; }
body.fox-v4 .fox-v4-tip-grid img { aspect-ratio: 1.9; margin-bottom: 10px; }
body.fox-v4 .fox-v4-tip-grid h3 { font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
body.fox-v4 .fox-v4-tip-grid p { margin-bottom: 8px; }
body.fox-v4.fox-v4-tips .fox-v4-tips-hero { margin-bottom: 24px; }
body.fox-v4.fox-v4-tips .fox-v4-tips-hero > img,
body.fox-v4.fox-v4-tips .fox-v4-tips-hero > a,
body.fox-v4.fox-v4-tips .fox-v4-tips-hero > a img { height: 240px; min-height: 0; }
body.fox-v4.fox-v4-tips .fox-v4-tips-hero h2 { font-size: 24px; margin-bottom: 10px; }
body.fox-v4.woocommerce-cart .cart_totals h2,
body.fox-v4.woocommerce-cart .wc-block-cart__totals-title { font-size: 24px; margin-bottom: 14px; }
body.fox-v4.woocommerce-cart .wc-block-components-sidebar { padding: 16px !important; }
body.fox-v4.woocommerce-cart .wc-block-components-product-name { font-size: 15px; }
body.fox-v4.woocommerce-cart .wc-block-components-sidebar-layout { gap: 24px; }
body.fox-v4.fox-v4-checkout .woocommerce-billing-fields h3,
body.fox-v4.fox-v4-checkout #order_review_heading,
body.fox-v4.fox-v4-checkout .woocommerce-additional-fields h3 { font-size: 24px; margin-bottom: 12px; }
@media (min-width:1024px) {
 body.fox-v4 .fox-v4-grid,
 body.fox-v4 .woocommerce ul.products,
 body.fox-v4 ul.products.elementor-grid,
 body.fox-v4 ul.products.eael-post-appender { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
 body.fox-v4 .fox-v4-tip-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:767px) {
 body.fox-v4 .fox-v4-worlds { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 body.fox-v4 .fox-v4-world { aspect-ratio: 1; }
 body.fox-v4 .fox-v4-world h3 { font-size: 24px; left: 10px; right: 10px; bottom: 10px; }
 body.fox-v4 .fox-v4-section-heading h2 { font-size: 24px; }
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero { grid-template-columns: minmax(0,.38fr) minmax(0,.62fr); }
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero > a,
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero > img,
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero > a img { height: 100%; min-height: 150px; max-height: 240px; }
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero > div { padding: 14px 12px; }
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero h2 { font-size: 24px; }
 body.fox-v4.fox-v4-archive .fox-v4-cat-hero p { font-size: 13px; line-height: 1.4; }
 body.fox-v4 .woocommerce ul.products,
 body.fox-v4 ul.products.elementor-grid,
 body.fox-v4 ul.products.eael-post-appender { gap: 20px 12px !important; }
 body.fox-v4 .fox-v4-tip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
 body.fox-v4 .fox-v4-tip-grid h3 { font-size: 16px; }
 body.fox-v4 .fox-v4-tip-grid p { font-size: 13px; }
 body.fox-v4.fox-v4-tips .fox-v4-tips-hero > img,
 body.fox-v4.fox-v4-tips .fox-v4-tips-hero > a,
 body.fox-v4.fox-v4-tips .fox-v4-tips-hero > a img { height: 160px; aspect-ratio: auto; }
 body.fox-v4.fox-v4-tips .fox-v4-tips-hero h2 { font-size: 20px; }
 body.fox-v4.woocommerce-cart .wc-block-cart.is-mobile .wc-block-cart-items__row { padding-top: 10px !important; padding-bottom: 10px !important; gap: 6px 10px !important; }
}
/* Stable compact home cards; retain full titles and minimum tap targets. */
body.fox-v4 .fox-v4-card .fox-v4-photo { aspect-ratio: 1.25; margin-bottom: 8px; }
body.fox-v4 .fox-v4-card h3 { font-size: 14px; line-height: 1.35; }
body.fox-v4 .fox-v4-card .price { font-size: 16px; margin: 6px 0; }
body.fox-v4 .fox-v4-grid:has(> .fox-v4-card:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
@media (max-width:767px) {
 body.fox-v4 .fox-v4-grid:has(> .fox-v4-card:nth-child(3):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
 body.fox-v4 .fox-v4-grid > .fox-v4-card:nth-child(3):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 12px; }
 body.fox-v4 .fox-v4-grid > .fox-v4-card:nth-child(3):last-child .fox-v4-photo { grid-column: 1; grid-row: 1 / span 3; }
 body.fox-v4 .fox-v4-grid > .fox-v4-card:nth-child(3):last-child > :not(.fox-v4-photo) { grid-column: 2; }
}

/* Avoid sparse rows in tablet assortments and two-article modules. */
@media (min-width:768px) and (max-width:1023px) {
 body.fox-v4.fox-v4-home .fox-v4-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
body.fox-v4 .fox-v4-tip-grid:has(> article:nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }

/* RC5.1: balance fixed three-category navigation and odd three-article modules. */
body.fox-v4 .fox-v4-world-arrow { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; padding: 4px; box-sizing: border-box; color: #fff; background: #0009; border-radius: 50%; pointer-events: none; }
@media (max-width:767px) {
 body.fox-v4 .fox-v4-worlds { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
 body.fox-v4 .fox-v4-world h3 { font-size: 18px; left: 7px; right: 7px; bottom: 9px; line-height: 1.1; }
}
@media (max-width:1023px) {
 body.fox-v4 .fox-v4-tip-grid > article:nth-child(3):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; align-items: start; }
 body.fox-v4 .fox-v4-tip-grid > article:nth-child(3):last-child > a:has(img) { grid-column: 1; min-width: 0; }
 body.fox-v4 .fox-v4-tip-grid > article:nth-child(3):last-child img { width: 100px; height: 100px; aspect-ratio: 1; margin: 0; object-fit: cover; }
 body.fox-v4 .fox-v4-tip-grid > article:nth-child(3):last-child > div { grid-column: 2; min-width: 0; }
 body.fox-v4 .fox-v4-tip-grid > article:nth-child(3):last-child:not(:has(> a img)) > div { grid-column: 1 / -1; }
}
