/* ═══════════════════════════════════════
   RAIN STORE – Main Stylesheet
   Color Palette: Vanilla Cream, Blush Petal,
   Rosewood, Sage Leaf, Misty Sky, Midnight Lagoon
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* ── Color Palette ── */
  --vanilla:    #FFF7E6;
  --blush:      #F7C8D3;
  --rosewood:   #B46A72;
  --rosewood-dk:#8a4f56;
  --sage:       #A8B58A;
  --misty:      #A9B7C6;
  --midnight:   #2D3A47;

  /* ── Semantic ── */
  --bg:         var(--vanilla);
  --text:       var(--midnight);
  --text-muted: #7a8a96;
  --card:       #ffffff;
  --border:     #f0dde2;
  --border-alt: #e8edf1;

  /* ── Effects ── */
  --shadow:     0 4px 24px rgba(45,58,71,0.08);
  --shadow-lg:  0 12px 48px rgba(45,58,71,0.14);
  --shadow-pink:0 8px 32px rgba(180,106,114,0.25);

  /* ── Compat (used in inline JS-rendered HTML) ── */
  --pink:       var(--rosewood);
  --pink-light: var(--blush);
  --pink-dark:  var(--rosewood-dk);
  --pink-dk:    var(--rosewood-dk);
  --cream:      var(--vanilla);
  --success:    #4caf87;
  --warn:       #d4a94a;
  --danger:     #c55b5b;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Subtle grain texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   HEADER / LOGO
   ═══════════════════════════════════════ */
header {
  background: linear-gradient(160deg, var(--blush) 0%, #fce8ed 40%, var(--vanilla) 100%);
  border-bottom: 1.5px solid var(--border);
  padding: 32px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,181,138,0.25) 0%, transparent 70%);
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 44'%3E%3Cpath d='M0,44 C300,4 900,4 1200,44 L1200,44 L0,44 Z' fill='%23FFF7E6'/%3E%3C/svg%3E") no-repeat bottom center / 100%;
  z-index: 2;
}

/* ── Logo SVG ── */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  animation: float 4s ease-in-out infinite;
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-rain {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--rosewood-dk);
  line-height: 1;
  letter-spacing: -1px;
}

.logo-store {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--sage);
  text-transform: uppercase;
  margin-top: 2px;
}

.header-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-style: italic;
  position: relative;
  z-index: 3;
}

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,247,230,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}
nav::-webkit-scrollbar { display: none; }

.nav-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-btn:hover { border-color: var(--rosewood); color: var(--rosewood-dk); }
.nav-btn.active {
  background: var(--rosewood);
  border-color: var(--rosewood);
  color: white;
  font-weight: 600;
}

.page-nav { display: flex; gap: 6px; }
.page-sep { width: 1px; background: var(--border); margin: 4px 6px; }

/* ═══════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════ */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 120px;
  position: relative;
  z-index: 1;
}
.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════ */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--rosewood-dk);
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: 0.5px;
}
.section-title span { font-style: normal; font-weight: 600; }

/* ═══════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════ */
.search-bar {
  position: relative;
  margin-bottom: 18px;
}
.search-bar input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  font-size: 0.9rem;
  background: white;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--rosewood);
  box-shadow: 0 0 0 3px rgba(180,106,114,0.1);
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   CATEGORY BAR
   ═══════════════════════════════════════ */
.categories-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  justify-content: center;
}
.cat-chip {
  padding: 6px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border-alt);
  background: white;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.cat-chip:hover { border-color: var(--rosewood); color: var(--rosewood-dk); }
.cat-chip.active {
  background: var(--blush);
  border-color: var(--rosewood);
  color: var(--rosewood-dk);
  font-weight: 700;
}

/* ═══════════════════════════════════════
   PRODUCT GRID & CARDS
   ═══════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blush), var(--rosewood));
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card.out-of-stock { opacity: 0.55; }
.product-card.out-of-stock::after {
  content: 'HABIS';
  position: absolute;
  top: 14px; right: 14px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.product-emoji { font-size: 2.5rem; text-align: center; }
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.product-duration {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--vanilla);
  padding: 2px 8px;
  border-radius: 8px;
  width: fit-content;
  font-family: 'Space Mono', monospace;
}
.product-price {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rosewood-dk);
}
.product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.badge-ready {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  width: fit-content;
}
.badge-ready.ready { background: #d9f0e6; color: #2e7d5a; }
.badge-ready.empty { background: #fde8e8; color: #9b3333; }

.add-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rosewood), var(--rosewood-dk));
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}
.add-btn:hover { opacity: 0.88; transform: scale(1.02); }
.add-btn:active { transform: scale(0.98); }
.add-btn:disabled { background: #e9d5d8; color: #b89a9c; cursor: not-allowed; transform: none; }

/* ═══════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}
.empty-state div { font-size: 3rem; margin-bottom: 12px; }

/* ═══════════════════════════════════════
   CART FAB
   ═══════════════════════════════════════ */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: linear-gradient(135deg, var(--rosewood), var(--midnight));
  color: white;
  border: none;
  border-radius: 28px;
  padding: 14px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(45,58,71,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(45,58,71,0.45); }
.cart-badge {
  background: var(--blush);
  color: var(--rosewood-dk);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  min-width: 24px;
  text-align: center;
  font-family: 'Space Mono', monospace;
}
.cart-total { font-family: 'Space Mono', monospace; font-size: 0.85rem; }

/* ═══════════════════════════════════════
   SCROLL TOP
   ═══════════════════════════════════════ */
.scroll-top {
  display: none;
  position: fixed;
  bottom: 90px; right: 24px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 1rem;
  z-index: 150;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  color: var(--rosewood);
}
.scroll-top:hover { background: var(--blush); border-color: var(--rosewood); }
.scroll-top.visible { display: flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,58,71,0.55);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto 20px;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--rosewood-dk);
  margin-bottom: 18px;
  text-align: center;
}

/* ═══════════════════════════════════════
   CART ITEMS
   ═══════════════════════════════════════ */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--vanilla);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.cart-item-emoji { font-size: 1.6rem; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-sub { font-size: 0.75rem; color: var(--text-muted); font-family: 'Space Mono', monospace; }
.cart-item-price { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--rosewood-dk); font-size: 0.9rem; }
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  color: var(--rosewood-dk);
}
.qty-btn:hover { background: var(--blush); border-color: var(--rosewood); }
.qty-num { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.9rem; min-width: 22px; text-align: center; }
.del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--danger);
  opacity: 0.6;
  transition: opacity 0.15s;
  padding: 4px;
}
.del-btn:hover { opacity: 1; }

/* ═══════════════════════════════════════
   CHECKOUT FORM
   ═══════════════════════════════════════ */
.checkout-divider {
  border: none;
  border-top: 1.5px dashed var(--border);
  margin: 18px 0;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: var(--vanilla);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--rosewood);
  background: white;
  box-shadow: 0 0 0 3px rgba(180,106,114,0.1);
}
textarea.form-input { resize: vertical; min-height: 70px; }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1.5px solid var(--border);
  margin-top: 6px;
}
.total-label { font-weight: 600; font-size: 1rem; }
.total-amount { font-family: 'Space Mono', monospace; font-size: 1.3rem; font-weight: 700; color: var(--rosewood-dk); }
.wa-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 12px;
}
.wa-btn:hover { opacity: 0.92; transform: scale(1.01); }
.wa-btn:active { transform: scale(0.99); }

/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.testi-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  position: relative;
}
.testi-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--blush);
  position: absolute;
  top: -10px;
  left: 14px;
  line-height: 1;
}
.testi-stars { color: #d4a94a; font-size: 1rem; margin-bottom: 8px; }
.testi-text { font-size: 0.88rem; line-height: 1.6; color: var(--text); margin-bottom: 12px; }
.testi-author { display: flex; align-items: center; gap: 8px; }
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--rosewood));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 0.85rem; }
.testi-product { font-size: 0.72rem; color: var(--text-muted); font-family: 'Space Mono', monospace; }
.testi-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.testi-form-card {
  background: linear-gradient(135deg, #fdf1f3, #f9eaed);
  border: 2px dashed var(--blush);
  border-radius: 20px;
  padding: 24px;
}
.testi-form-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--rosewood-dk);
  margin-bottom: 16px;
  text-align: center;
}
.star-select { display: flex; gap: 6px; margin-bottom: 14px; }
.star-opt {
  font-size: 1.6rem;
  cursor: pointer;
  filter: grayscale(1);
  transition: filter 0.15s, transform 0.15s;
}
.star-opt:hover, .star-opt.selected { filter: none; transform: scale(1.15); }
.submit-testi-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--rosewood), var(--rosewood-dk));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.submit-testi-btn:hover { opacity: 0.9; }

/* ═══════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════ */
.admin-login {
  max-width: 400px;
  margin: 40px auto;
  background: white;
  border-radius: 24px;
  padding: 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.admin-login h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rosewood-dk);
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--rosewood-dk);
}
.btn-secondary {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--rosewood); color: var(--rosewood-dk); }
.btn-primary {
  padding: 9px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rosewood), var(--rosewood-dk));
  color: white;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-danger {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #fde8e8;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-danger:hover { background: #fca5a5; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.admin-tab.active { background: var(--rosewood); border-color: var(--rosewood); color: white; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.admin-table th {
  background: var(--vanilla);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fdf5f6; }
.admin-table .emoji-cell { font-size: 1.4rem; }

.toggle-stock {
  position: relative;
  width: 46px; height: 24px;
  display: inline-block;
}
.toggle-stock input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #e9d5d8;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-stock input:checked + .toggle-slider { background: var(--rosewood); }
.toggle-stock input:checked + .toggle-slider::before { transform: translateX(22px); }

.product-form {
  background: var(--vanilla);
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.product-form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rosewood-dk);
  margin-bottom: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: white;
  color: var(--text);
  width: 100%;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--rosewood); }

.wa-settings {
  background: #eef7f1;
  border: 1.5px solid #a8dcc0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.wa-settings h3 { color: #2e7d5a; font-family: 'Cormorant Garamond', serif; font-style: italic; margin-bottom: 14px; }
.wa-preview {
  background: white;
  border-radius: 12px;
  padding: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  border: 1px solid #a8dcc0;
  max-height: 200px;
  overflow-y: auto;
}

/* ═══════════════════════════════════════
   NOTIFICATION
   ═══════════════════════════════════════ */
.notif {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--midnight);
  color: white;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(45,58,71,0.35);
}
.notif.show { transform: translateX(-50%) translateY(0); }
.notif.pink { background: linear-gradient(135deg, var(--rosewood), var(--rosewood-dk)); }
.notif.green { background: linear-gradient(135deg, #4caf87, #2e7d5a); }

/* ═══════════════════════════════════════
   T&C
   ═══════════════════════════════════════ */
.tnc-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid var(--border);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.tnc-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rosewood-dk);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.tnc-card p, .tnc-card li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 8px;
}
.tnc-card ul { padding-left: 20px; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(to top, #f0e6d3 0%, var(--vanilla) 100%);
  position: relative; z-index: 1;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rosewood);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 14px; }
  .product-emoji { font-size: 2rem; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
  .logo-icon { width: 44px; height: 44px; }
}

/* ── Sage accent bar on active product card ── */
.product-card:hover::before {
  background: linear-gradient(90deg, var(--sage), var(--misty));
}
