:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --text: #1e281f;
  --muted: #6d756e;
  --line: #e4e7df;
  --accent: #315b3d;
  --accent-soft: #e7efe7;
  --radius: 18px;
}

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

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 223, 0.8);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand-logo {
  width: 156px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  display: block;
  mix-blend-mode: multiply;
}

.brand-fallback {
  display: none;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  align-items: center;
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* HAMBURGER BUTTON (MOBILE) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  border-radius: 8px;
  line-height: 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.active .icon-hamburger {
  display: none;
}

.nav-toggle.active .icon-close {
  display: block;
}

/* HERO */
.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  max-width: 650px;
}

.hero-copy {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 25px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  padding: 13px 21px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s, background-color 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.button:disabled,
.button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(251, 245, 226, 0.95) 0%, rgba(232, 238, 230, 0.85) 100%),
    #fbf5e2;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(30, 40, 31, 0.04);
}

.hero-logo-img {
  width: 85%;
  height: 85%;
  max-width: 420px;
  max-height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
  display: block;
}

.hero-image:hover .hero-logo-img {
  transform: scale(1.04);
}

/* SECTION */
section {
  padding: 85px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.5px;
}

.section-desc {
  color: var(--muted);
  max-width: 470px;
  font-size: 14px;
}

/* FILTER */
.catalog-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter.active,
.filter:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* CARDS */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.plant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(30, 40, 31, 0.08);
}

.plant-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e8ebe3;
  overflow: hidden;
}

.plant-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.3s ease;
}

.plant-card:hover .plant-image {
  transform: scale(1.02);
}

.badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-status.badge-sold-out {
  background: rgba(45, 20, 18, 0.85);
  color: #fff;
}

.plant-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plant-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
}

.plant-name {
  font-family: Georgia, serif;
  font-size: 24px;
  margin: 6px 0 2px;
  line-height: 1.2;
}

.plant-scientific {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 15px;
}

.plant-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.price {
  font-size: 16px;
  font-weight: 700;
}

.detail-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

.detail-link:hover {
  text-decoration: underline;
}

/* LOADING & ERROR STATES */
.catalog-loading,
.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}

.catalog-error {
  border-color: #e2a89f;
}

.catalog-error p {
  margin-bottom: 12px;
}

.catalog-error .button {
  margin-top: 8px;
}

/* ABOUT */
.about {
  background: #e8eee6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-top: 20px;
  max-width: 550px;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 440px;
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(49, 91, 61, 0.05), rgba(49, 91, 61, 0.15)),
    url("images/about.webp") center/cover;
}

/* GARDEN */
.garden-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(30, 40, 31, 0.06);
  background: #e8ebe3;
}

.garden-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.garden-image:hover img {
  transform: scale(1.03);
}

/* FOOTER */
footer {
  padding: 45px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* DETAIL MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 27, 21, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(850px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.modal-image-wrap {
  position: relative;
  height: 100%;
  min-height: 450px;
  background: #e8ebe3;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.modal-content {
  padding: 45px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.15s, transform 0.15s;
}

.modal-close:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.modal-title {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.05;
  margin: 7px 0 3px;
}

.modal-price {
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
}

.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
}

.modal-status-badge.available {
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-status-badge.sold-out {
  background: #fdf0ed;
  color: #8a483e;
  border: 1px solid #f2cfc9;
}

.modal-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-button {
  width: 100%;
}

/* RESPONSIVE DESIGN */
@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: -20px;
    right: -20px;
    background: rgba(247, 247, 242, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228, 231, 223, 0.9);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.05);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    font-weight: 500;
    padding: 4px 0;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 45px 0;
  }

  .hero,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .hero-logo-img {
    max-width: 240px;
    max-height: 240px;
  }

  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .plant-card-media {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .about-image {
    aspect-ratio: 16 / 10;
    max-height: 340px;
  }

  .garden-image {
    aspect-ratio: 16 / 10;
    max-height: 340px;
  }
}

@media (max-width: 700px) {
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 90vh;
    border-radius: 20px;
  }

  .modal-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 380px;
    min-height: 280px;
    height: auto;
    background: #e8ebe3;
    position: relative;
    overflow: hidden;
  }

  .modal-image {
    min-height: auto;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 42%;
  }

  .modal-content {
    padding: 28px 22px;
  }

  .modal-title {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  nav {
    border-bottom: 1px solid rgba(228, 231, 223, 0.9);
  }

  .nav-inner {
    height: 62px;
  }

  .brand-logo {
    width: 130px;
    height: 48px;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding: 28px 0 16px;
    gap: 22px;
  }

  h1 {
    font-size: clamp(32px, 8.5vw, 42px);
    letter-spacing: -1.5px;
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 15px;
    margin: 16px 0 24px;
    line-height: 1.55;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
    max-height: 220px;
    border-radius: 18px;
  }

  .hero-logo-img {
    max-width: 170px;
    max-height: 170px;
  }

  .plant-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .plant-card {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .plant-card-media {
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 280px;
  }

  .plant-info {
    padding: 18px 16px;
  }

  .plant-name {
    font-size: 22px;
  }

  .about-image {
    aspect-ratio: 16 / 10;
    max-height: 240px;
    border-radius: 18px;
  }

  .garden-image {
    aspect-ratio: 16 / 10;
    max-height: 240px;
    border-radius: 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .section-desc {
    font-size: 14px;
  }

  .catalog-tools {
    gap: 8px;
    margin-bottom: 24px;
  }

  .filter {
    padding: 7px 14px;
    font-size: 12px;
  }

  .modal {
    padding: 14px;
  }

  .modal-image-wrap {
    aspect-ratio: 1 / 1;
    max-height: 350px;
    min-height: 260px;
  }

  .modal-content {
    padding: 22px 18px;
  }

  .modal-title {
    font-size: 26px;
  }

  .modal-price {
    font-size: 20px;
    margin: 14px 0 6px;
  }

  .modal-description {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .modal-image-wrap {
    max-height: 290px;
    min-height: 230px;
  }

  .hero-image {
    max-height: 190px;
  }

  .hero-logo-img {
    max-width: 145px;
    max-height: 145px;
  }

  .garden-image,
  .about-image {
    max-height: 200px;
  }

  .section-title {
    font-size: 26px;
  }
}