/* HAYNES CONFECTIONERY
   Hide variation options on shop/category pages
   Keep them visible on individual product pages */

@media (min-width: 768px) {

    /* Hide variation/swatches area inside product listings */
    .woocommerce-shop ul.products li.product .variations,
    .woocommerce-shop ul.products li.product .variations_form,
    .tax-product_cat ul.products li.product .variations,
    .tax-product_cat ul.products li.product .variations_form,
    .tax-product_tag ul.products li.product .variations,
    .tax-product_tag ul.products li.product .variations_form {
        display: none !important;
    }

    /* Keep title area equal */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 66px !important;
    }

    /* Keep price area equal */
    .woocommerce ul.products li.product .price {
        min-height: 32px !important;
    }
/* Hide duplicate WooCommerce category tiles below sorting */
.woocommerce-ordering ~ ul.products li.product-category {
    display: none !important;
}
	/* Remove extra blog-style heading from WooCommerce product pages */
body.single-product header.entry-header {
    display: none !important;
}
/* Reserved review-star row under every product title */
.woocommerce ul.products li.product:not(.product-category)
.woocommerce-loop-product__title::after {
    content: "";
    display: block;
    height: 24px;
}

/* Put review stars inside that reserved gap */
.woocommerce ul.products li.product:not(.product-category)
.star-rating {
    margin: -24px auto 0 !important;
    height: 24px !important;
    line-height: 24px !important;
    position: relative;
    z-index: 2;
}

/* Keep price area equal */
.woocommerce ul.products li.product .price {
    min-height: 32px !important;
}
/* =========================================
   HAYNES CONFECTIONERY - PREMIUM CART
========================================= */

body.woocommerce-cart {
    background: #f7f3eb;
}

/* Main cart container */
.wp-block-woocommerce-cart,
.wc-block-cart {
    max-width: 1280px;
    margin: 35px auto 70px;
}

/* Cart title */
body.woocommerce-cart .wp-block-post-title,
body.woocommerce-cart .entry-title {
    font-family: Georgia, "Times New Roman", serif;
    color: #711521;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 28px;
}

/* MAIN CART PRODUCT AREA */
.wc-block-cart__main {
    background: #ffffff;
    border: 1px solid #e3d6bc;
    border-radius: 14px;
    padding: 28px !important;
    box-shadow: 0 8px 24px rgba(42, 31, 20, 0.06);
}

/* Product table heading */
.wc-block-cart-items th {
    color: #7a1723 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #c7a24b !important;
    padding-bottom: 14px !important;
}

/* Product rows */
.wc-block-cart-items__row {
    border-bottom: 1px solid #eee7da !important;
}

/* Product name */
.wc-block-components-product-name {
    color: #711521 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.wc-block-components-product-name:hover {
    color: #a47b29 !important;
}

/* Product image */
.wc-block-cart-item__image img {
    border-radius: 10px;
    border: 1px solid #e1d2b5;
    background: #fff;
    padding: 3px;
}

/* Product metadata */
.wc-block-components-product-metadata,
.wc-block-components-product-details {
    color: #71675e !important;
    font-size: 13px !important;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    border: 1px solid #d5c7af !important;
    border-radius: 7px !important;
    overflow: hidden;
    background: white;
}

/* Remove button */
.wc-block-cart-item__remove-link {
    color: #8a1826 !important;
    font-weight: 600 !important;
}

/* =================================
   CART TOTALS PANEL
================================= */

.wc-block-cart__sidebar {
    background: #ffffff;
    border: 1px solid #d5bd84;
    border-radius: 14px;
    padding: 26px !important;
    box-shadow: 0 10px 28px rgba(42, 31, 20, 0.08);
    align-self: start;
}

/* Cart totals title */
.wc-block-cart__sidebar h2,
.wc-block-cart__sidebar .wc-block-cart__totals-title {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #711521 !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    padding-bottom: 14px;
    border-bottom: 2px solid #c29b41;
}

/* Coupon */
.wc-block-components-totals-coupon {
    background: #fbf8f1;
    border: 1px solid #eadcc0 !important;
    border-radius: 8px;
    padding: 10px 14px !important;
    margin: 15px 0 !important;
}

/* Totals rows */
.wc-block-components-totals-item {
    padding: 12px 0 !important;
}

/* Grand total */
.wc-block-components-totals-footer-item {
    border-top: 2px solid #711521 !important;
    padding-top: 18px !important;
    margin-top: 12px !important;
    color: #242424 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Shipping message */
.wc-block-components-totals-shipping__via,
.wc-block-components-totals-item__description {
    color: #72675d !important;
}

/* Main checkout button */
.wc-block-cart__submit-button,
.wc-block-components-button.wc-block-cart__submit-button {
    background: #781724 !important;
    color: #ffffff !important;
    border: 2px solid #c5a04a !important;
    border-radius: 8px !important;
    min-height: 58px;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(120,23,36,.15);
}

.wc-block-cart__submit-button:hover {
    background: #5d101a !important;
}

/* Payment / express checkout spacing */
.wc-block-cart__sidebar iframe,
.wc-block-cart__sidebar button {
    border-radius: 7px;
}

/* Reduce excessive gaps */
.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Mobile */
@media (max-width: 900px) {

    .wp-block-woocommerce-cart,
    .wc-block-cart {
        margin: 18px 12px 45px;
    }

    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding: 18px !important;
    }

    body.woocommerce-cart .wp-block-post-title,
    body.woocommerce-cart .entry-title {
        font-size: 32px;
    }
}