/* Storefront/WooCommerce's default product grid is float-based, not real
   CSS Grid/Flexbox — cards of slightly different height (title wrapping to
   1 vs 2 lines) misalign row to row, causing uneven gaps and stray
   background bleed. Real grid fixes that at the root instead of patching
   float math. */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 40px;
	direction: rtl !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	direction: rtl;
}
/* Storefront's/WooCommerce's own float-clearfix pseudo-elements
   (content:"";display:table) generate a real box, which becomes an actual
   grid item in cell #1 once the container is display:grid — pushing every
   real product in the first row over by one. Grid doesn't need a clearfix
   at all. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none !important;
	content: none !important;
}
@media (max-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: 1fr;
	}
}

.ps-product-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	/* A plugin moves WooCommerce's sale-flash from before_shop_loop_item_title
	   to after_shop_loop_item_title (confirmed via $wp_filter), so the SALE
	   ribbon ends up as a sibling of the title/price instead of nested inside
	   .ps-product-card__image-wrap — it no longer benefits from that div's
	   own overflow:hidden. It still positions absolute against this element
	   (the nearest position:relative ancestor), whose top-left corner
	   coincides with the image's, so clipping here has the same effect.

	   !important: on the single-product page, Storefront's own
	   ".single-product div.product{position:relative;overflow:hidden}" also
	   matches this element (it carries a shared ".product" class from
	   wc_product_class()) and is more specific (2 classes + 1 element vs our
	   1 class), silently overriding just these two properties there. */
	position: relative !important;
	overflow: hidden !important;
}
.ps-product-card__media {
	display: block;
}
.ps-product-card .woocommerce-loop-product__link {
	display: block;
	text-decoration: none !important;
	color: var(--ps-color-text);
}
.hentry .entry-content a.woocommerce-LoopProduct-link,
.hentry .entry-content .woocommerce-LoopProduct-link,
.hentry .entry-content .woocommerce-loop-product__title,
.hentry .entry-content .ps-product-card a,
.ps-product-card a,
.ps-product-card .woocommerce-loop-product__title {
	text-decoration: none !important;
}
.hentry .entry-content a.woocommerce-LoopProduct-link:hover,
.hentry .entry-content .woocommerce-LoopProduct-link:hover,
.hentry .entry-content .ps-product-card a:hover,
.ps-product-card a:hover {
	text-decoration: none !important;
	color: var(--ps-color-primary) !important;
}
.ps-product-card .woocommerce-loop-product__link:focus {
	outline: none;
}
.ps-product-card .woocommerce-loop-product__link:focus-visible {
	outline: 2px solid var(--ps-color-primary-dark);
	outline-offset: 2px;
}
/* Just the image box: fixed square aspect-ratio, so the actions overlay below can line up with it exactly */
.ps-product-card__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: #f7f7f7;
}
/* !important here is deliberate: on shop/category archives this card sits
   inside WooCommerce's own "ul.products li.product a img" (2 classes + 4
   elements), which is MORE specific than a plain single-class selector and
   forces height:auto — breaking our square aspect-ratio crop. That compound
   selector doesn't exist on the homepage (Splide slides, not <ul>/<li>),
   which is why this only showed up on the category page. */
.ps-product-card__image-wrap img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover; /* not set by the competing WC/Storefront rule, no conflict to beat */
	margin: 0 !important;
}
/* Diagonal "SALE" corner ribbon (see inc/product-card-hooks.php), matching
   the Blissful reference — always the top-left physical corner regardless
   of page direction, since the ribbon's rotation angle is tied to that
   specific corner, not a text-flow-relative one.
   Storefront's own theme CSS has ".onsale{position:relative;display:inline-block;
   margin-bottom:1em;border:1px solid}" which pushes the badge into normal
   document flow below the title — the opposite of overlaying the image.
   ".onsale.ps-sale-badge" (2 classes) beats that plain single-class rule
   regardless of stylesheet order, everywhere this badge renders (single
   product gallery, our homepage card, etc. — both already have a
   position:relative ancestor to anchor to). */
.onsale.ps-sale-badge {
	position: absolute;
	display: block;
	top: 10px;
	left: -48px;
	right: auto;
	width: 145px;
	margin: 0;
	background: #d03737;
	border: none;
	color: #fff;
	font-weight: 600;
	font-size: 1em;
	line-height: 1;
	padding: 6px 16px;
	letter-spacing: 2px;
	border-radius: 0;
	text-align: center;
	transform: rotate(-45deg);
	transform-origin: center;
	z-index: 1;
	min-width: 0;
	min-height: 0;
	text-transform: uppercase;
}
/* Clip the ribbon's corner overflow on the single-product gallery too (it
   already has position:relative from WooCommerce core CSS). Only the main
   image sits at this box's edges, so this doesn't clip the thumbnail strip
   below it. */
.woocommerce-product-gallery {
	overflow: hidden;
}
/* WooCommerce core's AND Storefront's own woocommerce-rtl.css both mirror
   this button to the left for RTL sites (correct default RTL behavior,
   only surfaced once the site's RTL setup was fixed) — pinned to the right
   instead, which also keeps it clear of the sale ribbon in the opposite
   corner. */
.woocommerce-product-gallery__trigger {
	right: 0.875em !important;
	left: auto !important;
}
/* WooCommerce core draws this as a white circle with a black magnifying
   glass (::before = ring, ::after = handle) on a purple square (brand
   color, set elsewhere) — the glass itself needs to be white to actually
   read against that background, same size/position as core, just recolored. */
.woocommerce-product-gallery__trigger {
	background: var(--ps-color-primary, #652c90) !important;
	border-radius: 8px !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
	border-color: #ffffff !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after {
	background: #ffffff !important;
}
/* Second gallery image, shown on hover (see inc/product-card-hooks.php) */
.ps-product-card__hover-image {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.ps-product-card:hover .ps-product-card__hover-image {
	opacity: 1;
}
/* Same specificity issue as the image/price rules below: Storefront's own
   ".woocommerce ul.products li.product .woocommerce-loop-product__title"
   (4 classes + 2 elements) otherwise wins on archive pages. */
.ps-product-card .woocommerce-loop-product__title {
	font-size: 1.05em !important;
	font-weight: 400; /* not set by the competing rule (only padding/margin/font-size) */
	line-height: 1.4; /* same — no conflict to beat */
	margin: 8px 0 0 !important;
	padding: 0 !important;
}
.ps-product-card .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
	color: var(--ps-color-primary);
}
.ps-product-card__price-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	text-align: center !important;
	margin-top: 4px;
}
.ps-product-card .price,
.woocommerce ul.products li.product .price,
.ps-product-card__price-wrap .price {
	display: inline-flex !important;
	align-items: baseline !important;
	justify-content: center !important;
	gap: 6px !important;
	color: var(--ps-color-primary) !important;
	font-weight: 600 !important;
	font-size: 1.25em !important;
	margin: 0 auto !important;
	direction: ltr !important;
	text-align: center !important;
}

@media (max-width: 460px) {
	.ps-product-card .price,
	.woocommerce ul.products li.product .price,
	.ps-product-card__price-wrap .price {
		font-size: 1.05em !important;
	}
}

/* Storefront's own ".price ins{font-weight:400}" was de-emphasizing the
   actual sale price — it should be just as bold as a regular, non-sale
   price. */
.ps-product-card .price ins,
.woocommerce ul.products li.product .price ins {
	font-weight: 600 !important;
	text-decoration: none !important;
	color: var(--ps-color-primary) !important;
}
.ps-product-card .price del,
.woocommerce ul.products li.product .price del {
	color: #94a3b8 !important;
	font-weight: 400 !important;
	font-size: 0.85em !important;
	margin-right: 6px !important;
	opacity: 0.8 !important;
}

/* Denser row for carousels that need more, smaller cards per view (e.g.
   "recently viewed" at 5-per-page) instead of the standard 4. */
.ps-product-carousel--compact .woocommerce-loop-product__title {
	font-size: 0.9em !important;
}
.ps-product-carousel--compact .price {
	font-size: 1.05em !important;
}

/* Action icons (add-to-cart / quick-view / wishlist) — hidden overlay on the
   image, revealed on hover, matching the reference design instead of stacking
   as full-width text buttons under the card.

   .ps-product-card__actions matches the IMAGE's own box exactly (top:0 +
   the same aspect-ratio as .ps-product-card__image-wrap) and always stays
   click-through, so the empty area above the icon row still opens the
   product link. Only .ps-product-card__actions-inner — a strip hugging the
   icon row, not the full image — carries the white/transparent backing and
   catches clicks, giving near-misses a safety margin without blocking the
   rest of the image. */
.ps-product-card__actions {
	position: absolute;
	top: 0;
	inset-inline: 0;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 2;
}
.ps-product-card:hover .ps-product-card__actions {
	opacity: 1;
}
.ps-product-card__actions-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 0;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
	pointer-events: none;
}
.ps-product-card:hover .ps-product-card__actions-inner {
	pointer-events: auto;
}
.ps-product-card__actions .add_to_cart_button,
.ps-product-card__actions .woosq-btn,
.ps-product-card__actions .tinvwl_add_to_wishlist_button,
.woocommerce .ps-product-card__actions a.button,
.woocommerce .ps-product-card__actions button.button {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 4px !important;
	background-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: #333333 !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}
.ps-product-card__actions .add_to_cart_button:hover,
.ps-product-card__actions .woosq-btn:hover,
.ps-product-card__actions .tinvwl_add_to_wishlist_button:hover,
.woocommerce .ps-product-card__actions a.button:hover,
.woocommerce .ps-product-card__actions button.button:hover {
	background-color: var(--ps-color-primary) !important;
	background: var(--ps-color-primary) !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}
/* Splide's default focus ring is bright blue (#0bf); keep a visible focus
   state for keyboard users, but in our own palette instead. */
.ps-product-card__actions .add_to_cart_button:focus-visible,
.ps-product-card__actions .woosq-btn:focus-visible,
.ps-product-card__actions .tinvwl_add_to_wishlist_button:focus-visible {
	outline: 2px solid var(--ps-color-primary-dark) !important;
	outline-offset: 2px !important;
}
.ps-product-card__actions .add_to_cart_button::before,
.ps-product-card__actions .woosq-btn::before,
.ps-product-card__actions .tinvwl_add_to_wishlist_button::before {
	content: "" !important;
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	background-color: currentColor !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	transition: background-color 0.2s ease !important;
}
.ps-product-card__actions .add_to_cart_button:hover::before,
.ps-product-card__actions .woosq-btn:hover::before,
.ps-product-card__actions .tinvwl_add_to_wishlist_button:hover::before {
	background-color: #ffffff !important;
}
.ps-product-card__actions .add_to_cart_button::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") !important;
}
.ps-product-card__actions .woosq-btn::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}
.ps-product-card__actions .tinvwl_add_to_wishlist_button::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-8-4.7-8-11a4.8 4.8 0 0 1 8-3.5A4.8 4.8 0 0 1 20 10c0 6.3-8 11-8 11z'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-8-4.7-8-11a4.8 4.8 0 0 1 8-3.5A4.8 4.8 0 0 1 20 10c0 6.3-8 11-8 11z'/%3E%3C/svg%3E") !important;
}
/* Plugin's own "after add to cart" placement mode adds margin-top:15px to the
   button (meant to push it below an add-to-cart button in its default
   layout) — irrelevant to our flex row, and exactly what was pushing the
   heart lower than the bag/eye icons. Match its specificity (2 classes on
   the wrapper + 1 on the button) to reset it. */
.ps-product-card__actions .tinv-wraper.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
	margin: 0 !important;
}
/* TI Wishlist's own plugin CSS (.tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before)
   targets the same pseudo-element with its own icon-font glyph + positioning at a
   higher specificity than the rule above, which is what was pushing our heart icon
   off-center. Match its specificity (three classes on the element) and reset the
   glyph so only our mask-image icon renders. */
.ps-product-card__actions .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-position-after::before {
	content: "" !important;
	position: static !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	font-size: 0 !important;
	vertical-align: middle !important;
	font-family: inherit !important;
}
/* Hide the plugins' own text labels — icon-only buttons */
.ps-product-card__actions .tinvwl_add_to_wishlist-text,
.ps-product-card__actions .tinv-wishlist-clear {
	display: none !important;
}
.ps-product-card__actions .tinv-wraper {
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Tooltips explaining each icon-only action, shown above the button on hover.
   Real elements (.ps-action-tooltip injected by assets/carousels.js, and
   TI Wishlist's own .tinvwl-tooltip) instead of ::after content, which some
   other rule was forcing to display:none on these buttons. */
.ps-product-card__actions .ps-action-tooltip,
.ps-product-card__actions .tinvwl-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	padding: 4px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 3;
}
.ps-product-card__actions .add_to_cart_button:hover .ps-action-tooltip,
.ps-product-card__actions .woosq-btn:hover .ps-action-tooltip {
	opacity: 1;
}
/* The plugin's own base CSS has an unconditional ".tinvwl-tooltip{display:none}"
   rule — opacity alone can't override that, display must be reset too. */
.ps-product-card__actions .tinv-wraper:hover .tinvwl-tooltip {
	display: block;
	opacity: 1;
}

/* Pagination — same square/small-radius button language as the product card
   icons, colors pulled from the theme's own Customizer variables (not
   hardcoded) so it stays in sync if those are ever changed.

   WordPress's paginate_links() wraps the whole list in <ul class="page-numbers">
   — the CONTAINER carries the same class as each individual <a>/<span>
   page link, so a bare ".page-numbers" selector styled the wrapper and
   every item at once, merging them into one solid block. Tag-qualifying
   (a.page-numbers / span.page-numbers) targets only the actual items. */
.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	gap: 4px;
	background: none;
	padding: 0;
	margin: 0;
	list-style: none;
}
.woocommerce-pagination ul.page-numbers li {
	display: block;
}
/* !important: Storefront's own style.css (not woocommerce.css) has
   ".woocommerce-pagination .page-numbers li .page-numbers{display:inline-block;
   padding:.334em .875em;background-color:rgba(0,0,0,.025);color:#43454b}" —
   more specific than a plain tag+2-class selector. It only sets display/
   padding/background/color though, so those four are the only ones that
   actually need to fight it; the rest (layout/sizing properties it never
   touches) apply fine on their own. */
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 8px !important;
	line-height: 1;
	border-radius: 4px;
	background: var(--ps-color-section-bg) !important;
	color: var(--ps-color-text) !important;
	text-decoration: none;
	font-weight: 600;
}
.woocommerce-pagination span.page-numbers.current {
	background: var(--ps-color-primary) !important;
	color: #fff !important;
}
.woocommerce-pagination span.page-numbers.dots {
	background: none;
}
.woocommerce-pagination a.page-numbers:hover {
	background: var(--ps-color-primary) !important;
	color: #fff !important;
}

/* "Load more" button that replaces the numbered pagination on product
   archives (see inc/load-more.php). Rendered at priority 32, i.e. after
   .storefront-sorting closes, so it's a full-width block of its own. */
.ps-load-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	clear: both;
	margin: 40px 0 16px;
}
.ps-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 220px;
	text-align: center;
}
.ps-load-more.is-loading {
	pointer-events: none;
}
/* Spinner only takes up space while loading, so the idle button isn't
   lopsided around an invisible element. */
.ps-load-more__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-inline-start-color: transparent;
	border-radius: 50%;
	animation: ps-load-more-spin .6s linear infinite;
}
.ps-load-more.is-loading .ps-load-more__spinner {
	display: block;
}
@keyframes ps-load-more-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.ps-load-more__spinner {
		animation-duration: 2s;
	}
}
/* The focus target after appending is the new <li class="product">, which has
   no visual affordance of its own — tabindex="-1" focus would otherwise draw
   a full-card outline. */
ul.products > li.product:focus {
	outline: none;
}
.ps-load-more-status {
	font-size: .875rem;
	color: var(--ps-color-text);
	opacity: .7;
}

/* Result-count text + sorting <select> weren't vertically centered against
   each other (default Storefront layout isn't flex here). */
/* .storefront-sorting actually holds 3 siblings (ordering select, result
   count, pagination), not 2 — justify-content:space-between spread them as
   3 evenly-gapped items instead of "pagination on one side, count+select
   grouped on the other", which is what looked like everything got centered.
   Group the first two with a normal gap, then push pagination to the
   opposite end with margin-inline-start:auto instead. */
.storefront-sorting {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px;
}
.storefront-sorting .woocommerce-pagination {
	margin-inline-start: auto;
}
.storefront-sorting .woocommerce-result-count,
.storefront-sorting .woocommerce-ordering {
	margin: 0 !important;
}
/* Custom chevron, since the native OS-rendered one sits flush against the
   border with no breathing room. */
.woocommerce-ordering select.orderby,
.woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	height: 38px;
	color: #333333;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 12px;
	cursor: pointer;
}
html[dir="rtl"] .woocommerce-ordering select,
body.rtl .woocommerce-ordering select {
	padding: 0 12px 0 34px !important;
	background-position: left 10px center;
}
html[dir="ltr"] .woocommerce-ordering select,
body:not(.rtl) .woocommerce-ordering select {
	padding: 0 34px 0 12px !important;
	background-position: right 10px center;
}

/* Footer */
#colophon,
.site-footer {
	background: var(--ps-color-section-bg);
}
#colophon a {
	color: var(--ps-color-text);
}
#colophon a:hover {
	color: var(--ps-color-primary);
}

/* ==========================================================================
   Mobile Product Cards (Strictly 2 per row with always-visible action icons)
   Matching Original Magento Site: media_1788425832439.png
   ========================================================================== */
@media (max-width: 768px) {
	/* Always 2 products per row in all shop grids & archives */
	.site-main ul.products,
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-2,
	ul.products.columns-1 {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px 10px !important;
		margin: 0 0 24px !important;
		padding: 0 !important;
	}
	.site-main ul.products li.product,
	ul.products li.product {
		width: 100% !important;
		max-width: 100% !important;
		/* The grid item's automatic minimum width defaults to its content's
		   min-content size, not 0 — and that content includes the product
		   image at its native intrinsic size (the HTML width/height
		   attributes, e.g. 324x324), regardless of the CSS that scales it
		   down to 100%. Without this, that intrinsic size wins the fight
		   over the two 1fr tracks and blows the grid wider than the
		   viewport, shoving the first column off-screen on narrow phones. */
		min-width: 0 !important;
		margin: 0 !important;
		float: none !important;
	}

	/* Single Product Card Layout */
	.ps-product-card {
		display: flex !important;
		flex-direction: column !important;
		text-align: center !important;
		width: 100% !important;
	}

	.ps-product-card__media {
		position: relative !important;
	}

	/* Action icons strip: placed below image, ALWAYS visible on touch */
	.ps-product-card__actions {
		position: static !important;
		aspect-ratio: auto !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		margin: 8px 0 4px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		z-index: 1 !important;
	}

	.ps-product-card__actions-inner {
		background: transparent !important;
		padding: 0 !important;
		gap: 14px !important;
		pointer-events: auto !important;
		justify-content: center !important;
		display: flex !important;
	}

	.ps-product-card__actions .add_to_cart_button,
	.ps-product-card__actions .woosq-btn,
	.ps-product-card__actions .tinvwl_add_to_wishlist_button,
	.woocommerce .ps-product-card__actions a.button,
	.woocommerce .ps-product-card__actions button.button {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
		background: transparent !important;
		background-color: transparent !important;
		box-shadow: none !important;
		border: none !important;
		color: #1e293b !important;
		padding: 0 !important;
		margin: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		cursor: pointer !important;
	}

	.ps-product-card__actions .add_to_cart_button::before,
	.ps-product-card__actions .woosq-btn::before,
	.ps-product-card__actions .tinvwl_add_to_wishlist_button::before {
		width: 20px !important;
		height: 20px !important;
		background-color: #334155 !important;
	}

	.ps-product-card__actions .add_to_cart_button:active,
	.ps-product-card__actions .woosq-btn:active,
	.ps-product-card__actions .tinvwl_add_to_wishlist_button:active {
		transform: scale(1.15) !important;
	}

	/* Card Title and Price Typography */
	.ps-product-card .woocommerce-loop-product__title {
		font-size: 0.88em !important;
		font-weight: 600 !important;
		line-height: 1.35 !important;
		text-align: center !important;
		margin: 4px 0 6px !important;
		color: #1e293b !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		min-height: 2.7em !important;
	}

	.ps-product-card .price {
		font-size: 1.15em !important;
		font-weight: 700 !important;
		text-align: center !important;
		justify-content: center !important;
		direction: ltr !important;
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
		margin-top: auto !important;
		color: var(--ps-color-primary) !important;
	}

	.ps-product-card .price del {
		font-size: 0.85em !important;
		color: #94a3b8 !important;
		font-weight: 400 !important;
	}

	.ps-product-card .price ins {
		color: var(--ps-color-primary) !important;
		text-decoration: none !important;
	}
}

/* At ~154px-wide columns (360px phones and narrower), the old + sale price
   side by side ("₪149.00 ₪79.00") no longer fits on one line and clips at
   the card's edge. Let the two prices wrap onto their own centered lines
   instead of shrinking type past readability. */
@media (max-width: 380px) {
	.ps-product-card .price {
		flex-wrap: wrap !important;
		gap: 2px !important;
		font-size: 1.05em !important;
	}
	.ps-product-card .price del {
		flex-basis: 100% !important;
		margin-right: 0 !important;
	}
}
