/* ===== Fonts ===== */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

/* ===== Base ===== */
:root {
  --black: #111111;
  --cream: #f3efe7;
  --sand: #e8e2d6;
  --white: #ffffff;
  --blue: #2b4a8b;
  --text: #1c1c1c;
  --muted: #5b5b5b;
  --line: #d9d2c4;
  --radius: 12px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

html { background: var(--black); }
html:has(body.post-type-archive-hmb_hamper),
html:has(body.single-hmb_hamper) { background: #6b1e2e; }

/* Footer always sits at the bottom, even on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-footer { margin-top: auto; }

body > section:last-of-type { flex: 1; }

html, body { overscroll-behavior-y: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }

.container { width: min(1100px, 100% - 48px); margin-inline: auto; }

.section { padding: 80px 0; }
.section-sand { background: var(--sand); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow-light { color: #d8d2c6; }
.eyebrow-sm { font-size: 10px; margin: 20px 0 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 13px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
}
.btn:hover { opacity: .85; }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-light { background: var(--cream); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline-light { border-color: #8c8c8c; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ===== Header ===== */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
html:has(body.admin-bar) { scroll-padding-top: 112px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 20px; }
.brand-logo { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { text-decoration: none; font-size: 13px; color: #e5e5e5; }
.main-nav ul a:hover { color: var(--white); }
.main-nav .current-menu-item > a { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; }

/* ===== Hero ===== */
.hero { background: var(--black); color: var(--white); padding: 40px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-text { color: #d0d0d0; max-width: 440px; }
.hero-img { aspect-ratio: 4 / 3; }

.page-hero { background: var(--black); color: var(--white); padding: 50px 0 60px; }
.page-hero h1 { margin-bottom: 8px; }

/* Image box with placeholder colour when empty */
.img-box { border-radius: var(--radius); overflow: hidden; background: #2a2a2a; }
.section .img-box { background: #d6cfc1; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }

/* ===== What we bake ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; }
.card h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 6px 0 8px; }
.card p { font-size: 13px; color: var(--muted); margin: 0; }
.card-num { font-family: var(--serif); font-size: 34px; color: var(--blue); line-height: 1; }
.card-icon { width: 30px; height: 30px; color: var(--blue); }
.section-link { margin-top: 32px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.gallery .img-box { aspect-ratio: 9 / 10; }

/* ===== Split sections ===== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); }
.split-img { aspect-ratio: 3 / 2; }
#visit .split { align-items: start; }
#visit p { color: var(--text); margin: 0; }
#visit a:not(.btn) { color: var(--blue); }
.map { aspect-ratio: 3 / 2; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: #cfcfcf; font-size: 12px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; }

/* ===== Generic page content ===== */
.content { max-width: 760px; }

/* ===== Products page ===== */
.shop-section { padding-top: 40px; }

.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-pills a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  background: var(--white);
}
.cat-pills a:hover { border-color: var(--black); }
.cat-pills a.active { background: var(--black); color: var(--white); border-color: var(--black); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.product-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 14px 16px 18px; }
.product-cat { display: block; font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); }
.product-card h3 { font-size: 21px; margin: 4px 0 2px; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination .page-numbers {
  min-width: 36px; padding: 8px 12px; border-radius: 999px; background: var(--white);
  text-align: center; text-decoration: none; font-size: 13px;
}
.pagination .page-numbers.current { background: var(--black); color: var(--white); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Hampers page: white background */
.post-type-archive-hmb_hamper .shop-section { background: #f7e4d8; }
.post-type-archive-hmb_hamper .product-img { aspect-ratio: 4 / 5; }

/* Hampers: header matches the wine red */
.post-type-archive-hmb_hamper .site-header,
.post-type-archive-hmb_hamper .main-nav { background: #6b1e2e; }

.post-type-archive-hmb_hamper .site-header,
.single-hmb_hamper .site-header { border-bottom: 1px solid rgba(0, 0, 0, 0.15); }

.post-type-archive-hmb_hamper .site-footer { background: #6b1e2e; border-top: 1px solid rgba(0, 0, 0, 0.15); }

/* Hampers page: coloured hero */
.post-type-archive-hmb_hamper .page-hero { background: #6b1e2e; }
.post-type-archive-hmb_hamper .page-hero .eyebrow-light { color:#e8c9cf; }

/* Single product */
.back-link { margin: 0 0 24px; font-size: 13px; }
.back-link a { text-decoration: none; color: var(--muted); }
.product-single { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 64px; align-items: center; }
.product-single-img { background: transparent !important; }
.product-single-img img { height: auto; object-fit: contain; clip-path: inset(1.5% 0.5% 0 0.5%); }
.product-single .eyebrow a { text-decoration: none; }
.product-single h1 { font-size: clamp(32px, 4vw, 46px); }
.product-single .content { color: var(--muted); }
.related-title { margin: 72px 0 24px; }

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 20px 24px 28px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .main-nav ul a { font-size: 15px; }

  .hero-grid, .split, .product-single { grid-template-columns: 1fr; gap: 32px; }
  .cards-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .product-card h3 { font-size: 18px; }
}
