/* Collection pages only: native WooCommerce behaviour with a quiet product grid. */
#cubelab-category { max-width: 1240px; margin: 0 auto; padding: 44px 32px 80px; color: #152b2b; }
#cubelab-category .collection-header { padding: 0 0 30px; border-bottom: 1px solid #e7eeee; background: #fff; }
#cubelab-category .woocommerce-breadcrumb { margin: 0 0 20px; padding: 0; font-size: 13px; color: #617273; }
#cubelab-category .woocommerce-breadcrumb a { color: #52676b; }
#cubelab-category h1 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; color: #152b2b; }
#cubelab-category .term-description { max-width: 700px; color: #52676b; font-size: 16px; line-height: 1.6; }
#cubelab-category .collection-back { display: inline-block; margin-top: 8px; color: #09d8d8; font-size: 14px; }
#cubelab-category a:hover { color: #111; }
#cubelab-category .collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
#cubelab-category .collection-count { margin: 0; font-size: 14px; color: #52676b; }
#cubelab-category .woocommerce-ordering { float: none; margin: 0; }
#cubelab-category select.orderby { width: 250px; max-width: 100%; height: 44px; margin: 0; padding: 0 34px 0 14px; border: 1px solid #dce5e5; border-radius: 8px; background-color: #fff; color: #152b2b; font-size: 14px; }
#cubelab-category .collection-products ul.products { display: grid !important; width: 100% !important; max-width: none !important; box-sizing: border-box; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px 24px; margin: 0 !important; padding: 0 !important; }
#cubelab-category .collection-products ul.products::before, #cubelab-category .collection-products ul.products::after { display: none !important; }
#cubelab-category .collection-products ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0 0 16px !important; min-width: 0; background: #fff !important; box-shadow: none !important; text-align: left; }
#cubelab-category .collection-products .archive-img-wrap { position: relative !important; width: 100%; height: auto !important; aspect-ratio: 1.12; padding: 0 !important; overflow: hidden; border-radius: 12px; background: #fff !important; }
#cubelab-category .collection-products .archive-img-wrap > a.woocommerce-loop-product__link { display: block; width: 100%; height: 100%; }
#cubelab-category .collection-products .archive-img-wrap > a.woocommerce-loop-product__link > img { position: static !important; display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0 !important; padding: 0 !important; background: #fff !important; transform: none !important; }
#cubelab-category .collection-products .woocommerce-loop-product__title { position: static !important; display: block !important; width: auto !important; height: auto !important; min-height: 44px; margin: 12px 0 6px !important; padding: 0 !important; font-size: 16px !important; line-height: 1.4; font-weight: 400; text-align: left !important; color: #152b2b !important; }
#cubelab-category .collection-products li.product .price { display: flex !important; justify-content: flex-start !important; gap: 8px; position: static !important; margin: 0 !important; padding: 0 !important; color: #666 !important; font-size: 13px !important; font-weight: 400; }
#cubelab-category .collection-products li.product .price * { color: inherit !important; }
#cubelab-category .woocommerce-pagination { margin-top: 36px; }
#cubelab-category a:focus-visible, #cubelab-category select:focus-visible { outline: 2px solid #09d8d8; outline-offset: 3px; }
@media(max-width: 960px) { #cubelab-category .collection-products ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width: 700px) { #cubelab-category { padding: 28px 20px 48px; } #cubelab-category .collection-products ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; } #cubelab-category .collection-toolbar { align-items: stretch; flex-direction: column; gap: 12px; } #cubelab-category select.orderby { width: 100%; } #cubelab-category .collection-products .woocommerce-loop-product__title { font-size: 14px !important; } }
#cubelab-category .collection-products ul.products li.product { display: flex !important; flex-direction: column; }
#cubelab-category .collection-products .archive-img-wrap { flex: 0 0 auto; }
#cubelab-category .collection-products .woocommerce-loop-product__title { flex: 1 0 auto; }
#cubelab-category .collection-products li.product .price { width: auto !important; text-align: left !important; }
#cubelab-category .collection-products li.product .price .amount { float: none !important; width: auto !important; margin: 0 !important; text-align: left !important; }

#cubelab-category .collection-products li.product .price del { opacity: .5; font-size: 14px; }
#cubelab-category .collection-products li.product .price ins { background: transparent; text-decoration: none; }
#cubelab-category .top-categories { padding: 28px 0; border-bottom: 1px solid #e7eeee; }
#cubelab-category .top-categories h2.title { font-size: 20px; margin: 0 0 20px; text-align: left; }
#cubelab-category .collection-products li.product .price { flex-direction: row !important; align-self: stretch; }

/* Centered catalogue cards; reveal prices without moving the layout. */
#cubelab-category .collection-products ul.products li.product {
 padding-bottom: 14px !important;
 text-align: center;
 transition: box-shadow .2s ease;
}
#cubelab-category .collection-products ul.products li.product:is(:hover, :focus-within) {
 box-shadow: 0 8px 32px rgba(25, 40, 55, .06) !important;
}
#cubelab-category .collection-products .woocommerce-loop-product__title {
 text-align: center !important;
 max-width: none !important;
 align-self: stretch;
 padding: 0 16px !important;
 color: #111 !important;
}
#cubelab-category .collection-products li.product .price {
 justify-content: center !important;
 text-align: center !important;
 transition: opacity .18s ease;
}
#cubelab-category .collection-products li.product .price .amount { text-align: center !important; }
@media (hover: hover) and (pointer: fine) {
 #cubelab-category .collection-products li.product .price { opacity: 0; }
 #cubelab-category .collection-products li.product:is(:hover, :focus-within) .price { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
 #cubelab-category .collection-products li.product,
 #cubelab-category .collection-products li.product .price { transition: none; }
}

/* Minimal vector arrow for the collection return link. */
#cubelab-category .collection-back { display: inline-flex; align-items: center; gap: 6px; }
.collection-back .collection-back-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; }

/* Give the shop catalogue breathing room below the collection divider. */
body.woocommerce-shop #cubelab-category > .collection-products { padding-top: 24px; }
@media (max-width: 700px) {
 body.woocommerce-shop #cubelab-category > .collection-products { padding-top: 16px; }
}
