: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);
}

/* 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;
}

/* Shared PDP customization — clean grouped fields, Neo radii and 2px borders. */
.myst-pdp-customization {
  width: 100%;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.myst-pdp-customization__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.myst-pdp-customization__field > label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.myst-pdp-customization__input:not([type="checkbox"]),
.myst-pdp-customization select,
.myst-pdp-customization__photo {
  min-height: 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.myst-pdp-customization__input:not([type="checkbox"]):focus,
.myst-pdp-customization select:focus,
.myst-pdp-customization__photo:focus {
  border-color: #111827;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.myst-pdp-customization__photo::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 9999px;
  background: #111827;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
}

.myst-pdp-customization [data-field-type="multi"] > div {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  overflow: hidden;
}

.myst-pdp-customization [data-field-type="multi"] > div > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

.myst-pdp-customization__option {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  background: transparent;
  column-gap: 0.75rem;
}

.myst-pdp-customization__option:last-child {
  border-bottom: 0;
}

.myst-pdp-customization__option:hover {
  background: #f9fafb;
}

.myst-pdp-customization__option-text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.myst-pdp-customization__option-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.myst-pdp-customization__extra {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  color: #6b7280;
  font-weight: 600;
}

.myst-pdp-customization input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #111827;
}

/* Merchant-controlled storefront header logo size (medium keeps theme defaults). */
.mysto-logo-size-small {
  height: 1.5rem !important;
  width: auto !important;
  max-width: 7.5rem !important;
}

.mysto-logo-size-large {
  height: 2.5rem !important;
  width: auto !important;
  max-width: 12rem !important;
}
