/* =============================================================
   RISE DISPENSARY × ASG - SIGNAGE ORDER PORTAL
   Deep forest green brand · refined wellness-retail aesthetic
   ============================================================= */

:root {
  /* RISE brand palette */
  --rise-forest:        #0e3a26;
  --rise-forest-deep:   #082218;
  --rise-forest-mid:    #1a4e36;
  --rise-forest-light:  #2a5640;
  --rise-cream:         #f7f3ea;
  --rise-paper:         #ffffff;
  --rise-ink:           #0e1e16;
  --rise-muted:         #5a6b62;
  --rise-soft-line:     #e7e1d2;
  --rise-soft-bg:       #efeadb;

  /* ASG accent (warm rust for primary actions) */
  --asg-rust:           #c4623c;
  --asg-rust-dark:      #a04c2c;

  /* States */
  --success:            #2d7a4f;
  --danger:             #b03a3a;

  /* Layout */
  --max-width:          1320px;
  --gutter:             clamp(1rem, 3vw, 2rem);
  --radius-sm:          4px;
  --radius:             8px;
  --radius-lg:          14px;

  /* Typography */
  --font-display:       'Anton', 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-heading:       'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:          'DM Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm:          0 1px 2px rgba(14, 30, 22, 0.06);
  --shadow-md:          0 4px 16px rgba(14, 30, 22, 0.08);
  --shadow-lg:          0 12px 32px rgba(14, 30, 22, 0.16);
  --shadow-xl:          0 24px 64px rgba(14, 30, 22, 0.22);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rise-ink);
  background: var(--rise-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

button, input, textarea, select {
  font: inherit; color: inherit; border: none; background: none; outline: none;
}

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--rise-forest); color: var(--rise-cream); }

/* ============== HEADER ============== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--rise-forest-deep);
  color: var(--rise-cream);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.brand-block { display: flex; align-items: center; gap: 1rem; }

.brand-rise { display: block; }

.rise-logo-img {
  height: 44px; width: auto;
  border-radius: var(--radius-sm);
}

.brand-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.18);
}

.brand-asg { display: flex; flex-direction: column; line-height: 1.1; }

.brand-asg-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: rgba(247, 243, 234, 0.55);
  margin-bottom: 2px;
}

.brand-asg-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--rise-cream);
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

.store-id-field {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.store-id-field:focus-within {
  border-color: var(--rise-cream);
  background: rgba(255,255,255,0.12);
}

.store-id-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(247, 243, 234, 0.6);
  margin-bottom: 1px;
}

.store-id-input {
  width: 160px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--rise-cream);
  background: transparent;
  border: none; padding: 0;
}

.store-id-input::placeholder { color: rgba(247, 243, 234, 0.35); }

.cart-button {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--rise-cream);
  color: var(--rise-forest-deep);
  border-radius: var(--radius);
  transition: transform 0.15s, background 0.15s;
}

.cart-button:hover {
  transform: translateY(-1px);
  background: white;
}

.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: var(--asg-rust);
  color: white;
  font-size: 11px; font-weight: 700;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--rise-forest-deep);
  transition: transform 0.2s ease-out;
}

.cart-count.bump { animation: countBump 0.4s cubic-bezier(0.4, 0.0, 0.2, 1); }

@keyframes countBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  background: var(--rise-forest);
  color: var(--rise-cream);
  overflow: hidden;
}

.hero-decoration {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% -20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at -10% 110%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(247,243,234,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(247, 243, 234, 0.65);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero-title-accent {
  color: var(--rise-cream);
  position: relative;
  display: inline-block;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  height: 8%;
  background: var(--asg-rust);
  z-index: -1;
  transform: skewX(-6deg);
}

.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
  color: rgba(247, 243, 234, 0.78);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--rise-cream);
  color: var(--rise-forest-deep);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-cta svg { transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ============== CATEGORY BAR ============== */
.category-bar {
  position: sticky;
  top: 70px;
  z-index: 80;
  background: var(--rise-cream);
  border-bottom: 1px solid var(--rise-soft-line);
  padding: 1rem 0;
}

.category-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rise-forest);
  background: transparent;
  border: 1.5px solid var(--rise-soft-line);
  border-radius: 100px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-chip:hover {
  border-color: var(--rise-forest);
  background: white;
}

.category-chip.active {
  background: var(--rise-forest);
  border-color: var(--rise-forest);
  color: var(--rise-cream);
}

/* ============== CATALOGUE ============== */
.catalogue {
  padding: 3rem 0 5rem;
}

.catalogue-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.catalogue-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rise-forest);
}

.catalogue-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--rise-forest-deep);
}

.catalogue-count {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--rise-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============== PRODUCT CARD ============== */
.product-card {
  background: var(--rise-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--rise-soft-line);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rise-forest-light);
}

.product-image-wrap {
  position: relative;
  background: var(--rise-soft-bg);
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(14, 30, 22, 0.1));
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-category-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--rise-forest);
  color: var(--rise-cream);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 100px;
}

.product-body {
  padding: 1.25rem 1.25rem 1.25rem;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rise-forest-deep);
  line-height: 1.2;
}

.product-description {
  font-size: 13px;
  color: var(--rise-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.product-options {
  display: grid;
  gap: 8px;
  margin: 0.5rem 0;
}

.option-row {
  display: flex; align-items: center; gap: 10px;
}

.option-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rise-muted);
  min-width: 70px;
}

.option-select {
  flex: 1;
  background: var(--rise-soft-bg);
  border: 1px solid var(--rise-soft-line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rise-ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='%230e3a26' d='M5 6L0 0h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 28px;
}

.option-select:hover { border-color: var(--rise-forest-light); }
.option-select:focus { border-color: var(--rise-forest); background: white; }

.product-footer {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
  padding-top: 1rem;
}

.qty-controls {
  display: flex; align-items: center;
  border: 1.5px solid var(--rise-soft-line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 42px;
}

.qty-button {
  width: 32px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--rise-forest);
  font-size: 18px;
  font-weight: 600;
  transition: background 0.15s;
}

.qty-button:hover { background: var(--rise-soft-bg); }
.qty-button:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-display {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.add-button {
  flex: 1;
  height: 42px;
  background: var(--rise-forest);
  color: var(--rise-cream);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s;
}

.add-button:hover {
  background: var(--rise-forest-deep);
}

.add-button:active {
  transform: scale(0.97);
}

.add-button.added {
  background: var(--success);
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--rise-forest-deep);
  color: var(--rise-cream);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: end;
}

.footer-brand { }

.footer-asg-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-asg-tagline {
  font-size: 13px;
  color: rgba(247, 243, 234, 0.55);
  letter-spacing: 0.04em;
}

.footer-contact { text-align: right; }

.footer-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(247, 243, 234, 0.5);
  margin-bottom: 6px;
}

.footer-email {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--rise-cream);
  border-bottom: 1px solid rgba(247, 243, 234, 0.3);
  transition: border-color 0.15s;
}

.footer-email:hover { border-color: var(--rise-cream); }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(247, 243, 234, 0.4);
  letter-spacing: 0.04em;
}

/* ============== CART DRAWER ============== */
.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 460px; height: 100vh;
  background: var(--rise-cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 110;
  box-shadow: var(--shadow-xl);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--rise-soft-line);
  background: var(--rise-forest-deep);
  color: var(--rise-cream);
}

.cart-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
}

.cart-subtitle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 234, 0.55);
  margin-top: 2px;
}

.cart-close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rise-cream);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.cart-close:hover { background: rgba(255,255,255,0.1); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--rise-muted);
}

.cart-empty svg { margin-bottom: 1rem; opacity: 0.4; }

.cart-empty p { font-weight: 500; color: var(--rise-forest); }

.cart-empty-hint {
  font-size: 13px;
  color: var(--rise-muted) !important;
  font-weight: 400 !important;
  margin-top: 4px;
}

.cart-items { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  display: flex; gap: 12px;
  padding: 12px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--rise-soft-line);
}

.cart-item-img {
  width: 64px; height: 64px;
  background: var(--rise-soft-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}

.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--rise-forest-deep);
  margin-bottom: 2px;
  line-height: 1.25;
}

.cart-item-variant {
  font-size: 11px;
  color: var(--rise-muted);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}

.cart-item-sku {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 10px;
  color: var(--rise-forest);
  background: var(--rise-soft-bg);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.cart-item-controls {
  display: flex; align-items: center; justify-content: space-between;
}

.cart-item-qty {
  display: flex; align-items: center;
  border: 1px solid var(--rise-soft-line);
  border-radius: var(--radius-sm);
  height: 28px;
}

.cart-item-qty button {
  width: 24px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--rise-forest);
}

.cart-item-qty button:hover { background: var(--rise-soft-bg); }

.cart-item-qty span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.cart-item-remove:hover { background: rgba(176, 58, 58, 0.08); }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--rise-soft-line);
  background: white;
}

.cart-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}

.cart-summary-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rise-muted);
}

.cart-summary-value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--rise-forest-deep);
}

.cart-checkout-button {
  width: 100%;
  height: 52px;
  background: var(--asg-rust);
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s;
}

.cart-checkout-button:hover:not(:disabled) {
  background: var(--asg-rust-dark);
}

.cart-checkout-button:active:not(:disabled) {
  transform: scale(0.98);
}

.cart-checkout-button:disabled {
  background: var(--rise-soft-line);
  color: var(--rise-muted);
  cursor: not-allowed;
}

/* ============== OVERLAY ============== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(14, 30, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============== MODAL ============== */
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 120;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-inner {
  background: var(--rise-cream);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modal.open .modal-inner {
  transform: translateY(0);
}

.modal-inner-small {
  max-width: 500px;
  text-align: center;
}

.modal-header {
  padding: 1.5rem 2rem;
  background: var(--rise-forest-deep);
  color: var(--rise-cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: space-between;
}

.modal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(247, 243, 234, 0.6);
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--rise-cream);
}

.modal-close {
  width: 38px; height: 38px;
  color: var(--rise-cream);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover { background: rgba(255,255,255,0.1); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  background: white;
  border-top: 1px solid var(--rise-soft-line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; justify-content: space-between; gap: 1rem;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--asg-rust);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--asg-rust-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  padding: 14px 24px;
  background: transparent;
  color: var(--rise-forest);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1.5px solid var(--rise-soft-line);
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  border-color: var(--rise-forest);
  background: white;
}

/* ============== FORM ============== */
.form-section {
  margin-bottom: 2rem;
}

.form-section:last-child { margin-bottom: 0; }

.form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--rise-forest-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rise-forest);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field-full { grid-column: 1 / -1; }
.form-field-small { /* default in 4-col context, handled inline */ }

.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rise-muted);
}

.required { color: var(--asg-rust); }

.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  border: 1.5px solid var(--rise-soft-line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  color: var(--rise-ink);
  font-family: var(--font-body);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--rise-forest);
}

.form-field textarea { resize: vertical; min-height: 80px; }

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: var(--danger);
  background: #fef5f5;
}

/* ============== ORDER SUMMARY ============== */
.order-summary {
  background: white;
  border: 1px solid var(--rise-soft-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.order-summary-row {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rise-soft-line);
}

.order-summary-row:last-child { border-bottom: none; }

.order-summary-img {
  width: 48px; height: 48px;
  background: var(--rise-soft-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}

.order-summary-img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

.order-summary-info { flex: 1; }

.order-summary-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--rise-forest-deep);
}

.order-summary-variant {
  font-size: 12px;
  color: var(--rise-muted);
}

.order-summary-sku {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 11px;
  color: var(--rise-forest);
  margin-top: 2px;
}

.order-summary-qty {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--rise-forest-deep);
  align-self: center;
}

/* ============== CONFIRMATION ============== */
.modal-confirmation .modal-header { display: none; }

.modal-confirmation .modal-inner {
  border-radius: var(--radius-lg);
}

.confirmation-content {
  padding: 3rem 2rem 2rem;
  display: flex; flex-direction: column; align-items: center;
}

.confirmation-check {
  width: 88px; height: 88px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.confirmation-lede {
  font-size: 15px;
  color: var(--rise-muted);
  max-width: 38ch;
  margin: 1.5rem 0 1.5rem;
  line-height: 1.55;
}

.confirmation-ref {
  background: var(--rise-forest-deep);
  color: var(--rise-cream);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.confirmation-ref-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(247, 243, 234, 0.55);
  margin-bottom: 6px;
}

.confirmation-ref-number {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.confirmation-pm {
  font-size: 13px;
  color: var(--rise-muted);
  margin-bottom: 2rem;
}

.confirmation-pm a {
  color: var(--rise-forest);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* ============== TOAST ============== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--rise-forest-deep);
  color: var(--rise-cream);
  padding: 12px 20px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

.toast svg { color: var(--success); }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-block { order: 1; }
  .header-actions { order: 2; margin-left: auto; }

  .store-id-field {
    order: 3;
    width: 100%;
  }

  .store-id-input { width: 100%; }

  .brand-asg-name { font-size: 14px; }
  .rise-logo-img { height: 36px; }

  .category-bar { top: 132px; }

  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-contact { text-align: left; }

  .modal-inner { max-height: 100vh; border-radius: 0; }
  .modal { padding: 0; }
  .modal-header { border-radius: 0; }
  .modal-footer { border-radius: 0; }

  .modal-header { padding: 1.25rem 1.5rem; }
  .modal-body { padding: 1.5rem; }
  .modal-footer { padding: 1rem 1.5rem; }

  .form-grid { grid-template-columns: 1fr; }

  .cart-drawer { max-width: 100%; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .product-image-wrap { padding: 1rem; }

  .product-body { padding: 1rem; }

  .product-name { font-size: 15px; }
  .product-description { font-size: 12px; }

  .option-label { font-size: 10px; min-width: 60px; }
  .option-select { font-size: 12px; padding: 6px 8px; padding-right: 24px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(2.5rem, 13vw, 4rem); }
}
