/*
Theme Name: Hearth Shop
Template: twentytwentyfive
Description: Lightweight child theme of Twenty Twenty-Five for a bioethanol fireplace store. Warm, minimal European look. Colours and fonts live in theme.json; the store name is the Site Title (Settings > General).
Version: 1.0.0
Text Domain: hearth-shop
*/

:root { --hs-radius: 14px; --hs-line: #E2D8CB; --hs-ember: #B8431A; --hs-soft: #F3EDE5; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* Announcement bar */
.hs-announce { background: #26211D; color: #F3EDE5; font-size: .8125rem; text-align: center; padding: .5rem 1rem; letter-spacing: .01em; }
.hs-announce p { margin: 0; }

/* Header */
.hs-header { border-bottom: 1px solid var(--hs-line); background: #FBF8F4; position: sticky; top: 0; z-index: 50; }
.admin-bar .hs-header { top: 32px; }
.hs-header .wp-block-site-title { font-weight: 800; letter-spacing: -.03em; font-size: 1.35rem; }
.hs-header .wp-block-site-title a { color: #1F1B18; text-decoration: none; }
.hs-header .wp-block-navigation { font-weight: 600; font-size: .95rem; }
.hs-header .wp-block-navigation a { text-decoration: none; }
.hs-header .wp-block-navigation__submenu-container { border: 1px solid var(--hs-line); border-radius: 12px; padding: .5rem; box-shadow: 0 12px 32px rgba(31,27,24,.08); }
.hs-tools { gap: .25rem; }
.hs-tools .wc-block-mini-cart__button { padding: .4rem; }

/* Hero */
.hs-hero.wp-block-cover { min-height: min(82vh, 720px); }
.hs-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(20,16,13,.78) 0%, rgba(20,16,13,.45) 55%, rgba(20,16,13,.1) 100%) !important; opacity: 1 !important; }
.hs-hero h1 { color: #fff; max-width: 14ch; }
.hs-hero p { color: #F3EDE5; max-width: 46ch; font-size: 1.15rem; }
.hs-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--hs-ember); margin: 0 0 .75rem; }
.hs-hero .hs-eyebrow { color: #F2B796; }
.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: inherit; }
.hs-hero .is-style-outline .wp-block-button__link { color: #fff; }

/* Benefit strip */
.hs-benefits { border-block: 1px solid var(--hs-line); background: var(--hs-soft); }
.hs-benefits p { margin: 0; }
.hs-benefit strong { display: block; font-size: 1rem; }
.hs-benefit span { color: #6C635A; font-size: .9rem; }

/* Sections */
.hs-section-title { margin-bottom: .5rem; }
.hs-lead { color: #6C635A; font-size: 1.1rem; max-width: 58ch; }
.hs-cat-card { position: relative; border-radius: var(--hs-radius); overflow: hidden; }
.hs-cat-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; display: block; }
.hs-cat-card:hover img { transform: scale(1.04); }
.hs-cat-card .hs-cat-label { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; background: linear-gradient(0deg, rgba(20,16,13,.78), rgba(20,16,13,0)); color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0; }
.hs-cat-card a { text-decoration: none; color: inherit; }
.hs-cat-card .hs-cat-label a { color: #fff; }
.hs-cat-card .hs-cat-label a::after { content: ""; position: absolute; inset: 0; }
.hs-steps { counter-reset: step; }
.hs-step { background: var(--hs-soft); border-radius: var(--hs-radius); padding: 1.5rem; height: 100%; }
.hs-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--hs-ember); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.hs-step h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.hs-step p { margin: 0; color: #6C635A; }
.hs-split-img img { border-radius: var(--hs-radius); width: 100%; height: 100%; object-fit: cover; }
.hs-dark { background: #26211D; color: #F3EDE5; }
.hs-dark h2, .hs-dark h3 { color: #fff; }
.hs-dark .hs-eyebrow { color: #F2B796; }
.hs-faq details { border-bottom: 1px solid var(--hs-line); padding: 1rem 0; }
.hs-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.hs-faq details p { color: #6C635A; margin: .6rem 0 0; }
.hs-cta { background: var(--hs-ember); color: #fff; border-radius: 22px; }
.hs-cta h2, .hs-cta p { color: #fff; }
.hs-cta .wp-block-button__link { background: #fff; color: #8F3213; }

/* Footer */
.hs-footer { background: #26211D; color: #CFC5B9; }
.hs-footer a { color: #E9DFD3; text-decoration: none; }
.hs-footer a:hover { color: #fff; text-decoration: underline; }
.hs-footer h2, .hs-footer h3, .hs-footer .hs-ft-title { color: #fff; font-size: 1rem; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .08em; }
.hs-footer ul { list-style: none; padding: 0; margin: 0; }
.hs-footer li { margin: .35rem 0; }
.hs-footer .hs-small { font-size: .82rem; color: #A59A8D; }
.hs-footer .wp-block-site-title a { color: #fff; font-weight: 800; }

/* WooCommerce */
.woocommerce ul.products li.product, .wc-block-grid__product { text-align: left; }
ul.products li.product a img, .wc-block-grid__product-image img { border-radius: var(--hs-radius); background: var(--hs-soft); aspect-ratio: 1/1; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title, .wc-block-grid__product-title { font-size: 1rem !important; font-weight: 700; line-height: 1.3; padding: .6rem 0 .2rem !important; }
ul.products li.product .price, .wc-block-grid__product-price { color: #1F1B18; font-weight: 700; }
ul.products li.product .button, .wc-block-grid__product-add-to-cart .wp-block-button__link { border-radius: 999px; font-weight: 700; }
.woocommerce span.onsale { background: var(--hs-ember); border-radius: 999px; min-height: auto; min-width: auto; padding: .3rem .8rem; line-height: 1.2; }
.woocommerce div.product .product_title, .single-product h1.wp-block-post-title { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem) !important; line-height: 1.2; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #1F1B18; font-weight: 800; font-size: 1.75rem; }
.woocommerce div.product form.cart .variations { margin-bottom: 1rem; }
.woocommerce div.product form.cart .variations select { border: 1px solid var(--hs-line); border-radius: 10px; padding: .6rem .9rem; background: #fff; min-width: 12rem; }
.woocommerce div.product form.cart .single_add_to_cart_button { background: var(--hs-ember); color: #fff; border-radius: 999px; padding: 1rem 2.2rem; font-weight: 800; font-size: 1.05rem; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: #8F3213; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--hs-radius); }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; }
.hs-trust { list-style: none; margin: 1.25rem 0 0; padding: 1rem 1.1rem; background: var(--hs-soft); border-radius: 12px; font-size: .92rem; }
.hs-trust li { margin: .3rem 0; padding-left: 1.5rem; position: relative; }
.hs-trust li::before { content: "\2713"; position: absolute; left: 0; color: var(--hs-ember); font-weight: 800; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--hs-line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: #6C635A; }
.woocommerce-tabs ul.tabs li a { font-weight: 700; }
.woocommerce-breadcrumb { font-size: .85rem; color: #6C635A; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--hs-ember); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--hs-ember); }
.wc-block-components-button:not(.is-link) { border-radius: 999px; font-weight: 700; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--hs-ember) !important; color: #fff !important; }
.hs-contact label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.hs-contact input[type=text], .hs-contact input[type=email], .hs-contact textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--hs-line); border-radius: 10px; background: #fff; font: inherit; }
.hs-contact .hs-hp { position: absolute; left: -9999px; }
.hs-contact button { margin-top: 1.25rem; background: var(--hs-ember); color: #fff; border: 0; border-radius: 999px; padding: .9rem 2rem; font-weight: 800; cursor: pointer; font-size: 1rem; }
.hs-note { background: var(--hs-soft); border-left: 4px solid var(--hs-ember); padding: 1rem 1.25rem; border-radius: 8px; }
.hs-legal h2 { font-size: 1.35rem; margin-top: 2rem; }

@media (max-width: 782px) {
  .admin-bar .hs-header { top: 46px; }
  .hs-hero.wp-block-cover { min-height: 78vh; }
  .hs-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(20,16,13,.85) 0%, rgba(20,16,13,.35) 70%, rgba(20,16,13,.2) 100%) !important; }
  .hs-benefits .wp-block-columns { gap: 1rem; }
}

/* Product archive cards (block product template) */
.wc-block-product, .wp-block-woocommerce-product-template li { text-align: left; }
.wc-block-product .wp-block-post-title, .wc-block-product .wp-block-post-title a { color: #1F1B18; text-decoration: none; font-size: 1rem; font-weight: 700; line-height: 1.3; text-align: left; }
.wc-block-product .wp-block-post-title a:hover { color: var(--hs-ember); }
.wc-block-product .wc-block-components-product-price { text-align: left; font-weight: 700; color: #1F1B18; }
.wc-block-product .wp-block-woocommerce-product-button { text-align: left; }
.wc-block-product .wc-block-components-product-image img { border-radius: var(--hs-radius); background: var(--hs-soft); }

/* Header: two rows on larger screens (brand + tools, then menu) */
.hs-header { flex-wrap: wrap !important; row-gap: .25rem; }
.hs-header .wp-block-search__button { background: transparent; border: 0; padding: .4rem; color: #1F1B18; }
.hs-header .wp-block-search { margin: 0; }
@media (min-width: 600px) {
  .hs-header .wp-block-navigation { order: 3; flex: 1 0 100%; justify-content: center; border-top: 1px solid var(--hs-line); padding-top: .55rem; }
  .hs-header .wp-block-navigation__container { gap: .2rem 1.4rem; }
}
@media (max-width: 599px) {
  .hs-header { flex-wrap: nowrap !important; }
  .hs-header .wp-block-site-title { font-size: 1.15rem; }
  .hs-header .hs-tools { margin-left: auto; }
  .hs-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .wp-block-buttons .wp-block-button { width: 100%; }
  .wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }
  .hs-section-title, .wp-block-heading.has-x-large-font-size { font-size: 1.7rem !important; }
}

/* Mobile product grids: two columns */
@media (max-width: 599px) {
  .wc-block-product-template.wc-block-product-template, .wp-block-woocommerce-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem .75rem !important; }
  .wc-block-product .wp-block-post-title, .wc-block-product .wp-block-post-title a { font-size: .85rem; }
  .wc-block-product .wc-block-components-product-price { font-size: .9rem; }
  .wc-block-product .wp-block-button__link { padding: .55rem 1rem; font-size: .85rem; width: auto; }
  ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
  ul.products li.product { width: auto !important; margin: 0 !important; }
  .hs-faq summary { font-size: 1rem; }
}

/* Prevent gallery zoom image from widening the page on phones */
.woocommerce-product-gallery { overflow: hidden; }
img.zoomImg { display: none !important; }
html, body { overflow-x: clip; }


/* ================= Product cards (v3) ================= */
.hs-sub { margin: .15rem 0 .35rem; font-size: .8rem; line-height: 1.35; color: #6C635A; font-weight: 500; }
.single-product .hs-sub { font-size: 1rem; margin: -.25rem 0 .75rem; }
.hs-from { font-size: .8em; font-weight: 600; color: #6C635A; margin-right: .2em; }
/* images: keep the whole lifestyle scene visible (landscape crop, no square zoom) */
.wc-block-product .wc-block-components-product-image, .wc-block-product .wp-block-woocommerce-product-image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--hs-radius); background: var(--hs-soft); }
.wc-block-product .wc-block-components-product-image img, .wc-block-product .wp-block-woocommerce-product-image img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: var(--hs-radius); transition: transform .5s ease; }
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.03); }
ul.products li.product a img { aspect-ratio: 4 / 3 !important; object-fit: cover; width: 100%; height: auto; }
/* equal-height cards, button pinned to the bottom, tidy spacing */
.wc-block-product, ul.products li.product { display: flex; flex-direction: column; }
.wc-block-product .wp-block-post-title { margin: .7rem 0 0; }
.wc-block-product .wc-block-components-product-price { margin: .15rem 0 .8rem; }
.wc-block-product .wp-block-woocommerce-product-button, ul.products li.product .button { margin-top: auto; }
ul.products li.product .woocommerce-loop-product__title { padding: .7rem 0 0 !important; margin: 0; }
ul.products li.product .price { margin: .15rem 0 .8rem; }
.wc-block-product .wp-block-button__link, ul.products li.product .button { width: 100%; text-align: center; padding: .7rem 1rem; font-size: .95rem; }
@media (max-width: 599px) {
  .wc-block-product .wp-block-post-title, .wc-block-product .wp-block-post-title a, ul.products li.product .woocommerce-loop-product__title { font-size: .9rem !important; line-height: 1.25; }
  .hs-sub { font-size: .72rem; }
  .wc-block-product .wp-block-button__link, ul.products li.product .button { padding: .6rem .5rem; font-size: .85rem; }
}

/* equal-width card buttons */
.wc-block-product .wp-block-woocommerce-product-button, .wc-block-product .wc-block-components-product-button { display: block; width: 100%; text-align: center; }
.wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link, .wc-block-product .wc-block-components-product-button .wp-block-button__link, .wc-block-product .wp-block-button__link { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
@media (min-width: 600px) { .wc-block-product .wp-block-button__link, ul.products li.product .button { max-width: 220px !important; margin-left: 0 !important; } }
