:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-soft: #6fbf73;
  --beige: #f8f2e9;
  --white: #ffffff;
  --gray: #e8ece8;
  --text: #213126;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 55, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, #fbfff8 0%, var(--beige) 100%);
}

body {
  margin: 0;
  font-family: Inter, Nunito, Poppins, sans-serif;
  color: var(--text);
  background: transparent;
  position: relative;
}

/* Random logo watermarks: elements injected by script.js (.logo-watermark-layer) */
.logo-watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.logo-watermark-sprite {
  position: absolute;
  filter: grayscale(32%);
  transform-origin: center center;
  will-change: transform;
}

.logo-watermark-sprite img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

body > header,
body > main {
  position: relative;
  z-index: 1;
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 5px 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--gray);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: clamp(46px, 10vw, 108px);
  width: auto;
  max-width: min(400px, 78vw);
  display: block;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter: drop-shadow(0 2px 8px rgba(33, 49, 38, 0.1));
}

.desktop-nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--green);
}

.desktop-nav a.nav-current {
  color: var(--green);
  font-weight: 800;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chip-btn,
.cart-btn {
  border: 1px solid var(--gray);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.hero {
  padding: 4rem 5vw 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(120deg, rgba(46, 125, 50, 0.13), rgba(255, 255, 255, 0.7));
  position: relative;
  overflow: hidden;
}

.hero-content,
.hero-split {
  position: relative;
  z-index: 1;
}

.leaf {
  position: absolute;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 80% 0;
  background: rgba(111, 191, 115, 0.2);
  animation: floatLeaf 6s ease-in-out infinite;
}

.leaf-1 {
  top: 0;
  right: 18%;
}

.leaf-2 {
  bottom: 10%;
  left: 44%;
  animation-delay: 2s;
}

@keyframes floatLeaf {
  0%,
  100% {
    transform: translateY(0) rotate(12deg);
  }
  50% {
    transform: translateY(-10px) rotate(18deg);
  }
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Poppins, Inter, sans-serif;
  margin: 0.2rem 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-subtext {
  max-width: 55ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s transform, 0.2s opacity;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--green-soft);
}

.hero-split {
  display: grid;
  gap: 1rem;
}

.split-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-button {
  border: 1px solid #d5e6d6;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.split-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(18, 55, 24, 0.15);
}

.split-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.split-card h3 {
  padding: 0.8rem 1rem 1rem;
}

.utility-bar {
  margin: 1rem 5vw;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 0.8rem;
  display: block;
}

.pets-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.pets-search-field {
  flex: 1 1 220px;
  min-width: 0;
}

.price-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 1 200px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

.filter-select {
  font: inherit;
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  cursor: pointer;
  width: 100%;
}

.filter-select:focus {
  outline: 2px solid rgba(46, 125, 50, 0.35);
  border-color: var(--green);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--gray);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

input,
select,
textarea {
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(46, 125, 50, 0.35);
  border-color: var(--green);
}

.search-wrap input {
  border: 0;
  padding: 0;
  outline: none;
}

.section {
  padding: 2.1rem 5vw;
}

.section-alt {
  background: rgba(255, 255, 255, 0.62);
}

.section-head p {
  margin-top: 0.2rem;
}

#coffee .section-head h2::after,
#menu-preview .section-head h2::after {
  content: "  •  ☕  •  🫘";
  font-size: 0.82rem;
  color: #7a5a34;
}

#pets .section-head h2::after,
#pets-preview .section-head h2::after {
  content: "  •  🐾  •  🐾";
  font-size: 0.82rem;
}

.section-preview .preview-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.page-intro .section-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--gray);
  border-radius: 999px;
  background: var(--white);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.tab.active {
  background: var(--green);
  color: var(--white);
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.2s transform;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card.sold-out {
  opacity: 0.8;
}

.sold-out-badge {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-card.sold-out .add-btn {
  cursor: not-allowed;
  opacity: 0.75;
}

@keyframes quickAddPop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.88);
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes productSurfaceAdded {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(111, 191, 115, 0.65), 0 12px 32px rgba(18, 55, 24, 0.16);
  }
}

.quick-add-pulse {
  animation: quickAddPop 0.45s ease;
  transform-origin: center center;
}

article.product-card.product-surface--added {
  animation: productSurfaceAdded 0.45s ease;
}

.product-modal-card.product-surface--added {
  animation: productSurfaceAdded 0.45s ease;
}

.product-card .add-btn,
#modalAddBtn {
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  transform-origin: center center;
}

.product-card .add-btn:active:not(:disabled),
#modalAddBtn:active:not(:disabled) {
  transform: scale(0.9);
  box-shadow: inset 0 2px 8px rgba(33, 49, 38, 0.14);
}

#modalAddBtn:focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .quick-add-pulse {
    animation: none;
  }

  article.product-card.product-surface--added,
  .product-modal-card.product-surface--added {
    animation: none;
  }
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.product-card--no-image .product-body {
  padding-top: 1rem;
}

.product-body {
  padding: 0.8rem;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mini-mark {
  font-size: 0.9rem;
  opacity: 0.9;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin: 0.45rem 0;
}

.variant-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.25rem;
}

.card-variant-picker {
  margin-top: 0.35rem;
}

.variant-btn {
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.variant-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green-dark);
}

.variant-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.variant-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.price-range-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-dark);
  opacity: 0.85;
}

.single-size-label {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: capitalize;
}

.single-size-label[hidden] {
  display: none;
}

.variant-picker:not(.has-variants) {
  display: none;
}

.modal-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.25rem 0 0.75rem;
}

.modal-price:empty {
  display: none;
}

.stock {
  font-size: 0.86rem;
  color: var(--green-dark);
}

.actions {
  display: flex;
  gap: 0.45rem;
}

.icon-btn {
  border: 1px solid var(--gray);
  background: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.stats {
  display: flex;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.deals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.services {
  background: rgba(255, 255, 255, 0.62);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  color: var(--green-dark);
  font-weight: 600;
}

.deal-card {
  background: linear-gradient(140deg, rgba(46, 125, 50, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid #d9ead8;
  border-radius: var(--radius);
  padding: 1rem;
}

.about,
.contact {
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.08), rgba(255, 255, 255, 0.6));
}

.contact-address {
  margin-top: 0.35rem;
  max-width: 65ch;
  line-height: 1.5;
}

.contact-address-actions {
  display: block;
  margin-top: 0.45rem;
}

.contact-address-actions a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--gray);
  display: grid;
  gap: 0.6rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  color: var(--green-dark);
  font-weight: 600;
}

.cart-panel {
  position: fixed;
  right: -380px;
  top: 0;
  width: min(380px, 100%);
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--gray);
  box-shadow: var(--shadow);
  z-index: 30;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray);
  padding: 1rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 0.8rem 1rem;
}

.cart-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--gray);
  padding: 0.5rem 0;
  transform-origin: center left;
}

.cart-line--removing {
  animation: cartLineOut 0.32s ease forwards;
  pointer-events: none;
}

@keyframes cartLineOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  35% {
    transform: translateX(0) scale(0.985);
  }
  100% {
    opacity: 0;
    transform: translateX(14px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-line--removing {
    animation: none;
    opacity: 0;
    transition: opacity 0.15s ease;
  }
}

.cart-line-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.35;
}

.cart-line-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
}

.cart-line-price {
  white-space: nowrap;
}

.cart-remove {
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.15s ease;
}

.cart-remove:hover {
  border-color: var(--green-soft);
  background: rgba(46, 125, 50, 0.06);
}

.cart-remove:active:not(:disabled) {
  transform: scale(0.9);
  box-shadow: inset 0 2px 6px rgba(33, 49, 38, 0.12);
}

.cart-remove:focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 2px;
}

.cart-footer {
  border-top: 1px solid var(--gray);
  padding: 1rem;
}

.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 32, 16, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.product-modal.open {
  display: flex;
}

.event-popup-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 10, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 45;
  padding: 1rem;
}

.event-popup-modal.open {
  display: flex;
}

.event-popup-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gray);
  box-shadow: var(--shadow);
  padding: 0.95rem;
  position: relative;
}

.event-popup-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}

.event-popup-date {
  color: var(--green-dark);
  font-weight: 700;
}

.product-modal-card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  position: relative;
}

.product-modal-card img {
  width: 100%;
  height: clamp(170px, 44vw, 250px);
  object-fit: cover;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 1px solid var(--gray);
  background: var(--white);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

body.pet-mode {
  background: linear-gradient(180deg, #f4fff4 0%, #eef8ee 100%);
}

body.pet-mode .hero {
  background: linear-gradient(120deg, rgba(46, 125, 50, 0.2), rgba(111, 191, 115, 0.13));
}

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .chip-btn {
    display: none;
  }

  .top-nav {
    min-height: 3.5rem;
    padding: 0.85rem 5vw 0.9rem;
  }

  .brand-logo {
    height: clamp(54px, 19vw, 118px);
    max-width: min(420px, 86vw);
  }

  .hero,
  .contact-layout,
  .deals,
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--gray);
    z-index: 25;
  }

  .mobile-nav a {
    text-align: center;
    padding: 0.65rem 0.2rem;
    font-size: 0.8rem;
  }

  .mobile-nav a.active {
    color: var(--green);
    font-weight: 700;
  }

  body {
    padding-bottom: 56px;
  }
}

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