:root {
  --ink: #142016;
  --muted: #5e6b60;
  --cream: #f7f1e6;
  --paper: #fffaf0;
  --field: #536b3f;
  --leaf: #284a2e;
  --cherry: #a4313f;
  --gold: #d9a441;
  --line: rgba(20, 32, 22, 0.16);
  --shadow: 0 20px 60px rgba(29, 40, 26, 0.18);
  --radius: 14px;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  position: relative;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 12px; }
p { margin: 0 0 12px; color: var(--muted); }
a { color: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header { background: var(--paper); box-shadow: var(--shadow); position: relative; z-index: 10; }
.site-logo { display: block; height: 92px; width: auto; }
@media (max-width: 640px) { .site-logo { height: 56px; } }
.topbar { background: var(--leaf); color: #fff; font-size: 0.85rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.topbar-contact-btn {
  background: #fff; color: var(--leaf); text-decoration: none;
  font-weight: 700; font-size: 0.8rem; padding: 5px 14px; border-radius: 16px;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.topbar-contact-btn:hover, .topbar-contact-btn:focus-visible {
  background: var(--cherry); color: #fff; transform: translateY(-1px);
}
.fb-dot {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--leaf);
  display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif;
  font-weight: 700; font-size: 0.85rem; text-decoration: none;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.fb-dot:hover, .fb-dot:focus-visible {
  background: var(--cherry); color: #fff; transform: translateY(-1px);
}
@media (max-width: 560px) {
  .topbar .wrap { flex-direction: column; gap: 8px; }
}

.navbar { border-bottom: 1px solid var(--line); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
.site-brand { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.site-brand span { color: var(--cherry); }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a.active { color: var(--cherry); }
.nav-links a:hover { color: var(--cherry); }
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: '\25BE'; font-size: 0.7rem; color: var(--muted); }
.nav-dropdown summary:hover, .nav-dropdown summary.active { color: var(--cherry); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  min-width: 170px; z-index: 5;
}
.nav-dropdown-menu a {
  text-decoration: none; color: var(--ink); font-size: 0.92rem; padding: 8px 12px; border-radius: 6px; white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: var(--cream); color: var(--cherry); }
.nav-cart { position: relative; }
.cart-badge {
  display: inline-block; background: var(--cherry); color: #fff; border-radius: 20px;
  font-size: 0.72rem; padding: 1px 6px; margin-left: 2px; vertical-align: top;
}
.nav-cta.btn-primary { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-block; border: none; border-radius: 999px; padding: 13px 26px;
  font-size: 0.98rem; font-weight: 700; cursor: pointer; text-decoration: none; font-family: var(--font-body);
}
.btn-primary { background: var(--cherry); color: #fff; }
.btn-primary:hover { background: #8a2734; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 70px 0 50px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow { color: var(--cherry); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

.intro-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.intro-split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.intro-split .hero-image { aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .intro-split { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
main {
  padding-bottom: 60px; position: relative; z-index: 1;
  background-image:
    linear-gradient(to bottom, rgba(247, 241, 230, 0) 0%, var(--cream) 88%),
    url('../images/cherry-blossom-bg.png');
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 100% 540px, 100% 540px;
}
@media (max-width: 700px) {
  main { background-size: 100% 320px, 100% 320px; }
}
.section { padding: 50px 0; }
.section.alt { background: var(--paper); }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--leaf); }
.info-card-photo {
  display: block; width: calc(100% + 52px); height: 160px; object-fit: cover;
  margin: -26px -26px 16px; border-radius: var(--radius) var(--radius) 0 0;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.pill-list { list-style: none; padding: 0; margin: 18px 0; }
.pill-list li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); }
.pill-list li::before { content: '\2726'; position: absolute; left: 0; color: var(--gold); }

.lightbox-trigger { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(20, 32, 22, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: default; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); border: none; color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; font-family: inherit;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

.public-cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 30px; }
.public-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.public-cal-nav h3 { margin: 0; font-size: 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 0.78rem; color: var(--muted); padding: 4px 0; font-weight: 600; }
.cal-cell { display: block; min-height: 78px; padding: 6px; border-radius: 8px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); overflow: hidden; }
.cal-empty { background: none; border: none; }
.cal-today { border-color: var(--cherry); border-width: 2px; }
.cal-daynum { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.cal-dots { display: flex; flex-direction: column; gap: 2px; }
.cal-chip { font-size: 0.66rem; background: var(--paper); border-radius: 4px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 640px) {
  .cal-cell { min-height: 40px; padding: 4px; }
  .cal-daynum { font-size: 0.7rem; margin-bottom: 2px; }
  .cal-chip { font-size: 0; padding: 0; height: 5px; width: 5px; border-radius: 50%; background: var(--cherry); }
  .cal-dots { flex-direction: row; gap: 3px; }
  .cal-dots span:nth-child(n+3) { display: none; }
}

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 20px; margin-top: 24px; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-quote { color: var(--ink); font-size: 0.96rem; line-height: 1.55; margin: 0 0 14px; }
.review-author { font-family: var(--font-heading); font-size: 0.92rem; color: var(--muted); }
.review-author span { font-family: var(--font-body); }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
label { display: block; margin-bottom: 16px; font-size: 0.92rem; color: var(--muted); font-weight: 600; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 1rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: -6px; }
.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.form-msg.ok { background: rgba(83,107,63,0.15); border: 1px solid rgba(83,107,63,0.4); color: var(--leaf); }
.form-msg.error { background: rgba(164,49,63,0.12); border: 1px solid rgba(164,49,63,0.35); color: var(--cherry); }

/* ---------- shop ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card .thumb { aspect-ratio: 1 / 1; background: #eee; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card h3 { font-size: 0.88rem; line-height: 1.25; margin: 0; }
.product-card p { font-size: 0.78rem !important; margin: 0; }
.product-card .price { color: var(--cherry); font-weight: 700; font-size: 0.92rem; }
.product-card form { margin-top: auto; display: flex; gap: 6px; align-items: center; }
.product-card input[type="number"] { width: 50px; margin: 0; padding: 6px 4px; }
.product-card .btn-primary { font-size: 0.82rem; padding: 8px !important; }
.category-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  margin: 26px 0 10px;
}
.category-label:first-child { margin-top: 0; }

/* Shop landing page: one tile per category, links through to shop_category.php
   for that category's full lineup — keeps the shop page short even as more
   styles get added within a category. */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.category-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.category-tile .thumb { aspect-ratio: 1 / 1; background: #eee; }
.category-tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-tile .body { padding: 10px 12px 12px; }
.category-tile h3 { font-size: 0.9rem; line-height: 1.25; margin: 0 0 2px; }
.category-tile .meta { font-size: 0.76rem; color: var(--muted); }
.back-link {
  display: inline-block; margin-bottom: 18px; font-size: 0.9rem; color: var(--cherry);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.cart-table img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 10px; }
.cart-total { text-align: right; font-size: 1.3rem; font-weight: 700; margin: 18px 0; }
.remove-link { color: var(--cherry); font-size: 0.85rem; text-decoration: none; }
.remove-link:hover { text-decoration: underline; }

/* ---------- pay / e-transfer ---------- */
.pay-page { max-width: 520px; margin: 0 auto; padding: 60px 0; }
.pay-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; text-align: center;
}
.pay-tabs { display: flex; border-radius: 999px; background: var(--cream); padding: 4px; margin-bottom: 22px; }
.pay-tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700;
  cursor: pointer; font-size: 0.92rem; color: var(--muted);
}
.pay-tab.active { background: var(--cherry); color: #fff; }
.pay-panel { display: none; text-align: left; }
.pay-panel.active { display: block; }
.pay-amount { font-size: 2.2rem; font-weight: 700; color: var(--leaf); text-align: center; margin: 6px 0 18px; }
.pay-field {
  background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.pay-field span { font-weight: 600; }
.copy-btn {
  background: var(--leaf); color: #fff; border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 0.82rem; cursor: pointer; font-weight: 600;
}
.copy-btn.copied { background: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc9b8; padding: 40px 0 20px; margin-top: 60px; position: relative; z-index: 1; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-main strong { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; }
.footer-main a { color: var(--gold); text-decoration: none; }
.footer-main p { color: #b7b0a0; margin: 4px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: #9b9384;
}
.footer-bottom .admin-link { color: #9b9384; text-decoration: none; }
.footer-bottom .admin-link:hover { color: var(--gold); }
