/* assets/css/app.css — MidsummerGreens brand stylesheet */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --forest:    #2D5016;
  --leaf:      #4A8022;
  --sprout:    #7AB648;
  --mist:      #C8E6A0;
  --cream:     #F5F9EE;
  --warm:      #F9F3E8;
  --harvest:   #D4860A;
  --soil:      #1C1C1C;
  --text:      #2A2A2A;
  --muted:     #6B7280;
  --border:    #E2EDD6;
  --white:     #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(45,80,22,0.08);
  --shadow-md:  0 4px 16px rgba(45,80,22,0.12);
  --shadow-lg:  0 12px 40px rgba(45,80,22,0.16);

  --transition: 0.2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--leaf); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--soil);
  font-weight: 500;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { line-height: 1.75; color: var(--muted); }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 740px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.text-center { text-align: center; }
.text-green  { color: var(--leaf); }
.text-muted  { color: var(--muted); }

.badge {
  display: inline-block;
  background: var(--mist);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  font-family: var(--font-sans);
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { margin-bottom: 12px; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); margin-bottom: 48px; max-width: 540px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--leaf);
  color: var(--white);
  border-color: var(--leaf);
}
.btn-primary:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--leaf);
  border-color: var(--leaf);
}
.btn-outline:hover {
  background: var(--leaf);
  color: var(--white);
}

.btn-harvest {
  background: var(--harvest);
  color: var(--white);
  border-color: var(--harvest);
}
.btn-harvest:hover {
  background: #b8720a;
  border-color: #b8720a;
  color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; color: white; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soil);
  margin-bottom: 6px;
}
.form-label .required { color: #dc2626; margin-left: 2px; }

.form-control {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(74,128,34,0.12);
}
.form-control::placeholder { color: #b0bba8; }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--leaf); cursor: pointer; }
.form-check label { font-size: 0.9rem; color: var(--muted); cursor: pointer; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--leaf);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--soil);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--leaf); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--mist); color: var(--forest); }

.cart-count {
  background: var(--leaf);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--soil);
  border-radius: 2px;
  transition: all 0.25s;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    z-index: 999;
  }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm) 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(122,182,72,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--leaf);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--leaf);
}

.hero h1 { margin-bottom: 20px; color: var(--forest); }
.hero h1 em { font-style: italic; color: var(--leaf); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 460px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-trust {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}
.hero-trust-item svg { color: var(--sprout); flex-shrink: 0; }

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-image-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--mist);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.hero-image-badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--soil);
  font-weight: 500;
}
.hero-image-badge-text span { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { display: none; }
}

/* ── Trust bar ──────────────────────────────────────────────── */
.trust-bar {
  background: var(--forest);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 400;
}
.trust-item svg { color: var(--sprout); flex-shrink: 0; }

/* ── Product cards ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--mist);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: var(--cream);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--soil);
  margin-bottom: 6px;
  font-weight: 500;
}
.product-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--leaf);
  font-family: var(--font-sans);
}
.product-card-unit {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.out-of-stock-badge {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── Product detail ─────────────────────────────────────────── */
.product-detail { padding: 60px 0 80px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  background: var(--cream);
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active { border-color: var(--leaf); }

.product-info-eyebrow { margin-bottom: 10px; }
.product-info-title { margin-bottom: 8px; }
.product-info-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--leaf);
  margin: 16px 0;
  font-family: var(--font-sans);
}
.product-info-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-btn {
  width: 42px;
  height: 44px;
  background: var(--cream);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leaf);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--mist); }
.qty-input {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soil);
  outline: none;
  background: white;
}

.product-features {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.product-feature svg { color: var(--sprout); flex-shrink: 0; }

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Cart ───────────────────────────────────────────────────── */
.cart-page { padding: 60px 0; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.cart-items {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--cream);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--soil);
  margin-bottom: 4px;
}
.cart-item-price { font-size: 0.875rem; color: var(--muted); }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.cart-item-total {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--leaf);
  min-width: 70px;
  text-align: right;
}

.cart-summary {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.cart-summary h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.cart-summary-row.total {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--soil);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.cart-summary-row .label { color: var(--muted); }
.cart-summary-row .value { color: var(--soil); font-weight: 500; }
.cart-summary-row.total .value { color: var(--leaf); font-size: 1.2rem; }

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-page { padding: 60px 0; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.checkout-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.checkout-section h3 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}

.paypal-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.paypal-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ── Account ────────────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 60px 0;
  align-items: start;
}

.account-sidebar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.account-sidebar-header {
  background: var(--cream);
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.account-sidebar-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--soil);
  font-weight: 500;
}
.account-sidebar-email { font-size: 0.8rem; color: var(--muted); }

.account-nav { list-style: none; }
.account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}
.account-nav li:last-child a { border-bottom: none; }
.account-nav li a:hover { background: var(--cream); color: var(--leaf); }
.account-nav li a.active { background: var(--cream); color: var(--leaf); font-weight: 500; border-left: 3px solid var(--leaf); }

.account-content {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.account-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.account-content-header h2 { font-size: 1.35rem; }

@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}

/* ── Order status badges ────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: capitalize;
}
.status-pending    { background: #fef3c7; color: #92400e; }
.status-paid       { background: #d1fae5; color: #065f46; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped    { background: #ede9fe; color: #5b21b6; }
.status-delivered  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-refunded   { background: #f3f4f6; color: #374151; }

/* ── Orders table ───────────────────────────────────────────── */
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.orders-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: #fafef7; }

/* ── How it works ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--leaf);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 auto 16px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; }

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

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials { background: var(--cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--border);
}
.testimonial-stars { color: var(--harvest); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 0.85rem; font-weight: 500; color: var(--soil); }
.testimonial-location { font-size: 0.78rem; color: var(--muted); }

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

/* ── About page ─────────────────────────────────────────────── */
.about-hero {
  background: var(--forest);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.about-hero h1 { color: white; margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.value-card {
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.value-icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h4 { margin-bottom: 6px; }
.value-card p { font-size: 0.875rem; }

@media (max-width: 640px) { .about-values { grid-template-columns: 1fr; } }

/* ── Contact page ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 80px 0;
}
.contact-info h3 { font-size: 1.35rem; margin-bottom: 16px; }
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--mist);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--soil);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 12px; }
.footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--sprout); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo-mark {
  width: 52px;
  height: 52px;
  background: var(--leaf);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: white;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.auth-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-align: center;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-divider {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 20px 0;
}
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 24px;
}
.auth-footer a { color: var(--leaf); font-weight: 500; }

/* ── Admin ──────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f8f9fa;
}
.admin-sidebar {
  width: 240px;
  background: var(--forest);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-brand {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}
.admin-sidebar-sub { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-top: 2px; }

.admin-nav { list-style: none; padding: 12px 0; flex: 1; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.admin-nav li a:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-nav li a.active { background: rgba(255,255,255,0.12); color: white; border-left: 3px solid var(--sprout); }
.admin-nav .nav-icon { width: 18px; text-align: center; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 500; color: var(--soil); }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); }

.admin-body { padding: 28px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.admin-stat-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.admin-stat-value { font-size: 1.75rem; font-weight: 600; color: var(--soil); line-height: 1; }
.admin-stat-value.warning { color: var(--harvest); }
.admin-stat-value.success { color: var(--leaf); }

.admin-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-card-header h3 { font-size: 0.95rem; font-weight: 500; color: var(--soil); }
.admin-card-body { padding: 0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  text-align: left;
  padding: 10px 16px;
  background: #f9fafb;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafef7; }

.admin-form-page { max-width: 720px; }
.admin-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.admin-form-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--soil);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 20px 0;
  align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--leaf); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--soil); font-weight: 500; }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  background: var(--cream);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; margin-bottom: 6px; }
.page-header p { font-size: 1rem; color: var(--muted); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }

/* ── Toast notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--soil);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: var(--forest); }
.toast-error   { background: #dc2626; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  padding: 9px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--leaf); color: var(--leaf); }
.pagination .active { background: var(--leaf); border-color: var(--leaf); color: white; }

/* ── Misc ───────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.price-tag { font-weight: 600; color: var(--leaf); }
.text-small { font-size: 0.82rem; }

@media (max-width: 480px) {
  .btn { padding: 11px 20px; }
  .auth-card { padding: 32px 24px; }
  .account-content { padding: 20px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
