:root {
  /* Storefront palette */
  --jm-white: #ffffff;
  --jm-ink: #202a26;
  --jm-accent: #174c3c;
  --jm-accent-dark: #0f362b;
  --jm-accent-soft: #e3efe9;
  --jm-surface: #f5f7f5;
  --jm-slate: #5f6b65;
  --jm-muted: #93a29a;
  --jm-border: #e5eae6;
  --jm-border-light: #f5f7f5;
  --jm-success: #059669;
  --jm-space: 8px;
  --jm-header-sticky-offset: 56px;
  --jm-radius: 10px;
  --jm-radius-lg: 14px;
  --jm-max: 1440px;
  --jm-shadow-sm: 0 1px 2px rgba(32,42,38, 0.04);
  --jm-shadow: 0 4px 16px rgba(32,42,38, 0.06);
  --jm-shadow-lg: 0 12px 40px rgba(32,42,38, 0.1);
  --jm-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy aliases (single palette — no parallel colors) */
  --nx-primary: var(--jm-accent);
  --nx-primary-dark: var(--jm-accent-dark);
  --nx-primary-light: var(--jm-accent-soft);
  --color-nx: var(--jm-accent);
  --color-nx-dark: var(--jm-accent-dark);
  --color-ink: var(--jm-ink);
  --color-surface-muted: var(--jm-surface);
  --brand-border: var(--jm-border);
  --nx-white: var(--jm-white);
  --nx-bg: var(--jm-surface);
  --nx-surface: var(--jm-white);
  --nx-text: var(--jm-ink);
  --nx-text-secondary: var(--jm-slate);
  --nx-muted: var(--jm-muted);
  --nx-border: var(--jm-border);
  --nx-border-light: var(--jm-border-light);
  --nx-radius: var(--jm-radius);
  --nx-radius-lg: var(--jm-radius-lg);
  --nx-radius-pill: 999px;
  --nx-shadow-sm: var(--jm-shadow-sm);
  --nx-shadow: var(--jm-shadow);
  --nx-shadow-lg: var(--jm-shadow-lg);
  --nx-transition: var(--jm-transition);
  --nx-header-h: 72px;
  --nx-trust-h: 40px;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nx-body {
  font-family: var(--font-sans);
  color: var(--nx-text);
  background: var(--nx-white);
  line-height: 1.5;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--nx-transition);
}

a:hover {
  color: var(--nx-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-nx {
  color: var(--nx-primary) !important;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--jm-ink);
  margin: 0;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--nx-muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-nx {
  background: var(--nx-primary);
  border: 1px solid var(--nx-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--jm-radius);
  letter-spacing: 0.01em;
  transition: background var(--nx-transition), transform 0.15s ease, box-shadow var(--nx-transition);
}

.btn-nx:hover,
.btn-nx:focus {
  background: var(--nx-primary-dark);
  border-color: var(--nx-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--nx-shadow);
}

.btn-nx:active {
  transform: translateY(0);
}

.btn-outline-nx {
  color: var(--nx-primary);
  border: 1.5px solid var(--nx-primary);
  background: transparent;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--jm-radius);
  transition: all var(--nx-transition);
}

.btn-outline-nx:hover {
  background: var(--nx-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--nx-text);
  padding: 0.5rem;
  border-radius: var(--nx-radius);
  transition: background var(--nx-transition);
}

.btn-ghost:hover {
  background: var(--nx-bg);
}

.trust-bar {
  background: var(--nx-bg);
  border-bottom: 1px solid var(--nx-border-light);
  font-size: 0.75rem;
  color: var(--nx-text-secondary);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.trust-bar__icon {
  width: 14px;
  height: 14px;
  color: var(--nx-primary);
  flex-shrink: 0;
}

.top-bar {
  background: var(--nx-white);
  border-bottom: 1px solid var(--nx-border-light);
  font-size: 0.8125rem;
}

.top-bar select {
  border: none;
  background: transparent;
  color: var(--nx-text-secondary);
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.top-bar select:focus {
  outline: none;
  box-shadow: none;
}

.delivery-to {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--nx-text);
  font-weight: 500;
}

.delivery-to span {
  color: var(--nx-muted);
  font-weight: 400;
}

.delivery-to__select {
  font-weight: 500;
  color: var(--nx-text);
  padding: 0.15rem 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--nx-radius);
  transition: background var(--nx-transition), color var(--nx-transition);
}

.delivery-to__select:hover,
.delivery-to__select:focus {
  background: var(--nx-bg);
  outline: none;
}

.delivery-to__select:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 58, 74, 0.15);
}

.preference-switchers .preference-switcher {
  border: none;
  background: transparent;
  color: var(--nx-text-secondary);
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: var(--nx-radius);
  transition: background var(--nx-transition), color var(--nx-transition);
}

.preference-switchers .preference-switcher:hover,
.preference-switchers .preference-switcher:focus {
  background: var(--nx-bg);
  color: var(--nx-text);
  outline: none;
}

.preference-switchers .preference-switcher:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 58, 74, 0.15);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nx-text) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--nx-radius);
  transition: background var(--nx-transition), color var(--nx-transition);
}

.nav-link:hover {
  background: var(--nx-bg);
  color: var(--nx-primary) !important;
}

.dropdown-menu {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--nx-radius);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.dropdown-item:hover {
  background: var(--nx-primary-light);
  color: var(--nx-primary);
}

.search-wrap input {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-pill);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  background: var(--nx-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238c8c8c' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.1a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 0.85rem center;
  transition: border-color var(--nx-transition), box-shadow var(--nx-transition);
}

.search-wrap input:focus {
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 3px rgba(139, 58, 74, 0.1);
  background-color: var(--nx-white);
}

.search-wrap--header {
  max-width: 400px;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  max-height: 480px;
  overflow: auto;
  display: none;
}

.search-suggestions-dropdown:has(#search-suggestions-indicator.htmx-request),
.search-suggestions-dropdown:has(#search-suggestions:not(:empty)) {
  display: block;
}

.search-suggestions-body {
  padding: 0.25rem;
}

.search-suggestions-body:empty {
  display: none;
}

.search-suggestions-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem;
}

.search-suggestions-section {
  padding-bottom: 0.25rem;
}

.search-suggestions-section+.search-suggestions-section {
  border-top: 1px solid var(--nx-border-light);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.search-suggestions-header {
  font-family: var(--font-sans);
  color: var(--nx-muted) !important;
}

.search-suggestion-link {
  transition: background var(--nx-transition), color var(--nx-transition);
}

.search-suggestion-link:hover,
.search-suggestion-link.is-active {
  background: var(--nx-primary-light) !important;
  color: var(--nx-primary) !important;
}

.search-suggestion-link:hover .text-dark,
.search-suggestion-link.is-active .text-dark {
  color: var(--nx-primary) !important;
}

.search-suggestion-link:hover .text-muted,
.search-suggestion-link.is-active .text-muted {
  color: var(--nx-primary-dark) !important;
  opacity: 0.85;
}

.search-suggestion-link:hover svg,
.search-suggestion-link.is-active svg {
  color: var(--nx-primary) !important;
}

.search-suggestions-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--nx-muted);
  font-size: 0.8125rem;
}

.search-suggestions-loading.htmx-request {
  display: flex;
}

.search-suggestions-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--nx-border);
  border-top-color: var(--nx-primary);
  border-radius: 50%;
  animation: search-spinner 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes search-spinner {
  to {
    transform: rotate(360deg);
  }
}

.search-suggestions-empty {
  text-align: center;
  padding: 1.25rem 1rem;
}

.search-suggestions-empty__icon {
  color: var(--nx-muted);
  margin-bottom: 0.5rem;
}

.search-suggestions-empty__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-text);
}

.search-suggestions-empty__hint {
  line-height: 1.45;
}

.search-suggestion-link.is-active,
.search-suggestion-link:focus-visible {
  background: var(--nx-primary-light);
  color: var(--nx-primary);
  outline: none;
}

.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--nx-transition);
}

.header-icon:hover {
  background: var(--nx-bg);
}

.header-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--nx-text);
  fill: none;
  stroke-width: 1.75;
}

.header-icon .badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  background: var(--nx-primary);
  color: #fff;
  border-radius: var(--nx-radius-pill);
}

@media (max-width: 991.98px) {

  body.nx-body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .search-wrap,
  .search-wrap--header {
    max-width: 100% !important;
    margin: 0.75rem 0 !important;
  }}

.header-icon--trigger {
  cursor: pointer;
  color: var(--nx-text);
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--nx-transition),
    transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-icon--trigger:hover {
  background: transparent;
  color: var(--nx-primary);
}

.header-icon--trigger:active {
  background: transparent;
  transform: scale(0.86);
}

.header-icon--trigger:focus,
.header-icon--trigger:focus-visible {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.header-icon--trigger svg {
  width: 23px;
  height: 23px;
}

.mobile-search {
  position: fixed;
  inset: 0;
  z-index: 1080;
  visibility: hidden;
  pointer-events: none;
}

.mobile-search.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.18);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-search.is-open .mobile-search__backdrop {
  opacity: 1;
}

.mobile-search__sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(0.75rem + env(safe-area-inset-top)) 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.28s ease;
  max-height: calc(100dvh - 1rem);
  display: flex;
  flex-direction: column;
}

.mobile-search.is-open .mobile-search__sheet {
  transform: translateY(0);
  opacity: 1;
}

.mobile-search__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  background: rgba(118, 118, 128, 0.12);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 0.75rem;
  transition: background var(--nx-transition), border-color var(--nx-transition), box-shadow var(--nx-transition);
}

.mobile-search__field:focus-within {
  background: var(--nx-white);
  border-color: rgba(139, 58, 74, 0.35);
  box-shadow: 0 0 0 4px rgba(139, 58, 74, 0.1);
}

.mobile-search__icon {
  width: 20px;
  height: 20px;
  color: var(--nx-muted);
  flex-shrink: 0;
}

.mobile-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 0.5rem;
  font-size: 1rem;
  color: var(--nx-text);
  outline: none;
  min-width: 0;
}

.mobile-search__input::placeholder {
  color: var(--nx-muted);
}

.mobile-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.mobile-search__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.28);
  color: var(--nx-white);
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-search__clear svg {
  width: 13px;
  height: 13px;
}

.mobile-search__cancel {
  border: none;
  background: transparent;
  color: var(--nx-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0.15rem;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-search__cancel:active {
  opacity: 0.6;
}

.mobile-search__results {
  margin-top: 0.6rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-search__results:empty {
  display: none;
}

.mobile-search__results .search-suggestions-list a {
  padding: 0.75rem 0.85rem !important;
  border-radius: 12px;
  font-size: 0.95rem;
}

.mobile-search__results .search-suggestions-empty {
  padding: 1.5rem 1rem 0.5rem;
}

@media (prefers-reduced-motion: reduce) {

  .mobile-search__sheet,
  .mobile-search__backdrop {
    transition: opacity 0.2s ease;
  }

  .mobile-search.is-open .mobile-search__sheet {
    transform: none;
  }}

body.mobile-search-open {
  overflow: hidden;
}

.carousel-fade .carousel-item {
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  transition: width var(--nx-transition), background var(--nx-transition);
}

.carousel-indicators .active {
  background: #fff;
  width: 22px;
  border-radius: var(--nx-radius-pill);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-fade .carousel-item {
    transition: opacity 0.3s ease;
  }}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.section-header .section-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nx-primary);
  white-space: nowrap;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-pill);
  transition: all var(--nx-transition);
}

.section-header .section-cta:hover {
  border-color: var(--nx-primary);
  background: var(--nx-primary-light);
}

.product-card-img--placeholder {
  object-fit: contain !important;
  padding: 22%;
  background: var(--nx-primary-light);
}

.chip-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.occasion-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  text-align: center;
}

.occasion-chip__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--nx-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  transition: transform var(--nx-transition), box-shadow var(--nx-transition);
}

.occasion-chip:hover .occasion-chip__icon {
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow);
}

.occasion-chip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.occasion-chip__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nx-text);
  line-height: 1.2;
}

.occasion-view-all {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nx-border);
  background: var(--nx-white);
  color: var(--nx-text);
  transition: all var(--nx-transition);
}

.occasion-view-all:hover {
  border-color: var(--nx-primary);
  background: var(--nx-primary-light);
  color: var(--nx-primary);
}

.occasion-view-all svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .occasion-chip {
    width: 104px;
  }

  .occasion-chip__icon {
    width: 88px;
    height: 88px;
  }}

.feature-card {
  position: relative;
  height: 100%;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  box-shadow: var(--nx-shadow-sm);
  transition: transform var(--nx-transition), box-shadow var(--nx-transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow);
}

.feature-card__img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-card__body {
  display: block;
  padding: 1rem 1.25rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nx-text);
}

.plp-page {
  background: var(--nx-white);
}

.plp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.plp-filters {
  background: var(--nx-white);
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-radius-lg) !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.plp-filters-desktop {
  position: sticky;
  top: calc(var(--jm-header-sticky-offset, 148px) + 12px);
  align-self: flex-start;
  z-index: 15;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--jm-header-sticky-offset, 148px) - 24px);
  overflow: visible;
}

.plp-filters-desktop .plp-filters {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.plp-filters-header,
.plp-filters-footer {
  flex-shrink: 0;
  background: var(--nx-white);
}

.plp-filters-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--nx-border, #d1d5db) transparent;
  padding-right: 4px;
}

.plp-filters-body::-webkit-scrollbar {
  width: 6px;
  display: block !important;
}

.plp-filters-body::-webkit-scrollbar-track {
  background: transparent;
}

.plp-filters-body::-webkit-scrollbar-thumb {
  background-color: var(--nx-border, #d1d5db);
  border-radius: 4px;
}

.plp-filters .form-label {
  font-weight: 500;
  color: var(--nx-text);
}

.plp-filters .form-select,
.plp-filters .form-control {
  border-color: var(--nx-border);
  border-radius: var(--nx-radius);
  font-size: 0.875rem;
}

.product-grid-shell {
  position: relative;
  min-height: 12rem;
  transition: opacity 0.2s ease;
}

.product-grid-shell.htmx-request {
  opacity: 0.45;
  pointer-events: none;
}

.product-grid-shell.htmx-request::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  animation: plp-grid-shimmer 1.1s ease-in-out infinite;
}

@keyframes plp-grid-shimmer {
  0% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.75;
  }

  100% {
    opacity: 0.35;
  }
}

.product-grid-inner {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

@media (max-width: 991.98px) {
  .plp-filters-desktop {
    display: none;
  }

  .plp-filter-toggle {
    display: inline-flex !important;
  }}

.plp-filter-toggle {
  display: none;
}

.product-detail {
  padding-bottom: 5rem;
}

.jm-pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jm-pdp-gallery__stage {
  background: linear-gradient(180deg, #f7f9f7 0%, #eef4f0 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--jm-border-light, #e8eeea);
}

.jm-pdp-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 1.25rem;
  background: transparent;
}

.jm-pdp-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jm-pdp-gallery__thumb,
.thumb-btn {
  width: 64px;
  height: 64px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #f7f9f7;
  transition: border-color var(--jm-transition, 0.2s ease), box-shadow var(--jm-transition, 0.2s ease);
}

.jm-pdp-gallery__thumb img,
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jm-pdp-gallery__thumb.is-active,
.jm-pdp-gallery__thumb.active,
.thumb-btn.active,
.jm-pdp-gallery__thumb:hover,
.thumb-btn:hover {
  border-color: var(--jm-accent);
  box-shadow: 0 0 0 2px rgba(39,132,92, 0.12);
}

.zoom-container {
  cursor: zoom-in;
}

.zoom-image {
  transition: transform 0.35s ease;
}

.zoom-container:hover .zoom-image {
  transform: scale(1.04);
}

.jm-pdp-buybox__meta,
.pdp-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jm-muted, #6b7a72);
}

.jm-pdp-buybox__title,
.pdp-info h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--jm-ink);
}

.jm-pdp-buybox__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.jm-pdp-buybox__price,
.pdp-price {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--jm-ink);
  letter-spacing: -0.02em;
}

.pdp-price .was {
  font-size: 1rem;
  color: var(--jm-muted, #6b7a72);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 0.35rem;
}

.jm-pdp-buybox__stock {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jm-pdp-buybox__stock.is-in {
  color: var(--jm-success, #1f7a4d);
}

.jm-pdp-buybox__stock.is-out {
  color: var(--jm-accent);
}

.jm-pdp-buybox__options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.1rem 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--jm-border-light, #e8eeea);
  border-bottom: 1px solid var(--jm-border-light, #e8eeea);
}

.jm-pdp-field {
  margin: 0;
}

.jm-pdp-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jm-ink);
}

.jm-pdp-wish__btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--jm-border, #d6e0da);
  background: #fff;
  color: var(--jm-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.jm-pdp-wish__btn.is-active,
.jm-pdp-wish__btn.is-active {
  color: var(--jm-accent);
  border-color: rgba(39,132,92, 0.35);
  background: rgba(39,132,92, 0.05);
}

@media (max-width: 991.98px) {

  .product-detail {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }}

.jm-pdp-review {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--jm-border-light, #e8eeea);
}

.jm-pdp-review__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.jm-pdp-review__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--jm-muted, #6b7a72);
  font-weight: 500;
}

.jm-pdp-review__rating {
  color: var(--jm-accent);
  font-weight: 700;
  font-size: 0.875rem;
}

.jm-pdp-review__body {
  margin: 0;
  font-size: 0.875rem;
  color: var(--jm-slate, #55645c);
}

.offcanvas {
  border-left: 1px solid var(--nx-border);
  max-width: 400px;
}

.offcanvas-header {
  border-bottom: 1px solid var(--nx-border-light);
  padding: 1rem 1.25rem;
}

.offcanvas-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.cart-line {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--nx-border-light);
}

.cart-line__info {
  flex: 1;
  min-width: 0;
}

.cart-line__name {
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-line__meta {
  font-size: 0.75rem;
  color: var(--nx-muted);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.cart-summary-total {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--nx-border);
  margin-top: 0.5rem;
}

/* cart image */

.cart-line__img-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-bg);
}

.cart-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__img--placeholder {
  object-fit: contain;
  padding: 20%;
}

#cart-drawer-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.cart-drawer-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 1rem;
}

.cart-drawer-footer {
  flex: 0 0 auto;
  padding: 1rem;
  border-top: 1px solid var(--nx-border);
  background: var(--nx-white);
}

.qty-stepper {
  border-color: var(--nx-border) !important;
}

.qty-stepper form {
  margin: 0;
}

.qty-stepper__btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--nx-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.qty-stepper__btn:hover {
  background: var(--nx-bg);
}

.qty-stepper__value {
  min-width: 28px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-page-line .cart-line__name {
  font-size: 0.9375rem;
}

.checkout-page .card {
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-radius-lg) !important;
  box-shadow: none !important;
}

.checkout-step {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.checkout-step h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nx-border-light);
}

.form-check-input:checked {
  background-color: var(--nx-primary);
  border-color: var(--nx-primary);
}

.gift-builder {
  background: var(--nx-white);
}

.gift-builder .builder-section {
  border-bottom: 1px solid var(--nx-border-light);
  padding: 1.25rem 0;
}

.gift-builder .card-option {
  cursor: pointer;
  border: 2px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  transition: all var(--nx-transition);
}

.gift-builder .card-option:hover {
  border-color: var(--nx-primary);
}

.gift-builder .card-option.border-nx {
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 3px rgba(139, 58, 74, 0.12);
}

.gift-builder .swatch-option:has(input:checked) {
  background: var(--nx-primary);
  color: #fff;
  border-color: var(--nx-primary);
}

.tracking-page {
  max-width: 640px;
  margin: 0 auto;
}

.tracking-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.tracking-step {
  position: relative;
  padding-bottom: 1.5rem;
}

.tracking-step:last-child {
  padding-bottom: 0;
}

.tracking-step::after {
  content: "";
  position: absolute;
  left: -19px;
  top: 16px;
  bottom: -4px;
  width: 2px;
  background: var(--nx-border);
  z-index: 1;
}

.tracking-step.is-complete::after {
  background: var(--nx-primary);
}

.tracking-step:last-child::after {
  display: none;
}

.tracking-step::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nx-border);
  border: 2px solid var(--nx-white);
  z-index: 2;
}

.tracking-step.is-complete::before {
  background: var(--nx-primary);
}

.tracking-step.is-current::before {
  box-shadow: 0 0 0 4px rgba(139, 58, 74, 0.2);
  background: var(--nx-primary);
}

.site-footer {
  background: var(--nx-bg) !important;
  color: var(--nx-text) !important;
  border-top: 1px solid var(--nx-border);
  margin-top: 3rem !important;
  padding: 2.5rem 0 !important;
}

.site-footer h5,
.site-footer h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-text);
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--nx-text-secondary);
  font-size: 0.8125rem;
  display: block;
  padding: 0.2rem 0;
  transition: color var(--nx-transition);
}

.site-footer a:hover {
  color: var(--nx-primary);
}

.site-footer .footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-primary);
}

.site-footer .footer-copy {
  font-size: 0.75rem;
  color: var(--nx-muted);
  border-top: 1px solid var(--nx-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.brands-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
  display: none;
}

.brand-pill {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.bg-nx {
  background-color: var(--nx-primary) !important;
}

.badge.bg-nx {
  background: var(--nx-primary) !important;
}

.page-container {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.container-narrow {
  max-width: 720px;
}

.homepage-sections>section,
.homepage-sections>.container {
  margin-bottom: 0;
}

.homepage-sections {
  background: var(--nx-white);
}

.newsletter-section {
  background: var(--nx-bg);
}

.newsletter-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form .form-control {
  flex: 1 1 220px;
  border-radius: var(--nx-radius-pill);
  border-color: var(--nx-border);
  font-size: 0.875rem;
}

.newsletter-form .btn {
  flex-shrink: 0;
}

.review-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.25rem;
  transition: box-shadow var(--nx-transition), transform var(--nx-transition);
}

.review-card:hover {
  box-shadow: var(--nx-shadow);
  transform: translateY(-2px);
}

.review-card__stars {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.review-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review-card__body {
  font-size: 0.8125rem;
  color: var(--nx-muted);
  margin: 0;
  line-height: 1.5;
}

.promo-banner {
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nx-border-light);
  transition: box-shadow var(--nx-transition);
}

.promo-banner:hover {
  box-shadow: var(--nx-shadow);
}

.promo-banner img {
  width: 100%;
  object-fit: cover;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(6, 1fr);
  }}

.instagram-grid__item {
  aspect-ratio: 1;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-bg);
}

.instagram-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.instagram-grid__item:hover img {
  transform: scale(1.05);
}

.delivery-widget {
  background: var(--nx-bg);
  border: 1px solid var(--nx-border-light);
  border-radius: var(--nx-radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.delivery-widget__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.delivery-widget__text {
  font-size: 0.8125rem;
  color: var(--nx-text-secondary);
}

.order-preview {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
}

.order-preview__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--nx-border-light);
  background: var(--nx-bg);
}

.order-preview__body {
  padding: 1.25rem;
}

.order-preview-list dt {
  font-weight: 500;
  color: var(--nx-muted);
  margin-top: 0.75rem;
}

.order-preview-list dt:first-child {
  margin-top: 0;
}

.order-preview-list dd {
  margin-bottom: 0;
  color: var(--nx-text);
}

.order-preview__total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--nx-border-light);
}

.message-preview-quote {
  padding: 0.75rem 1rem;
  background: var(--nx-bg);
  border-radius: var(--nx-radius);
  border-left: 3px solid var(--nx-primary);
  font-style: italic;
  line-height: 1.5;
}

.message-preview-quote.is-empty {
  color: var(--nx-muted);
}

.checkout-confirmation {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 2rem 1.5rem;
}

.search-suggestions-list a:hover {
  background: var(--nx-bg) !important;
}

.search-suggestion-link {
  transition: background var(--nx-transition);
}

.search-suggestion-link:hover {
  background: var(--nx-bg);
}

.htmx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.htmx-progress.is-active::before {
  content: "";
  display: block;
  height: 100%;
  width: 35%;
  background: var(--nx-primary);
  animation: htmx-progress-slide 0.9s ease-in-out infinite;
}

@keyframes htmx-progress-slide {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(420%);
  }
}

/* account button: let it fit icon + Bootstrap's caret instead of clipping it into a circle */
.header-icon--account {
  width: auto;
  min-width: 40px;
  padding: 0 0.6rem 0 0.5rem;
  border-radius: var(--nx-radius-pill);
  gap: 0.3rem;
}

.header-icon--account::after {
  margin-left: 0;
  color: var(--nx-muted);
}

.category-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 116px;
  text-align: center;
}

.category-chip__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--nx-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  transition: transform var(--nx-transition), box-shadow var(--nx-transition);
}

.category-chip:hover .category-chip__icon {
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow);
}

.category-chip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-chip__initial {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--nx-primary);
  text-transform: uppercase;
}

.category-chip__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nx-text);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .category-chip {
    width: 150px;
  }

  .category-chip__icon {
    width: 128px;
    height: 128px;
  }

  .category-chip__label {
    font-size: 1rem;
  }}

/* ---- Featured Brands rail ---- */
.brand-rail-section {
  --brand-card-w: 200px;
  --brand-card-w-mobile: 148px;
  --brand-logo-bg: var(--jm-surface);
  --brand-border: var(--color-border, #e7e3da);
}

.brand-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.brand-rail-viewall {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--jm-surface);
  color: var(--jm-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.brand-rail-viewall:hover {
  background: var(--color-surface-muted-hover, #ece7db);
}

.brand-rail {
  position: relative;
}

.brand-rail-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.25rem 0.75rem;
  scrollbar-width: none;
  /* firefox */
}

.brand-rail-track::-webkit-scrollbar {
  display: none;
}

.brand-card {
  flex: 0 0 var(--brand-card-w);
  scroll-snap-align: start;
}

.brand-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.brand-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  border-radius: 14px;
  background: var(--brand-logo-bg);
  border: 1px solid var(--brand-border);
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow .2s ease, transform .2s ease;
}

.brand-card-link:hover .brand-card-logo {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.brand-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-card-logo-fallback {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted, #6b6257);
}

.brand-card-name {
  display: block;
  margin-top: 0.65rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--jm-ink);
}

/* Arrows */
.brand-rail-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jm-ink);
  cursor: pointer;
  z-index: 2;
  transition: background-color .15s ease;
}

.brand-rail-arrow:hover {
  background: var(--jm-surface);
}

.brand-rail-arrow--prev {
  left: -18px;
}

.brand-rail-arrow--next {
  right: -18px;
}

.brand-rail-arrow[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .brand-rail-section {
    --brand-card-w: var(--brand-card-w-mobile);
  }

  /* .brand-card-logo { height: 96px; border-radius: 12px; } */
  .brand-card-name {
    font-size: 0.85rem;
  }

  .brand-rail-arrow {
    display: none;
  }

  .brand-rail-track {
    padding-left: 0;
    padding-right: 0;
  }

  .brand-card-logo {
    height: 96px;
    border-radius: 12px;
  }}

[dir="rtl"] .brand-card-name {
  text-align: right;
}

[dir="rtl"] .brand-rail-arrow--prev {
  left: auto;
  right: -18px;
}

[dir="rtl"] .brand-rail-arrow--next {
  right: auto;
  left: -18px;
}

/* ============================================
   Gift Builder — section cards
   ============================================ */
.gift-builder .builder-section {
  padding: 1.5rem;
  border: 1px solid var(--jm-border);
  border-radius: 14px;
  background: #fff;
}

.gift-builder .builder-section+.builder-section {
  margin-top: 1.25rem !important;
}

.gift-builder .section-title {
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--jm-ink);
}

/* ============================================
   Form controls — consistent focus/border treatment
   ============================================ */
.gift-builder .form-control,
.gift-builder .form-select {
  border: 1px solid var(--jm-border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.gift-builder .form-control:focus,
.gift-builder .form-select:focus {
  border-color: var(--jm-accent);
  box-shadow: 0 0 0 3px rgba(23,76,60, 0.12);
}

.gift-builder .form-label {
  font-weight: 500;
  color: var(--jm-ink);
  margin-bottom: 0.4rem;
}

/* ============================================
   Message preview
   ============================================ */
.message-preview-panel {
  color: var(--color-ink-muted, #6b6257);
}

.message-preview-quote {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--jm-accent);
  border-radius: 8px;
  background: var(--jm-surface);
  font-style: italic;
  color: var(--jm-ink);
  min-height: 2.5rem;
}

.message-preview-quote.is-empty {
  color: var(--color-ink-muted, #a49c8f);
  font-style: italic;
}

/* ============================================
   Greeting card gallery
   ============================================ */
.greeting-card-gallery .card-option {
  cursor: pointer;
  border: 2px solid var(--jm-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.greeting-card-gallery .card-option:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.greeting-card-gallery .card-option.border-nx {
  border-color: var(--jm-accent);
  box-shadow: 0 0 0 3px rgba(23,76,60, 0.12);
}

.greeting-card-gallery .card-img-top {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--jm-surface);
  /* shows while loading, or if broken */
}

.greeting-card-gallery .card-body {
  border-top: 1px solid var(--jm-border);
  font-weight: 500;
}

/* ============================================
   Swatch options 
   ============================================ */
.swatch-option {
  border-radius: 999px !important;
  padding: 0.5rem 1.1rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--jm-border) !important;
  color: var(--jm-ink) !important;
  background: #fff !important;
  transition: all .15s ease;
}

.swatch-option:hover {
  border-color: var(--jm-accent) !important;
  color: var(--jm-accent) !important;
}

/* Checked state — the <input> is visually hidden (d-none),
   so we style the sibling label based on :has() */
.swatch-option:has(input:checked) {
  background: var(--jm-accent) !important;
  border-color: var(--jm-accent) !important;
  color: #fff !important;
}

/* ============================================
   Add-on cards
   ============================================ */
.addon-card {
  border: 1px solid var(--jm-border);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.addon-card:has(input:checked) {
  border-color: var(--jm-accent);
  box-shadow: 0 0 0 2px rgba(23,76,60, 0.12);
}

/* ============================================
   Order Preview sidebar
   ============================================ */
.order-preview {
  border: 1px solid var(--jm-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.order-preview__header {
  padding: 1rem 1.25rem;
  background: var(--jm-surface);
  border-bottom: 1px solid var(--jm-border);
}

.order-preview__body {
  padding: 1.25rem;
}

.order-preview-list {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.6rem;
  column-gap: 1rem;
  margin: 0;
}

.order-preview-list dt {
  color: var(--color-ink-muted, #6b6257);
  font-weight: 500;
}

.order-preview-list dd {
  margin: 0;
  text-align: right;
  color: var(--jm-ink);
}

.order-preview__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jm-border);
  font-weight: 600;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 991.98px) {
  .gift-builder .builder-section {
    padding: 1.1rem;
  }

  .greeting-card-gallery .card-img-top {
    height: 110px;
  }

  #order-preview {
    position: static !important;
  }}

/* ============================================
   Wishlist
   ============================================ */

.wishlist-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  border: 1px solid var(--nx-border-light);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  transition: transform var(--nx-transition), box-shadow var(--nx-transition);
}

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

.wishlist-card__actions {
  padding: 0.75rem;
  border-top: 1px solid var(--nx-border-light);
  background: var(--nx-white);
}

/* ==========================================================================
   STOREFRONT HOMEPAGE
   ========================================================================== */

@media (min-width: 1400px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: var(--jm-max);
  }}

.jm-body {
  background: var(--jm-white);
  color: var(--jm-ink);
}

.jm-section {
  padding: calc(var(--jm-space) * 4) 0;
}

/* ----- Header ----- */
.jm-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--jm-border-light);
  box-shadow: var(--jm-shadow-sm);
  overflow: visible;
  transition: transform 0.28s ease;
}

@media (max-width: 991.98px) {
  @keyframes jm-marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
  }}

.jm-wish-btn.is-active {
  background: var(--jm-accent);
  border-color: var(--jm-accent);
  color: #fff;
}

.jm-wish-btn.is-active svg {
  fill: currentColor;
}

@keyframes jm-search-vibrate {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  10% {
    transform: translate3d(-1px, 0, 0) rotate(-6deg);
  }

  20% {
    transform: translate3d(1px, 0, 0) rotate(6deg);
  }

  30% {
    transform: translate3d(-1px, 0, 0) rotate(-4deg);
  }

  40% {
    transform: translate3d(1px, 0, 0) rotate(4deg);
  }

  50%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes jm-search-tip-pulse {

  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.92;
    transform: translateY(2px);
  }
}

/* Sticky WhatsApp enquiry — bottom-right circular FAB */
.jm-wa-float {
  position: fixed;
  right: 14px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform var(--jm-transition), box-shadow var(--jm-transition);
}

.jm-wa-float:hover,
.jm-wa-float:focus-visible {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.jm-wa-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.jm-wa-float__pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
  animation: jm-wa-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes jm-wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (min-width: 992px) {
  .jm-wa-float {
    right: 22px;
    bottom: 24px;
  }}

body.mobile-search-open .jm-wa-float {
  opacity: 0;
  pointer-events: none;
}

/* Shared product-rail card width (Featured + New Arrivals) */
:root {
  --jm-rail-card-w: 240px;
}

@media (min-width: 1200px) {
  :root {
    --jm-rail-card-w: 260px;
  }}

.jm-promo {
  position: relative;
  border-radius: var(--jm-radius-lg);
  overflow: hidden;
  min-height: 100%;
  background: var(--jm-accent-soft);
  color: var(--jm-ink);
  box-shadow: var(--jm-shadow);
}

.jm-promo__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  min-height: 360px;
  max-width: 100%;
  padding: 1.15rem;
}

.jm-promo__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jm-accent);
  margin-bottom: 0.45rem;
}

.jm-promo__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--jm-ink);
  margin: 0 0 0.45rem;
}

.jm-promo__text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--jm-slate);
  margin: 0 0 1rem;
}

.jm-promo .btn-nx {
  background: var(--jm-accent);
  border-color: var(--jm-accent);
  color: #fff;
  align-self: flex-start;
}

.jm-promo .btn-nx:hover {
  background: var(--jm-accent-dark);
  border-color: var(--jm-accent-dark);
  color: #fff;
}

.jm-promo--wide .jm-promo__inner {
  min-height: 220px;
}

.jm-promo-banner {
  display: block;
  border-radius: var(--jm-radius-lg);
  overflow: hidden;
  box-shadow: var(--jm-shadow);
  transition: transform var(--jm-transition), box-shadow var(--jm-transition);
}

.jm-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--jm-shadow-lg);
}

.jm-promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .jm-promo__inner {
    min-height: 220px;
  }}
.product-grid-item {
  display: flex;
  align-items: stretch;
}
.jm-pdp-buybox__stock.is-in {
  color: var(--jm-success);
}
.jm-pdp-buybox__stock.is-low {
  color: #f97316 !important;
}
.jm-pdp-buybox__stock.is-out {
  color: #dc2626 !important;
}

/* small "Free Delivery" tag beside the price (product cards and the product page) */
.jm-free-delivery {
  flex: 0 0 auto;
  align-self: center;
  border-radius: 999px;
  background: none;
  padding: 0;
  color: var(--jm-success);
  font-size: 0.4rem;
  overflow: visible;
  padding-left: 3px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.jm-pdp-buybox__price-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jm-pdp-buybox__price-group .jm-free-delivery {
  font-size: 0.65rem;
  padding: 0.18rem 0.5rem;
}

/* ----- Brands ----- */
.jm-brands__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.jm-brands__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--jm-border-light);
  border-radius: var(--jm-radius-lg);
  background: #fcfdfc;
}

.jm-brand__link {
  display: grid;
  place-items: center;
  min-height: 56px;
  opacity: 0.72;
  filter: grayscale(1);
  transition: opacity var(--jm-transition), filter var(--jm-transition), transform var(--jm-transition);
}

.jm-brand__link:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

.jm-brand__link img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.jm-brand__fallback {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--jm-ink);
  font-size: 0.95rem;
}

/* ----- Reviews / metrics ----- */
.jm-reviews__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.jm-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.jm-review-card {
  height: 100%;
  padding: 1.35rem;
  background: var(--jm-white);
  border: 1px solid var(--jm-border-light);
  border-radius: var(--jm-radius-lg);
  box-shadow: var(--jm-shadow-sm);
}

.jm-review-card__stars {
  color: var(--jm-accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.jm-review-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--jm-ink);
  margin: 0 0 0.5rem;
}

.jm-review-card__body {
  font-size: 0.875rem;
  color: var(--jm-slate);
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

@media (max-width: 991.98px) {
  .jm-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}

@media (max-width: 575.98px) {
  .jm-reviews__grid {
    grid-template-columns: 1fr;
  }}

/* ----- Newsletter ----- */
.jm-newsletter {
  padding: calc(var(--jm-space) * 5) 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--jm-accent-soft) 100%);
}

.jm-newsletter__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--jm-white);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-lg);
  box-shadow: var(--jm-shadow-sm);
}

.jm-newsletter__copy {
  max-width: 28rem;
}

.jm-newsletter__form {
  display: flex;
  gap: 0.65rem;
  flex: 1;
  max-width: 440px;
}

.jm-newsletter__form .form-control {
  border-radius: var(--jm-radius);
  border-color: var(--jm-border);
  min-height: 48px;
}

.jm-newsletter__form .form-control:focus {
  border-color: var(--jm-accent);
  box-shadow: 0 0 0 3px rgba(39,132,92, 0.12);
}

@media (max-width: 767.98px) {
  .jm-newsletter__card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem;
  }

  .jm-newsletter__form {
    max-width: none;
    flex-direction: column;
  }}

/* ----- Footer ----- */
.jm-footer {
  background: #000000 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border-top: 0;
  margin-top: 0 !important;
  padding: 3.5rem 0 1.5rem !important;
}

.jm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 2rem;
}

.jm-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
  font-weight: 800;
}

.jm-footer__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.jm-footer h6 {
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.jm-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  padding: 0.3rem 0;
}

.jm-footer a:hover {
  color: #fff;
}

.jm-footer .footer-copy {
  color: rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.jm-footer__contact p {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* ----- Storefront locations (Contact + Footer) ----- */
.jm-locations {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.jm-locations__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--jm-ink);
}

.jm-locations__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--jm-slate, #55645c);
}

.jm-locations__body a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.jm-locations__body a:hover {
  color: var(--jm-accent);
}

.jm-locations--compact {
  gap: 0.85rem;
}

.jm-locations--compact .jm-locations__label {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jm-locations--compact .jm-locations__body {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.jm-locations--compact .jm-locations__body a {
  color: rgba(255, 255, 255, 0.92);
}

.jm-locations--compact .jm-locations__body a:hover {
  color: #fff;
}

.jm-footer__social {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .jm-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}

@media (max-width: 575.98px) {
  .jm-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }}

.homepage-sections {
  background: var(--jm-white);
}

.search-wrap--header {
  max-width: none;
}

/* ==========================================================================
   MOBILE STOREFRONT SYSTEM (Flipkart-compact / premium)
   ========================================================================== */

.jm-page-title {
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {

  /* ----- Global rhythm ----- */
  body.jm-body,
  body.nx-body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    font-size: 15px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-container,
  .jm-page {
    padding-top: 0.85rem !important;
    padding-bottom: 1.25rem !important;
  }

  .jm-page-title,
  .section-title {
    font-size: 1.15rem !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .btn-nx,
  .btn-outline-nx {
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    border-radius: 10px;
  }

  /* ----- Homepage sections ----- */
  .jm-section {
    padding: 0.85rem 0;
  }

  :root {
    --jm-rail-card-w: 176px;
  }

  .jm-promo__inner {
    min-height: 170px;
    padding: 0.85rem;
  }

  .jm-promo__title {
    font-size: 1.05rem;
  }

  .jm-promo__text {
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
  }

  .jm-brands__header {
    margin-bottom: 0.85rem;
  }

  .jm-brands__track {
    gap: 1rem 1.25rem;
    padding: 1rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .jm-brands__track::-webkit-scrollbar {
    display: none;
  }

  .jm-brand__link img {
    max-height: 32px;
  }

  .jm-reviews__intro {
    margin-bottom: 0.85rem;
  }

  .jm-reviews__grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .jm-review-card {
    padding: 1rem;
  }

  .jm-review-card__title {
    font-size: 0.9rem;
  }

  .jm-review-card__body {
    font-size: 0.8rem;
  }

  .jm-newsletter {
    padding: 1rem 0 1.35rem;
  }

  .jm-newsletter__card {
    padding: 1rem;
    gap: 0.85rem;
    border-radius: 12px;
  }

  .jm-newsletter__form {
    flex-direction: column;
    max-width: none;
    gap: 0.5rem;
  }

  .jm-newsletter__form .form-control {
    min-height: 44px;
    font-size: 0.875rem;
  }

  .jm-footer {
    padding: 2rem 0 1.15rem !important;
  }

  .jm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1rem;
  }

  .jm-footer__brand {
    grid-column: 1 / -1;
  }

  .jm-footer h6 {
    font-size: 0.72rem;
    margin-bottom: 0.55rem;
  }

  .jm-footer a,
  .jm-footer__contact p {
    font-size: 0.8rem;
  }

  .jm-footer .footer-copy {
    margin-top: 1.35rem;
    padding-top: 0.85rem;
    font-size: 0.7rem;
  }

  /* ----- PLP ----- */
  .plp-toolbar {
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .jm-plp-count,
  .plp-toolbar .section-subtitle {
    margin-top: 0.15rem !important;
    font-size: 0.75rem;
  }
  .plp-filter-toggle {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .product-grid-inner {
    --bs-gutter-x: 0.55rem;
    --bs-gutter-y: 0.55rem;
  }

  .plp-pagination {
    margin-top: 1rem !important;
    gap: 0.5rem !important;
  }

  .plp-pagination .btn {
    min-height: 36px;
  }

  /* ----- PDP ----- */
  .jm-pdp-buybox__title,
  .jm-pdp .pdp-info h1,
  .product-detail .pdp-info h1 {
    font-size: 1.28rem;
    margin-bottom: 0.55rem;
  }

  .jm-pdp-buybox__meta,
  .jm-pdp .pdp-meta,
  .product-detail .pdp-meta {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .jm-pdp-buybox__price,
  .jm-pdp .pdp-price,
  .product-detail .pdp-price {
    font-size: 1.4rem;
  }

  .jm-breadcrumb .breadcrumb {
    font-size: 0.72rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .jm-pdp-gallery__stage {
    border-radius: 14px;
  }

  .jm-pdp-gallery__image {
    padding: 0.85rem;
  }

  .product-detail {
    padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
  }

  /* ----- Cart / Checkout ----- */
  .checkout-page .section-title,
  .checkout-page .jm-page-title {
    margin-bottom: 0.75rem;
  }

  .checkout-step {
    padding: 0.9rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .checkout-step h2 {
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
  }

  .cart-page-line {
    padding: 0.75rem !important;
    gap: 0.65rem !important;
  }

  .cart-page-line .cart-line__img-wrap {
    width: 64px !important;
    height: 64px !important;
  }

  .cart-page-line .cart-line__name {
    font-size: 0.8rem;
  }

  .cart-summary-row {
    font-size: 0.8rem;
  }

  .cart-summary-total {
    font-size: 0.95rem;
  }

  .qty-stepper__btn {
    width: 32px;
    height: 32px;
  }

  .qty-stepper__value {
    min-width: 28px;
    font-size: 0.8rem;
  }

  .offcanvas {
    max-width: min(100vw, 400px);
  }

  .offcanvas.offcanvas-bottom {
    max-width: 100vw;
  }

  .cart-line {
    padding: 0.7rem 0;
    gap: 0.65rem;
  }

  .cart-line__img-wrap {
    width: 56px;
    height: 56px;
  }

  .cart-drawer-footer {
    padding: 0.75rem;
  }

  /* ----- Wishlist ----- */
  .wishlist-card__actions {
    padding: 0 0.55rem 0.55rem;
  }

  .wishlist-card__actions .btn {
    min-height: 34px;
    font-size: 0.72rem;
  }

  /* ----- Auth / forms ----- */
  .form-control,
  .form-select {
    min-height: 42px;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .form-control-sm,
  .form-select-sm {
    min-height: 38px;
    font-size: 0.8125rem;
  }}

@media (max-width: 575.98px) {
  :root {
    --jm-rail-card-w: 168px;
  }

  .jm-footer__grid {
    grid-template-columns: 1fr;
  }}

/* Quick-view modal mobile */
@media (max-width: 767.98px) {
  #jmQuickViewModal .modal-dialog {
    max-width: 340px;
    margin: 1rem auto;
  }}

/* Extra mobile density polish */
@media (max-width: 991.98px) {

  .homepage-sections>section,
  .homepage-sections>.jm-section {
    scroll-margin-top: 8px;
  }

  /* Checkout CTA full-width on mobile */
  .checkout-page .btn-nx,
  .checkout-page .btn-outline-nx {
    width: 100%;
  }

  .cart-drawer-footer .btn,
  .cart-drawer-footer a.btn {
    width: 100%;
  }}

#jm-categories {
  scroll-margin-top: calc(var(--jm-header-sticky-offset, 56px) + 12px);
}

@media (max-width: 991.98px) {

  .jm-promo__inner {
    min-height: 180px;
  }

  /* Production live-search overlay polish */
  .mobile-search__sheet {
    background: #fff;
  }

  .mobile-search__bar {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .mobile-search__field {
    border-radius: 12px;
    background: #f4f7f5;
    border: 1px solid var(--jm-border);
  }

  .mobile-search__input {
    font-size: 0.9rem;
    min-height: 44px;
  }

  .mobile-search__results {
    padding: 0.35rem 0.5rem 1rem;
  }}

@media (min-width: 992px) {
  :root {
    --jm-header-sticky-offset: 148px;
  }}

.volume-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--jm-accent) 0%, var(--jm-accent) var(--slider-fill, 0%), #dee2e6 var(--slider-fill, 0%), #dee2e6 100%);
}

.volume-slider::-moz-range-track {
  background: linear-gradient(to right, var(--jm-accent) 0%, var(--jm-accent) var(--slider-fill, 0%), #dee2e6 var(--slider-fill, 0%), #dee2e6 100%);
}

/* Mobile Bottom Sheet Modal */
@media (max-width: 991.98px) {
  .modal-dialog.modal-dialog-bottom-mobile {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    margin: 0;
  }
  
  .modal-dialog.modal-dialog-bottom-mobile .modal-content {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    width: 100%;
    border-radius: 1rem 1rem 0 0 !important;
  }

  .modal.fade .modal-dialog.modal-dialog-bottom-mobile {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
  }
  
  .modal.show .modal-dialog.modal-dialog-bottom-mobile {
    transform: translateY(0);
  }}

/* prevent zoom on ios mobile for form inputs */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }}
.plp-filters-desktop {
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
