/* Tommy's Trees — warm rustic-modern mockup styles */

:root {
  --green-deep: #2f4a35;
  --green-mid: #4a6b4f;
  --green-soft: #7c9b7f;
  --cream: #faf6ee;
  --cream-dark: #f0e9d8;
  --terracotta: #c1683f;
  --terracotta-dark: #a3542f;
  --brown: #5c4530;
  --ink: #2b2620;
  --ink-soft: #6b6255;
  --line: #e3dcc9;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(43, 38, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 38, 32, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-deep);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar span { opacity: 0.85; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--green-deep);
  white-space: nowrap;
}
.logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
nav.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a {
  color: var(--brown);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--terracotta-dark);
  border-color: var(--terracotta);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
}
.btn-outline:hover { background: var(--green-deep); color: var(--cream); }
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brown);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream-dark);
  color: var(--green-deep);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(47,74,53,0.94), rgba(58,89,65,0.88) 55%, rgba(60,90,65,0.75)),
    url('https://images.unsplash.com/photo-1784399489339-862336b535de?fm=jpg&q=60&w=1600&auto=format&fit=crop')
    center/cover no-repeat;
  color: var(--cream);
  overflow: hidden;
}
.hero .container {
  padding: 80px 24px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(250,246,238,0.14);
  border: 1px solid rgba(250,246,238,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(250,246,238,0.9);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(250,246,238,0.08);
  border: 1px solid rgba(250,246,238,0.25);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(2px);
}
.hero-visual .scan-mock {
  background: var(--cream);
  border-radius: 16px;
  padding: 20px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.hero-visual .scan-mock .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.hero-visual .scan-mock .row:last-child { border-bottom: none; }
.hero-visual .thumb {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--green-soft) center/cover no-repeat;
  flex-shrink: 0;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats div span { font-size: 0.82rem; color: rgba(250,246,238,0.75); }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-head .eyebrow {
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-head p { color: var(--ink-soft); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card .img {
  height: 130px;
  background: linear-gradient(135deg, var(--green-soft), var(--green-mid)) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.category-card .body { padding: 16px; }
.category-card h4 { margin-bottom: 4px; font-size: 1.05rem; }
.category-card span { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Product grid ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brown);
}
.filter-chip.active { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .img {
  height: 160px;
  background: linear-gradient(135deg, #d9e4d3, var(--green-soft)) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
}
.product-card .badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card h4 { font-size: 1rem; margin-bottom: 2px; }
.product-card .latin { font-style: italic; color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 10px; }
.product-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.product-card .price { font-weight: 700; color: var(--green-deep); font-size: 1.05rem; }
.product-card .stock { font-size: 0.75rem; color: var(--ink-soft); }
.product-card .stock.low { color: var(--terracotta-dark); font-weight: 600; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ---------- Scan flow ---------- */
.flow-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.phone {
  background: var(--ink);
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone .screen {
  background: var(--cream);
  border-radius: 24px;
  min-height: 480px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.phone .notch {
  width: 60px; height: 6px;
  background: #000;
  border-radius: 4px;
  margin: 0 auto 12px;
}
.step-label {
  text-align: center;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.75rem;
  margin-right: 6px;
}
.scan-frame {
  border: 3px dashed var(--green-mid);
  border-radius: 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: repeating-linear-gradient(45deg, var(--cream-dark), var(--cream-dark) 10px, var(--cream) 10px, var(--cream) 20px);
}
.screen .found-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.screen .found-card .img {
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-soft), var(--green-mid)) center/cover no-repeat;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.screen .row-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.screen .row-line:last-child { border-bottom: none; }
.screen .total-line {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid var(--ink);
}
.confirm-check {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 30px auto 16px;
}
.center-text { text-align: center; }
.mini-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
}

/* ---------- Inventory sync illustration ---------- */
.sync-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
}
.sync-col { text-align: center; }
.sync-col .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
}
.sync-arrow {
  font-size: 1.8rem;
  color: var(--terracotta);
  text-align: center;
}
.sync-center {
  text-align: center;
}
.sync-center .db {
  width: 90px; height: 90px;
  border-radius: 20px;
  background: var(--green-deep);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 10px;
}

/* ---------- About / feature blocks ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-item .icon-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split .img-block {
  height: 340px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-soft), var(--green-deep)) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
}

.cta-band {
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--terracotta-dark); }

/* ---------- Footer ---------- */
footer {
  background: var(--green-deep);
  color: rgba(250,246,238,0.85);
  padding: 50px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
footer h4 { color: var(--cream); font-family: inherit; font-size: 0.95rem; margin-bottom: 14px; }
footer a { display: block; padding: 4px 0; color: rgba(250,246,238,0.75); }
footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(250,246,238,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(250,246,238,0.6);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.detail-img {
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-soft), var(--green-mid)) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.detail-price { font-size: 2rem; font-weight: 700; color: var(--green-deep); margin: 10px 0; }
.detail-latin { font-style: italic; color: var(--ink-soft); margin-bottom: 16px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
}
.qty-control button { border: none; background: none; width: 36px; height: 36px; font-size: 1.1rem; }
.qty-control span { padding: 0 12px; font-weight: 600; }
.detail-specs {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.detail-specs .spec-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.in-store-banner {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font-size: 0.88rem;
}

/* ---------- Badges / breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 20px 0 0;
}
.breadcrumb a:hover { color: var(--terracotta-dark); }

.page-hero {
  background: var(--cream-dark);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 8px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-wrap { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sync-panel { grid-template-columns: 1fr; }

  /* Mobile nav: collapse the inline menu into a toggleable dropdown */
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 16px;
    z-index: 60;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav a:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.72rem;
  }

  .nav-row { padding: 12px 0; gap: 10px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo .mark { width: 32px; height: 32px; font-size: 1rem; }
  .nav-actions { gap: 8px; }
  .cart-pill { display: none; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 0.8rem; }

  .hero .container { padding: 44px 16px 50px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.95rem; }
  .hero-stats { gap: 16px; margin-top: 28px; }
  .hero-stats div strong { font-size: 1.3rem; }

  section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Phone mockups need real width to read as phones — stack one per row */
  .flow-wrap { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 26px; }
  .phone .screen { min-height: 420px; }

  .split .img-block { height: 220px; }
  .product-detail { gap: 26px; }
  .detail-img { height: 260px; }
  .detail-price { font-size: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .sync-panel { padding: 20px; gap: 14px; }
  .sync-arrow { transform: rotate(90deg); }
}
