/*
Theme Name:     Blue Box
Theme URI:      n/a
Template:       kadence
Author:         Mark Kendall
Author URI:     n/a
Description:    Blue Box Theme based on Kadence
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* WooCommerce pagination alignment */
.woocommerce-pagination {
    text-align: center;
    border-style: solid;
    border-color: #162B53;
    border-width: 1px 0 1px 0;
    padding: 1rem 0;
}

/* Equal-height product cards */
ul.products,
ul.wc-block-product-template {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    align-items: stretch; /* ensures li.product stretch to equal height */
}

ul.products li.product,
ul.wc-block-product-template li.wc-block-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #EDF2F7;
}

/* Let the image take whatever height it needs */
ul.products li.product a.woocommerce-LoopProduct-link,
ul.wc-block-product-template li.wc-block-product .wc-block-components-product-image {
    display: block;
    flex: 1 1 auto; /* fills available vertical space above the content */
}

/* Anchor the main content to the bottom of the card */
ul.products li.product .price,
ul.wc-block-product-template li.wc-block-product .wp-block-woocommerce-product-price {
    margin-top: auto; /* pushes price and everything after it to the bottom */
}

.wc-leaseable-line {
    color: #FF0000;
}

/* Common bits below the price */
ul.products li.product .star-rating { margin-top: .5rem; }
ul.products li.product .button,
ul.wc-block-product-template li.wc-block-product  .button { margin-top: .5rem; text-align: center; }

/* Image sanity (keeps width fluid, height variable) */
ul.products li.product img,
ul.wc-block-product-template li.wc-block-product img {
  width: 100%;
  height: auto;
  display: block;
}
/* End equal-height product cards */

.header-navigation[class*="header-navigation-dropdown-animation-fade"] #menu-item-8153.kadence-menu-mega-enabled > .sub-menu {
    margin-left: -50% !important;
}

li.main-menu-first-item a {
    padding-left: -10px !important;
}

/* Style lease price line */
.wc-leaseable-line {
	font-size: inherit !important;
	color: #ff0000 !important;
}

body.single-product .wc-leaseable-line {
    font-size: 1.2rem !important;
}

/* Left-align WooCommerce product tabs content */
.woocommerce-Tabs-panel {
    text-align: left;
    font-size: 1rem !important;
}

/* Style WooCommerce product attributes table */
.woocommerce table.shop_attributes {
    font-size: 1rem !important;
    border: 0 !important;
}

/* Bold labels in WooCommerce product attributes table */
.woocommerce table.shop_attribute .woocommerce-product-attributes-item__label {
    font-weight: bold !important;
}

/* Adjust padding for product archive hero section */
.product-archive-hero-section {
    padding-top: 2.6rem;
}

/* Style product archive title */
.product-archive-title {
    border-bottom: 2px solid #162B53;
    padding-bottom: 0.5rem;
}

#wpfSortProducts {
    font-size: 1rem;
    border: 1px solid #4472C4;
    border-radius: 4px;
}

.wpfFilterButton.wpfButton, .wpfClearButton.wpfButton {
    text-transform: none !important;
    font-weight: normal !important;
    min-height: auto !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.site-footer .site-top-footer-wrap a:not(.button):not(.wp-block-button__link):not(.wp-element-button) {
    padding: 0 !important;
    border: none !important;
}

.single-product .kb-btn-global-inherit.kt-blocks-modal-link,
.single-product .single_add_to_cart_button {
    margin: 2px 0 !important;
    font-size: 1.2rem !important;
}

.menu-item-kadence-cart-dropdown {
    background-color: #ffffff !important;
}

.entry-hero, .page.site-main {
    padding-top: 5rem;
}