/* Only enqueued on WooCommerce catalog/product requests. Homepage is unchanged. */
.theikdi-commerce { padding-block: var(--wp--preset--spacing--50, 2rem); }
.theikdi-commerce .woocommerce { color: var(--wp--preset--color--ink); }
.theikdi-commerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.theikdi-commerce ul.products::before, .theikdi-commerce ul.products::after { display: none; }
.theikdi-commerce .woocommerce ul.products li.product { float: none; width: auto; margin: 0; min-width: 0; }
.theikdi-commerce ul.products li.product a img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: var(--wp--preset--color--beige); border-radius: 4px; }
.theikdi-commerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--editorial); font-size: 1.25rem; line-height: 1.5; }
.theikdi-commerce .theikdi-card-author, .theikdi-commerce .theikdi-card-stock { font-size: .875rem; margin: .4rem 0; }
.woocommerce-shop .theikdi-commerce ul.products li.product a img { aspect-ratio: 4 / 5; margin-bottom: .5rem; }
.woocommerce-shop .theikdi-commerce ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-wrap: wrap; align-items: center; column-gap: .4rem; }
.woocommerce-shop .theikdi-commerce ul.products li.product > a.woocommerce-LoopProduct-link > img { order: 0; flex: 0 0 100%; }
.woocommerce-shop .theikdi-commerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-shop .theikdi-commerce ul.products li.product .theikdi-card-author { order: 1; flex: 0 0 100%; }
.woocommerce-shop .theikdi-commerce ul.products li.product .woocommerce-loop-product__title { padding: .2rem 0; font-size: 1.05rem; line-height: 1.35; }
.woocommerce-shop .theikdi-commerce ul.products li.product .theikdi-card-author,
.woocommerce-shop .theikdi-commerce ul.products li.product .theikdi-card-stock { margin: .2rem 0; }
.woocommerce-shop .theikdi-card-stock span { display: inline-block; padding: .2rem .5rem; border-radius: 999px; background: #f1e8d7; color: #684817; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.woocommerce-shop .theikdi-card-stock.in-stock span { background: #e1f2e6; color: #185c32; }
.woocommerce-shop .theikdi-card-stock.out-of-stock span { background: #f9e5e3; color: #852c26; }
.woocommerce-shop .theikdi-commerce .woocommerce ul.products li.product .price { order: 2; margin: .2rem auto .2rem 0; font-weight: 700; }
.woocommerce-shop .theikdi-commerce ul.products li.product .theikdi-card-stock { order: 3; }
.woocommerce-shop .theikdi-commerce .woocommerce ul.products li.product a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: .25rem; padding: .45rem .65rem; font-size: .8rem; line-height: 1.2; }
.woocommerce-shop .theikdi-commerce .woocommerce ul.products li.product a.add_to_cart_button { gap: .4rem; }
.woocommerce-shop .theikdi-commerce .woocommerce ul.products li.product a.add_to_cart_button::before { content: ''; flex: 0 0 16px; width: 16px; height: 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h2.2l2.1 10.1A2.5 2.5 0 0 0 8.75 15H18a2 2 0 0 0 1.94-1.52L21.5 7H6.05l-.4-2H2V3zm4.47 6h12.5l-.96 4H8.75a.5.5 0 0 1-.49-.4L6.47 9zM9 16a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm9 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.theikdi-commerce .woocommerce ul.products li.product .price, .theikdi-commerce .woocommerce div.product p.price { color: var(--wp--preset--color--ink); }
.theikdi-catalog-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; padding-block: 1.5rem; border-block: 1px solid var(--wp--preset--color--line); margin-block: 1.5rem; }
.theikdi-catalog-filters label { display: grid; gap: .4rem; flex: 1 1 150px; min-width: 0; }
.theikdi-category-filter { display: contents; }
.theikdi-catalog-filters label[hidden] { display: none; }
.theikdi-catalog-filters input, .theikdi-catalog-filters select { width: 100%; min-width: 0; }
.theikdi-catalog-filters input, .theikdi-catalog-filters select, .theikdi-commerce .orderby, .theikdi-commerce input.qty { box-sizing: border-box; max-width: 100%; min-height: 44px; padding: .5rem; border: 1px solid var(--wp--preset--color--line); border-radius: 4px; background: var(--wp--preset--color--paper); color: inherit; font: inherit; }
/* Existing homepage hover shade gives normal-size white labels 6.15:1 contrast. */
.theikdi-catalog-filters button, .theikdi-commerce .woocommerce a.button, .theikdi-commerce .woocommerce button.button { min-height: 44px; border: 0; border-radius: 4px; padding: .8rem 1rem; background: #805a2b; color: var(--wp--preset--color--white); font: inherit; cursor: pointer; line-height: 1.4; }
.theikdi-catalog-filters > a { display: inline-flex; align-items: center; min-height: 44px; }
.theikdi-commerce .woocommerce div.product div.images { width: 44%; }
.theikdi-commerce .woocommerce div.product div.summary { width: 50%; }
.theikdi-commerce .woocommerce div.product div.images img { max-height: 720px; object-fit: contain; }
.theikdi-book-details { margin-block: 1rem 1.5rem; }
.theikdi-book-details > div { display: grid; grid-template-columns: minmax(6rem, 30%) minmax(0, 1fr); gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.theikdi-book-details dt { font-weight: 600; }
.theikdi-book-details dd { margin: 0; }
.theikdi-commerce .woocommerce-tabs, .theikdi-commerce .related { clear: both; }
.theikdi-commerce .woocommerce nav.woocommerce-pagination a, .theikdi-commerce .woocommerce nav.woocommerce-pagination span { min-width: 44px; min-height: 44px; box-sizing: border-box; }
@media (max-width: 1000px) { .theikdi-commerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 780px) {
 .theikdi-commerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
 .theikdi-commerce .woocommerce div.product div.images, .theikdi-commerce .woocommerce div.product div.summary { width: 100%; float: none; }
 .theikdi-commerce .woocommerce div.product div.images { max-width: 440px; margin-inline: auto; }
 .theikdi-commerce .woocommerce-result-count, .theikdi-commerce .woocommerce-ordering { float: none; }
}
@media (max-width: 340px) { .theikdi-commerce ul.products { grid-template-columns: minmax(0, 1fr); } }
