/*
 Theme Name:   Bailly Child
 Theme URI:    http://wordpress.com
 Description:  Bailly Child Theme
 Author:       Goalthemes
 Author URI:   http://mygoalthemes.com
 Template:     bailly
 Version:      1.0.0
 Text Domain:  bailly-child
*/


/* Vestiale: authorized commerce controls; Header cart only. */
body.single-product.vestiale-commerce-demo #goal-main-content .product-block .groups-button {
    position: static !important; inset: auto !important; transform: none !important;
    opacity: 1 !important; visibility: visible !important; margin: 12px 0 0 !important;
}
body.single-product.vestiale-commerce-demo #goal-main-content .product-block .groups-button-inner {
    display: flex !important; justify-content: flex-end; align-items: center; gap: 8px;
    width: auto !important; transform: none !important;
}
body.single-product.vestiale-commerce-demo #goal-main-content .product-block .groups-button-inner > div {
    position: static !important; float: none !important; margin: 0 !important; padding: 0 !important;
    transform: none !important; opacity: 1 !important; visibility: visible !important;
}
body.single-product.vestiale-commerce-demo #goal-main-content .product-block .groups-button-inner a {
    display: inline-flex !important; align-items: center; justify-content: center;
    position: relative !important; width: 40px !important; height: 40px !important;
    margin: 0 !important; border: 1px solid #e5e5e5; border-radius: 50%;
    background: #fff; color: #171923; transform: none !important;
}
.vestiale-commerce-demo #goal-main-content .product-block .yith-wcwl-icon-svg { width: 21px; height: 21px; }
.vestiale-commerce-demo #goal-main-content .product-block .yith-wcwl-add-to-wishlist-button__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.vestiale-commerce-demo #goal-main-content .product-block .metas .compare.button { display: none; }
.vestiale-commerce-demo #goal-main-content .product-block .add-cart {
    position: static !important; opacity: 1 !important; visibility: visible !important;
    transform: none !important; margin-top: 14px; width: 100%;
}
.vestiale-commerce-demo #goal-main-content .product-block .add-cart a {
    display: flex; align-items: center; justify-content: center; min-height: 44px;
    width: 100%; padding: 12px 10px; background: #171923; color: #fff;
    border-radius: 3px; font-size: 13px; line-height: 1.4; white-space: normal;
}
.vestiale-commerce-demo #goal-main-content form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vestiale-commerce-demo #goal-main-content form.cart > .quantity,
.vestiale-commerce-demo #goal-main-content form.cart > .button { margin: 0 !important; float: none !important; }
.vestiale-commerce-demo #goal-main-content form.cart > .button { min-height: 48px; padding: 13px 18px; white-space: normal; }
.vestiale-commerce-demo #goal-main-content .yith-wcwl-add-to-wishlist-button__label { font-size: 13px; }
.goal-topcart .cart .dropdown-menu { width: 340px; max-width: calc(100vw - 24px); }
.goal-topcart .shopping_cart_content { padding: 16px; }
.goal-topcart .shopping_cart_content .cart_list { max-height: 280px; overflow-y: auto; }
.goal-topcart .shopping_cart_content .widget-product { display: flex; gap: 12px; margin: 0 0 14px; }
.goal-topcart .shopping_cart_content .media-left { flex: 0 0 64px; width: 64px; padding: 0; }
.goal-topcart .shopping_cart_content .media-left img { width: 64px; height: 64px; object-fit: contain; }
.goal-topcart .shopping_cart_content .media-body { display: flex; flex-direction: column; min-width: 0; width: auto; flex: 1; padding-right: 20px; }
.goal-topcart .shopping_cart_content .name { order: -1; font-size: 13px; line-height: 1.45; white-space: normal; margin: 0 0 6px; }
.goal-topcart .shopping_cart_content .quantity { font-size: 13px; line-height: 1.5; }
.goal-topcart .shopping_cart_content .cart-bottom { padding-top: 14px; border-top: 1px solid #eee; }
.goal-topcart .shopping_cart_content .cart-bottom .total { margin: 0 0 14px; padding: 0; font-size: 14px; }
.goal-topcart .shopping_cart_content .buttons { margin: 0; }
.goal-topcart .shopping_cart_content .buttons a { display: block; min-height: 44px; padding: 12px 10px; font-size: 13px; line-height: 1.4; }
.goal-topcart .shopping_cart_content .buttons a + a { margin-top: 8px; }
.vestiale-commerce-demo #goal-main-content .wc-block-cart__submit-button { background: #171923; color: #fff; min-height: 50px; border-radius: 3px; }
@media (max-width: 767px) {
    .vestiale-commerce-demo #goal-main-content form.cart > .button { flex: 1 1 170px; }
    body.single-product.vestiale-commerce-demo #goal-main-content .product-block .groups-button-inner { justify-content: center; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart__submit-container { padding: 10px 0; }
}

/* Keep the block cart's final CTA visible above the protected mobile footer. */
@media (max-width: 767px) {
    .vestiale-commerce-demo #goal-main-content .wc-block-cart-items { width: 100%; table-layout: fixed; border-collapse: collapse; border-spacing: 0; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart-item__image { width: 64px !important; padding-right: 12px !important; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart-item__total { width: 56px !important; text-align: right; grid-column: 3 !important; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart-item__product { width: auto !important; min-width: 0; overflow-wrap: anywhere; grid-column: 2 !important; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart__submit-container { display: flex !important; position: static !important; transform: none !important; width: 100% !important; padding: 10px 0 !important; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart__submit-button { width: 100%; }
}

@media (max-width: 767px) {
    .vestiale-commerce-demo #goal-main-content .wc-block-cart-items__row { grid-template-columns: 64px minmax(0,1fr) 56px !important; column-gap: 12px !important; }
    .vestiale-commerce-demo #goal-main-content .wc-block-cart-item__quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
}

/* Bailly renders comparison controls unconditionally; hide only demo commerce. */
body.vestiale-commerce-demo #goal-main-content .yith-compare,
body.vestiale-commerce-demo #goal-main-content .metas .compare { display: none !important; }

/* Keep archive purchase labels readable against the white product cards. */
body.vestiale-commerce-demo #goal-main-content .product-block .add-cart a.button { background-color: #171923 !important; color: #fff !important; border-color: #171923 !important; display: flex !important; width: 100% !important; box-sizing: border-box; text-align: center; }

/* Show full demo product names; use one readable card per row on small phones. */
body.single-product.vestiale-commerce-demo #goal-main-content .product-block .name { white-space: normal !important; overflow: visible; text-overflow: clip; line-height: 1.45; }
@media (max-width: 479px) {
 body.vestiale-commerce-demo #goal-main-content .products-wrapper-grid .row-products-wrapper > .product { width: 100%; }
}

#goal-mobile-menu #mobile-menu-container { font-family: 'Montserrat', sans-serif; }
/* Vestiale — Fase 2I: typography and colors only on the shop archive. */
body.woocommerce-shop #goal-shop-products-wrapper .product-block .name,
body.woocommerce-shop #goal-shop-products-wrapper .product-block .name a {
    font-family: 'Shafarik', sans-serif;
    font-weight: 400;
    color: #212534;
}
body.woocommerce-shop #goal-shop-products-wrapper .product-block .price {
    font-family: 'Montserrat', sans-serif;
    color: #8E1B61;
}
body.woocommerce-shop #goal-shop-products-wrapper .product-block .add-cart a.button {
    font-family: 'Montserrat', sans-serif;
    background-color: #212534 !important;
    color: #FFFFFF !important;
}
body.woocommerce-shop #goal-shop-products-wrapper .product-block .product-cat a,
body.woocommerce-shop #goal-shop-products-wrapper .wrapper-fillter .breadcrumb,
body.woocommerce-shop #goal-shop-products-wrapper .wrapper-fillter .breadcrumb a,
body.woocommerce-shop #goal-shop-products-wrapper .wrapper-fillter .breadcrumb .active {
    font-family: 'Montserrat', sans-serif;
    color: #212534;
}
body.woocommerce-shop #goal-shop-products-wrapper .wrapper-fillter .orderby {
    color: #212534;
}
/* Preserve the existing compact mobile selector without changing its dimensions. */
@media (min-width: 480px) {
    body.woocommerce-shop #goal-shop-products-wrapper .wrapper-fillter .orderby {
        font-family: 'Montserrat', sans-serif;
    }
}

/* Vestiale — Fase 2J: only typography and colors for products 9584 and 9586. */
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary .product_title,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .add-to-cart-bottom-wrapper .name {
    font-family: 'Shafarik', sans-serif;
    font-weight: 400;
    color: #212534;
}
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary .price,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .add-to-cart-bottom-wrapper .price {
    font-family: 'Montserrat', sans-serif;
    color: #8E1B61 !important;
}
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary .woocommerce-product-details__short-description,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary .woocommerce-product-details__short-description p {
    font-family: 'Montserrat', sans-serif;
    color: #212534;
}
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary form.cart .single_add_to_cart_button,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary form.cart .buy_now_button,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .add-to-cart-bottom-wrapper form.cart .single_add_to_cart_button,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .add-to-cart-bottom-wrapper form.cart .buy_now_button {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
}
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary form.cart .single_add_to_cart_button,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .add-to-cart-bottom-wrapper form.cart .single_add_to_cart_button {
    background-color: #212534;
}
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .summary form.cart .buy_now_button,
body.single-product:is(.postid-9584, .postid-9586) #goal-main-content .add-to-cart-bottom-wrapper form.cart .buy_now_button {
    background-color: #20556B;
}

/* Vestiale — Fase 2K.1: typography and colors for Cart page 12 only. */
body.woocommerce-cart.page-id-12 #goal-main-content .goal-breadscrumb .bread-title,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart h2,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-product-name {
    font-family: 'Shafarik', sans-serif;
    font-weight: 400;
}
body.woocommerce-cart.page-id-12 #goal-main-content .goal-breadscrumb .bread-title {
    color: #FFFFFF;
}
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart h2,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-product-name {
    color: #212534;
}
body.woocommerce-cart.page-id-12 #goal-main-content .goal-breadscrumb .breadcrumb a,
body.woocommerce-cart.page-id-12 #goal-main-content .goal-breadscrumb .breadcrumb .active {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
}
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-cart-items th,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-product-metadata__description p,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-quantity-selector__input,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-quantity-selector__button:not(:disabled),
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-panel__button,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-totals-item__description,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-text-input label,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button:not(:disabled) {
    font-family: 'Montserrat', sans-serif;
    color: #212534;
}
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-components-totals-item__value {
    font-family: 'Montserrat', sans-serif;
    color: #8E1B61;
}
body.woocommerce-cart.page-id-12 #goal-main-content .wp-block-woocommerce-cart .wc-block-cart__submit-button:not([aria-disabled="true"]):not(.disabled) {
    font-family: 'Montserrat', sans-serif;
    background-color: #212534;
    color: #FFFFFF;
}

/* Vestiale — Fase 2K.2: Checkout page 13; provider payment panels excluded. */
body.woocommerce-checkout.page-id-13 #goal-main-content .goal-breadscrumb .bread-title,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-product-name {
    font-family: 'Shafarik', sans-serif;
    font-weight: 400;
}
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-product-name {
    color: #212534;
}
body.woocommerce-checkout.page-id-13 #goal-main-content .goal-breadscrumb .breadcrumb a,
body.woocommerce-checkout.page-id-13 #goal-main-content .goal-breadscrumb .breadcrumb .active,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #contact-fields .wc-block-components-text-input:not(.has-error) input,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #contact-fields .wc-block-components-text-input:not(.has-error) label,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #billing-fields .wc-block-components-text-input:not(.has-error) input,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #billing-fields .wc-block-components-text-input:not(.has-error) label,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #billing-fields .wc-blocks-components-select__select,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #billing-fields .wc-blocks-components-select__label,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #billing-fields .wc-block-components-address-form__address_2-toggle,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout #payment-method .wc-block-components-radio-control__label,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-checkout__terms,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-product-metadata__description p,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-totals-item__description,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-panel__button,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity > span {
    font-family: 'Montserrat', sans-serif;
    color: #212534;
}
body.woocommerce-checkout.page-id-13 #goal-main-content .goal-breadscrumb .bread-title,
body.woocommerce-checkout.page-id-13 #goal-main-content .goal-breadscrumb .breadcrumb a,
body.woocommerce-checkout.page-id-13 #goal-main-content .goal-breadscrumb .breadcrumb .active {
    color: #FFFFFF;
}
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-product-price,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title .wc-block-formatted-money-amount {
    font-family: 'Montserrat', sans-serif;
    color: #8E1B61;
}
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
    font-family: 'Montserrat', sans-serif;
}
body.woocommerce-checkout.page-id-13 #goal-main-content .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:not(:disabled):not([aria-disabled="true"]) {
    background-color: #212534;
    color: #FFFFFF;
}
