/* ============================================
   Hanami Wedding — Korean Minimal Wedding Style
   ============================================ */

:root {
  /* Brand colors */
  --warm-white: #FAF8F5;
  --soft-beige: #EEE7DE;
  --blush-pink: #EEDFD9;
  --sage-green: #A8B2A0;
  --brown-gray: #514B47;
  --gold-beige: #B89B72;

  --text: #514B47;
  --text-muted: #8a8682;
  --text-light: #aba8a4;
  --border: #e7e2dc;
  --border-light: #f0ebe5;
  --bg: var(--warm-white);
  --bg-soft: var(--soft-beige);

  --shadow-sm: 0 1px 2px rgba(81, 75, 71, 0.04), 0 1px 4px rgba(81, 75, 71, 0.04);
  --shadow: 0 2px 6px rgba(81, 75, 71, 0.06), 0 8px 24px rgba(81, 75, 71, 0.04);
  --shadow-lg: 0 4px 12px rgba(81, 75, 71, 0.08), 0 12px 36px rgba(81, 75, 71, 0.06);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-thai: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --container: 1200px;
  --container-narrow: 880px;

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-thai);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text); }
a  { color: var(--gold-beige); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown-gray); }
img { max-width: 100%; height: auto; display: block; }
hr { border: none; border-top: 1px solid var(--border-light); margin: 1.25rem 0; }
.muted { color: var(--text-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--gold-beige); font-size: 1.4rem; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--text); font-weight: 400; font-size: 0.95rem;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-beige); border-bottom-color: var(--gold-beige); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); color: var(--text);
  transition: background var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--soft-beige); color: var(--brown-gray); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--gold-beige); color: white;
  font-size: 0.7rem; font-weight: 600;
  min-width: 18px; height: 18px;
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--text);
  display: block; transition: var(--transition);
}

.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--radius-pill);
  color: var(--text); font-family: inherit; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition);
}
.user-btn:hover { background: var(--soft-beige); border-color: var(--gold-beige); }
.user-name { font-weight: 500; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: var(--transition);
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
  display: block; padding: 8px 14px; color: var(--text);
  font-size: 0.9rem; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.user-dropdown a:hover { background: var(--soft-beige); color: var(--brown-gray); }
.user-dropdown hr { margin: 6px 0; }

/* Flash Messages */
.flash-container { padding-top: 16px; }
.flash {
  padding: 12px 18px; border-radius: var(--radius);
  margin-bottom: 12px; font-size: 0.95rem;
  border: 1px solid var(--border);
}
.flash-success { background: #f0f4ed; border-color: #c8d5be; color: #4a6a48; }
.flash-error   { background: #fdf2f2; border-color: #f0c0c0; color: #a04040; }
.flash-info    { background: #f5f0ea; border-color: #d8c8b0; color: #6a5536; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brown-gray); color: white; }
.btn-primary:hover { background: #3d3834; color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-beige); color: white; }
.btn-gold:hover { background: #a08660; color: white; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--brown-gray); color: var(--brown-gray); }
.btn-outline:hover { background: var(--brown-gray); color: white; }
.btn-soft { background: var(--soft-beige); color: var(--brown-gray); }
.btn-soft:hover { background: var(--blush-pink); color: var(--brown-gray); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--soft-beige); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--blush-pink) 100%);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 16px;
  background: rgba(184, 155, 114, 0.12); color: var(--gold-beige);
  font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 500;
}
.hero h1 em { color: var(--gold-beige); font-style: italic; }
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 32px; max-width: 460px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img, .hero-visual svg { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   Section
   ============================================ */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-beige); margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 12px;
}
.section-sub { color: var(--text-muted); max-width: 580px; margin: 0 auto; }
.section-divider {
  width: 40px; height: 1px; background: var(--gold-beige);
  margin: 18px auto; opacity: 0.6;
}

/* ============================================
   Card Grid
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card-item {
  background: white; border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
}
.card-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image {
  aspect-ratio: 3/4; background: var(--soft-beige);
  overflow: hidden; position: relative;
}
.card-image img, .card-image svg { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card-item:hover .card-image img, .card-item:hover .card-image svg { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--brown-gray); color: white;
  padding: 4px 10px; font-size: 0.7rem; letter-spacing: 0.05em;
  border-radius: var(--radius-pill); font-weight: 500;
}
.card-badge.is-new { background: var(--sage-green); }
.card-badge.is-premium { background: var(--gold-beige); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-family: var(--font-en); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-beige); margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-display); font-size: 1.15rem;
  margin-bottom: 6px; color: var(--text);
}
.card-tag {
  display: inline-block; font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 12px;
}
.card-price {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-light);
}
.price-from { font-size: 0.75rem; color: var(--text-muted); }
.price-amount { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--brown-gray); }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; padding: 8px 12px; font-size: 0.8rem; }

/* ============================================
   Featured Section (Homepage)
   ============================================ */
.featured-cta { text-align: center; margin-top: 48px; }

/* ============================================
   Online Invitation Promo Section
   ============================================ */
.invitation-promo {
  background: linear-gradient(135deg, var(--soft-beige) 0%, var(--blush-pink) 100%);
  padding: 100px 0; margin: 80px 0;
}
.invitation-promo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.phone-mockup-stack {
  position: relative; display: flex; justify-content: center;
  min-height: 480px;
}
.phone-mockup {
  width: 220px; aspect-ratio: 9/19;
  background: white; border-radius: 36px;
  box-shadow: var(--shadow-lg);
  padding: 14px; border: 8px solid #2c2825;
  position: relative;
}
.phone-mockup.behind {
  position: absolute; left: 8%; top: 30px;
  transform: rotate(-8deg); opacity: 0.7; z-index: 1;
  width: 200px;
}
.phone-mockup.front {
  position: relative; z-index: 2; transform: rotate(3deg);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 24px;
  background: var(--warm-white); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}
.phone-screen .heart { font-size: 2.5rem; color: var(--blush-pink); margin-bottom: 12px; }
.phone-screen .couple { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.phone-screen .date { font-size: 0.7rem; color: var(--gold-beige); letter-spacing: 0.1em; }

.invitation-promo h2 { margin-bottom: 16px; }
.invitation-promo-list {
  list-style: none; margin: 24px 0 32px;
}
.invitation-promo-list li {
  padding: 8px 0 8px 26px; position: relative; color: var(--text);
}
.invitation-promo-list li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: var(--gold-beige); font-weight: 600;
}

/* ============================================
   How It Works
   ============================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.step-card { text-align: center; padding: 24px 12px; }
.step-num {
  font-family: var(--font-display); font-size: 2.5rem;
  color: var(--gold-beige); display: block; margin-bottom: 12px;
  font-style: italic; font-weight: 500;
}
.step-card h4 { margin-bottom: 8px; font-family: var(--font-display); }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   Reviews
   ============================================ */
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.review-card {
  background: white; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.review-stars { color: var(--gold-beige); margin-bottom: 12px; font-size: 1rem; letter-spacing: 2px; }
.review-text { font-style: italic; color: var(--text); margin-bottom: 16px; flex: 1; }
.review-author { font-weight: 500; color: var(--brown-gray); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--soft-beige);
  padding: 60px 0 24px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand { font-family: var(--font-display); margin-bottom: 12px; }
.footer-col h5 { font-size: 0.95rem; margin-bottom: 16px; color: var(--brown-gray); font-family: var(--font-thai); font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-beige); }
.footer-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.social-row { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.social-row a { color: var(--text); }
.social-row span { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ============================================
   Cards Listing Page
   ============================================ */
.page-header {
  background: var(--soft-beige); padding: 48px 0;
  text-align: center; border-bottom: 1px solid var(--border-light);
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--text-muted); }

.filter-bar {
  background: white; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 12px;
  align-items: end;
}
.filter-bar label {
  display: block; font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em;
}
.input, .select, .textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: white;
  transition: var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold-beige);
  box-shadow: 0 0 0 3px rgba(184, 155, 114, 0.12);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 48px 0;
}
.product-gallery .main-image {
  aspect-ratio: 3/4; background: var(--soft-beige);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.product-gallery .main-image img, .product-gallery .main-image svg { width: 100%; height: 100%; object-fit: cover; }
.thumb-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; opacity: 0.6;
  transition: var(--transition); border: 2px solid transparent;
}
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold-beige); }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { margin-bottom: 8px; }
.product-cat { font-family: var(--font-en); letter-spacing: 0.15em; font-size: 0.8rem; color: var(--gold-beige); text-transform: uppercase; margin-bottom: 16px; }
.product-price-block {
  margin: 24px 0; padding: 20px;
  background: var(--soft-beige); border-radius: var(--radius);
}
.price-large { font-family: var(--font-display); font-size: 2rem; color: var(--brown-gray); font-weight: 600; }
.price-large small { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; margin-left: 8px; }

.product-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.spec-item { padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.spec-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.spec-value { color: var(--brown-gray); font-weight: 500; }

.option-group { margin: 20px 0; }
.option-group > label { display: block; font-size: 0.9rem; color: var(--brown-gray); margin-bottom: 8px; font-weight: 500; }
.option-tier-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-tier {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 16px; background: white; cursor: pointer; transition: var(--transition);
  display: inline-flex; flex-direction: column; align-items: center; min-width: 100px;
}
.option-tier:hover { border-color: var(--gold-beige); }
.option-tier.active { border-color: var(--brown-gray); background: var(--soft-beige); }
.option-tier .qty { font-weight: 600; color: var(--brown-gray); }
.option-tier .unit { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.product-actions { display: flex; gap: 12px; margin-top: 32px; }

/* ============================================
   Forms
   ============================================ */
.form-card {
  background: white; padding: 40px;
  border-radius: var(--radius); border: 1px solid var(--border-light);
  box-shadow: var(--shadow); max-width: 480px; margin: 60px auto;
}
.form-card h2 { text-align: center; margin-bottom: 8px; }
.form-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.9rem; color: var(--brown-gray); margin-bottom: 6px; font-weight: 500; }
.form-row .required { color: #c25555; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: 0.8rem; color: #c25555; margin-top: 4px; }

/* ============================================
   Auth pages
   ============================================ */
.auth-link { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   Tables
   ============================================ */
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.data-table th { background: var(--soft-beige); font-weight: 500; color: var(--brown-gray); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:hover td { background: rgba(238, 231, 222, 0.3); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; color: white; font-weight: 500; }

/* ============================================
   Pagination
   ============================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text); background: white; font-size: 0.9rem;
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--gold-beige); color: var(--gold-beige); }
.pagination .current { background: var(--brown-gray); color: white; border-color: var(--brown-gray); }

/* ============================================
   Cart
   ============================================ */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 40px 0; }
.cart-item-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); align-items: center; }
.cart-thumb { width: 80px; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft-beige); }
.cart-thumb img, .cart-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.cart-summary { background: white; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border-light); position: sticky; top: 90px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 12px; font-family: var(--font-display); font-size: 1.2rem; color: var(--brown-gray); font-weight: 600; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .invitation-promo-grid, .hero-grid, .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .cart-layout { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 64px; right: 0;
    width: 280px; height: calc(100vh - 64px);
    background: white; flex-direction: column; gap: 0;
    border-left: 1px solid var(--border);
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border-light) !important; border-radius: 0; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 12px; }

  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-body { padding: 14px; }
  .card-title { font-size: 1rem; }
  .card-actions { flex-direction: column; }

  .review-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; margin: 32px 16px; }
  .product-spec { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
  .filter-bar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 56px 0; }
  .invitation-promo { padding: 60px 0; margin: 56px 0; }
  .phone-mockup { width: 180px; }
  .phone-mockup.behind { width: 160px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .user-name { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.empty-state {
  text-align: center; padding: 60px 20px;
  background: white; border-radius: var(--radius); border: 1px dashed var(--border);
}
.empty-state .icon { font-size: 3rem; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* ============================================
   Account Layout
   ============================================ */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 32px 0 80px;
}
.account-sidebar {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.account-user-card {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid var(--soft-beige);
}
.account-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--brand-gold);
    color: white;
    display: grid; place-items: center;
    font-size: 20px; font-weight: 600;
    font-family: 'Playfair Display', serif;
}
.account-user-name { font-weight: 600; color: var(--text-dark); }
.account-user-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; word-break: break-all; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    color: var(--text-dark); text-decoration: none;
    transition: all .2s ease;
    font-size: 14px;
}
.account-nav-item:hover { background: var(--warm-white); }
.account-nav-item.active {
    background: var(--blush-pink);
    color: var(--text-dark);
    font-weight: 600;
}
.account-nav-icon { font-size: 18px; }
.account-nav-logout { margin-top: 8px; color: var(--text-muted); border-top: 1px solid var(--soft-beige); padding-top: 16px; }

.account-content { min-width: 0; }
.account-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
.account-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--text-dark);
}
.account-card-subtitle {
    color: var(--text-muted);
    margin: 0 0 20px;
}

.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white; padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--text-dark); font-weight: 600; }
.stat-value.sage { color: var(--brand-sage); }
.stat-value.gold { color: var(--brand-gold); }

.empty-state {
    text-align: center; padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 16px; margin-bottom: 16px; }

/* Status pills */
.status-pill {
    display: inline-block; padding: 4px 12px;
    border-radius: 999px; font-size: 12px; font-weight: 500;
}
.status-pill.gray  { background: #eaeaea; color: #555; }
.status-pill.blue  { background: #e3eef5; color: #2c5e7f; }
.status-pill.yellow{ background: #fbeed1; color: #7a5b00; }
.status-pill.orange{ background: #fae0cd; color: #8b4a13; }
.status-pill.purple{ background: #ece4f7; color: #5b3e93; }
.status-pill.teal  { background: #d9efe7; color: #28614e; }
.status-pill.green { background: #d8eed6; color: #2e6b27; }
.status-pill.red   { background: #f6d8d3; color: #8b2a1c; }

@media (max-width: 900px) {
    .account-layout { grid-template-columns: 1fr; gap: 16px; }
    .account-sidebar { position: static; }
    .account-nav { flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
    .account-nav-item { flex: 0 0 auto; padding: 10px 12px; }
    .account-nav-logout { border-top: none; padding-top: 10px; margin-top: 0; }
}

/* ============================================
   Cart & Checkout
   ============================================ */
.cart-layout {
    display: grid; grid-template-columns: 1fr 360px; gap: 32px;
    padding: 32px 0 80px;
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    background: white; padding: 18px;
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
}
.cart-item-image {
    width: 90px; height: 90px; border-radius: 10px;
    overflow: hidden; background: var(--soft-beige);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-weight: 600; color: var(--text-dark); margin: 0 0 4px; }
.cart-item-meta { font-size: 13px; color: var(--text-muted); }
.cart-item-price { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--brand-gold); font-weight: 600; text-align: right; }
.cart-item-remove {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 13px; margin-top: 8px;
}
.cart-item-remove:hover { color: #c0392b; }

.cart-summary {
    background: white; padding: 24px;
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    height: fit-content; position: sticky; top: 100px;
}
.cart-summary h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 16px; font-size: 22px;
}
.summary-line {
    display: flex; justify-content: space-between;
    padding: 8px 0; color: var(--text-muted);
}
.summary-line.grand {
    border-top: 1px solid var(--soft-beige);
    margin-top: 8px; padding-top: 16px;
    color: var(--text-dark); font-weight: 600; font-size: 18px;
}
.summary-line.grand span:last-child { color: var(--brand-gold); }

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item-price { grid-column: 1 / -1; text-align: right; border-top: 1px solid var(--soft-beige); padding-top: 12px; }
}

/* Checkout form */
.checkout-grid {
    display: grid; grid-template-columns: 1fr 360px; gap: 32px;
    padding: 32px 0 80px;
}
.checkout-form .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.checkout-form .form-group { margin-bottom: 14px; }
.checkout-form label {
    display: block; font-size: 14px; font-weight: 500;
    margin-bottom: 6px; color: var(--text-dark);
}
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--soft-beige);
    border-radius: 10px; background: white;
    font-family: inherit; font-size: 14px;
    transition: border-color .2s ease;
}
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus {
    outline: none; border-color: var(--brand-gold);
}
.checkout-form textarea { resize: vertical; min-height: 80px; }

@media (max-width: 720px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-form .form-row { grid-template-columns: 1fr; }
}

/* ========== Online Invitation public pages ========== */
.hero-secondary {
    background: linear-gradient(135deg, var(--soft-beige) 0%, var(--blush-pink) 100%);
    padding: 80px 16px 64px;
    text-align: center;
}
.hero-secondary .hero-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 16px;
}
.hero-secondary .hero-subtitle {
    color: var(--brown-gray);
    font-size: 17px;
    max-width: 580px;
    margin: 0 auto 28px;
}
.hero-secondary .hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.section {
    padding: 72px 0;
}
.section-alt {
    background: var(--soft-beige);
}
.section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.section-title {
    font-family: var(--font-display);
    text-align: center;
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 48px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--soft-beige);
    transition: all .25s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 8px;
}
.feature-card p {
    margin: 0;
    color: var(--brown-gray);
    font-size: 14px;
    line-height: 1.6;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.package-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    border: 1px solid var(--soft-beige);
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.package-card.featured {
    border: 2px solid var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(184, 155, 114, 0.18);
}
.package-card:hover:not(.featured) {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #fff;
    padding: 5px 16px;
    border-radius: 14px;
    font-size: 12px;
    letter-spacing: 1px;
}
.package-name {
    font-family: var(--font-display);
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    margin: 0 0 8px;
}
.package-price {
    text-align: center;
    margin: 12px 0 8px;
}
.package-price .amount {
    font-family: var(--font-display);
    font-size: 38px;
    color: var(--accent-gold);
    line-height: 1;
}
.package-price .currency {
    font-size: 14px;
    color: var(--brown-gray);
    margin-left: 4px;
}
.package-duration {
    text-align: center;
    color: var(--brown-gray);
    font-size: 13px;
    margin: 0 0 16px;
}
.package-desc {
    text-align: center;
    color: var(--brown-gray);
    font-size: 13px;
    margin: 0 0 20px;
}
.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.package-features li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--soft-beige);
}
.package-features li:last-child { border-bottom: none; }
.package-features li.disabled {
    color: #c0bab5;
    text-decoration: line-through;
}

/* ========== Edit invitation layout ========== */
.invitation-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.invitation-edit-actions {
    display: flex;
    gap: 8px;
}
.invitation-edit-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.invitation-edit-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.invite-url {
    background: var(--warm-white);
    border: 1px solid var(--soft-beige);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    margin: 0 0 12px;
    color: var(--accent-gold);
}

.section-h {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--soft-beige);
    padding-bottom: 8px;
    margin: 28px 0 16px;
}
.section-h:first-child { margin-top: 0; }

.image-preview-block {
    margin-bottom: 12px;
    max-width: 240px;
}
.image-preview-block img {
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.gallery-item {
    background: var(--warm-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 8px;
    border: 1px solid var(--soft-beige);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.gallery-caption {
    font-size: 12px;
    color: var(--brown-gray);
    margin: 6px 0 0;
}
.gallery-upload {
    border-top: 1px dashed var(--soft-beige);
    padding-top: 12px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 32px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.schedule-row input {
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--soft-beige);
    border-radius: 6px;
    background: var(--warm-white);
}
.btn-icon-del {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--soft-beige);
    color: #c44;
    cursor: pointer;
    font-size: 14px;
}
.btn-icon-del:hover { background: #fdedee; }

.slug-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--soft-beige);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    overflow: hidden;
}
.slug-prefix {
    padding: 11px 12px;
    background: var(--soft-beige);
    color: var(--brown-gray);
    font-family: monospace;
    font-size: 13px;
    white-space: nowrap;
}
.slug-input input {
    flex: 1;
    border: none;
    padding: 11px 14px;
    background: transparent;
    font-family: monospace;
    font-size: 14px;
    outline: none;
}

.hint {
    display: block;
    font-size: 12px;
    color: var(--brown-gray);
    margin-top: 4px;
}
.hint.ok { color: #2a8a3e; }
.hint.err { color: #c44; }
small.err {
    display: block;
    color: #c44;
    margin-top: 4px;
    font-size: 12px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    margin-right: 16px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 36px;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.page-subtitle {
    color: var(--brown-gray);
    margin: 0;
}

.info-box {
    background: var(--warm-white);
    border: 1px solid var(--soft-beige);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 800px;
    margin: 0 auto;
}
.info-box h3 {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0 0 20px;
}
.info-box details {
    border-bottom: 1px solid var(--soft-beige);
    padding: 12px 0;
}
.info-box details:last-child { border-bottom: none; }
.info-box summary {
    cursor: pointer;
    font-weight: 500;
    padding: 4px 0;
    color: var(--text-dark);
}
.info-box details p {
    margin: 8px 0 0;
    color: var(--brown-gray);
    font-size: 14px;
    padding-left: 16px;
}

/* mobile */
@media (max-width: 900px) {
    .invitation-edit-grid {
        grid-template-columns: 1fr;
    }
    .schedule-row {
        grid-template-columns: 1fr 1fr;
    }
    .schedule-row .sched-desc { grid-column: 1 / -1; }
    .schedule-row .btn-icon-del { grid-column: 1 / -1; justify-self: end; }
    .hero-secondary .hero-title { font-size: 30px; }
}
