
:root {
  --green: #173f35;
  --green-light: #e8f0eb;
  --orange: #ef8a36;
  --cream: #faf8f3;
  --white: #ffffff;
  --ink: #242923;
  --muted: #777b75;
  --border: #e9e8e2;
  --shadow: 0 10px 35px rgba(30, 45, 35, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  padding: 8px 5%;
  background: var(--green);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.topbar span { color: #d8e4dc; }

.header {
  padding: 20px 5%;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 17px;
  line-height: 1.3;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.1px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.search {
  display: flex;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--cream);
}

.search input {
  min-width: 0;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 15px;
}

.search button {
  border: none;
  padding: 0 20px;
  color: white;
  background: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-button, .cart-button {
  background: transparent;
  border: none;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border-radius: 50px;
  background: var(--orange);
  color: white;
  font-size: 12px;
}

.categories {
  padding: 12px 5%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.category {
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

.category:hover, .category.active {
  background: var(--green);
  color: white;
}

.hero {
  margin: 28px 5% 0;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cream);
}

.hero-content {
  padding: 55px 8%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: #bd6c29;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -1.5px;
}

.hero-content > p {
  max-width: 420px;
  color: var(--muted);
  margin-bottom: 25px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  padding: 13px 23px;
  background: var(--green);
  color: white;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.primary-button:hover {
  background: #245b4b;
  transform: translateY(-1px);
}

.hero-notes {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  color: var(--green);
  font-size: 12px;
}

.hero-image { position: relative; min-height: 350px; }

.hero-image > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hero-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.hero-label strong { font-size: 15px; }

.service-strip {
  margin: 25px 5% 0;
  padding: 23px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.service-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.service-strip > div > span { font-size: 27px; }
.service-strip p { margin: 0; }
.service-strip strong, .service-strip small { display: block; }
.service-strip strong { font-size: 14px; }
.service-strip small { color: var(--muted); font-size: 11px; }

.shop-section { padding: 70px 5%; }

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

.section-heading h2, .about-section h2, .contact-section h2 {
  font-size: clamp(28px, 3vw, 39px);
  margin: 8px 0;
}

.section-heading p, .contact-section p {
  color: var(--muted);
  margin-bottom: 0;
}

#sortSelect {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  max-width: 100%;
}

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

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

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 4px;
  padding: 4px 8px;
  background: white;
  font-size: 10px;
  font-weight: 700;
}

.product-info { padding: 15px; }

.product-category {
  color: #8b715a;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.product-info h3 {
  margin: 5px 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.product-description {
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
  margin-bottom: 10px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price { color: var(--green); font-size: 17px; font-weight: 700; }
.old-price { color: #999; font-size: 11px; text-decoration: line-through; }

.add-button {
  background: var(--green-light);
  color: var(--green);
  border: none;
  border-radius: 5px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 12px;
}

.add-button:hover { background: var(--green); color: white; }

.about-section {
  margin: 0 5% 55px;
  padding: 45px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-section h2 { margin-bottom: 0; }
.about-section > p { color: var(--muted); margin-bottom: 0; }

.contact-section {
  padding: 50px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--green-light);
}

.contact-details p {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.contact-details a:not(.primary-button) {
  color: var(--green);
  font-weight: 600;
}

.link-button { margin-top: 8px; }

footer {
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer p { color: var(--muted); font-size: 12px; margin: 0; }
.footer-brand { font-size: 14px; }

.hidden { display: none !important; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 25, 20, .55);
  display: flex;
  justify-content: flex-end;
}

.drawer {
  width: min(470px, 100%);
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 25px;
  overflow-y: auto;
}

.modal {
  background: white;
  width: min(520px, calc(100% - 28px));
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  border-radius: 12px;
  padding: 25px;
}

.orders-modal { width: min(620px, calc(100% - 28px)); }

.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.drawer-heading h2 { margin: 0; font-size: 26px; }

.close-button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  font-size: 17px;
}

.cart-items { flex: 1; overflow-y: auto; }

.cart-item {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 75px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item h3 { margin-bottom: 5px; font-size: 13px; }
.cart-item p { margin: 0; font-size: 13px; color: var(--green); font-weight: 700; }

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-controls button {
  width: 27px;
  height: 27px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
}

.remove-button {
  border: none;
  background: transparent;
  color: #b13e32;
  font-size: 12px;
  margin-top: 6px;
}

.cart-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.total-line, .checkout-summary { display: flex; justify-content: space-between; gap: 10px; }
.total-line strong, .checkout-summary strong { font-size: 20px; color: var(--green); }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 11px; }
.full-button { width: 100%; margin-top: 12px; }

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 45px 10px;
}

.checkout-form { display: grid; gap: 15px; }
.checkout-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }

.checkout-form input, .checkout-form textarea, .checkout-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dcded8;
  border-radius: 6px;
  outline-color: var(--green);
  background: white;
}

.checkout-summary {
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.order-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.order-card h3 { margin-bottom: 5px; font-size: 15px; }
.order-card p { margin: 5px 0; font-size: 13px; }
.order-status { color: #98601d; font-weight: 700; font-size: 12px; }
.order-items { color: var(--muted); }

.toast {
  position: fixed;
  z-index: 200;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--green);
  color: white;
  padding: 12px 20px;
  border-radius: 7px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  max-width: calc(100% - 30px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty-message { padding: 30px; text-align: center; color: var(--muted); }

@media (max-width: 1000px) {
  .header { gap: 15px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-image { height: 210px; }
}

@media (max-width: 700px) {
  .topbar { justify-content: center; text-align: center; flex-wrap: wrap; gap: 2px 10px; }
  .header { padding: 15px 4%; }
  .brand { font-size: 14px; }
  .brand-mark { width: 37px; height: 37px; }
  .header-actions { gap: 8px; }
  .nav-button, .cart-button { font-size: 12px; padding: 5px; }
  .categories { justify-content: flex-start; padding: 10px 4%; gap: 4px; }
  .category { padding: 8px 12px; font-size: 12px; }
  .hero { margin: 15px 4% 0; grid-template-columns: 1fr; }
  .hero-content { padding: 35px 25px; }
  h1 { font-size: 46px; }
  .hero-image { min-height: 250px; }
  .service-strip { margin: 18px 4% 0; padding: 18px 10px; grid-template-columns: repeat(2, 1fr); gap: 18px 5px; }
  .service-strip > div { justify-content: flex-start; }
  .service-strip > div > span { font-size: 23px; }
  .shop-section { padding: 48px 4%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .product-image { height: 165px; }
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 13px; }
  .product-description { font-size: 11px; min-height: 35px; }
  .price { font-size: 14px; }
  .add-button { padding: 8px; font-size: 11px; }
  .about-section { margin: 0 4% 35px; padding: 28px 22px; grid-template-columns: 1fr; gap: 18px; }
  .contact-section { padding: 35px 5%; grid-template-columns: 1fr; gap: 22px; }
  footer { justify-content: center; text-align: center; flex-direction: column; }
  .drawer { padding: 18px; }
  .modal { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
