/*
Theme Name: Elderwoodart
Theme URI: 
Description: Storefront Child Theme for Elderwood Art
Author: Jason Mostert 
Author URI: https://twincreations.co.uk/
Template: storefront
Version: 1.0.27
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elderwoodart
*/

/* Product Variation Dropdown */
.single-product div.product table.variations select {
    border-color: #ddd;
    border-radius: 5px;
    padding: 10px;
}

/* Product PDP */
.single_add_to_cart_button.button.alt {
    background-color: #02847e;
}

.single_add_to_cart_button.button.alt:hover {
    background-color: #017772;
}

.single-product div.product .product_meta .posted_in,
.single-product div.product .product_meta .tagged_as {
    line-height: 3em;
}

.single-product div.product .product_meta .posted_in a,
.single-product div.product .product_meta .tagged_as a {
    padding: 10px;
    border-radius: 15px;
    text-decoration: none;
    transform: all 0.3s ease;
    white-space: nowrap;
}

.single-product div.product .product_meta .posted_in a:hover,
.single-product div.product .product_meta .tagged_as a:hover {
    text-decoration: underline;
} 

.single-product div.product .product_meta .posted_in a {
    background-color: #e2f0cb;
    color: #a8b692;
}

.single-product div.product .product_meta .tagged_as a {
    background-color: #ffdac1;
    color: #b08e77;
}

.single-product div.product p.price {
    font-size: 1em;
    margin: 0.25em 0 1.5em 0;
}

.single-product div.product .single_variation .price {
    margin-bottom: 0;
    font-size: 1.75em;
}

.summary #payment-method-message {
    margin: -1em auto -0.75em auto;
}

.variations_form {
    position: relative;
    top: -2em;
}

.variations_form .woocommerce-variation-description {
    font-style: italic;
}

/* Homepage */
.home.page:not(.page-template-template-homepage) .site-header {
    margin-bottom: 0;
}

/* Homepage Slider */
.elderwood-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.elderwood-slider .prev,
.elderwood-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 10px;
    cursor: pointer;
}

.elderwood-slider .prev {
    left: 10px;
}

.elderwood-slider .next {
    right: 10px;
}

.slider-item {
    display: none;
    width: 100%;
}

.slider-item.show {
    display: block;
}

.slider-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* WooCommerce */
.wp-block-woocommerce-products .woocommerce {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.storefront-full-width-content .woocommerce-products-header {
    display: none;
}

.woocommerce-info, .woocommerce-noreviews, p.no-comments {
    background-color: #02847e;
}

.wc-block-product-template .wc-block-product h3 > a {
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.25;
    font-size: 80%;
    text-decoration: none;
}

.wc-block-product-template .wc-block-product h3 > a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    .storefront-breadcrumb {
        margin: 0 0 1em;
    }

    body.tax-product_cat .term-description {
        margin: 0 2em 3em 2em;
    }
}

/* Contact Form */
.wpcf7.js {
    width: auto;
    max-width: 800px;
    margin: 3em 0 0 0;
}

@media screen and (min-width: 768px) {
    .wpcf7-form.init {
        display: grid;
        grid-template-columns: auto auto;
    }
}

.wpcf7-form.init input[type="text"],
.wpcf7-form.init input[type="email"],
.wpcf7-form.init textarea {
    width: 100%;
    max-width: 320px;
}

.wpcf7-form.init textarea {
    height: auto;
    max-height: 200px;
    overflow: visible;
}

/* Footer */
.footer-widgets .widget.widget_text {
    margin: 0 auto;
}
