/*
Theme Name: Herikraft-v2.1 new
Theme URI: https://herikraft.bobby2b.com
Author: Herikraft Team
Author URI: https://herikraft.bobby2b.com
Description: Intangible Cultural Heritage Platform - Product, Course, Certificate, Community
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herikraft
*/

/* ============================================================
 DESIGN TOKENS
 ============================================================ */
:root {
  --color-olive: #444e30; --color-olive-hover: #5c6646;
  --color-paper: #f5f2eb; --color-ivory: #fef9ec; --color-cream: #f8f3e6;
  --color-ink: #2c2c2c; --color-deep-ink: #1d1c14;
  --color-soft-text: #46483f; --color-border: #c6c7bb; --color-overlay: #2f2a26;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-hero: clamp(4.75rem, 6vw + 1.5rem, 7.25rem);
  --fs-h1: clamp(2.75rem, 3.5vw + 1rem, 4.75rem);
  --fs-h2: clamp(2rem, 2vw + 1rem, 3.25rem);
  --fs-h3: clamp(1.5rem, 1.5vw + 0.75rem, 2.25rem);
  --fs-h4: clamp(1.25rem, 0.75vw + 0.75rem, 1.5rem);
  --fs-caption: clamp(1.875rem, 1.5vw + 1rem, 2.5rem);
  --fs-body-lg: clamp(1.25rem, 0.5vw + 0.875rem, 1.5rem);
  --fs-body: 1.125rem; --fs-small: 1rem; --fs-xs: 0.875rem;
  --fs-eyebrow: 1.125rem; --fs-label: 1.125rem;
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2.5rem;
  --space-xl: 4rem; --space-2xl: 6rem; --space-3xl: 8rem;
  --container-max: 1320px; --container-narrow: 920px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --speed: 360ms; --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; color: var(--color-ink); background: var(--color-paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--color-olive); }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; color: var(--color-deep-ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); } h3 { font-size: var(--fs-h3); } h4 { font-size: var(--fs-h4); }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-soft-text); display: block; margin-bottom: 1rem; }
.caption { font-family: var(--font-body); font-size: var(--fs-caption); line-height: 1.35; color: var(--color-ink); font-weight: 350; }
.lead { font-size: var(--fs-body-lg); color: var(--color-soft-text); line-height: 1.5; }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.scheme-paper { background: var(--color-paper); }
.scheme-cream { background: var(--color-cream); }
.scheme-ivory { background: var(--color-ivory); }
.scheme-olive { background: var(--color-olive); color: var(--color-ivory); }
.scheme-olive .eyebrow, .scheme-olive .lead { color: rgba(254,249,236,0.78); }
.scheme-olive h1, .scheme-olive h2, .scheme-olive h3, .scheme-olive h4 { color: var(--color-ivory); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.95em 1.75em; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.02em; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--speed) var(--ease); border: 1px solid var(--color-olive); }
.btn--fill { background: var(--color-olive); color: var(--color-ivory); }
.btn--fill:hover { background: var(--color-olive-hover); }
.btn--outline { background: transparent; color: var(--color-olive); }
.btn--outline:hover { background: var(--color-olive); color: var(--color-ivory); }
.btn--ghost { background: transparent; color: var(--color-ivory); border-color: rgba(254,249,236,0.6); }
.btn--ghost:hover { background: rgba(254,249,236,0.1); border-color: var(--color-ivory); }
.btn--link { background: transparent; border: none; color: var(--color-deep-ink); padding: 0; position: relative; }
.btn--link::after { content: ' →'; transition: transform var(--speed); }
.btn--link:hover::after { transform: translateX(4px); }

/* ============================================================
 MAIN NAVIGATION (Header row)
 ============================================================ */
.main-nav { position: sticky; top: 0; z-index: 100; background: rgba(245,242,235,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.main-nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.65rem; gap: 1rem; }
.main-nav__left { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.main-nav__logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-deep-ink); flex-shrink: 0; }
.main-nav__logo span { color: var(--color-olive); font-style: italic; }
.main-nav__brand-link { font-size: var(--fs-small); color: var(--color-soft-text); font-weight: 500; white-space: nowrap; }
.main-nav__brand-link:hover { color: var(--color-deep-ink); }
.main-nav__sep { color: var(--color-border); user-select: none; }

/* Search */
.search-box { flex: 1; max-width: 520px; display: flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.search-box input { flex: 1; border: none; padding: 10px 16px; font-size: var(--fs-small); font-family: var(--font-body); outline: none; background: transparent; }
.search-box button { padding: 10px 20px; background: var(--color-olive); color: #fff; border: none; font-size: var(--fs-small); cursor: pointer; font-weight: 500; transition: background 180ms; }
.search-box button:hover { background: var(--color-olive-hover); }

/* Nav items */
.main-nav__items { display: flex; gap: 0; align-items: center; }
.main-nav__items> a,
.main-nav__items .nav-dropdown> span { display: flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: var(--fs-small); color: var(--color-soft-text); white-space: nowrap; cursor: pointer; transition: color 180ms; font-weight: 500; }
.main-nav__items> a:hover,
.main-nav__items .nav-dropdown:hover> span { color: var(--color-deep-ink); }
.main-nav__items a.nav-sale { color: #c0392b; font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: 0 12px 40px rgba(47,42,38,0.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 220ms var(--ease); z-index: 110; }
.nav-dropdown:hover .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__menu a { display: block; padding: 10px 20px; font-size: var(--fs-small); color: var(--color-soft-text); white-space: nowrap; }
.nav-dropdown__menu a:hover { background: var(--color-cream); color: var(--color-deep-ink); }

/* Cart icon */
.cart-icon { position: relative; font-size: 1.3rem; cursor: pointer; flex-shrink: 0; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--color-olive); color: #fff; font-size: 0.65rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* ============================================================
 TABS
 ============================================================ */
.tab-bar { position: sticky; top: 58px; z-index: 90; background: var(--color-paper); border-bottom: 1px solid var(--color-border); }
.tab-bar__inner { display: flex; justify-content: center; gap: 0; }
.tab-btn { padding: 14px 24px; font-size: var(--fs-small); font-weight: 500; color: var(--color-soft-text); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all 180ms; }
.tab-btn.active { color: var(--color-olive); border-bottom-color: var(--color-olive); }
.tab-btn:hover { color: var(--color-deep-ink); }

/* Tab bar dropdowns */
.tab-dropdown { position: relative; }
.tab-dropdown> .tab-btn { display: flex; align-items: center; gap: 4px; }
.tab-dropdown> .tab-btn::after { content: ' ▾'; font-size: 0.7em; }
.tab-dropdown__menu { position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: 0 12px 40px rgba(47,42,38,0.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 200ms var(--ease); z-index: 110; }
.tab-dropdown:hover .tab-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tab-dropdown__menu a { display: block; padding: 10px 20px; font-size: var(--fs-small); color: var(--color-soft-text); white-space: nowrap; text-decoration: none; }
.tab-dropdown__menu a:hover { background: var(--color-cream); color: var(--color-deep-ink); }

/* ============================================================
 HERO
 ============================================================ */
.hero-block { position: relative; width: 100%; min-height: 90vh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--color-overlay); }
.hero-block__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-block__content { position: relative; text-align: center; z-index: 2; max-width: 860px; }
.hero-block h1 { color: var(--color-ivory); font-size: var(--fs-hero); margin-bottom: 1rem; }
.hero-block .lead { color: rgba(254,249,236,0.85); margin-bottom: 2rem; }
.hero-block .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
 CARDS
 ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .card-grid--5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid--3, .card-grid--4, .card-grid--5 { grid-template-columns: 1fr; } .card-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--speed) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(47,42,38,0.1); }
.card__image { aspect-ratio: 4/3; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__image img { transform: scale(1.04); }
.card__body { padding: 20px; }
.card__badge { display: inline-block; background: var(--color-olive); color: #fff; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; margin-bottom: 8px; }
.card__region { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-olive); margin-bottom: 4px; }
.card__title { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--color-deep-ink); margin-bottom: 4px; }
.card__excerpt { font-size: var(--fs-small); color: var(--color-soft-text); line-height: 1.6; }
.card__meta { display: flex; gap: 12px; margin-top: 8px; font-size: var(--fs-small); color: var(--color-soft-text); flex-wrap: wrap; }

/* ============================================================
 ABOUT & VALUES Sections
 ============================================================ */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-row__image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-row__image img { width: 100%; height: 100%; object-fit: cover; }
.about-row__text h2 { margin-bottom: 0.6em; }
.about-row__text p { color: var(--color-soft-text); line-height: 1.75; margin-bottom: 1rem; }
@media (max-width: 800px) { .about-row { grid-template-columns: 1fr; gap: 32px; } }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { text-align: center; padding: 40px 28px; background: var(--color-ivory); border-radius: var(--radius-md); }
.value-card__icon { width: 64px; height: 64px; margin: 0 auto 20px; background: var(--color-cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.value-card h4 { font-family: var(--font-display); font-size: var(--fs-h4); margin-bottom: 8px; }
.value-card p { font-size: var(--fs-small); color: var(--color-soft-text); line-height: 1.65; }
@media (max-width: 700px) { .values-grid { grid-template-columns: 1fr; } }
.card__price { font-weight: 600; color: var(--color-olive); font-size: var(--fs-body-lg); margin-top: 8px; }
.card--product .card__image { aspect-ratio: 4/5; }

/* ============================================================
 CATEGORY TAGS (Heritage + Category)
 ============================================================ */
.cat-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cat-tag { padding: 8px 18px; font-size: var(--fs-xs); font-weight: 500; border-radius: 3px; cursor: pointer; transition: all 180ms; border: 1px solid var(--color-border); background: #fff; color: var(--color-soft-text); }
.cat-tag.active { background: var(--color-olive); color: #fff; border-color: var(--color-olive); }
.cat-tag:hover { border-color: var(--color-olive); }
.cat-tag__count { font-size: 0.75rem; opacity: 0.7; margin-left: 4px; }

/* ============================================================
 SECTION HEADER
 ============================================================ */
.section-head { text-align: center; margin-bottom: var(--space-xl); }
.section-head h2 { margin-bottom: 0.3em; }
.section-head .lead { max-width: 640px; margin-inline: auto; }

/* ============================================================
 SHOP with SIDEBAR (Dual Filter)
 ============================================================ */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.shop-sidebar { position: sticky; top: 108px; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group__title { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-deep-ink); margin-bottom: 8px; }
.filter-group a { display: block; padding: 6px 0; font-size: var(--fs-xs); color: var(--color-soft-text); cursor: pointer; }
.filter-group a.active { color: var(--color-olive); font-weight: 500; }
.filter-group a:hover { color: var(--color-deep-ink); }
.filter-group select { width: 100%; padding: 8px 10px; font-size: var(--fs-xs); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); background: #fff; }
@media (max-width: 800px) { .shop-layout { grid-template-columns: 1fr; } .shop-sidebar { position: static; display: flex; gap: 1rem; flex-wrap: wrap; } }

/* ============================================================
 HERITAGE ARCHIVE with sidebar
 ============================================================ */
.heritage-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.heritage-sidebar { position: sticky; top: 108px; }
.region-tree { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.region-tree__title { padding: 14px 16px; font-weight: 600; font-size: var(--fs-label); background: var(--color-cream); border-bottom: 1px solid var(--color-border); }
.region-tree a { display: block; padding: 10px 16px 10px 32px; font-size: var(--fs-small); color: var(--color-soft-text); border-bottom: 1px solid rgba(198,199,187,0.5); transition: background 180ms; cursor: pointer; }
.region-tree a.active { background: var(--color-paper); color: var(--color-olive); font-weight: 500; }
.region-tree a.sub { padding-left: 48px; font-size: 0.95rem; }
.region-tree a:hover { background: var(--color-cream); }
@media (max-width: 900px) { .heritage-layout { grid-template-columns: 1fr; } .heritage-sidebar { position: static; } }

/* ============================================================
 HERITAGE DETAIL
 ============================================================ */
.heritage-hero { position: relative; height: 65vh; min-height: 440px; overflow: hidden; }
.heritage-hero__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.heritage-hero__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: var(--space-2xl); }
.heritage-hero__overlay h1 { color: #fff; margin: 0; }
.heritage-detail-body { max-width: 800px; margin: 0 auto; }

/* ============================================================
 TIER CARDS
 ============================================================ */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; transition: all var(--speed) var(--ease); }
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(47,42,38,0.12); }
.tier-card--featured { border-color: var(--color-olive); box-shadow: 0 8px 40px rgba(68,78,48,0.12); }
.tier-card h3 { font-size: var(--fs-h4); margin-bottom: 4px; }
.tier-card .tier-price { font-size: var(--fs-h1); color: var(--color-olive); font-family: var(--font-display); margin: 16px 0; }
.tier-card ul { text-align: left; margin: 24px 0; }
.tier-card ul li { padding: 8px 0; font-size: var(--fs-small); border-bottom: 1px solid rgba(198,199,187,0.3); }
.tier-card ul li::before { content: '✓ '; color: var(--color-olive); font-weight: 700; }

/* ============================================================
 REGION PAGE
 ============================================================ */
.region-stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 32px 0; }
.region-stat { text-align: center; }
.region-stat__num { font-family: var(--font-display); font-size: var(--fs-h1); color: var(--color-olive); }
.region-stat__label { font-size: var(--fs-small); color: var(--color-soft-text); margin-top: 4px; }

/* Province quick-links map style */
.province-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 700px) { .province-grid { grid-template-columns: repeat(2, 1fr); } }
.province-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; text-align: center; cursor: pointer; transition: all 220ms var(--ease); }
.province-card:hover { border-color: var(--color-olive); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(47,42,38,0.08); }
.province-card__name { font-family: var(--font-display); font-size: var(--fs-h4); color: #fff; margin-bottom: 4px; }
.province-card__stats { font-size: var(--fs-xs); color: rgba(255,255,255,0.8); }
.province-card.active { border-color: var(--color-olive); box-shadow: 0 0 0 3px var(--color-olive); }
/* Region detail: hide by default, show when active */
.region-detail { display: none; }
.region-detail.active { display: block; }

/* ============================================================
 GIFT GUIDE
 ============================================================ */
/* Gift Carousel */
.gift-carousel { height: 38vh; min-height: 320px; position: relative; overflow: hidden; }
.gift-carousel__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s cubic-bezier(0.4,0,0.2,1); }
.gift-carousel__slide.active { opacity: 1; }
.gift-carousel__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.gift-carousel__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; transition: all 250ms; padding: 0; }
.gift-carousel__dot.active { background: #fff; transform: scale(1.3); }
.gift-carousel__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,42,38,0.25) 0%, rgba(47,42,38,0.45) 100%); z-index: 1; }
.gift-carousel__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #fff; text-align: center; padding: 0 24px; }
.gift-carousel__content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.5rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.gift-carousel__sub { font-size: 1.0rem; opacity: 0.88; max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* Gift CTA */
.gift-cta-row { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.gift-cta { display: inline-flex; align-items: center; gap: 8px; padding: 15px 36px; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 50px; color: #fff; font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 280ms var(--ease); backdrop-filter: blur(4px); background: rgba(255,255,255,0.06); }
.gift-cta:hover { background: rgba(255,255,255,0.18); border-color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.gift-cta--primary { border-color: var(--color-olive); background: rgba(135,148,108,0.35); }
.gift-cta--primary:hover { background: rgba(135,148,108,0.55); }

/* Gift Collection Section */
.gift-collection { margin-bottom: 48px; }
.gift-collection__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.gift-collection__header h3 { font-size: 1.35rem; font-weight: 600; }
.gift-collection__header a { font-size: var(--fs-small); color: var(--color-olive); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: opacity 200ms; }
.gift-collection__header a:hover { opacity: 0.7; }

/* Page Hero Banner (used by heritage, region, courses, stories, contact) */
.page-hero { height: 38vh; min-height: 260px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,42,38,0.3) 0%, rgba(47,42,38,0.5) 100%); z-index: 1; }
.page-hero__content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px; }
.page-hero__content h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.page-hero__content p { font-size: 1.0rem; opacity: 0.88; max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* Gift Scene Old Compat */
.gift-scene { padding: 24px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all 220ms var(--ease); }
.gift-scene:hover { border-color: var(--color-olive); box-shadow: 0 8px 24px rgba(47,42,38,0.08); }
.gift-scene h4 { margin-bottom: 4px; }
.gift-scene p { font-size: var(--fs-xs); color: var(--color-soft-text); }

/* ============================================================
 CART SIDEBAR
 ============================================================ */
.cart-sidebar { position: fixed; top: 0; right: 0; width: 420px; max-width: 100vw; height: 100vh; background: #fff; box-shadow: -8px 0 30px rgba(47,42,18,0.18); z-index: 1200; transform: translateX(100%); transition: transform 350ms cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.cart-sidebar__header h3 { font-size: 1.15rem; font-weight: 600; }
.cart-sidebar__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-soft-text); padding: 4px; line-height: 1; }
.cart-sidebar__close:hover { color: var(--color-deep-ink); }
.cart-sidebar__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border); align-items: center; }
.cart-item__img { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--color-cream); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: var(--fs-small); font-weight: 500; color: var(--color-deep-ink); margin-bottom: 4px; }
.cart-item__variant { font-size: var(--fs-xs); color: var(--color-soft-text); margin-bottom: 6px; }
.cart-item__price { font-size: var(--fs-small); font-weight: 600; color: var(--color-olive); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item__qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.cart-item__qty button:hover { background: var(--color-cream); }
.cart-item__qty span { font-size: var(--fs-small); font-weight: 500; min-width: 20px; text-align: center; }
.cart-item__remove { background: none; border: none; color: var(--color-soft-text); cursor: pointer; font-size: 0.8rem; margin-top: 4px; padding: 0; }
.cart-item__remove:hover { color: #c0392b; }
.cart-sidebar__footer { padding: 20px 24px; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.cart-sidebar__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-sidebar__total span:first-child { font-size: var(--fs-small); color: var(--color-soft-text); }
.cart-sidebar__total span:last-child { font-size: 1.2rem; font-weight: 700; color: var(--color-deep-ink); }
.cart-sidebar__checkout { width: 100%; padding: 14px; background: var(--color-olive); color: #fff; border: none; border-radius: var(--radius-sm); font-size: var(--fs-small); font-weight: 600; cursor: pointer; transition: background 200ms; }
.cart-sidebar__checkout:hover { background: #3d5a35; }
.cart-sidebar__empty { text-align: center; padding: 60px 20px; color: var(--color-soft-text); }
.cart-sidebar__empty span { font-size: 3rem; display: block; margin-bottom: 16px; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(47,42,18,0.35); z-index: 1199; opacity: 0; visibility: hidden; transition: all 300ms; }
.cart-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
 VIDEO MODAL
 ============================================================ */
.video-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 300ms; }
.video-overlay.open { opacity: 1; visibility: visible; }
.video-modal__win { position: relative; width: 90vw; max-width: 900px; background: #000; border-radius: 12px; overflow: hidden; transform: scale(0.9); transition: transform 300ms; }
.video-overlay.open .video-modal__win { transform: scale(1); }
.video-modal__close { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 10; line-height: 1; }
.video-modal__close:hover { color: #ccc; }
.video-modal__body { position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */ }
.video-modal__body video,
.video-modal__body iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-modal__placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #111; color: rgba(255,255,255,0.5); font-size: 1.1rem; flex-direction: column; gap: 12px; }
.video-modal__placeholder span { font-size: 3rem; }

/* ============================================================
 FOOTER
 ============================================================ */
.site-footer { background: #5C6646; color: rgba(245,242,235,0.7); padding: var(--space-2xl) 0 var(--space-lg); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--color-ivory); margin-bottom: 1rem; }
.site-footer a { color: rgba(245,242,235,0.6); font-size: var(--fs-small); display: block; margin-bottom: 6px; cursor: pointer; }
.site-footer a:hover { color: var(--color-ivory); }
.site-footer__partners { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
 MISC
 ============================================================ */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================================
 MOBILE RESPONSIVE
 ============================================================ */
@media (max-width: 768px) {
  /* Tab bar - horizontal scroll */
  .tab-bar__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 0 8px;
    white-space: nowrap;
  }
  .tab-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tab-dropdown { position: static; }
  .tab-dropdown__menu {
    left: 8px; right: 8px; width: auto;
  }

  /* Hero heights */
  .hero-block { height: 50vh; min-height: 320px; }
  .hero-block__content { padding: 0 20px; }
  .hero-block__content h1 { font-size: 1.6rem; }
  .hero-block__content .lead { font-size: 0.9rem; }
  .page-hero { height: 36vh; min-height: 260px; }
  .page-hero__content h1 { font-size: 1.3rem; }
  .page-hero__content p { font-size: 0.85rem; }
  .gift-carousel { height: 36vh; min-height: 260px; }
  .gift-carousel__content h1 { font-size: 1.3rem; }

  /* Hero button group */
  .btn-group { flex-direction: column; gap: 10px; }
  .btn-group .btn { width: 100%; justify-content: center; }

  /* Gift CTA row */
  .gift-cta-row { gap: 10px; margin-top: 24px; }
  .gift-cta { padding: 12px 24px; font-size: 0.85rem; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 1.5rem; }

  /* Product cards */
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }

  /* Gift collections */
  .gift-collection__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Cat tags */
  .cat-tags { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 6px; padding-bottom: 8px; }
  .cat-tag { flex-shrink: 0; font-size: 0.8rem; padding: 6px 14px; }

  /* Filter sidebar on heritage page */
  .shop-sidebar { display: none; }

  /* Form elements */
  form div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Container padding */
  .container { padding: 0 16px; }
  .container--narrow { padding: 0 16px; }

  /* Navigation bar */
  .main-nav { padding: 0 16px; }
  .main-nav__brand-links { display: none; }
  .search-box { width: 140px; }

  /* Footer */
  .site-footer__grid { gap: 24px; }
  .site-footer { padding: 48px 0 32px; }

  /* Province grid */
  .province-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; }
  .gift-collection__grid { grid-template-columns: 1fr; }
  .hero-block { height: 42vh; min-height: 280px; }
  .hero-block__content h1 { font-size: 1.35rem; }
  .page-hero { height: 32vh; min-height: 220px; }
  .page-hero__content h1 { font-size: 1.15rem; }
  .gift-carousel { height: 32vh; min-height: 220px; }
  .gift-carousel__content h1 { font-size: 1.15rem; }
  .province-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .catalog-tabs a { font-size: 0.75rem; padding: 4px 8px; }
}
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.breadcrumb { font-size: var(--fs-small); color: var(--color-soft-text); margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-olive); }

/* Placeholder image */
.ph { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: var(--fs-body-lg); color: var(--color-soft-text); letter-spacing: 0.04em; }
.ph--hero { height: 100%; background: var(--color-overlay); color: rgba(255,255,255,0.3); font-size: var(--fs-h2); }
.ph--card { width: 100%; height: 100%; background: var(--color-cream); color: var(--color-border); }
.ph--product { width: 100%; height: 100%; background: var(--color-ivory); color: var(--color-border); font-size: var(--fs-small); }

/* Highlight box */
.highlight-box { background: var(--color-ivory); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px 32px; margin-top: 32px; }
.highlight-box h4 { margin-bottom: 8px; }
.highlight-box p { font-size: var(--fs-small); color: var(--color-soft-text); }

/* Partner logo row */
.partner-row { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 32px 0; }
.partner-logo { width: 120px; height: 40px; background: var(--color-cream); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--color-soft-text); text-transform: uppercase; letter-spacing: 0.1em; }

/* Divider */
.section-divider { border: none; border-top: 1px solid var(--color-border); margin: var(--space-xl) 0; }