/* Keep Mango Grotesque loaded */
@font-face {
  font-family: "Mango Grotesque";
  src: url("https://db.onlinewebfonts.com/t/0d7c90bf2d5c8dcc4fa27a5ba6cbad81.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #72080a;
  --color-accent-yellow: #f4b740;
  --color-accent-green: #6d862a;
  --color-accent-orange: #d65238;
  --color-dark: #330208;
  --color-bg: #efece1;
  --white: #ffffff;

  --font-heading: "Mango Grotesque", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --shadow-soft: 0 10px 25px rgba(51, 2, 8, 0.08);
  --shadow-card: 0 8px 20px rgba(51, 2, 8, 0.12);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  background-image: url('./images/background.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0px;
  overflow: visible;
  z-index: 0;
}

.main-layout {
  display: block;
}

.main-content {
  width: 100%;
}

.summary-sidebar {
  display: none;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

.section {
  margin-bottom: 3rem;
}

.section__header h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
}

.section__header p {
  margin: 0;
  color: black;
}

.section__content {
  max-width: 1300px;
}

.hero {
  padding: 1rem 0 0.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero__helper {
  font-size: 0.95rem;
  color: rgba(51, 2, 8, 0.8);
}

.eyebrow {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-accent-orange);
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(51, 2, 8, 0.08);
  z-index: 20;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
  box-shadow: none;
}

.site-header__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  overflow: hidden;
}

.site-header__inner img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
}

.contact-banner {
  background: rgba(114, 8, 10, 0.06);
  border: 1px solid rgba(51, 2, 8, 0.1);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.category-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(51, 2, 8, 0.1);
  z-index: 18;
  box-shadow: 0 2px 8px rgba(51, 2, 8, 0.08);
  width: 100%;
}

.category-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav__inner::-webkit-scrollbar {
  display: none;
}

.category-nav__tab {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(51, 2, 8, 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.category-nav__tab:hover {
  color: var(--color-primary);
  background: rgba(114, 8, 10, 0.04);
}

.category-nav__tab[aria-pressed="true"] {
  color: var(--color-bg);
  border-bottom-color: var(--color-primary);
  background: rgba(114, 8, 10, 1);
}

.product-section {
  scroll-margin-top: 80px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  position: relative;
  background: #fff;
  border-bottom: 1px solid rgba(51, 2, 8, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 0;
  transition: background 0.2s ease;
  gap: 1rem;
}

.product-card:hover:not(.product-card--selected) {
  background: rgba(114, 8, 10, 0.02);
}

.product-card__image {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(51, 2, 8, 0.08);
  background: #f5f5f5;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1rem;
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin: 0;
  color: black;
  font-weight: 600;
}

.product-card__description {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}

.product-card__description--muted {
  color: rgba(0, 0, 0, 0.5);
}

.product-card__description--italic {
  font-style: italic;
  margin-top: 0.5rem;
}

.product-card__quantity-selector {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.product-card__quantity-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: center;
  width: 100%;
  margin-top: 0.5px;
}

.product-card__quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card__quantity-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}

.product-card__quantity-btn:hover {
  background: rgba(114, 8, 10, 0.1);
  transform: scale(1.05);
}

.product-card__quantity-btn:active {
  transform: scale(0.95);
}

.product-card__quantity-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  width: 4.5rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(51, 2, 8, 0.2);
  border-radius: 8px;
  background: #fff;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-sizing: border-box;
}

.product-card__quantity-display:hover {
  background-color: rgba(114, 8, 10, 0.05);
  border-color: rgba(114, 8, 10, 0.3);
  color: var(--color-primary);
}

.product-card__quantity-display:active {
  transform: scale(0.95);
}

.product-card__quantity-display:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.product-card__quantity-display::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid rgba(51, 2, 8, 0.5);
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  transition: border-top-color 0.2s ease;
  flex-shrink: 0;
}

.product-card__quantity-display:hover::after {
  border-top-color: var(--color-primary);
}

.product-card--selected {
  background: rgba(114, 8, 10, 0.15);
}

.product-card--selected:hover {
  background: rgba(114, 8, 10, 0.18);
}

.product-card--selected .product-card__quantity-btn {
  background: var(--color-primary);
  color: #fff;
}

.product-card--selected .product-card__quantity-btn:hover {
  background: rgba(114, 8, 10, 0.9);
}

.selection-warning {
  margin-top: 0.75rem;
  color: var(--color-dark);
  background: rgba(214, 82, 56, 0.1);
  border-left: 4px solid var(--color-accent-orange);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.selection-warning--visible {
  opacity: 1;
  transform: translateY(0);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.form-field--full:has(#delivery-date) {
  margin-top: 0.2rem;
}

.form-field--full:has(#additional-info) {
  margin-top: 0.5rem;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  border: 1px solid rgba(51, 2, 8, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-input-wrapper input {
  flex: 1;
  padding-right: 3rem;
}

.date-picker-btn {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(51, 2, 8, 0.6);
  transition: color 0.2s ease;
  border-radius: 6px;
}

.date-picker-btn:hover {
  color: var(--color-primary);
  background: rgba(114, 8, 10, 0.05);
}

.date-picker-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Date Picker Calendar */
.date-picker-calendar {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.date-picker-calendar[aria-hidden="false"] {
  display: flex;
}

.date-picker-calendar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 2, 8, 0.6);
  backdrop-filter: blur(4px);
}

.date-picker-calendar__content {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(51, 2, 8, 0.3);
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

.date-picker-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.date-picker-calendar__nav-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-picker-calendar__nav-btn:hover {
  background: rgba(114, 8, 10, 0.1);
}

.date-picker-calendar__nav-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.date-picker-calendar__month-year {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.date-picker-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.date-picker-calendar__weekday {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(51, 2, 8, 0.6);
  padding: 0.5rem 0;
}

.date-picker-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.date-picker-calendar__day {
  background: transparent;
  border: none;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--color-dark);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}

.date-picker-calendar__day:hover {
  background: rgba(114, 8, 10, 0.1);
  color: var(--color-primary);
}

.date-picker-calendar__day:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.date-picker-calendar__day--empty {
  cursor: default;
  pointer-events: none;
}

.date-picker-calendar__day--empty:hover {
  background: transparent;
}

.date-picker-calendar__day--today {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.date-picker-calendar__day--today:hover {
  background: rgba(114, 8, 10, 0.9);
  color: #fff;
}

.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-wrapper input {
  width: 100%;
  box-sizing: border-box;
}

.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(51, 2, 8, 0.2);
  border-radius: 10px;
  margin-top: 0.25rem;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(51, 2, 8, 0.15);
  box-sizing: border-box;
}

.autocomplete-dropdown::-webkit-scrollbar {
  width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: rgba(51, 2, 8, 0.05);
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(51, 2, 8, 0.2);
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 2, 8, 0.3);
}

.autocomplete-option {
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(51, 2, 8, 0.05);
}

.autocomplete-option:last-child {
  border-bottom: none;
}

.autocomplete-option:hover,
.autocomplete-option--highlighted {
  background: rgba(114, 8, 10, 0.08);
  color: var(--color-primary);
}

.autocomplete-option--other {
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid rgba(51, 2, 8, 0.1);
  margin-top: 0.25rem;
  padding-top: 0.875rem;
}

.autocomplete-option--other:hover,
.autocomplete-option--other.autocomplete-option--highlighted {
  background: rgba(114, 8, 10, 0.12);
}

.autocomplete-option--no-results {
  color: rgba(51, 2, 8, 0.5);
  font-style: italic;
  cursor: default;
}

.autocomplete-option--no-results:hover {
  background: transparent;
  color: rgba(51, 2, 8, 0.5);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(114, 8, 10, 0.15);
}

.form-field__error {
  color: var(--color-accent-orange);
  font-size: 0.85rem;
  min-height: 1.1rem;
  margin: 0.3rem 0 0;
}

.form-field:has(#referral-source) {
  display: none;
}

.form-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.form-field label[for="confirmation"] {
  font-weight: 600;
  margin-top: 0;
}

.form-field:has(#confirmation) {
  margin-top: 0.25rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(114, 8, 10, 0.25);
}

.btn--primary:hover,
.btn--primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 15px 25px rgba(51, 2, 8, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(51, 2, 8, 0.25);
}

.select-all-container {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 1rem;
}

.btn--select-all {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.btn--select-all:hover,
.btn--select-all:focus {
  background: rgba(114, 8, 10, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(114, 8, 10, 0.15);
}

.btn--select-all:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(114, 8, 10, 0.1);
}

.btn--select-all.btn--select-all--active {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.btn--select-all.btn--select-all--active:hover,
.btn--select-all.btn--select-all--active:focus {
  background: var(--color-primary);
  color: var(--color-bg);
}

.summary {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.summary__details {
  flex: 1;
}

.summary__items {
  min-height: 60px;
}

.summary__empty {
  color: rgba(51, 2, 8, 0.6);
  font-style: italic;
  margin: 0;
  padding: 1rem 0;
}

.summary__category {
  margin-bottom: 1.25rem;
}

.summary__category:last-child {
  margin-bottom: 0;
}

.summary__category-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.summary__items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.summary__header {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(51, 2, 8, 0.15);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.summary__header--product {
  text-align: left;
}

.summary__header--cases {
  text-align: right;
}

.summary__item-row {
  border-bottom: 1px solid rgba(51, 2, 8, 0.08);
}

.summary__item-row:last-child {
  border-bottom: none;
}

.summary__item {
  padding: 0.5rem 0;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.summary__item--product {
  text-align: left;
}

.summary__item--cases {
  text-align: right;
  font-weight: 600;
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(51, 2, 8, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.summary__total-label {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.summary__total-value {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.summary__action {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(51, 2, 8, 0.1);
  padding-top: 1rem;
}

.summary__action--desktop {
  display: none;
}

.form-submit-desktop {
  display: none;
  margin-top: 1.5rem;
}


.summary-footer-mobile {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(51, 2, 8, 0.15);
  border-top: 1px solid rgba(51, 2, 8, 0.1);
  z-index: 100;
  border-radius: 18px 18px 0 0;
}

.summary-footer-mobile__compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.summary-footer-mobile__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-footer-mobile__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 600;
}

.summary-footer-mobile__stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(51, 2, 8, 0.7);
}

.summary-footer-mobile__submit {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.summary-footer-mobile__toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.summary-footer-mobile__toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.summary-footer-mobile[aria-expanded="true"] .summary-footer-mobile__toggle-icon {
  transform: rotate(180deg);
}

.summary-footer-mobile__expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.summary-footer-mobile[aria-expanded="true"] .summary-footer-mobile__expanded {
  max-height: 60vh;
  overflow-y: auto;
}

.summary-footer-mobile__expanded-content {
  padding: 1.5rem;
  border-top: 1px solid rgba(51, 2, 8, 0.1);
}

.summary-footer-mobile__expanded-content .summary__category {
  margin-bottom: 1rem;
}

.summary-footer-mobile__expanded-content .summary__category-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.summary-footer-mobile__expanded-content .summary__item {
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.summary-footer-mobile__expanded-content .summary__table {
  margin-top: 0.5rem;
}

.summary-footer-mobile__expanded-content .summary__header {
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.summary-footer-mobile__expanded-content .summary__item {
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: rgba(51, 2, 8, 0.6);
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 2, 8, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(51, 2, 8, 0.3);
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

.modal__content::-webkit-scrollbar {
  width: 8px;
}

.modal__content::-webkit-scrollbar-track {
  background: rgba(51, 2, 8, 0.05);
  border-radius: 4px;
}

.modal__content::-webkit-scrollbar-thumb {
  background: rgba(51, 2, 8, 0.2);
  border-radius: 4px;
}

.modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 2, 8, 0.3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.modal__body {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--color-dark);
}

.modal__body a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.modal__body a:hover,
.modal__body a:focus {
  color: var(--color-accent-orange);
}

.modal__close {
  width: 100%;
}

/* Quantity Picker Modal */
.quantity-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  touch-action: none;
  overscroll-behavior: contain;
}

.quantity-picker-modal[aria-hidden="false"] {
  display: flex;
}

.quantity-picker-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 2, 8, 0.6);
  backdrop-filter: blur(4px);
  touch-action: none;
}

.quantity-picker-modal__content {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(51, 2, 8, 0.3);
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

.quantity-picker-modal__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  text-align: center;
}

.quantity-picker-modal__product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1rem;
}

.quantity-picker-modal__product-image-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
}

.quantity-picker-modal__product-name {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin: 0 0 1.5rem;
  font-weight: 600;
  text-align: center;
}

.quantity-picker-modal__input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
}

.quantity-picker-wheel {
  width: 120px;
  height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  background: #fff;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  overscroll-behavior: none;
  will-change: scroll-position;
}

.quantity-picker-wheel::-webkit-scrollbar {
  display: none;
}

.quantity-picker-wheel::before,
.quantity-picker-wheel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}

.quantity-picker-wheel::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.quantity-picker-wheel::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.quantity-picker-wheel__option {
  height: 50px;
  min-height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(51, 2, 8, 0.4);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
  position: relative;
}

.quantity-picker-wheel__option:hover {
  color: rgba(51, 2, 8, 0.6);
}

.quantity-picker-wheel__option--selected {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  transform: scale(1.1);
  z-index: 2;
}

.quantity-picker-wheel__option--selected:hover {
  color: var(--color-dark);
}

.quantity-picker-wheel__option--selected::before,
.quantity-picker-wheel__option--selected::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(114, 8, 10, 0.2);
}

.quantity-picker-wheel__option--selected::before {
  top: 0;
}

.quantity-picker-wheel__option--selected::after {
  bottom: 0;
}

.quantity-picker-wheel__spacer {
  height: 60px;
  flex-shrink: 0;
}

.quantity-picker-native-select {
  width: 200px;
  height: 60px;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  background: #fff;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  text-align-last: center;
  padding: 0 1rem;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.quantity-picker-native-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(114, 8, 10, 0.15);
}

.quantity-picker-native-select option {
  text-align: center;
  padding: 0.5rem;
}

.quantity-picker-modal__label {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-dark);
}

.quantity-picker-modal__buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.quantity-picker-modal__cancel,
.quantity-picker-modal__confirm {
  flex: 1;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: rgba(114, 8, 10, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(114, 8, 10, 0.15);
}

.btn--secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(114, 8, 10, 0.1);
}

@media (max-width: 639px) {
  .contact-banner {
    padding: 0.75rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .contact-banner h1 {
    font-size: clamp(2.1rem, 7.5vw, 2.75rem) !important;
    white-space: nowrap;
    line-height: 1.2;
  }

  .contact-banner p {
    font-size: clamp(0.7rem, 2.5vw, 0.9rem) !important;
    white-space: nowrap;
    margin: 0.5rem 0 0 !important;
    line-height: 1.3;
  }

  .quantity-picker-modal__content {
    padding: 1.5rem;
    max-width: 90%;
  }

  .quantity-picker-modal__title {
    font-size: 2rem;
  }

  .quantity-picker-modal__product-image-img {
    width: 150px;
    height: 150px;
  }

  .quantity-picker-modal__product-name {
    font-size: 1.3rem;
  }

  .quantity-picker-wheel {
    width: 100px;
    height: 130px;
  }

  .quantity-picker-wheel__option {
    height: 45px;
    font-size: 1.5rem;
  }

  .quantity-picker-wheel__option--selected {
    font-size: 1.75rem;
  }

  .quantity-picker-native-select {
    width: 100%;
    max-width: 250px;
    height: 70px;
    font-size: 2.5rem;
  }

  .quantity-picker-modal__label {
    font-size: 1.1rem;
  }

  .quantity-picker-modal__buttons {
    flex-direction: column;
  }

  .quantity-picker-modal__cancel,
  .quantity-picker-modal__confirm {
    width: 100%;
  }

  .product-card {
    padding: 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.75rem 1rem;
    width: 100%;
    max-width: 100%;
    align-items: start;
  }

  .product-card__body {
    grid-column: 1;
    grid-row: 1 / -1;
    padding-right: 1rem;
    gap: 0.35rem;
    min-width: 0;
  }

  .product-card__image {
    grid-column: 2;
    grid-row: 1;
    width: 85px;
    height: 85px;
    flex: none;
    align-self: center;
    justify-self: start;
    margin: 0;
    margin-right: 15px;
    position: relative;
  }

  .product-card__quantity-selector {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0;
    margin-top: 0;
    flex: none;
    justify-self: start;
    position: relative;
    pointer-events: none;
  }

  .product-card__quantity-controls {
    pointer-events: auto;
  }

  .product-card__quantity-btn--plus {
    position: absolute;
    top: -8px;
    left: 60px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(51, 2, 8, 0.2);
  }

  .product-card__quantity-label {
    display: none;
  }

  .product-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .product-card__description {
    font-size: 0.95rem;
  }

  .product-card__description--italic {
    font-size: 0.85rem;
  }

  .product-card__quantity-controls {
    gap: 0.5rem;
  }

  .product-card__quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .product-card__quantity-display {
    font-size: 1.1rem;
    width: 3.5rem;
  }

  .product-card__quantity-label {
    font-size: 0.75rem;
  }

  .category-nav__tab {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .category-nav__inner {
    justify-content: flex-start;
  }

  .summary-footer-mobile {
    display: block;
  }

  main {
    padding-bottom: 6rem;
  }
}

@media (min-width: 720px) {
  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .summary {
    gap: 2rem;
  }

  .summary__action {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 5rem;
  }

  .main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    position: relative;
  }

  .main-content {
    min-width: 0;
    grid-column: 1;
  }

  .summary-sidebar {
    display: block;
    grid-column: 2;
    height: fit-content;
    align-self: flex-start;
    position: sticky;
    top: 250px; /* adjust between ~120–180px if needed */
  }

  .summary {
    max-height: 80vh;
    overflow-y: hidden;
    transition: overflow-y 0.2s ease;
  }

  .summary:hover {
    overflow-y: auto;
  }

  .summary::-webkit-scrollbar {
    width: 8px;
  }

  .summary::-webkit-scrollbar-track {
    background: rgba(51, 2, 8, 0.05);
    border-radius: 4px;
  }

  .summary::-webkit-scrollbar-thumb {
    background: rgba(51, 2, 8, 0.2);
    border-radius: 4px;
  }

  .summary::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 2, 8, 0.3);
  }

  .summary__action--desktop {
    display: none;
  }

  .form-submit-desktop {
    display: block;
  }

  .summary-footer-mobile {
    display: none;
  }

  main {
    padding-bottom: 4rem;
  }
}
