/*
Theme Name: Home & More
Author: flambouyia
Description: Luxury florals and home décor — WooCommerce theme
Version: 1.0
Text Domain: homeandmore
*/

/* ─── Brand tokens ─────────────────────────────────────── */
:root {
  --bg: #f5f2ed;
  --bg-deep: #ebe6de;
  --ink: #0d0d0d;
  --ink-muted: #4a4640;
  --accent: #6b5538;
  --brand-gold: #a68b3e;
  --rose: #b89a8f;
  --sage: #5a6b5a;
  --line: #e0d9cf;
  --header-stroke: var(--line);
  --white: #fff;
  --shadow: 0 24px 60px rgba(12, 10, 8, 0.1);
  --radius: 2px;
  --font-brand: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,242,237,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%;
  padding: clamp(6px,1vw,10px) clamp(1.25rem,3vw,2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo--lockup {
  display: flex; flex-direction: column; align-items: flex-start;
  flex-shrink: 0; line-height: 1.05; text-decoration: none;
  color: #0a0a0a; max-width: min(26rem,85vw);
  margin-right: auto; transition: opacity .2s ease, color .2s ease;
}
.logo--lockup:hover { color: #2a2a2a; opacity: .92; }
.logo__wordmark {
  display: block; font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(1.1rem,2.4vw,1.55rem); letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.1; color: inherit; white-space: nowrap;
}
.logo__signature {
  display: block; font-family: "Allura","Brush Script MT",cursive;
  font-size: clamp(.88rem,1.6vw,1.1rem); font-weight: 400; line-height: 1;
  margin-top: -.08em; margin-left: .35em; padding-top: .05em;
  color: #2e2e2e; text-transform: lowercase; letter-spacing: .04em;
  transform: rotate(-5deg); transform-origin: .4em 50%;
}
.nav-primary {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .35rem 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-primary a { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--accent); }
.nav-item.has-sub { position: relative; }
.nav-item.has-sub > a::after { content: "▾"; font-size: .6em; margin-left: .25rem; opacity: .5; }
.subnav {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; padding: .75rem 0; margin: .5rem 0 0;
  list-style: none; background: var(--white);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.nav-item.has-sub:hover .subnav, .nav-item.has-sub:focus-within .subnav { opacity: 1; visibility: visible; }
.subnav a { display: block; padding: .4rem 1.25rem; font-size: .75rem; text-transform: none; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.btn-cart {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: .75rem;
  border-radius: var(--radius); cursor: pointer; transition: background .2s, border-color .2s;
}
.btn-cart:hover { background: var(--bg-deep); border-color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

/* Image logo */
.logo--image {
  display: block; flex-shrink: 0; margin-right: auto; line-height: 0;
}
.logo--image .custom-logo-link { display: block; line-height: 0; }
.logo--image .custom-logo {
  height: 372px; width: auto; display: block;
  mix-blend-mode: multiply;
}
@media (max-width: 480px) { .logo--image .custom-logo { height: 120px; } }

/* Language switcher */
.lang-switcher { display: flex; gap: .2rem; align-items: center; }
.lang-btn {
  font-family: var(--font-sans);
  font-size: .65rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); padding: .3rem .55rem;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: all .2s; cursor: pointer;
}
.lang-btn:hover { color: var(--ink); border-color: var(--line); }
.lang-btn.lang-active { color: var(--white); background: var(--ink); border-color: var(--ink); font-weight: 600; }

/* Cart button */
.btn-cart {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); border-radius: var(--radius);
  cursor: pointer; transition: background .2s, border-color .2s;
  text-decoration: none;
}
.btn-cart:hover { background: var(--bg-deep); border-color: var(--accent); color: var(--ink); }
.cart-icon { display: block; flex-shrink: 0; }
.cart-count {
  position: absolute; top: -.45rem; right: -.45rem;
  min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem;
  background: var(--accent); color: var(--white);
  font-size: .6rem; font-weight: 700; font-family: var(--font-sans);
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-wrap { position: fixed; inset: 0; top: 72px; background: var(--bg); padding: 1.5rem; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: 99; }
  .nav-wrap.is-open { transform: translateX(0); }
  .nav-primary { flex-direction: column; align-items: flex-start; }
  .subnav { position: static; transform: none; box-shadow: none; border: none; padding: .5rem 0 0 1rem; opacity: 1; visibility: visible; }
}

/* ─── Sections ───────────────────────────────────────────── */
section { padding: clamp(3rem,8vw,5rem) var(--gutter); }
.section-head { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5rem; color: var(--ink); }
h2 { font-size: clamp(1.75rem,4vw,2.5rem); letter-spacing: .02em; }
h3 { font-size: 1.2rem; }
.p-lead { font-size: 1.05rem; color: var(--ink-muted); margin: 0; }

/* ─── Hero (split) ───────────────────────────────────────── */
section.hero--split { padding: 0; }
.hero--split {
  position: relative; background: var(--bg); overflow: hidden;
  padding: clamp(.85rem,2.2vw,1.4rem) clamp(1rem,4.5vw,2.75rem);
}
.hero__columns {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch; gap: clamp(.65rem,1.8vw,1.25rem);
  min-height: min(88vh,920px); max-height: min(98vh,980px);
}

/* Make panels into clickable links */
.hero__panel {
  position: relative; z-index: 0; min-height: 0;
  overflow: hidden; isolation: isolate;
  border-left: 2px solid var(--header-stroke);
  border-right: 2px solid var(--header-stroke);
  border-radius: 3px; background: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset;
  display: block; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Dark overlay — sits between image (z:0) and text box (z:2) so the box is never affected */
.hero__panel::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0);
  transition: background .4s ease;
  pointer-events: none;
}
.hero__panel:hover::before { background: rgba(0,0,0,.18); }

.hero__panel-img {
  position: relative; z-index: 0; width: 100%; height: 100%;
  min-height: min(82vh,860px); object-fit: cover; object-position: center; display: block;
}
.hero__panel--flowers .hero__panel-img { object-position: center 42%; }
.hero__panel--interior .hero__panel-img { object-position: center 35%; }

.hero__word--hero {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%,-50%); margin: 0;
  padding: 1rem 1.4rem 1.1rem; max-width: min(16rem,86%);
  text-align: center;
  background: rgba(245,242,237,.94);
  border: 1px solid rgba(13,13,13,.1);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  pointer-events: none;
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(1.45rem,2.6vw,2.35rem); line-height: 1.1;
  letter-spacing: .08em; color: var(--ink); text-transform: capitalize;
}

@media (max-width: 720px) {
  .hero--split { padding: clamp(.65rem,2.5vw,1rem) clamp(.75rem,4vw,1.25rem); }
  .hero__columns { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: clamp(.55rem,2vw,.9rem); min-height: 0; max-height: none; }
  .hero__panel-img { min-height: 38svh; height: 100%; }
  .hero__word--hero { padding: .85rem 1.1rem .95rem; max-width: min(15rem,80vw); font-size: clamp(1.3rem,5vw,1.8rem); }
}

/* ─── Product grids (landing) ────────────────────────────── */
.product-section { background: var(--bg); border-top: 1px solid var(--line); }
.product-section.alt { background: var(--bg-deep); }
.grid-products { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-products { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .grid-products { grid-template-columns: 1fr; } }
.product-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__media { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-deep); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { padding: 1.1rem 1.25rem 1.5rem; text-align: center; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.product-card .price { font-size: .9rem; color: var(--accent); margin-top: auto; font-weight: 500; }
.product-card .stock { font-size: .75rem; color: var(--sage); margin: .25rem 0 0; }
.link-ghost { display: inline-block; margin-top: .75rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; align-self: center; }
.link-ghost:hover { color: var(--accent); border-color: var(--accent); }
.section-cta { text-align: center; margin-top: 2.5rem; }
.btn-outline { display: inline-block; padding: .9rem 2.25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink); border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s; font-family: var(--font-sans); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ─── Service tiles ──────────────────────────────────────── */
.services { max-width: var(--max); margin: 0 auto; }
.grid-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 768px) { .grid-services { grid-template-columns: 1fr; } }
.service-tile { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; color: var(--white); overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.service-tile__bg { position: absolute; inset: 0; z-index: 0; }
.service-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(28,26,23,.78) 100%); z-index: 1; pointer-events: none; }
.service-tile__bg img { width: 100%; height: 100%; object-fit: cover; }
.service-tile h3 { position: relative; z-index: 2; color: var(--white); font-size: 1.35rem; letter-spacing: .03em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.service-tile__label { position: relative; z-index: 2; font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; opacity: .9; margin-bottom: .35rem; }
.service-tile p { position: relative; z-index: 2; font-size: .9rem; line-height: 1.5; margin: .5rem 0 1rem; opacity: .95; max-width: 36ch; }
.service-tile .link-arrow { position: relative; z-index: 2; font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.6); align-self: flex-start; padding-bottom: 2px; }
.service-tile .link-arrow:hover { border-color: var(--white); }

/* ─── Subscription ───────────────────────────────────────── */
.subscribe-block { background: var(--ink); color: var(--bg); padding: clamp(3.5rem,10vw,5.5rem) var(--gutter); }
.subscribe-block h2, .subscribe-block h3 { color: var(--bg); }
.subscribe-block p { color: rgba(249,246,241,.85); }
.subscribe-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; margin: 2.5rem 0 2rem; text-align: left; }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.step h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--rose); font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.step p { margin: 0; font-size: .95rem; }
.btn-light { display: inline-block; margin-top: .5rem; padding: .95rem 2rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink); background: var(--bg); border: none; font-family: var(--font-sans); cursor: pointer; transition: background .2s, transform .2s; }
.btn-light:hover { background: var(--white); transform: translateY(-1px); }

/* ─── Find Us ────────────────────────────────────────────── */
.find-us { background: var(--bg-deep); border-top: 1px solid var(--line); }
.find-us__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.find-us__info { display: flex; flex-direction: column; gap: 1.75rem; }
.find-us__block h4 {
  font-family: var(--font-sans); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-muted); margin: 0 0 .5rem; font-weight: 600;
}
.find-us__block p { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--ink); }
.find-us__block p a { color: var(--accent); }
.find-us__block p a:hover { color: var(--ink); }
.find-us__maps-btn { margin-top: 1rem; font-size: .65rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .5rem; }
.hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table td:first-child { font-weight: 500; width: 42%; color: var(--ink); }
.hours-table td:last-child { color: var(--ink-muted); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-today td { color: var(--accent) !important; font-weight: 600 !important; }
.find-us__map {
  border: 1px solid var(--line); overflow: hidden;
  min-height: 420px; display: flex;
}
.find-us__map iframe { display: block; width: 100%; min-height: 420px; flex: 1; }
@media (max-width: 768px) {
  .find-us__grid { grid-template-columns: 1fr; }
  .find-us__map { min-height: 300px; }
  .find-us__map iframe { min-height: 300px; }
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-section { background: var(--bg-deep); border-top: 1px solid var(--line); }
.contact-form { max-width: 520px; margin: 0 auto; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; color: var(--ink-muted); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: .75rem .9rem; font-family: var(--font-sans); font-size: 1rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--ink); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; border-color: transparent; }
.form-row textarea { min-height: 120px; resize: vertical; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { padding: 3rem var(--gutter) 2rem; background: #161412; color: rgba(255,255,255,.75); font-size: .85rem; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); margin: 0 0 1rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255,255,255,.8); display: block; padding: .25rem 0; font-size: .85rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: .75rem; display: inline-block; }
.footer-bottom { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: .75rem; color: rgba(255,255,255,.5); }

/* ─── Cookie bar ─────────────────────────────────────────── */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 1rem var(--gutter); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 32px rgba(0,0,0,.08); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; transform: translateY(100%); transition: transform .4s ease; }
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: .875rem; color: var(--ink-muted); max-width: 52ch; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions button { font-family: var(--font-sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .6rem 1.1rem; border: 1px solid var(--line); background: var(--bg); cursor: pointer; border-radius: var(--radius); }
.cookie-actions button.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cookie-actions button:hover { opacity: .9; }
body.has-cookie-pad { padding-bottom: 5rem; }

/* ═══════════════════════════════════════════════════════════
   WOOCOMMERCE SHOP — fiorentino.gr inspired
   ═══════════════════════════════════════════════════════════ */

/* Shop page wrapper */
.hm-shop { max-width: var(--max); margin: 0 auto; padding: clamp(2rem,6vw,4rem) var(--gutter); }

/* Shop hero header */
.hm-shop__header { text-align: center; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.hm-shop__title { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 400; letter-spacing: .04em; margin: 0 0 .5rem; }
.hm-shop__desc { color: var(--ink-muted); font-size: 1rem; margin: 0; }

/* Category tabs — like fiorentino top nav */
.hm-shop__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.hm-shop__cats { display: flex; gap: .5rem; flex-wrap: wrap; }
.hm-cat-tab { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); padding: .55rem 1.25rem; border: 1px solid var(--line); background: transparent; transition: all .2s ease; white-space: nowrap; }
.hm-cat-tab:hover, .hm-cat-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* WooCommerce sort */
.woocommerce-ordering select { font-family: var(--font-sans); font-size: .75rem; padding: .55rem .9rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: var(--radius); cursor: pointer; }

/* Products grid */
.hm-products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .hm-products-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .hm-products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .hm-products-grid { grid-template-columns: 1fr; } }

/* Product card (WooCommerce) */
.hm-product-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s ease; }
.hm-product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hm-product-card__img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-deep); }
.hm-product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-product-card:hover .hm-product-card__img img { transform: scale(1.05); }
.hm-product-card__badge { position: absolute; top: .75rem; left: .75rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; padding: .25rem .6rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.hm-product-card__body { padding: 1rem 1.1rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.hm-product-card__cat { font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .35rem; }
.hm-product-card__name { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--ink); margin: 0 0 .5rem; line-height: 1.3; }
.hm-product-card__price { margin-top: auto; font-size: .9rem; font-weight: 500; color: var(--ink-muted); }
.hm-product-card__price .woocommerce-Price-amount { color: var(--accent); }
.hm-product-card__avail { font-size: .7rem; color: var(--sage); margin-top: .25rem; }
.hm-product-card__cta { display: inline-block; margin-top: 1rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; align-self: flex-start; transition: color .2s, border-color .2s; }
.hm-product-card__cta:hover { color: var(--accent); border-color: var(--accent); }

/* Pagination */
.woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); font-size: .8rem; color: var(--ink); transition: all .2s; }
.woocommerce-pagination ul li .current, .woocommerce-pagination ul li a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* No products */
.hm-no-products { text-align: center; color: var(--ink-muted); padding: 3rem 0; font-size: 1.1rem; }

/* ─── Single product ─────────────────────────────────────── */
.hm-single { max-width: var(--max); margin: 0 auto; padding: clamp(2rem,6vw,4rem) var(--gutter); }
.hm-single__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 768px) { .hm-single__layout { grid-template-columns: 1fr; } }

/* Product gallery */
.hm-single__gallery { position: sticky; top: 5rem; }
.hm-single__main-img { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-deep); }
.hm-single__main-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-single__thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.hm-single__thumb { width: 72px; height: 90px; flex-shrink: 0; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; }
.hm-single__thumb.active, .hm-single__thumb:hover { border-color: var(--accent); }
.hm-single__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.hm-single__breadcrumb { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 1.25rem; }
.hm-single__breadcrumb a { color: var(--ink-muted); }
.hm-single__breadcrumb a:hover { color: var(--accent); }
.hm-single__cat { font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: .5rem; }
.hm-single__title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; margin: 0 0 1rem; letter-spacing: .02em; }
.hm-single__price { font-size: 1.3rem; font-weight: 500; color: var(--accent); margin-bottom: 1.5rem; }
.hm-single__divider { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.hm-single__desc { font-size: .95rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 1.5rem; }

/* Add to cart */
.hm-single__atc { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hm-qty { display: flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.hm-qty button { width: 2.5rem; height: 2.75rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.hm-qty input { width: 3rem; height: 2.75rem; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); }
.hm-btn-atc { flex: 1; min-width: 160px; padding: .9rem 1.5rem; background: var(--ink); color: var(--white); border: none; font-family: var(--font-sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; cursor: pointer; transition: background .2s, transform .2s; }
.hm-btn-atc:hover { background: var(--accent); transform: translateY(-1px); }

/* Meta info */
.hm-single__meta { font-size: .8rem; color: var(--ink-muted); }
.hm-single__meta span { display: block; margin-bottom: .35rem; }
.hm-single__meta strong { color: var(--ink); }

/* ─── Size picker ────────────────────────────────────────── */
.hm-size-label { font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color:var(--ink-muted); margin:0 0 .6rem; }
.hm-size-btns  { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.hm-size-btn {
  padding:.55rem 1.4rem; font-family:var(--font-sans); font-size:.75rem;
  text-transform:uppercase; letter-spacing:.1em;
  border:1px solid var(--line); background:var(--white); color:var(--ink);
  cursor:pointer; transition:all .2s ease;
}
.hm-size-btn:hover   { border-color:var(--ink); }
.hm-size-btn.selected { background:var(--ink); color:var(--white); border-color:var(--ink); }
.hm-btn-atc:disabled { opacity:.45; cursor:not-allowed; }

/* ─── Cart & Checkout ────────────────────────────────────── */
.woocommerce { max-width: var(--max); margin: 0 auto; padding: clamp(2rem,6vw,4rem) var(--gutter); }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.woocommerce table.shop_table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce table.shop_table td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce .button, .woocommerce button.button { background: var(--ink); color: var(--white); padding: .85rem 2rem; font-family: var(--font-sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; border: none; cursor: pointer; transition: background .2s; }
.woocommerce .button:hover, .woocommerce button.button:hover { background: var(--accent); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { background: var(--bg-deep); border-top: 3px solid var(--accent); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: .9rem; }

/* ─── Contact success message ────────────────────────────── */
.contact-success {
  text-align: center; padding: 1.5rem 2rem;
  background: var(--bg-deep); border: 1px solid var(--line);
  color: var(--accent); font-size: 1rem; max-width: 520px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — tablet & mobile
   ═══════════════════════════════════════════════════════════ */

/* ─── Tablet: 481px – 900px ─────────────────────────────── */
@media (max-width: 900px) {
  /* Services: 2 cols on tablet instead of jumping 3→1 */
  .grid-services { grid-template-columns: repeat(2, 1fr); }

  /* Shop toolbar: stack and make cats scroll horizontally */
  .hm-shop__toolbar { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hm-shop__cats {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap; width: 100%;
    padding-bottom: .35rem;
    scrollbar-width: none;
  }
  .hm-shop__cats::-webkit-scrollbar { display: none; }
  .hm-cat-tab { flex-shrink: 0; }

  /* Single product: remove sticky gallery on tablet */
  .hm-single__gallery { position: static; }

  /* Cart / checkout table: horizontal scroll */
  .woocommerce table.shop_table {
    display: block; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .woocommerce table.shop_table td,
  .woocommerce table.shop_table th { white-space: normal; }

  /* Nav offset */
  .nav-wrap { top: 64px; }
}

/* ─── Mobile: ≤ 480px ───────────────────────────────────── */
@media (max-width: 480px) {
  /* Header: tighten spacing, keep logo readable */
  .header-inner { padding: .55rem .9rem; gap: .6rem; }
  .logo__wordmark { font-size: 1rem; letter-spacing: .1em; }
  .logo__signature { font-size: .78rem; margin-left: .25em; }
  .nav-wrap { top: 58px; }

  /* Touch-friendly targets (min 44px) */
  .lang-btn { min-height: 44px; display: flex; align-items: center; padding: .5rem .65rem; }
  .btn-cart { width: 44px; height: 44px; }
  .nav-toggle { padding: .7rem; }
  .nav-toggle span { width: 24px; }

  /* Hero: taller panels on phone */
  .hero__panel-img { min-height: 42svh; }
  .hero__word--hero { font-size: clamp(1.2rem, 5.5vw, 1.7rem); padding: .75rem 1rem; }

  /* Product grid on homepage: 2 cols (cards are tall, readable) */
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-card__body { padding: .75rem .75rem 1.1rem; }
  .product-card h3 { font-size: .95rem; }

  /* Services: 1 col on phones */
  .grid-services { grid-template-columns: 1fr; }
  .service-tile { min-height: 220px; padding: 1.25rem; }
  .service-tile h3 { font-size: 1.15rem; }
  .service-tile p { font-size: .85rem; }

  /* Shop grid: 2 cols still legible on phone */
  .hm-products-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .hm-product-card__body { padding: .65rem .65rem .9rem; }
  .hm-product-card__name { font-size: .88rem; }
  .hm-product-card__cat { font-size: .6rem; }
  .hm-product-card__cta { font-size: .6rem; }

  /* Shop title smaller */
  .hm-shop__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hm-cat-tab { font-size: .68rem; padding: .45rem .9rem; }

  /* WooCommerce buttons: full width */
  .woocommerce .button,
  .woocommerce button.button,
  .woocommerce input[type="submit"] {
    width: 100%; text-align: center; display: block;
  }

  /* Single product: qty + atc full width */
  .hm-single__atc { flex-direction: column; align-items: stretch; }
  .hm-btn-atc { min-width: 100%; text-align: center; }
  .hm-qty { justify-content: center; }

  /* Section spacing */
  section { padding: clamp(1.75rem, 5vw, 2.5rem) var(--gutter); }
  .section-head { margin-bottom: 1.75rem; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Contact form: full padding */
  .contact-form { padding: 0; }

  /* Footer: center on mobile */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .site-footer { padding: 2rem var(--gutter) 1.5rem; }

  /* Cookie bar: stack */
  .cookie-bar { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }

  /* Subscribe steps: 1 col */
  .steps { grid-template-columns: 1fr; gap: 0; }
}

/* ─── Very small phones: ≤ 360px ───────────────────────── */
@media (max-width: 360px) {
  .logo__wordmark { font-size: .88rem; }
  .hm-products-grid { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr; }
}
