/*
Theme Name:     Click Copiers
Theme URI:      n/a
Template:       kadence
Author:         Mark Kendall
Author URI:     n/a
Description:    Click Copiers 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-lease-price-line {
	font-size: 1.6rem;
	font-weight: bold;
	color: #ff0000 !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;
}