/*
Theme Name: Hearth (Brads Craft Store)
Template: twentytwentyfive
Description: Lightweight Hearth child theme for Brads Craft Store: cream, ink brown, terracotta and gold; Fraunces + Source Sans 3 (self-hosted).
Version: 1.0.3
Text Domain: hearth-bcs
*/

/* Header */
.bcs-header{border-bottom:1px solid rgba(198,161,91,.55)}
.bcs-header .wp-block-site-title a{text-decoration:none;font-family:var(--wp--preset--font-family--fraunces);font-weight:600;letter-spacing:.01em}
.bcs-header .wp-block-navigation a{text-decoration:none;font-weight:600}
.bcs-header .wp-block-navigation a:hover{color:var(--wp--preset--color--accent-1)}
.bcs-header .wc-block-mini-cart__badge{background:var(--wp--preset--color--accent-1);color:var(--wp--preset--color--accent-5)}

/* Hero */
.bcs-hero img{width:100%;height:auto;display:block;border-radius:0}
.bcs-trust .wp-block-column{border-top:3px solid var(--wp--preset--color--accent-2);padding-top:var(--wp--preset--spacing--20)}

/* Product cards / shop */
.wc-block-product-template .wc-block-components-product-image img,
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img{border-radius:10px;background:var(--wp--preset--color--accent-5)}
.wc-block-components-product-price,.woocommerce-Price-amount{color:var(--wp--preset--color--contrast);font-weight:600}
.wc-block-components-product-price del, .price del{color:var(--wp--preset--color--accent-4);font-weight:400}
.wc-block-components-product-price ins, .price ins{color:var(--wp--preset--color--accent-1);text-decoration:none}
.wc-block-components-product-sale-badge,.onsale{background:var(--wp--preset--color--accent-1)!important;color:var(--wp--preset--color--accent-5)!important;border:0!important;border-radius:999px!important;font-weight:600}
.wp-block-post-title a{text-decoration:none}

/* Buttons everywhere (Woo + blocks) */
.wp-element-button,.wp-block-button__link,.single_add_to_cart_button,.woocommerce button.button,.woocommerce a.button,
.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{
  background:var(--wp--preset--color--accent-1)!important;color:var(--wp--preset--color--accent-5)!important;border:0;border-radius:999px!important}
.wp-element-button:hover,.wp-block-button__link:hover,.single_add_to_cart_button:hover,.wc-block-components-button:not(.is-link):hover{background:#A8552B!important}
.is-style-outline .wp-block-button__link{background:transparent!important;color:var(--wp--preset--color--accent-1)!important;border:2px solid currentColor!important}

/* Variation + WAPF color pickers */
.variations_form select,.wapf-field-input select,.wc-block-components-text-input input,.wc-block-components-select select{
  background:var(--wp--preset--color--accent-5);border:1px solid rgba(42,33,28,.25);border-radius:8px;padding:.55em .7em;font-family:inherit;font-size:1rem;color:var(--wp--preset--color--contrast)}
.wapf-field-label label,.variations th.label label{font-weight:600}
.wapf-field-container{margin-bottom:.8rem}
.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner.is-info{border-color:var(--wp--preset--color--accent-2)!important;background:var(--wp--preset--color--accent-5)!important}

/* Footer */
.bcs-footer a{text-decoration:none}
.bcs-footer a:hover{color:var(--wp--preset--color--accent-1)}

/* Mobile polish */
@media (max-width:600px){
  .wc-block-components-product-button .wp-element-button,.wc-block-components-product-button .wp-block-button__link{font-size:.9rem;padding:.55em 1.1em;line-height:1.2}
  .bcs-header .wp-block-site-title{font-size:1.15rem!important}
}

/* WooCommerce "coming soon" page uses Cardo/Inter presets: map them to Hearth fonts */
.has-cardo-font-family{font-family:var(--wp--preset--font-family--fraunces)!important}
.has-inter-font-family{font-family:var(--wp--preset--font-family--source-sans-3)!important}

/* Product gallery video (from _bcs_video_mp4 / bcs_video_url) */
.woocommerce-product-gallery__video a{display:block;position:relative;width:100%;line-height:0}
.woocommerce-product-gallery__video video{
  display:block;width:100%;height:auto;max-width:100%;
  border-radius:10px;background:var(--wp--preset--color--accent-5);aspect-ratio:1080/1350;object-fit:cover}
@media (max-width:600px){
  .woocommerce-product-gallery__video video{border-radius:8px}
}

.flex-control-thumbs li.woocommerce-product-gallery__video-thumbnail{position:relative}
.flex-control-thumbs li.woocommerce-product-gallery__video-thumbnail::after{
  content:"";position:absolute;left:50%;top:50%;width:0;height:0;
  border-style:solid;border-width:8px 0 8px 14px;border-color:transparent transparent transparent #fff;
  transform:translate(-40%,-50%);filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));pointer-events:none}
