:root {
  --mysto-template-primary-color: #1a4233;
  --mysto-template-bg-secondary: #fdfbf7;
  --mysto-template-font-heading: 'Playfair Display', serif;
  --mysto-template-font-body: 'Inter', sans-serif;
  --neo-mobile-nav-height: 5rem;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
}

/* Base resets & typography */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--mysto-template-font-body);
  color: #1a1a1a;
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Mobile bottom nav clearance (nav is h-20 + safe area) */
body.neo-body {
  padding-bottom: calc(var(--neo-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
}

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

main img,
main video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-family: var(--mysto-template-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Layout */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container-custom {
    padding: 0 24px;
  }
}

/* Scrollbar hide (carousels, breadcrumbs) */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Form Elements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Product cards — rounded image frame */
.neo-media-square {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
}

.neo-media-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Homepage category banner hover */
.neo-category-banner {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.neo-category-banner:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Marquee in header */
.marquee-container {
  max-width: 100%;
}

.marquee-content {
  will-change: transform;
}

/* Product page — added to cart */
#addToCartBtn[data-in-cart="true"] {
  background-color: #16a34a;
  border-color: #16a34a;
}

#addToCartBtn[data-in-cart="true"]:hover {
  background-color: #15803d;
  border-color: #15803d;
}
