/*
Theme Name: Bookhaven
Theme URI: https://noctech.shop
Author: noctech.shop
Author URI: https://noctech.shop
Description: A modern, elegant WooCommerce theme for selling e-books. Features a curated storefront, refined typography, and a beautifully designed home page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bookhaven
Tags: e-commerce, woocommerce, two-columns, custom-menu, featured-images, e-books
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bh-navy: #141b34;
  --bh-navy-2: #1e274a;
  --bh-ink: #0e1226;
  --bh-amber: #f5a524;
  --bh-amber-2: #e0901a;
  --bh-cream: #faf7f2;
  --bh-paper: #ffffff;
  --bh-text: #23283b;
  --bh-muted: #6b7185;
  --bh-line: #e7e6e2;
  --bh-green: #1f9d6b;
  --bh-radius: 14px;
  --bh-radius-sm: 9px;
  --bh-shadow: 0 10px 30px rgba(20, 27, 52, 0.10);
  --bh-shadow-sm: 0 4px 14px rgba(20, 27, 52, 0.08);
  --bh-max: 1200px;
  --bh-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --bh-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bh-sans);
  color: var(--bh-text);
  background: var(--bh-cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bh-navy); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--bh-amber-2); }
h1, h2, h3, h4 { font-family: var(--bh-serif); color: var(--bh-ink); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem; }
.bh-container { max-width: var(--bh-max); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.bh-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bh-amber); color: var(--bh-ink);
  border: none; border-radius: 999px;
  padding: .7rem 1.5rem; font-weight: 600; font-size: .95rem;
  font-family: var(--bh-sans); cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 16px rgba(245, 165, 36, .28);
}
.bh-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--bh-amber-2); color: var(--bh-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 165, 36, .34);
}
.bh-btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.5); box-shadow: none;
}
.bh-btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; transform: translateY(-2px); }
.bh-btn--dark { background: var(--bh-navy); color: #fff; box-shadow: var(--bh-shadow-sm); }
.bh-btn--dark:hover { background: var(--bh-navy-2); color:#fff; }

/* ============================================================
   Header
   ============================================================ */
.bh-topbar {
  background: var(--bh-ink); color: #cdd2e4;
  font-size: .82rem; letter-spacing: .02em;
}
.bh-topbar .bh-container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.bh-topbar a { color: #cdd2e4; }
.bh-topbar a:hover { color: #fff; }
.bh-topbar__promo { display: flex; align-items: center; gap: .5rem; }

.bh-header { background: var(--bh-navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 18px rgba(0,0,0,.18); }
.bh-header__inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.bh-brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.bh-brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--bh-amber), #ffce6e);
  display: grid; place-items: center; color: var(--bh-ink); font-weight: 800;
  font-family: var(--bh-serif); font-size: 1.35rem; box-shadow: 0 4px 12px rgba(245,165,36,.35);
}
.bh-brand__name { font-family: var(--bh-serif); font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.bh-brand__name b { color: var(--bh-amber); }
.bh-nav { margin-left: auto; }
.bh-nav ul { list-style: none; display: flex; gap: 1.7rem; margin: 0; padding: 0; }
.bh-nav a { color: #dfe3f1; font-weight: 500; font-size: .96rem; position: relative; padding: 4px 0; }
.bh-nav a:hover { color: #fff; }
.bh-nav .current-menu-item > a, .bh-nav a:hover { color: var(--bh-amber); }
.bh-nav li { position: relative; }
.bh-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .7em; opacity: .8; }
.bh-nav ul ul {
  position: absolute; top: 100%; left: -14px; min-width: 210px; flex-direction: column; gap: 0;
  background: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--bh-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 120;
}
.bh-nav li:hover > ul { opacity: 1; visibility: visible; transform: translateY(6px); }
.bh-nav ul ul li a { color: var(--bh-text); display: block; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.bh-nav ul ul li a:hover { background: var(--bh-cream); color: var(--bh-amber-2); }
.bh-header__actions { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.bh-icon-link { color: #dfe3f1; display: inline-flex; position: relative; }
.bh-icon-link:hover { color: var(--bh-amber); }
.bh-cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--bh-amber); color: var(--bh-ink);
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; font-family: var(--bh-sans);
}
.bh-menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
.bh-mobile-nav { background: var(--bh-navy-2); border-top: 1px solid rgba(255,255,255,.08); }
.bh-mobile-nav ul { list-style: none; margin: 0; padding: 8px 24px 16px; }
.bh-mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
.bh-mobile-nav a { display: block; color: #dfe3f1; padding: 12px 0; font-weight: 500; }
.bh-mobile-nav a:hover { color: var(--bh-amber); }

/* ============================================================
   Hero
   ============================================================ */
.bh-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #26305a 0%, var(--bh-navy) 45%, var(--bh-ink) 100%);
  color: #fff;
}
.bh-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding: 84px 0 96px; }
.bh-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,165,36,.14); color: var(--bh-amber);
  border: 1px solid rgba(245,165,36,.3); padding: .35rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.bh-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.7rem); color: #fff; margin: 0 0 1.1rem; letter-spacing: -.02em; }
.bh-hero h1 em { color: var(--bh-amber); font-style: italic; }
.bh-hero__lead { font-size: 1.14rem; color: #c8cde0; max-width: 30rem; margin-bottom: 2rem; }
.bh-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.bh-hero__stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; }
.bh-hero__stat b { display: block; font-family: var(--bh-serif); font-size: 1.7rem; color: #fff; }
.bh-hero__stat span { font-size: .82rem; color: #9aa1bd; letter-spacing: .03em; }

.bh-hero__art { position: relative; height: 100%; min-height: 340px; }
.bh-hero__books { display: flex; justify-content: center; align-items: flex-end; gap: 18px; height: 100%; }
.bh-hero__book {
  width: 150px; border-radius: 6px 10px 10px 6px; overflow: hidden;
  box-shadow: -6px 14px 34px rgba(0,0,0,.45); border-left: 5px solid rgba(255,255,255,.12);
  transform: rotate(-4deg); transition: transform .3s ease;
}
.bh-hero__book:nth-child(2) { transform: translateY(-26px) rotate(0deg) scale(1.06); z-index: 2; }
.bh-hero__book:nth-child(3) { transform: rotate(5deg); }
.bh-hero__book:hover { transform: translateY(-34px) rotate(0) scale(1.08); }
.bh-hero__glow { position: absolute; width: 340px; height: 340px; background: radial-gradient(circle, rgba(245,165,36,.28), transparent 65%); top: -30px; right: -20px; filter: blur(10px); z-index: 0; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.bh-section { padding: 76px 0; }
.bh-section--tint { background: var(--bh-paper); }
.bh-section__head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.bh-section__head--row { display:flex; justify-content: space-between; align-items: flex-end; text-align:left; max-width: none; }
.bh-section__kicker { color: var(--bh-amber-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.bh-section__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .35rem 0 .6rem; }
.bh-section__sub { color: var(--bh-muted); font-size: 1.04rem; }
.bh-section__link { font-weight: 600; color: var(--bh-navy); white-space: nowrap; }
.bh-section__link:hover { color: var(--bh-amber-2); }

/* ============================================================
   Category tiles
   ============================================================ */
.bh-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bh-cat {
  position: relative; border-radius: var(--bh-radius); padding: 26px 22px; min-height: 148px;
  color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--bh-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.bh-cat:hover { transform: translateY(-4px); box-shadow: var(--bh-shadow); color:#fff; }
.bh-cat h3 { color: #fff; font-size: 1.22rem; margin: 0 0 .2rem; }
.bh-cat span { font-size: .82rem; opacity: .85; }
.bh-cat__icon { font-size: 1.7rem; position: absolute; top: 18px; right: 20px; opacity: .9; }
.bh-cat--1 { background: linear-gradient(135deg,#3a2b6b,#5b3fa0); }
.bh-cat--2 { background: linear-gradient(135deg,#0f5c52,#1f9d6b); }
.bh-cat--3 { background: linear-gradient(135deg,#8a3b1e,#d1652f); }
.bh-cat--4 { background: linear-gradient(135deg,#1b3a63,#2f6db0); }
.bh-cat--5 { background: linear-gradient(135deg,#6b2140,#a83a63); }
.bh-cat--6 { background: linear-gradient(135deg,#4a4620,#8a7d2e); }
.bh-cat--7 { background: linear-gradient(135deg,#243b53,#3f7d8a); }
.bh-cat--8 { background: linear-gradient(135deg,#3d2352,#7a3fa0); }

/* ============================================================
   Product grid
   ============================================================ */
.bh-products, ul.products {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0; padding: 0; list-style: none;
}
/* WooCommerce adds clearfix pseudo-elements that break the grid — hide them. */
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
ul.products li.product, .bh-product {
  background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-radius);
  overflow: hidden; margin: 0 !important; width: auto !important; float: none !important;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
  position: relative; text-align: left;
}
ul.products li.product:hover, .bh-product:hover { transform: translateY(-6px); box-shadow: var(--bh-shadow); }
.bh-product__media, ul.products li.product > a img {
  position: relative; background: var(--bh-navy);
}
ul.products li.product img { margin: 0; border-radius: 0; }
.bh-product__media { aspect-ratio: 3 / 4; overflow: hidden; }
.bh-product__media img { width: 100%; height: 100%; object-fit: cover; }
.bh-product__body, ul.products li.product .bh-pinfo { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.bh-product__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bh-amber-2); font-weight: 700; }
.bh-product__title, ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--bh-serif); font-size: 1.06rem; font-weight: 700; color: var(--bh-ink);
  margin: .3rem 0 .35rem; line-height: 1.3; padding: 0 !important;
}
.bh-product__author { font-size: .84rem; color: var(--bh-muted); margin-bottom: .7rem; }
.bh-product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bh-product .price, ul.products li.product .price {
  color: var(--bh-navy) !important; font-weight: 700 !important; font-size: 1.12rem !important;
  font-family: var(--bh-sans) !important; margin: 0 !important;
}
.bh-product .price del { color: var(--bh-muted) !important; font-weight: 400 !important; font-size: .9rem !important; }
.bh-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--bh-amber);
  color: var(--bh-ink); font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: .28rem .6rem; border-radius: 999px; text-transform: uppercase;
}
.bh-badge--sale { background: #e5484d; color: #fff; }
.bh-rating { color: var(--bh-amber); font-size: .85rem; letter-spacing: 1px; }
.bh-rating span { color: var(--bh-muted); font-size: .78rem; margin-left: 4px; }
ul.products li.product a.button, ul.products li.product a.added_to_cart { margin-top: 10px; width: 100%; }

/* ============================================================
   Feature strip
   ============================================================ */
.bh-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bh-feature { display: flex; gap: 14px; align-items: flex-start; }
.bh-feature__ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(245,165,36,.14); color: var(--bh-amber-2); font-size: 1.3rem;
}
.bh-feature h4 { margin: 2px 0 3px; font-size: 1.02rem; font-family: var(--bh-sans); font-weight: 700; }
.bh-feature p { font-size: .88rem; color: var(--bh-muted); margin: 0; }

/* ============================================================
   Banner / CTA
   ============================================================ */
.bh-cta-band {
  background: linear-gradient(120deg, var(--bh-navy), var(--bh-navy-2));
  border-radius: 20px; padding: 54px 56px; color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.bh-cta-band::after { content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; background: radial-gradient(circle, rgba(245,165,36,.25), transparent 60%); }
.bh-cta-band h2 { color: #fff; font-size: 2rem; margin: 0 0 .5rem; }
.bh-cta-band p { color: #c8cde0; margin: 0; max-width: 34rem; }
.bh-cta-band__form { display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.bh-cta-band input[type=email] {
  border: none; border-radius: 999px; padding: .8rem 1.2rem; min-width: 260px; font-size: .95rem; font-family: var(--bh-sans);
}

/* ============================================================
   Articles / blog cards
   ============================================================ */
.bh-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bh-article {
  background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.bh-article:hover { transform: translateY(-5px); box-shadow: var(--bh-shadow); }
.bh-article__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bh-navy); }
.bh-article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bh-article:hover .bh-article__media img { transform: scale(1.05); }
.bh-article__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bh-article__meta { font-size: .76rem; color: var(--bh-amber-2); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.bh-article__title { font-size: 1.2rem; margin: 0 0 .5rem; line-height: 1.32; }
.bh-article__title a { color: var(--bh-ink); }
.bh-article__title a:hover { color: var(--bh-amber-2); }
.bh-article__excerpt { font-size: .9rem; color: var(--bh-muted); margin: 0 0 1rem; flex: 1; }
.bh-article__more { font-weight: 600; font-size: .88rem; color: var(--bh-navy); }
.bh-article__more:hover { color: var(--bh-amber-2); }

/* ============================================================
   Footer
   ============================================================ */
.bh-footer { background: var(--bh-ink); color: #aeb4cc; padding: 68px 0 0; margin-top: 40px; }
.bh-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.bh-footer h5 { color: #fff; font-family: var(--bh-sans); font-size: .95rem; font-weight: 700; letter-spacing: .03em; margin: 0 0 1.1rem; text-transform: uppercase; }
.bh-footer ul { list-style: none; padding: 0; margin: 0; }
.bh-footer li { margin-bottom: .6rem; }
.bh-footer a { color: #aeb4cc; font-size: .92rem; }
.bh-footer a:hover { color: var(--bh-amber); }
.bh-footer__about p { font-size: .92rem; color: #9298b4; max-width: 22rem; }
.bh-footer__brand { display:flex; align-items:center; gap:.6rem; margin-bottom:1rem; }
.bh-footer__brand .bh-brand__name { font-size: 1.35rem; }
.bh-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; font-size: .9rem; color: #9298b4; }
.bh-footer__contact a { color: #cdd2e4; }
.bh-footer__contact a:hover { color: var(--bh-amber); }
.bh-footer__social { display: flex; gap: 10px; margin-top: 1.2rem; }
.bh-footer__social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cdd2e4; }
.bh-footer__social a:hover { background: var(--bh-amber); color: var(--bh-ink); }
.bh-footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: .84rem; flex-wrap: wrap; gap: 10px; }
.bh-footer__pay { display: flex; gap: 8px; align-items: center; opacity: .7; font-size: .8rem; }

/* ============================================================
   Generic page / post content
   ============================================================ */
.bh-page { padding: 56px 0 20px; }
.bh-page__header { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.bh-page__header h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 .5rem; }
.bh-page__header .bh-crumbs { color: var(--bh-muted); font-size: .85rem; }
.bh-content { max-width: 820px; margin: 0 auto; background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: var(--bh-radius); padding: 40px 46px; box-shadow: var(--bh-shadow-sm); }
.bh-content.bh-wide { max-width: var(--bh-max); background: none; border: none; box-shadow: none; padding: 0; }
.bh-content h2 { font-size: 1.7rem; margin: 2rem 0 .8rem; }
.bh-content h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.bh-content img { border-radius: var(--bh-radius-sm); margin: 1.4rem 0; }
.bh-content ul, .bh-content ol { padding-left: 1.3rem; }
.bh-post__meta { color: var(--bh-muted); font-size: .88rem; margin-bottom: 1.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.bh-post__feat { border-radius: var(--bh-radius); overflow: hidden; margin-bottom: 30px; max-width: var(--bh-max); }

/* ============================================================
   Comments
   ============================================================ */
.comment-respond { margin-top: .5rem; }
.comment-reply-title { font-size: 1.4rem; margin: 0 0 .4rem; }
.comment-notes, .logged-in-as { color: var(--bh-muted); font-size: .88rem; margin-bottom: 1.2rem; }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--bh-ink); }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea,
.bh-content input[type=text],
.bh-content input[type=email],
.bh-content textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
#searchform input[type=text],
.search-form input[type=search] {
  width: 100%; border: 1.5px solid var(--bh-line); border-radius: var(--bh-radius-sm);
  padding: .7rem .9rem; font-family: var(--bh-sans); font-size: .95rem; background: #fff;
  color: var(--bh-text); transition: border-color .18s ease, box-shadow .18s ease;
}
.comment-form input:focus, .comment-form textarea:focus,
.bh-content input:focus, .bh-content textarea:focus {
  outline: none; border-color: var(--bh-amber); box-shadow: 0 0 0 3px rgba(245,165,36,.16);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: .5rem; display: flex; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--bh-muted); }
.comment-form input[type=submit], .form-submit input {
  align-self: flex-start; background: var(--bh-amber); color: var(--bh-ink); border: none;
  border-radius: 999px; padding: .7rem 1.6rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  box-shadow: 0 6px 16px rgba(245,165,36,.28); transition: transform .15s ease, background .18s ease;
}
.comment-form input[type=submit]:hover, .form-submit input:hover { background: var(--bh-amber-2); transform: translateY(-2px); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list li { margin-bottom: 1.2rem; }
.comment-list .comment-body { background: var(--bh-cream); border: 1px solid var(--bh-line); border-radius: var(--bh-radius-sm); padding: 16px 20px; }
.comment-list .comment-author { font-weight: 700; }
.comment-list .comment-meta { font-size: .8rem; color: var(--bh-muted); margin-bottom: .4rem; }
.comments-title { font-size: 1.5rem; margin: 0 0 1.4rem; }

/* Search widget/form */
.search-form { display: flex; gap: .6rem; }
.search-form input[type=search] { flex: 1; }

/* Pagination */
.bh-pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.bh-pagination a, .bh-pagination span { padding: .5rem .9rem; border-radius: 9px; background: #fff; border: 1px solid var(--bh-line); font-weight: 600; font-size: .9rem; }
.bh-pagination .current { background: var(--bh-navy); color: #fff; border-color: var(--bh-navy); }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 9px; border: 1px solid var(--bh-line); background:#fff; font-weight: 600; padding: .5rem .95rem;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--bh-navy); color:#fff; border-color: var(--bh-navy); }

/* WooCommerce shop layout tweaks */
.woocommerce .products ul, .woocommerce ul.products { margin: 0; }
.woocommerce-result-count { color: var(--bh-muted); }
.woocommerce .woocommerce-ordering select { padding: .5rem .8rem; border-radius: 9px; border: 1px solid var(--bh-line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--bh-amber); border-radius: var(--bh-radius-sm); }
.woocommerce span.onsale { background: #e5484d; border-radius: 999px; }
.woocommerce div.product .product_title { font-family: var(--bh-serif); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--bh-navy); font-weight: 700; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .bh-products, ul.products { grid-template-columns: repeat(3, 1fr); }
  .bh-cats { grid-template-columns: repeat(4, 1fr); }
  .bh-features { grid-template-columns: repeat(2, 1fr); }
  .bh-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .bh-hero__inner { grid-template-columns: 1fr; padding: 60px 0 70px; }
  .bh-hero__art { min-height: 300px; }
  .bh-nav { display: none; }
  .bh-menu-toggle { display: inline-flex; }
  .bh-articles { grid-template-columns: 1fr 1fr; }
  .bh-section__head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 640px) {
  .bh-products, ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bh-cats { grid-template-columns: 1fr 1fr; }
  .bh-features { grid-template-columns: 1fr; }
  .bh-articles { grid-template-columns: 1fr; }
  .bh-footer__grid { grid-template-columns: 1fr; }
  .bh-cta-band { padding: 34px 28px; }
  .bh-content { padding: 26px 22px; }
  .bh-hero__stats { gap: 1.4rem; }
  .bh-topbar__links { display: none; }
}
