:root {
  --cream: #f7f1e8;
  --linen: #efe3d3;
  --sand: #d8c7b2;
  --sage: #76856b;
  --olive: #4f5f45;
  --stone: #7a756d;
  --ink: #27241f;
}

html {
  scroll-behavior: smooth;
}

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

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.soft-shadow {
  box-shadow: 0 18px 45px rgba(79, 95, 69, 0.11);
}

.section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.container-nativ {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: grid;
  place-items: center;
  justify-content: center;
  min-height: 2.875rem;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--olive);
  color: #fffaf3;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(79, 95, 69, 0.28);
  color: var(--olive);
  background: rgba(255, 250, 243, 0.68);
}

.btn-ghost {
  color: var(--olive);
  padding-inline: 0.5rem;
}

.field {
  width: 100%;
  border: 1px solid rgba(122, 117, 109, 0.22);
  background: rgba(255, 250, 243, 0.78);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
}

.field:focus {
  border-color: rgba(79, 95, 69, 0.58);
  box-shadow: 0 0 0 4px rgba(118, 133, 107, 0.14);
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(79, 95, 69, 0.24);
  color: var(--olive);
  background: rgba(239, 227, 211, 0.56);
  padding: 0.32rem 0.7rem;
  font-size: 0.76rem;
}

.mobile-menu-button {
  position: relative;
  flex-direction: column;
  gap: 4px;
  transition: background 180ms ease, border-color 180ms ease;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-button.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  animation: menuReveal 180ms ease both;
}

.mobile-menu-link {
  border-radius: 0.5rem;
  padding: 0.9rem 0.2rem;
}

.mobile-menu-link + .mobile-menu-link {
  border-top: 1px solid rgba(216, 199, 178, 0.42);
}

.floating-cart {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 199, 178, 0.72);
  background: rgba(79, 95, 69, 0.94);
  color: #fffaf3;
  padding: 0;
  box-shadow: 0 18px 45px rgba(39, 36, 31, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.floating-cart:hover {
  transform: translateY(-2px);
  background: #43513b;
}

.floating-cart .cart-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 2rem;
  display: block;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.animate-soft-in {
  animation: softIn 760ms ease both;
}

.animate-soft-in-delay {
  animation: softIn 820ms ease 120ms both;
}

.animate-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.reveal-card {
  animation: softIn 720ms ease both;
}

.reveal-card:nth-child(2) {
  animation-delay: 80ms;
}

.reveal-card:nth-child(3) {
  animation-delay: 160ms;
}

.reveal-card:nth-child(4) {
  animation-delay: 240ms;
}

.product-card {
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(122, 117, 109, 0.13);
  border-radius: 0.5rem;
  overflow: hidden;
}

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

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(122, 117, 109, 0.14);
  text-align: left;
  vertical-align: top;
}

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

@keyframes floatSlow {
  0%,
  100% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.04) translate3d(0, -10px, 0);
  }
}

@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 640px) {
  body {
    padding-bottom: 5rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .floating-cart {
    right: 1rem;
    bottom: 1rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}
