/*
Theme Name: Hearth & Hollow
Template: twentytwentyfive
Description: Concept store child theme (portfolio demo). Colours and fonts in theme.json, layout in parts/ and templates/.
Version: 1.0.0
Text Domain: hearth
*/

/* Header */
.hh-header { border-bottom: 1px solid var(--wp--preset--color--accent-2); }
.hh-header .wp-block-site-title a { text-decoration: none; font-family: var(--wp--preset--font-family--literata); font-weight: 600; letter-spacing: -0.01em; }
.hh-nav a { text-decoration: none; }
.hh-nav a:hover, .hh-nav a:focus-visible { text-decoration: underline; text-underline-offset: 0.25em; }

/* Store notice: calm brand colours instead of WooCommerce purple, pinned to the bottom. WooCommerce shows it with
   JavaScript, so pinning it means nothing on the page moves when it appears. */
.woocommerce-store-notice, p.demo_store {
  background: var(--wp--preset--color--contrast) !important;
  color: var(--wp--preset--color--base) !important;
  font-size: 0.875rem; padding: 0.6rem 1rem; position: fixed !important; top: auto !important; bottom: 0 !important;
  left: 0; right: 0; margin: 0; box-sizing: border-box; width: 100%; z-index: 99;
}
.woocommerce-store-notice a, p.demo_store a { color: var(--wp--preset--color--base) !important; }

/* Home */
.hh-hero { gap: clamp(1.5rem, 4vw, 4rem); }
.hh-hero .hh-hero-title { font-size: clamp(2.4rem, 5.5vw, 4.25rem); line-height: 1.05; }
.hh-hero img, .hh-cats img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hh-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--wp--preset--color--accent-1); font-weight: 600; }
.hh-cats .wp-block-heading a { text-decoration: none; }
.hh-cats .wp-block-image { margin-bottom: 0.75rem; transition: transform .3s ease; }
.hh-cats .wp-block-column:hover .wp-block-image { transform: translateY(-3px); }
.hh-values { background: var(--wp--preset--color--accent-5); border-radius: 18px; }
.hh-values h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.hh-values p { color: var(--wp--preset--color--accent-4); margin-top: 0; }

/* Product cards everywhere: soft corners, square photos */
.wc-block-components-product-image img, .wp-block-woocommerce-product-image img { border-radius: 12px; }

/* Add to cart before an option is chosen: readable, clearly inactive (WooCommerce fades it to 3:1 contrast). */
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled {
  opacity: 1 !important; background: var(--wp--preset--color--accent-2) !important; color: var(--wp--preset--color--contrast) !important; cursor: not-allowed;
}

/* WooCommerce hides the product photo until its gallery script runs; we do not load that script, so show it at once. */
.woocommerce-product-gallery { opacity: 1 !important; }

/* Footer */
.hh-footer { background: var(--wp--preset--color--accent-5); font-size: 0.95rem; }
.hh-footer a { text-decoration: none; }
.hh-footer a:hover { text-decoration: underline; }
.hh-footer .hh-small { color: var(--wp--preset--color--accent-4); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { .hh-cats .wp-block-image { transition: none; } }

/* Header extras */
.hh-brand { gap: 0.55rem; align-items: center; }
.hh-mark { display: inline-flex; color: var(--wp--preset--color--contrast); }
.hh-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--contrast); border: 0; padding: 6px; }
.hh-search .wp-block-search__input { border-radius: 999px; border: 1px solid var(--wp--preset--color--accent-2); }

/* Shop and category pages */
.hh-archive-head { background: var(--wp--preset--color--accent-5); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.5rem); }
.hh-archive-head h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.hh-archive-head p { margin: 0.5rem 0 0; color: var(--wp--preset--color--accent-4); max-width: 42rem; }
.hh-shop { gap: clamp(1.5rem, 3vw, 3rem); }
.hh-filters h3 { margin: 1.5rem 0 0.5rem; }
.hh-filters h3:first-of-type { margin-top: 0; }
@media (max-width: 781px) { .hh-shop .hh-filters { flex-basis: auto !important; } }

/* Free shipping progress (cart and checkout) */
.hh-ship { background: var(--wp--preset--color--accent-5); border-radius: 14px; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; }
.hh-ship p { margin: 0 0 0.55rem; }
.hh-ship .hh-track { display: block; height: 8px; border-radius: 99px; background: var(--wp--preset--color--accent-2); overflow: hidden; }
.hh-ship .hh-fill { display: block; height: 100%; width: var(--p, 0%); background: var(--wp--preset--color--accent-3); border-radius: 99px; transition: width .4s ease; }

/* Newsletter (demo: nothing is saved) */
.hh-news { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hh-news input { flex: 1 1 12rem; min-width: 0; padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--accent-2); background: var(--wp--preset--color--base); font: inherit; }
.hh-news button { border: 0; padding: 0.7rem 1.3rem; cursor: pointer; font: inherit; }
.hh-news-msg { flex-basis: 100%; margin: 0.25rem 0 0; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .hh-ship .hh-fill { transition: none; } }

/* Small screens: keep the shop name on one line; keep the price filter inside its column. */
.hh-header .wp-block-site-title { white-space: nowrap; }
@media (max-width: 600px) { .hh-header .wp-block-site-title { font-size: 1.15rem !important; } .hh-mark svg { width: 24px; height: 24px; } }
.hh-filters { min-width: 0; }
.hh-filters input[type="text"], .hh-filters input[type="number"] { max-width: 100%; box-sizing: border-box; }
.hh-filters .wp-block-woocommerce-product-filter-price-slider { overflow: hidden; padding-inline: 2px; }
