/* Majestic Nursery — Cozy Garden Seed Shop */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFF9F2;
  --surface: #FFFFFF;
  --ink: #3D5A4C;
  --muted: #6B8578;
  --line: #DCE8DF;
  --accent: #E8A87C;
  --accent-dark: #D4895E;
  --accent-soft: #FFF0E4;
  --sage: #A8D5BA;
  --sage-deep: #5B8A72;
  --blush: #F8D7DA;
  --sun: #FFE9A8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(61, 90, 76, 0.08);
  --shadow-soft: 0 6px 18px rgba(61, 90, 76, 0.06);
  --font: 'Quicksand', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body.store-v2 {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(168, 213, 186, 0.35), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(248, 215, 218, 0.45), transparent 36%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.45em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container, .wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; }

/* Header */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.v2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.v2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.v2-brand-logo {
  width: 42px;
  height: 42px;
}

.v2-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-deep);
}

.v2-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.v2-nav a {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.v2-nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.v2-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}

.v2-cart-link {
  background: var(--sage);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
}

.v2-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
}

.v2-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 700;
}

/* Footer */
.v2-footer {
  margin-top: auto;
  background: var(--sage-deep);
  color: #F4FFF7;
  padding: 28px 0;
}

.v2-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.v2-footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
}

.v2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.v2-footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.v2-footer-links a:hover { color: #fff; }

.v2-footer-copy {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

/* Hero */
.v2-bento-hero {
  padding: 28px 0 0;
}

.v2-bento-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.v2-bento-cell {
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.v2-bento-cell--main {
  grid-row: 1 / 3;
  justify-content: center;
  padding: 40px;
  background:
    linear-gradient(145deg, rgba(168, 213, 186, 0.35), rgba(255, 249, 242, 0.9)),
    var(--surface);
}

.v2-bento-cell--main::after {
  content: '🌱';
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  opacity: 0.35;
}

.v2-bento-cell--accent {
  background: linear-gradient(135deg, var(--sage), #C8E6D0);
}

.v2-bento-cell--dark {
  background: linear-gradient(135deg, var(--sage-deep), #4A7260);
  color: #F8FFFA;
}

.v2-bento-cell--soft {
  background: linear-gradient(135deg, var(--accent-soft), var(--blush));
}

.v2-bento-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--sage-deep);
}

.v2-bento-cell--dark .v2-bento-label,
.v2-bento-cell--accent .v2-bento-label { color: inherit; opacity: 0.85; }

.v2-bento-cell h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.v2-bento-cell h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.v2-bento-cell p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 46ch;
  color: var(--muted);
}

.v2-bento-cell--dark p { color: rgba(255,255,255,0.85); }

.v2-bento-stat {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sage-deep);
}

.v2-bento-stat span {
  display: block;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--muted);
}

.v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: var(--shadow-soft);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--sage-deep);
  color: #fff;
}

.btn-primary:hover { background: #4A7260; }

.btn-soft, .btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-soft:hover { background: var(--accent-soft); }

.btn-sm { padding: 8px 16px; font-size: 0.84rem; }

/* Sections */
.section, .v2-section { padding: 56px 0; }

.v2-section-head,
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.v2-section-head h2,
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.v2-section-head p,
.v2-section-head .v2-link,
.section-title p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.v2-link {
  font-weight: 700;
  color: var(--sage-deep);
  border-bottom: 2px solid var(--accent);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

/* Product grids */
.v2-product-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.v2-product-card,
.product-card {
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.v2-product-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.v2-product-card-media,
.product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #F5FBF7, #FFF9F2);
}

.v2-product-card-media img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.v2-product-card:hover img,
.product-card:hover img { transform: scale(1.04); }

.product-media-large {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  max-height: 420px;
}

.v2-product-card-body,
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.v2-product-card-body h3,
.product-body h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.v2-product-card-body p,
.product-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v2-product-card-price,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: auto;
}

.v2-product-card-price strong,
.price-row strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage-deep);
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  width: fit-content;
}

/* Categories */
.v2-cat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.v2-cat-cell {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, background 0.2s;
}

.v2-cat-cell:hover {
  transform: translateY(-3px);
  background: var(--sage);
}

.v2-cat-cell h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.v2-cat-cell span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* CTA */
.v2-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sage-deep), #6EA382);
  color: #fff;
  box-shadow: var(--shadow);
}

.v2-cta-band h2 { color: #fff; margin-bottom: 8px; }
.v2-cta-band p { color: rgba(255,255,255,0.88); margin: 0; }

.v2-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.v2-feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.v2-feature b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.v2-feature p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Shop filters */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill-tabs a {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill-tabs a:hover {
  background: var(--sage);
  color: var(--ink);
}

.pagination-summary {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.pagination,
.catalog-pagination .pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pagination a,
.pagination span,
.pagination-btn,
.pagination-num {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.pagination a:hover,
.pagination-btn:not(.is-disabled):hover {
  background: var(--sage);
}

.pagination .current,
.pagination-num.is-active {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}

.notice {
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Forms */
input, select, textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }

.card, .panel {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.grid-2, .grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product detail */
.commerce-majestic,
.mj-product-stack { padding-top: 12px; }

.mj-hero { margin-bottom: 20px; }

.mj-product-slip {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mj-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mj-spec-tags span {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}

.mini-copy { font-size: 0.88rem; color: var(--muted); }

.dual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

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

/* Auth / account (trader desk compat) */
.trader-desk, .auth-page, .auth-dashboard { color: var(--ink); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--sage-deep);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10050;
}

.toast.is-visible, .toast.visible { opacity: 1; pointer-events: auto; }
.toast.error { background: #C45C5C; }

.otp-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10100;
  background: rgba(61, 90, 76, 0.45);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.otp-panel.is-open { display: flex; }

.otp-card {
  background: var(--surface);
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.otp-card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.otp-msg { color: var(--muted); margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.otp-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.otp-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 18px;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.otp-card .btn { width: 100%; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .v2-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .v2-bento-cell--main { grid-row: auto; grid-column: 1 / 3; }
  .v2-product-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-cat-strip, .v2-features { grid-template-columns: repeat(2, 1fr); }
  .mj-product-slip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .v2-nav-toggle { display: block; }
  .v2-header-inner { flex-wrap: wrap; }
  .v2-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 8px 0 12px;
  }
  .v2-nav.open { display: flex; }
  .v2-product-grid, .products-grid, .v2-cat-strip, .v2-features, .grid-4, .grid-2 {
    grid-template-columns: 1fr;
  }
  .v2-bento-grid { grid-template-columns: 1fr; }
  .v2-bento-cell--main { grid-column: auto; }
  .v2-footer-row { flex-direction: column; align-items: flex-start; }
}
