/*
Theme Name: Showtime Modern
Theme URI: https://showtimedanceshoes.com/
Description: Showtime-controlled Kallyas child theme for compatibility and measured storefront improvements.
Author: Showtime Dance Shoes
Template: kallyas
Version: 0.2.9
Text Domain: showtime-modern
*/

/*
 * Keep the automatic WOOF filter out of the main catalog column only when the
 * full desktop sidebar already provides the same controls. At Kallyas's tablet
 * and phone breakpoints the sidebar filter is hidden and WOOF replaces it with
 * a compact Filter button. Leaving this rule global prevents that button from
 * revealing its panel.
 */
@media (min-width: 993px) {
	.woof_sid_auto_shortcode {
		display: none !important;
	}
}

/*
 * Modern WooCommerce product cards can differ slightly in height. Use the
 * existing card widths in a wrapping flex row so the legacy two-sided float
 * layout cannot leave empty grid positions when adjacent cards differ by a
 * pixel or two.
 */
@media (min-width: 768px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		display: flex;
		flex-wrap: wrap;
	}

	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		float: none !important;
		clear: none !important;
	}
}

.showtime-shipping-prompt td {
	font-size: 0.95em;
}

/*
 * Keep the header in normal document flow at Kallyas's tablet breakpoint.
 *
 * From 768px through 992px Kallyas hides the page subheader that normally
 * reserves space below its absolutely positioned site header. The storefront
 * content then starts at the top of the page and is covered by the 105px
 * header. Phones already switch the header to relative positioning, while
 * larger desktops retain the visible subheader spacer, so limit this repair to
 * the affected half-screen/tablet range.
 */
@media (min-width: 768px) and (max-width: 992px) {
	#header.site-header--absolute {
		position: relative;
	}
}
