/* The Judaica shop (mu-plugins/shop.php): /shop/ and its categories, and the buttons on product, cart and checkout pages. */

/* header */
.jo-shop #loop-meta { display: none; }
.jo-shop #content.layout-none { width: 100%; }
.jo-shop-hero { position: relative; margin: 26px 0 16px; padding: 34px 32px 30px; border-radius: 18px; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #2a170c 0%, #5e3519 55%, #94562a 100%); color: #fff; box-shadow: 0 2px 6px rgba(31, 27, 22, .12), 0 18px 40px rgba(31, 27, 22, .18); }
.jo-shop-hero::after { content: ""; position: absolute; right: -70px; top: -70px; z-index: -1; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 76, .35), rgba(242, 201, 76, 0) 70%); }
.jo-shop-eyebrow { display: inline-block; margin: 0 0 12px !important; padding: 4px 12px; border-radius: 999px; background: rgba(242, 201, 76, .95); color: #2a180d; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1.jo-shop-title { margin: 0 0 10px; color: #fff; font-family: Lora, Georgia, serif; font-size: 2.3rem; line-height: 1.15; }
.jo-shop-lead { max-width: 640px; margin: 0 0 16px !important; color: #f6ead9; font-size: 1.05rem; line-height: 1.55; }
.jo-shop-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0; list-style: none; }
.jo-shop-facts li { margin: 0; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #fff; font-size: .82rem; }
.jo-shop-facts a { color: #f2c94c !important; text-decoration: none; }

/* categories */
.jo-shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
a.jo-shop-chip { padding: 8px 16px; border: 1px solid #e6d6c3; border-radius: 999px; background: #fff; color: #5e3519 !important; font-size: .85rem; font-weight: 600; text-decoration: none !important; transition: background-color .15s, border-color .15s, color .15s; }
a.jo-shop-chip:hover, a.jo-shop-chip:focus-visible { border-color: #94562a; background: #fbf5ee; }
a.jo-shop-chip.is-active { border-color: #5e3519; background: #5e3519; color: #fff !important; }

/* sorting */
.jo-shop .woocommerce-result-count { margin: 6px 0 18px; color: #7a6a5c; font-size: .88rem; }
.jo-shop .woocommerce-ordering select { padding: 8px 34px 8px 14px; border: 1px solid #e6d6c3; border-radius: 999px; background-color: #fff; color: #2a180d; font-size: .88rem; }

/* product cards */
.jo-shop ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0 0 30px !important; padding: 0; }
.jo-shop ul.products::before, .jo-shop ul.products::after { display: none !important; }
.jo-shop ul.products li.product { position: relative; display: flex; flex-direction: column; float: none !important; width: auto !important; margin: 0 !important; padding: 0 0 16px !important; border: 1px solid #efe4d6; border-radius: 16px; background: #fff; overflow: hidden; text-align: left; box-shadow: 0 1px 3px rgba(31, 27, 22, .06); transition: transform .18s, box-shadow .18s; }
.jo-shop ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 27, 22, .12); }
.jo-shop ul.products li.product a.woocommerce-loop-product__link { display: flex; flex: 1; flex-direction: column; text-decoration: none; }
.jo-shop ul.products li.product img { width: 100% !important; aspect-ratio: 1; height: auto; margin: 0 0 14px !important; object-fit: contain; background: #faf6f1; padding: 14px; box-sizing: border-box; border-radius: 0; box-shadow: none; }
.jo-shop ul.products li.product .woocommerce-loop-product__title { margin: 0 16px 6px !important; padding: 0 !important; color: #2a180d; font-family: Lora, Georgia, serif; font-size: 1.02rem !important; font-weight: 600; line-height: 1.35; }
.jo-shop ul.products li.product .price { display: block; margin: auto 16px 12px !important; color: #94562a !important; font-size: 1rem !important; font-weight: 700; }
.jo-shop ul.products li.product .price del { color: #a99a8c; font-weight: 400; }
.jo-shop ul.products li.product .price ins { text-decoration: none; }
.jo-shop ul.products li.product .button { display: block; margin: 0 16px !important; padding: 10px 14px !important; border-radius: 999px !important; background: #f2c94c !important; color: #2a180d !important; font-size: .78rem !important; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-align: center; text-transform: uppercase; text-decoration: none !important; transition: background-color .15s; }
.jo-shop ul.products li.product .button:hover { background: #f6d36a !important; }
.jo-shop ul.products li.product .added_to_cart { display: block; margin: 8px 16px 0; color: #94562a; font-size: .85rem; font-weight: 600; text-align: center; }
.jo-shop ul.products li.product.outofstock img { opacity: .55; }
.jo-shop ul.products li.product.outofstock .button { background: #f1ebe4 !important; color: #7a6a5c !important; }
.jo-shop ul.products li.product .onsale, .jo-shop-soldout { position: absolute; top: 12px; left: 12px; right: auto; z-index: 2; min-width: 0; min-height: 0; margin: 0 !important; padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.jo-shop ul.products li.product .onsale { background: #94562a; color: #fff; }
.jo-shop-soldout { background: #2a180d; color: #fff; }

/* pages */
.jo-shop .woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0 !important; }
.jo-shop .woocommerce-pagination ul li { border: 0 !important; }
.jo-shop .woocommerce-pagination ul li .page-numbers { display: inline-block; min-width: 40px; padding: 9px 12px; border: 1px solid #e6d6c3; border-radius: 999px; background: #fff; color: #5e3519; font-weight: 600; text-align: center; }
.jo-shop .woocommerce-pagination ul li .page-numbers.current, .jo-shop .woocommerce-pagination ul li a.page-numbers:hover { border-color: #5e3519; background: #5e3519; color: #fff; }

/* product, cart and checkout buttons */
.woocommerce .single_add_to_cart_button, .woocommerce a.checkout-button, .woocommerce #place_order { border-radius: 999px !important; background: #f2c94c !important; color: #2a180d !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.woocommerce .single_add_to_cart_button:hover, .woocommerce a.checkout-button:hover, .woocommerce #place_order:hover { background: #f6d36a !important; }
.woocommerce div.product .product_title { font-family: Lora, Georgia, serif; }
.woocommerce div.product p.price { color: #94562a; font-weight: 700; }

@media (max-width: 1000px) { .jo-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.jo-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.jo-shop-hero { margin-top: 16px; padding: 26px 20px 22px; }
	h1.jo-shop-title { font-size: 1.75rem; }
	.jo-shop-lead { font-size: .95rem; }
	.jo-shop-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	a.jo-shop-chip { flex: none; }
	.jo-shop ul.products li.product .woocommerce-loop-product__title { margin: 0 12px 6px !important; font-size: .92rem !important; }
	.jo-shop ul.products li.product .price { margin: auto 12px 10px !important; }
	.jo-shop ul.products li.product .button { margin: 0 12px !important; padding: 9px 8px !important; font-size: .7rem !important; }
	.jo-shop .woocommerce-ordering { float: none; margin: 0 0 14px; }
}
