/* Blissplants — Organic nursery design system */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --green-dark: #1a3c2a;
  --green-deep: #0f2a1c;
  --green-mid: #2d5a3f;
  --green-leaf: #6fad2e;
  --green-bright: #7cbc3a;
  --green-soft: #e8f0e4;
  --green-mist: #f3f7f0;
  --cream: #f7f5ef;
  --cream-warm: #efebe3;
  --white: #ffffff;
  --text: #1a2e22;
  --text-muted: #5a6b60;
  --border: #d5e0d4;
  --shadow: 0 8px 28px rgba(26, 60, 42, 0.1);
  --radius: 10px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --container: 1180px;
  --transition: 220ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 60, 42, 0.22);
}

.btn:focus-visible {
  outline: 3px solid var(--green-leaf);
  outline-offset: 2px;
}

.btn-leaf { background: var(--green-leaf); }
.btn-leaf:hover { background: #5f9626; }

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-head h2 .leaf-icon {
  width: 22px;
  height: 22px;
  color: var(--green-leaf);
}

.section-head p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 300;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--green-deep);
  color: #d7e8d9;
  font-size: 0.82rem;
  padding: 0.55rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-social {
  display: flex;
  gap: 0.65rem;
}

.topbar-social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition), color var(--transition);
}

.topbar-social a:hover {
  background: var(--green-leaf);
  color: var(--white);
}

.topbar-social svg { width: 14px; height: 14px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26, 60, 42, 0.04);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.logo-text {
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  display: block;
}

.logo-text strong .bliss { color: var(--green-dark); }
.logo-text strong .plants { color: var(--green-leaf); }

.logo-text span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 500;
}

.search-form {
  display: flex;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-form:focus-within {
  border-color: var(--green-leaf);
  box-shadow: 0 0 0 3px rgba(111, 173, 46, 0.15);
}

.search-form input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-form input::placeholder { color: #9aaa9e; }

.search-form button {
  background: var(--green-leaf);
  border: none;
  color: white;
  padding: 0 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.search-form button:hover { background: #5f9626; }
.search-form button svg { width: 18px; height: 18px; }

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

.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.header-actions a:hover { color: var(--green-leaf); }
.header-actions svg { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: 2px;
  background: var(--green-leaf);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.nav {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.15rem 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-list a:hover,
.nav-list a.active { color: var(--green-leaf); }

.nav-list a.active::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  background: var(--green-leaf);
}

.nav-list a svg { width: 12px; height: 12px; opacity: 0.6; }

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem;
  cursor: pointer;
  color: var(--green-dark);
}

.menu-toggle svg { width: 22px; height: 22px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 580px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(247, 245, 239, 0.96) 0%, rgba(247, 245, 239, 0.88) 38%, rgba(247, 245, 239, 0.35) 58%, transparent 72%),
    url('../images/hero.jpg') right center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(111, 173, 46, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 3.5rem 0;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 400;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FEATURES ===== */
.features {
  background: var(--green-mist);
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-leaf);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(26, 60, 42, 0.08);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 4rem 0 3.5rem;
  background: var(--white);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.cat-card {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.cat-card:hover { transform: translateY(-6px); }

.cat-img {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green-soft);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cat-card:hover .cat-img {
  border-color: var(--green-leaf);
  box-shadow: 0 10px 28px rgba(111, 173, 46, 0.25);
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-img img { transform: scale(1.08); }

.cat-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ===== BEST SELLERS ===== */
.bestsellers {
  padding: 3.5rem 0 4rem;
  background: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 60, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 60, 42, 0.12);
}

.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--green-mist);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img img { transform: scale(1.06); }

.product-body {
  padding: 1rem 1rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
}

.product-price {
  font-weight: 600;
  color: var(--green-leaf);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.product-body .btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  margin-top: auto;
}

.view-all-wrap { text-align: center; }
.view-all-wrap .btn { min-width: 240px; padding: 0.95rem 2.5rem; }

/* ===== ABOUT ===== */
.about {
  padding: 4rem 0;
  background: linear-gradient(135deg, #eef5ea 0%, #f5f3eb 50%, #e8f0e4 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr 240px;
  gap: 2rem;
  align-items: center;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.about-badge {
  text-align: center;
  padding: 1.5rem;
}

.about-badge .years {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  display: block;
}

.about-badge .label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  display: block;
}

.about-badge svg {
  width: 80px;
  height: 80px;
  color: var(--green-leaf);
  opacity: 0.7;
  margin: 0.75rem auto 0;
}

/* ===== INQUIRY / CONTACT ===== */
.inquiry {
  padding: 4rem 0;
  background: var(--green-mist);
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.inquiry-form-wrap,
.contact-details-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(26, 60, 42, 0.06);
}

.inquiry-form-wrap h2,
.contact-details-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.inquiry-form-wrap > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--green-mist);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-leaf);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(111, 173, 46, 0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success { color: var(--green-leaf); }
.form-status.error { color: #c0392b; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item .ci-icon svg { width: 18px; height: 18px; }

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-leaf);
  margin-bottom: 0.15rem;
}

.contact-item span,
.contact-item a {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-item a:hover { color: var(--green-leaf); }

.contact-visual {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  max-height: 220px;
}

.contact-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-deep);
  color: #c5d9c8;
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo img { width: 52px; height: 52px; }
.footer-brand .logo-text strong .bliss { color: #e8f0e4; }
.footer-brand .logo-text strong .plants { color: var(--green-leaf); }
.footer-brand .logo-text span { color: #a8c4ad; }

.footer-brand > p {
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
  color: #a8c4ad;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.footer-social a:hover { background: var(--green-leaf); color: white; }
.footer-social svg { width: 16px; height: 16px; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
}

.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
  font-size: 0.9rem;
  color: #a8c4ad;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--green-leaf);
  padding-left: 4px;
}

.newsletter p {
  font-size: 0.9rem;
  color: #a8c4ad;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  outline: none;
  color: var(--text);
  min-width: 0;
}

.newsletter-form button {
  background: var(--green-leaf);
  border: none;
  color: white;
  padding: 0 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.newsletter-form button:hover { background: #5f9626; }
.newsletter-form button svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #8eaa93;
}

.footer-bottom .heart { color: #e74c3c; }

/* Back to top */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-leaf);
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(111, 173, 46, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 90;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--green-dark); }
.back-top svg { width: 20px; height: 20px; }

/* ===== INNER PAGES ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-hero p { opacity: 0.85; font-weight: 300; }

.page-content {
  padding: 3.5rem 0;
}

/* Shop page */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 240px 1fr; }
  .about-badge { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .header-main {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }
  .search-form {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  .menu-toggle { display: grid; place-items: center; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }
  .nav-list a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-list a.active::after { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .hero {
    background:
      linear-gradient(180deg, rgba(247, 245, 239, 0.94) 0%, rgba(247, 245, 239, 0.75) 55%, rgba(247, 245, 239, 0.4) 100%),
      url('../images/hero.jpg') center / cover no-repeat;
    min-height: 460px;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-right { flex-wrap: wrap; justify-content: center; }
  .logo-text strong { font-size: 1.1rem; }
  .logo img { width: 46px; height: 46px; }
  .header-actions span { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .cat-img { width: 110px; height: 110px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .product-body .btn { font-size: 0.7rem; padding: 0.6rem 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== QTY / WISHLIST / CART / CHECKOUT ===== */
.product-card { position: relative; }
.wish-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--green-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(26,60,42,0.12);
  transition: color var(--transition), transform var(--transition), background var(--transition);
}
.wish-btn:hover { transform: scale(1.06); }
.wish-btn.active { color: #c0392b; }
.wish-btn svg { width: 18px; height: 18px; }
.wish-btn.active svg { fill: currentColor; }

.qty-control, .qty-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  margin: 0.35rem auto 0.65rem;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--green-mist);
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}
.qty-btn:hover { background: var(--green-soft); }
.qty-input {
  width: 42px;
  height: 36px;
  border: none;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  outline: none;
}

.header-actions .wish-badge,
.wish-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: var(--green-dark);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(26,60,42,0.06);
}
.empty-state h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.cart-list, .cart-summary, .checkout-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 6px 24px rgba(26,60,42,0.06);
}
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--green-mist);
}
.cart-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-dark);
}
.cart-line { font-weight: 700; color: var(--green-dark); min-width: 70px; text-align: right; }
.link-btn {
  background: none;
  border: none;
  color: #a33;
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
}
.cart-summary h2, .checkout-card h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  margin-bottom: 1rem;
  font-size: 1.45rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  color: var(--text-muted);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  color: var(--green-dark);
  font-size: 1.1rem;
}
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.wish-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wish-actions .btn { width: 100%; font-size: 0.75rem; padding: 0.65rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.checkout-items { margin-bottom: 1rem; }
.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.pay-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.success-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 6px 24px rgba(26,60,42,0.06);
}
.success-box h1 {
  font-family: var(--font-display);
  color: var(--green-dark);
  margin: 0.75rem 0;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-leaf);
  display: grid;
  place-items: center;
}
.success-icon svg { width: 32px; height: 32px; }
.success-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

@media (max-width: 860px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "thumb info"
      "qty line"
      "remove remove";
  }
  .cart-thumb { grid-area: thumb; }
  .cart-info { grid-area: info; }
  .qty-control { grid-area: qty; }
  .cart-line { grid-area: line; }
  .link-btn { grid-area: remove; justify-self: start; }
  .form-row-2 { grid-template-columns: 1fr; }
}
