:root {
  --royal-ink: #1f2421;
  --royal-muted: #69716d;
  --royal-line: #e7e2d8;
  --royal-cream: #fbfaf6;
  --royal-gold: #c8962f;
  --royal-green: #1f7a4d;
  --royal-red: #9f2f2f;
}

body {
  background: var(--royal-cream);
  color: var(--royal-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 76px;
}

a {
  color: var(--royal-green);
}

.navbar {
  border-bottom: 1px solid rgba(31, 36, 33, 0.08);
}

.brand-mark {
  align-items: center;
  background: var(--royal-ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand-logo {
  border-radius: 8px;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.btn-royal {
  --bs-btn-bg: var(--royal-green);
  --bs-btn-border-color: var(--royal-green);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #17633e;
  --bs-btn-hover-border-color: #17633e;
  --bs-btn-hover-color: #fff;
}

.btn-outline-royal {
  --bs-btn-color: var(--royal-ink);
  --bs-btn-border-color: var(--royal-line);
  --bs-btn-hover-bg: var(--royal-ink);
  --bs-btn-hover-border-color: var(--royal-ink);
  --bs-btn-hover-color: #fff;
}

.hero {
  background: #fff;
  border-bottom: 1px solid var(--royal-line);
}

.hero-copy {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-media-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-media-grid img,
.hero-fallback-tile {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-fallback-tile {
  align-items: center;
  background: linear-gradient(135deg, #fff3d7, #e6f3eb);
  border: 1px solid var(--royal-line);
  color: var(--royal-muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 130px;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0;
}

.category-card,
.product-card,
.checkout-panel,
.cart-line,
.summary-card {
  border: 1px solid var(--royal-line);
  border-radius: 8px;
}

.category-card,
.product-card {
  background: #fff;
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-card:hover,
.product-card:hover {
  border-color: rgba(31, 122, 77, 0.42);
  box-shadow: 0 18px 38px rgba(31, 36, 33, 0.1);
  color: inherit;
  transform: translateY(-2px);
}

.category-card img,
.product-card img,
.product-main-image,
.cart-thumb {
  object-fit: cover;
  width: 100%;
}

.category-card img {
  aspect-ratio: 16 / 10;
}

.product-card img,
.product-image-placeholder {
  aspect-ratio: 4 / 3;
}

.product-image-placeholder,
.cart-thumb-placeholder {
  align-items: center;
  background: #f3f0e8;
  color: var(--royal-muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.product-price {
  color: var(--royal-green);
  font-size: 1.1rem;
  font-weight: 800;
}

.product-main-image {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.product-thumbnail {
  border: 1px solid var(--royal-line);
  border-radius: 8px;
  cursor: pointer;
  height: 72px;
  object-fit: cover;
  padding: 2px;
  width: 72px;
}

.weight-option.active {
  background: var(--royal-green);
  border-color: var(--royal-green);
  color: #fff;
}

.cart-thumb,
.cart-thumb-placeholder {
  border-radius: 8px;
  height: 96px;
  width: 96px;
}

.qty-control {
  max-width: 142px;
}

.checkout-panel,
.summary-card {
  background: #fff;
}

.checkout-panel input,
.checkout-panel select,
.checkout-panel textarea {
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.checkout-panel ul {
  margin-bottom: 0;
}

.sticky-summary {
  position: sticky;
  top: 92px;
}

.mobile-cart-bar {
  background: #fff;
  border-top: 1px solid var(--royal-line);
  bottom: 0;
  box-shadow: 0 -8px 24px rgba(31, 36, 33, 0.08);
  left: 0;
  padding: 0.75rem;
  position: fixed;
  right: 0;
  z-index: 1030;
}

.footer {
  background: var(--royal-ink);
  color: #fff;
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .cart-thumb,
  .cart-thumb-placeholder {
    height: 76px;
    width: 76px;
  }
}
