@font-face {
  font-family: "Tiro Bangla";
  src: url("./TiroBangla-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tiro Bangla";
  src: url("./TiroBangla-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #f3efe4;
  --primary: #09332f;
  --white: #ffffff;
  --black: #2c2c2f;
  --gray: #4c5956;
  --facebook: #1877f2;
  --success: #16a34a;
  --shadow-default: 0 16px 24px -12px rgba(9, 51, 47, 0.16);
  --shadow-card: 0 40px 48px -16px rgba(9, 51, 47, 0.2);
  --shadow-strong: 0 24px 40px -16px rgba(9, 51, 47, 0.4);
  --page-pad: clamp(24px, 9.375vw, 180px);
  --card-width: 372px;
  --card-gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--black);
  font-family: "Tiro Bangla", serif;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--background);
  transition: opacity 360ms ease, visibility 360ms ease;
}

.loader-screen.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  position: relative;
  z-index: 1;
  width: min(348px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  width: 157px;
  height: 64px;
  object-fit: contain;
}

.progress-shell {
  width: 100%;
  height: 16px;
  padding: 2px;
  background: rgba(76, 89, 86, 0.2);
}

.progress-fill {
  width: 0%;
  height: 12px;
  background: var(--primary);
  transition: width 100ms linear;
}

.progress-text {
  margin: 0;
  width: 100%;
  min-height: 24px;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
}

.home-page {
  position: relative;
  height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--background);
  opacity: 1;
  transition: opacity 520ms ease;
}

.home-page.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.background-vector {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 1920px;
  height: 623px;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.loader-background-vector {
  position: absolute;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 136px;
  padding: 40px var(--page-pad);
}

.brand-link {
  display: inline-flex;
  width: 137px;
  height: 56px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 24px;
  border: 0;
  outline: 4px solid transparent;
  outline-offset: 0;
  color: var(--white);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

.social-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.facebook {
  background: var(--facebook);
  outline-color: rgba(24, 119, 242, 0.5);
}

.whatsapp {
  background: var(--success);
  outline-color: rgba(22, 163, 74, 0.5);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  text-transform: uppercase;
}

.social-icon-img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.product-stage {
  position: relative;
  z-index: 2;
  width: calc(100vw - (var(--page-pad) * 2));
  max-width: 1560px;
  margin: 64px auto 0;
  overflow: visible;
}

.product-viewport {
  width: 100%;
  overflow: visible;
}

.product-track {
  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  justify-content: flex-start;
  transform: translateX(0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-page.is-ready .product-card {
  opacity: 1;
  transform: translateX(0);
}

.product-card {
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  border: 0;
  padding: 0;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateX(160px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:nth-child(2) {
  transition-delay: 80ms;
}

.product-card:nth-child(3) {
  transition-delay: 160ms;
}

.product-card:nth-child(4) {
  transition-delay: 240ms;
}

.product-card:nth-child(5) {
  transition-delay: 320ms;
}

.product-card:hover,
.product-card:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(76, 89, 86, 0.2), var(--shadow-card);
}

.product-image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 308px;
  border-bottom: 1px solid rgba(76, 89, 86, 0.2);
  background: var(--white);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding: 24px 16px 16px;
  background: var(--white);
}

.product-title {
  align-self: stretch;
  margin: 0;
  min-height: 24px;
  font-size: 24px;
  line-height: 24px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.current-price {
  font-size: 32px;
  line-height: 32px;
}

.old-price {
  color: rgba(76, 89, 86, 0.6);
  font-size: 16px;
  line-height: 22px;
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.icon-button,
.order-button,
.carousel-arrow {
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow-default);
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: rgba(76, 89, 86, 0.2);
  color: var(--primary);
  font-size: 18px;
  padding: 0;
}

.icon-button-img {
  display: block;
  width: 18px;
  height: 18px;
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 10px 16px;
  background: rgba(9, 51, 47, 0.9);
  color: var(--white);
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.button-icon-img {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.order-button:hover,
.order-button:focus-visible,
.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--primary);
  box-shadow: var(--shadow-strong);
  outline: 0;
}

.cart-symbol {
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: rgba(9, 51, 47, 0.9);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 24px;
  transform: translateY(-50%);
}

.carousel-arrow[hidden] {
  display: none;
}

.carousel-arrow-img {
  display: block;
  width: 24px;
  height: 24px;
}

.carousel-arrow-left {
  left: -28px;
}

.carousel-arrow-right {
  right: -28px;
}

.category-bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px var(--page-pad);
  overflow: visible;
}

.category-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: default;
  padding: 48px 0;
  margin: -48px 0;
}

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

.category-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.category-card {
  display: flex;
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 0;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(76, 89, 86, 0.2), 0 16px 24px rgba(0, 0, 0, 0.06);
  color: var(--black);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 160ms ease;
}

.category-card:hover {
  box-shadow: inset 0 0 0 4px rgba(9, 51, 47, 0.2), var(--shadow-strong);
}

.category-card.is-active {
  box-shadow: inset 0 0 0 4px rgba(9, 51, 47, 0.9), var(--shadow-strong);
}

.category-card:not(.has-image) {
  justify-content: center;
}

.category-image {
  width: 104px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
}

.category-name {
  width: 100%;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --page-pad: 80px;
    --card-width: 251px;
    --card-gap: 24px;
  }

  .product-stage {
    width: min(1280px, calc(100vw - 160px));
  }

  .product-image-wrap {
    height: 208px;
  }

  .product-info {
    gap: 12px;
    padding: 20px 12px 12px;
  }

  .product-title,
  .current-price {
    font-size: 20px;
    line-height: 24px;
  }

  .order-button,
  .icon-button {
    height: 32px;
  }

  .icon-button {
    flex-basis: 32px;
    width: 32px;
    font-size: 15px;
  }

  .icon-button-img {
    width: 16px;
    height: 16px;
  }

  .order-button {
    padding: 8px 16px;
    font-size: 12px;
    line-height: 17px;
  }

  .button-icon-img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}

@media (max-width: 1180px) {
  :root {
    --card-width: 251px;
  }

  .site-header {
    min-height: 112px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .social-button {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 16px;
  }

  .product-stage {
    margin-top: 42px;
  }

  .product-image-wrap {
    height: 208px;
  }

  .product-info {
    gap: 12px;
    padding: 20px 12px 12px;
  }

  .product-title,
  .current-price {
    font-size: 20px;
    line-height: 24px;
  }

  .order-button,
  .icon-button {
    height: 32px;
  }

  .icon-button {
    flex-basis: 32px;
    width: 32px;
    font-size: 15px;
  }

  .order-button {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 17px;
  }
}

@media (max-width: 760px) {
  :root {
    --card-width: min(76vw, 251px);
    --card-gap: 16px;
  }

  .site-header {
    align-items: flex-start;
    min-height: auto;
    padding: 24px;
  }

  .brand-link {
    width: 98px;
    height: 40px;
  }

  .social-actions {
    gap: 8px;
  }

  .social-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .social-button span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .social-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .social-icon-img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .product-stage {
    width: calc(100vw - 48px);
    margin-top: 58px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .carousel-arrow-left {
    left: -14px;
  }

  .carousel-arrow-right {
    right: -14px;
  }

  .product-image-wrap {
    height: 184px;
  }

  .product-title {
    font-size: 18px;
    line-height: 24px;
  }

  .category-bar {
    padding: 24px;
  }

  .category-track {
    justify-content: flex-start;
    gap: 16px;
    padding-right: 24px;
    cursor: grab;
  }
}

@media (max-height: 780px) and (min-width: 900px) {
  .product-stage {
    margin-top: 24px;
  }

  .category-bar {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-root.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(9, 51, 47, 0.24);
  backdrop-filter: blur(8px);
}

.modal-shell {
  width: min(900px, calc(100vw - 32px));
  height: min(800px, calc(100svh - 32px));
  max-height: min(800px, calc(100svh - 32px));
  border: 1px solid rgba(76, 89, 86, 0.2);
  background: var(--background);
  box-shadow: 0 24px 60px rgba(9, 51, 47, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-panel-in 300ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.modal-shell.is-leaving {
  pointer-events: none;
  animation: modal-panel-out 220ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.modal-shell--details {
  padding: 20px;
  gap: 20px;
}

.modal-shell--order {
  padding: 24px;
  gap: 20px;
}

.modal-shell--confirmation {
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(76, 89, 86, 0.2);
}

.modal-title {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  line-height: 34px;
  font-weight: 400;
}

.modal-title--section {
  width: 100%;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 0;
  background: rgba(76, 89, 86, 0.2);
  box-shadow: var(--shadow-default);
  cursor: pointer;
}

.modal-close-icon {
  width: 16px;
  height: 16px;
}

.details-gallery-viewport {
  width: 100%;
  height: 280px;
  flex: 0 0 280px;
  overflow: hidden;
}

.details-gallery-track {
  --gallery-slide-width: 400px;
  --gallery-gap: 16px;
  display: flex;
  gap: var(--gallery-gap);
  height: 100%;
  width: max-content;
  animation: modal-gallery-scroll 24s linear infinite;
}

.details-gallery-viewport:hover .details-gallery-track {
  animation-play-state: paused;
}

.details-gallery-slide {
  flex: 0 0 var(--gallery-slide-width);
  width: var(--gallery-slide-width);
  height: 100%;
  background: var(--white);
  overflow: hidden;
}

.details-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-action-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.details-purchase-tools,
.order-purchase-tools {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

.order-purchase-tools {
  flex-direction: column;
  align-items: flex-end;
}

.variant-selector {
  display: grid;
  gap: 10px;
  width: 184px;
  min-width: 184px;
}

.variant-selector--compact {
  width: 160px;
  min-width: 160px;
  align-self: stretch;
}

.variant-selector-label {
  color: var(--primary);
  font-size: 16px;
  line-height: 22px;
}

.variant-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.variant-option {
  display: flex;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(76, 89, 86, 0.2);
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-default);
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
}

.variant-selector--compact .variant-option {
  flex-basis: 48px;
  width: 48px;
  height: 40px;
  min-width: 48px;
  min-height: 40px;
  padding: 4px;
  font-size: 16px;
  line-height: 16px;
}

.variant-option.is-active,
.variant-option:hover,
.variant-option:focus-visible {
  border-color: rgba(106, 208, 0, 0.95);
  box-shadow: inset 0 0 0 1px rgba(106, 208, 0, 0.95), var(--shadow-default);
  outline: 0;
}

.variant-option-value,
.variant-option-unit {
  display: block;
}

.variant-option-unit {
  font-size: 16px;
  line-height: 16px;
}

.variant-selector--compact .variant-option-unit {
  font-size: 14px;
  line-height: 14px;
}

.modal-divider {
  width: 100%;
  height: 1px;
  background: rgba(76, 89, 86, 0.2);
}

.details-copy-scroll,
.order-scroll-area {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 89, 86, 0.35) transparent;
}

.details-copy-scroll::-webkit-scrollbar,
.order-scroll-area::-webkit-scrollbar {
  width: 10px;
}

.details-copy-scroll::-webkit-scrollbar-thumb,
.order-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(76, 89, 86, 0.35);
}

.details-copy-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  padding-right: 8px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-section-title {
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
}

.details-section-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--gray);
  font-size: 16px;
  line-height: 22px;
}

.details-section-copy p,
.details-hero-line,
.confirmation-subtitle,
.confirmation-description {
  margin: 0;
}

.details-rich-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--gray);
  font-size: 16px;
  line-height: 22px;
}

.details-rich-copy h1,
.details-rich-copy h2,
.details-rich-copy h3,
.details-rich-copy h4,
.details-rich-copy p,
.details-rich-copy ul {
  margin: 0;
}

.details-rich-copy ul {
  padding-left: 20px;
}

.details-rich-copy strong,
.details-rich-copy b {
  color: var(--primary);
}

.details-hero-line {
  color: var(--primary);
  font-size: 20px;
  line-height: 28px;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 248px;
  height: 56px;
  background: var(--white);
  box-shadow: var(--shadow-default);
  overflow: hidden;
}

.quantity-control--compact {
  width: 198px;
  height: 40px;
}

.quantity-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 16px;
  border: 0;
  background: rgba(76, 89, 86, 0.2);
  box-shadow: var(--shadow-default);
  cursor: pointer;
}

.quantity-button--compact {
  width: 40px;
  height: 40px;
  padding: 10px;
}

.quantity-button--primary {
  background: rgba(9, 51, 47, 0.9);
}

.quantity-icon {
  width: 24px;
  height: 24px;
}

.quantity-button--compact .quantity-icon {
  width: 18px;
  height: 18px;
}

.quantity-center {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  flex: 1 1 auto;
}

.quantity-center--liquid {
  gap: 6px;
}

.quantity-number {
  color: var(--black);
  font-size: 32px;
  line-height: 32px;
}

.quantity-number--compact {
  font-size: 24px;
  line-height: 24px;
}

.quantity-unit {
  color: var(--gray);
  font-size: 16px;
  line-height: 22px;
}

.quantity-unit--compact {
  font-size: 14px;
  line-height: 20px;
}

.modal-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 24px;
  border: 0;
  background: rgba(9, 51, 47, 0.9);
  color: var(--white);
  box-shadow: var(--shadow-default);
  cursor: pointer;
  font-size: 24px;
  line-height: 34px;
  white-space: nowrap;
}

.modal-primary-button:hover,
.modal-primary-button:focus-visible {
  background: var(--primary);
  box-shadow: var(--shadow-strong);
  outline: 0;
}

.modal-primary-button:disabled,
.modal-primary-button.is-loading {
  cursor: progress;
  opacity: 0.72;
}

.modal-primary-button--wide {
  width: 258px;
  height: 56px;
}

.modal-primary-button--full {
  width: 100%;
}

.modal-primary-button--compact {
  min-height: 40px;
  height: 40px;
  padding: 10px 16px;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
}

.button-icon-img--lg {
  width: 24px;
  height: 24px;
}

.order-scroll-area {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  padding-right: 8px;
}

.order-product-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(76, 89, 86, 0.2);
}

.order-product-card {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.order-product-media {
  width: 120px;
  height: 100px;
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.order-product-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.order-product-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.order-product-title {
  margin: 0;
  color: var(--black);
  font-size: 24px;
  line-height: 24px;
  font-weight: 400;
}

.order-summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  color: var(--primary);
  font-size: 20px;
  line-height: 28px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(76, 89, 86, 0.3);
}

.summary-row--total {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-value {
  text-align: right;
}

.order-form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--black);
  font-size: 16px;
  line-height: 22px;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  background: rgba(76, 89, 86, 0.1);
}

.field-control--textarea {
  align-items: flex-start;
  min-height: 100px;
}

.field-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.8;
  filter: brightness(0) saturate(100%) invert(33%) sepia(10%) saturate(549%) hue-rotate(119deg) brightness(91%) contrast(89%);
}

.field-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  outline: 0;
}

.field-input::placeholder {
  color: rgba(76, 89, 86, 0.8);
}

.field-textarea {
  min-height: 76px;
  resize: vertical;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.payment-grid--single {
  grid-template-columns: 1fr;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 20px;
  border: 0;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(76, 89, 86, 0.2);
}

.payment-option.is-active {
  box-shadow: inset 0 0 0 4px rgba(9, 51, 47, 0.5);
}

.payment-option--locked {
  cursor: default;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.payment-badge--bkash {
  background: rgba(227, 0, 124, 0.12);
  color: #cf0d75;
}

.payment-badge--cod {
  background: rgba(9, 51, 47, 0.12);
  color: var(--primary);
}

.payment-label {
  flex: 1 1 auto;
  color: var(--primary);
  font-size: 20px;
  line-height: 28px;
}

.payment-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(76, 89, 86, 0.35);
}

.payment-radio.is-active {
  box-shadow: inset 0 0 0 7px rgba(9, 51, 47, 0.95);
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirmation-illustration {
  width: min(304px, 62vw);
  height: auto;
  display: grid;
  place-items: center;
}

.confirmation-illustration-image {
  display: block;
  width: 100%;
  height: auto;
}

.confirmation-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.confirmation-title {
  margin: 0;
  color: var(--primary);
  font-size: 48px;
  line-height: 48px;
  font-weight: 400;
}

.confirmation-subtitle {
  color: var(--primary);
  font-size: 24px;
  line-height: 24px;
}

.confirmation-description {
  color: var(--gray);
  font-size: 16px;
  line-height: 22px;
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-panel-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
}

@keyframes modal-gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * ((var(--gallery-slide-width) + var(--gallery-gap)) * var(--gallery-count))));
  }
}

@media (max-width: 1180px) {
  .modal-shell {
    height: min(760px, calc(100vh - 24px));
    max-height: min(760px, calc(100vh - 24px));
  }

  .modal-shell--details,
  .modal-shell--order,
  .modal-shell--confirmation {
    padding: 18px;
    gap: 18px;
  }

  .details-gallery-track {
    --gallery-slide-width: 320px;
  }

  .details-gallery-viewport {
    height: 232px;
    flex-basis: 232px;
  }

  .modal-title,
  .modal-title--section,
  .confirmation-subtitle,
  .payment-label,
  .order-summary-card,
  .details-hero-line {
    font-size: 20px;
    line-height: 28px;
  }

  .details-section-title {
    font-size: 18px;
    line-height: 24px;
  }

  .confirmation-title {
    font-size: 40px;
    line-height: 40px;
  }
}

@media (max-width: 760px) {
  .modal-backdrop {
    padding: 12px;
  }

  .modal-shell {
    width: min(100vw - 24px, 900px);
    height: min(680px, calc(100vh - 24px));
    max-height: min(680px, calc(100vh - 24px));
  }

  .modal-shell--details,
  .modal-shell--order,
  .modal-shell--confirmation {
    padding: 16px;
    gap: 16px;
  }

  .details-gallery-track {
    --gallery-slide-width: 260px;
    --gallery-gap: 12px;
  }

  .details-gallery-viewport {
    height: 196px;
    flex-basis: 196px;
  }

  .details-action-bar,
  .details-purchase-tools,
  .order-purchase-tools,
  .order-product-section,
  .payment-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .modal-primary-button--wide,
  .quantity-control,
  .quantity-control--compact {
    width: 100%;
  }

  .variant-selector,
  .variant-selector--compact {
    width: 100%;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .order-product-card {
    width: 100%;
  }

  .order-product-title,
  .product-title,
  .confirmation-subtitle,
  .modal-title {
    font-size: 18px;
    line-height: 24px;
  }

  .current-price,
  .quantity-number {
    font-size: 24px;
    line-height: 24px;
  }

  .quantity-number--compact {
    font-size: 20px;
    line-height: 24px;
  }

  .modal-primary-button {
    min-height: 48px;
    font-size: 16px;
    line-height: 22px;
    padding: 12px 16px;
  }

  .confirmation-illustration {
    width: min(260px, 72vw);
  }

  .confirmation-title {
    font-size: 36px;
    line-height: 36px;
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  :root {
    --card-width: 251px;
    --card-gap: 24px;
  }

  .site-header {
    align-items: center;
    padding: 40px 24px;
  }

  .brand-link {
    width: 137px;
    height: 56px;
  }

  .social-actions {
    gap: 24px;
  }

  .social-button {
    width: auto;
    min-height: 56px;
    padding: 16px 24px;
    gap: 12px;
    font-size: 20px;
  }

  .social-button span:first-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .social-icon-img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .category-bar {
    padding: 40px 24px;
  }

  .category-track {
    gap: 16px;
    width: 100%;
    justify-content: flex-start;
    cursor: grab;
    touch-action: pan-x;
  }

  .product-image-wrap {
    height: 208px;
  }

  .product-title,
  .current-price {
    font-size: 20px;
    line-height: 24px;
  }

  .order-button,
  .icon-button {
    height: 32px;
  }

  .icon-button {
    flex-basis: 32px;
    width: 32px;
  }

  .icon-button-img {
    width: 16px;
    height: 16px;
  }

  .order-button {
    padding: 8px 16px;
    font-size: 12px;
    line-height: 17px;
  }

  .button-icon-img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .modal-shell {
    width: min(680px, calc(100vw - 48px));
    height: min(720px, calc(100vh - 48px));
    max-height: min(720px, calc(100vh - 48px));
  }
}

@media (max-width: 640px) {
  :root {
    --card-width: 171px;
    --card-gap: 16px;
  }

  .home-page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .site-header {
    align-items: center;
    min-height: 96px;
    padding: 24px 16px;
  }

  .brand-link {
    width: 118px;
    height: 48px;
  }

  .social-actions {
    gap: 16px;
  }

  .social-button {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 12px;
  }

  .social-icon-img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .product-stage {
    position: absolute;
    top: 96px;
    right: 0;
    bottom: 168px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 16px;
    overflow: hidden;
  }

  .product-viewport {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .product-viewport::-webkit-scrollbar {
    display: none;
  }

  .product-track {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
    transform: translateX(0) !important;
    transition: none;
  }

  .product-card {
    height: auto;
    min-height: 247px;
  }

  .product-image-wrap {
    height: 142px;
  }

  .product-info {
    gap: 6px;
    padding: 8px 6px 6px;
  }

  .product-title {
    min-height: 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .current-price {
    font-size: 16px;
    line-height: 22px;
  }

  .old-price {
    font-size: 12px;
    line-height: 17px;
  }

  .card-actions {
    gap: 6px;
  }

  .order-button,
  .icon-button {
    height: 32px;
  }

  .icon-button {
    flex-basis: 32px;
    width: 32px;
  }

  .icon-button-img {
    width: 16px;
    height: 16px;
  }

  .order-button {
    padding: 8px 16px;
    font-size: 12px;
    line-height: 17px;
  }

  .button-icon-img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .carousel-arrow {
    display: none;
  }

  .category-bar {
    padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
    overflow: hidden;
    background: var(--background);
  }

.category-track {
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0 0 10px;
    cursor: grab;
    touch-action: pan-x;
  }
}

/* Modal precision overrides for upload build */
.modal-backdrop {
  padding: 16px;
}

.details-action-bar {
  align-items: center;
}

.details-purchase-tools {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.order-purchase-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.quantity-center {
  min-width: 0;
}

.order-product-section {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  min-height: 0;
  padding: 0 0 16px;
}

.order-product-card {
  width: 100%;
}

.order-summary-card {
  gap: 0;
}

.payment-option {
  box-shadow: inset 0 0 0 4px rgba(9, 51, 47, 0.12);
}

.payment-option.is-active {
  box-shadow: inset 0 0 0 4px rgba(9, 51, 47, 0.95);
}

.modal-footer {
  flex: 0 0 auto;
}

@media (min-width: 761px) and (max-width: 1500px) {
  .modal-backdrop {
    padding: 24px;
  }

  .modal-shell {
    width: min(680px, calc(100vw - 48px));
    height: min(720px, calc(100svh - 48px));
    max-height: min(720px, calc(100svh - 48px));
  }

  .modal-shell--details {
    padding: 20px;
    gap: 20px;
  }

  .modal-shell--order {
    padding: 24px;
    gap: 20px;
  }

  .modal-header {
    padding-bottom: 12px;
  }

  .modal-title {
    font-size: 24px;
    line-height: 34px;
  }

  .details-gallery-track {
    --gallery-slide-width: 286px;
    --gallery-gap: 16px;
  }

  .details-gallery-viewport {
    height: 200px;
    flex: 0 0 200px;
  }

  .details-action-bar {
    align-items: center;
    gap: 16px;
  }

  .details-purchase-tools {
    gap: 16px;
  }

  .variant-selector {
    width: 160px;
    min-width: 160px;
  }

  .variant-selector--compact {
    width: 160px;
    min-width: 160px;
  }

  .variant-option {
    flex-basis: 48px;
    width: 48px;
    height: 40px;
    min-width: 48px;
    min-height: 40px;
    padding: 4px;
    font-size: 16px;
    line-height: 16px;
  }

  .variant-option-unit {
    font-size: 14px;
    line-height: 14px;
  }

  .quantity-control {
    width: 198px;
    height: 40px;
  }

  .quantity-button {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .quantity-icon {
    width: 18px;
    height: 18px;
  }

  .quantity-number {
    font-size: 24px;
    line-height: 24px;
  }

  .quantity-unit {
    font-size: 14px;
    line-height: 20px;
  }

  .modal-primary-button {
    min-height: 40px;
    height: 40px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 16px;
    line-height: 22px;
  }

  .modal-primary-button--wide {
    width: 172px;
  }

  .button-icon-img--lg {
    width: 18px;
    height: 18px;
  }

  .details-copy-scroll {
    gap: 20px;
  }

  .details-section-title {
    font-size: 18px;
    line-height: 26px;
  }

  .details-section-copy,
  .details-rich-copy {
    font-size: 15px;
    line-height: 21px;
  }

  .order-scroll-area {
    gap: 24px;
  }

  .order-product-media {
    width: 120px;
    height: 100px;
  }

  .order-product-title {
    font-size: 24px;
    line-height: 24px;
  }
}

@media (max-width: 760px) {
  .modal-backdrop {
    padding: 12px;
  }

  .modal-shell {
    width: min(358px, calc(100vw - 24px));
    height: min(600px, calc(100svh - 24px));
    max-height: min(600px, calc(100svh - 24px));
  }

  .modal-shell--details,
  .modal-shell--order,
  .modal-shell--confirmation {
    padding: 16px;
    gap: 16px;
  }

  .modal-header {
    padding-bottom: 12px;
  }

  .modal-title {
    font-size: 20px;
    line-height: 28px;
  }

  .details-gallery-track {
    --gallery-slide-width: 229px;
    --gallery-gap: 16px;
  }

  .details-gallery-viewport {
    height: 160px;
    flex: 0 0 160px;
  }

  .details-action-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .details-purchase-tools {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .variant-selector,
  .variant-selector--compact {
    width: 160px;
    min-width: 160px;
  }

  .variant-option,
  .variant-selector--compact .variant-option {
    flex-basis: 48px;
    width: 48px;
    height: 40px;
    min-width: 48px;
    min-height: 40px;
    padding: 4px;
    font-size: 16px;
    line-height: 16px;
  }

  .variant-option-unit,
  .variant-selector--compact .variant-option-unit {
    font-size: 14px;
    line-height: 14px;
  }

  .quantity-control,
  .quantity-control--compact {
    width: 198px;
    height: 40px;
  }

  .quantity-button,
  .quantity-button--compact {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .quantity-icon,
  .quantity-button--compact .quantity-icon {
    width: 18px;
    height: 18px;
  }

  .quantity-number,
  .quantity-number--compact {
    font-size: 24px;
    line-height: 24px;
  }

  .quantity-unit,
  .quantity-unit--compact {
    font-size: 14px;
    line-height: 18px;
  }

  .modal-primary-button {
    min-height: 40px;
    height: 40px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 16px;
    line-height: 22px;
  }

  .modal-primary-button--wide {
    width: 172px;
  }

  .button-icon-img--lg {
    width: 18px;
    height: 18px;
  }

  .details-copy-scroll {
    gap: 16px;
  }

  .details-section-title {
    font-size: 18px;
    line-height: 26px;
  }

  .details-section-copy,
  .details-rich-copy {
    font-size: 14px;
    line-height: 20px;
  }

  .order-product-media {
    width: 96px;
    height: 80px;
  }

  .order-product-image {
    width: 72px;
    height: 72px;
  }

  .order-product-title {
    font-size: 18px;
    line-height: 24px;
  }

  .order-scroll-area {
    gap: 20px;
  }

  .order-summary-card {
    padding: 16px;
    font-size: 18px;
    line-height: 26px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field {
    gap: 8px;
  }
}

/* Order form modal repair */
.modal-shell--order {
  overflow: hidden;
}

.modal-shell--order .order-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 24px;
  padding-right: 8px;
}

.modal-shell--order .order-product-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(76, 89, 86, 0.2);
}

.modal-shell--order .order-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.modal-shell--order .order-product-media {
  flex: 0 0 120px;
  width: 120px;
  height: 100px;
}

.modal-shell--order .order-product-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.modal-shell--order .order-purchase-tools {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.modal-shell--order .variant-selector--compact {
  width: auto;
  min-width: 0;
}

.modal-shell--order .variant-selector-label {
  display: none;
}

.modal-shell--order .variant-options {
  flex-wrap: nowrap;
  gap: 8px;
}

.modal-shell--order .variant-selector--compact .variant-option {
  flex: 0 0 56px;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 6px;
}

.modal-shell--order .quantity-control--compact {
  flex: 0 0 248px;
  width: 248px;
  height: 56px;
}

.modal-shell--order .quantity-button--compact {
  width: 56px;
  height: 56px;
  padding: 16px;
}

.modal-shell--order .quantity-button--compact .quantity-icon {
  width: 24px;
  height: 24px;
}

.modal-shell--order .quantity-number--compact {
  font-size: 32px;
  line-height: 32px;
}

.modal-shell--order .quantity-unit--compact {
  font-size: 16px;
  line-height: 22px;
}

.modal-shell--order .order-summary-card,
.modal-shell--order .order-form-section,
.modal-shell--order .payment-grid {
  width: 100%;
  box-sizing: border-box;
}

.modal-shell--order .order-form-section {
  gap: 16px;
}

.modal-shell--order .modal-title--section {
  margin: 0;
  padding: 0;
}

.modal-shell--order .modal-footer {
  flex: 0 0 auto;
  padding-top: 16px;
}

@media (min-width: 761px) and (max-width: 1500px) {
  .modal-shell--order .order-scroll-area {
    gap: 20px;
  }

  .modal-shell--order .order-product-section {
    gap: 16px;
    padding-bottom: 20px;
  }

  .modal-shell--order .order-purchase-tools {
    gap: 16px;
  }

  .modal-shell--order .variant-selector--compact .variant-option {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    height: 40px;
    min-height: 40px;
    padding: 4px;
  }

  .modal-shell--order .quantity-control--compact {
    flex-basis: 198px;
    width: 198px;
    height: 40px;
  }

  .modal-shell--order .quantity-button--compact {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .modal-shell--order .quantity-button--compact .quantity-icon {
    width: 18px;
    height: 18px;
  }

  .modal-shell--order .quantity-number--compact {
    font-size: 24px;
    line-height: 24px;
  }
}

@media (max-width: 760px) {
  .modal-shell--order .order-scroll-area {
    gap: 16px;
    padding-right: 6px;
  }

  .modal-shell--order .order-product-section {
    gap: 14px;
    padding: 0 0 16px;
  }

  .modal-shell--order .order-product-card {
    align-items: center;
    gap: 12px;
  }

  .modal-shell--order .order-product-media {
    flex-basis: 96px;
    width: 96px;
    height: 72px;
  }

  .modal-shell--order .order-product-image {
    width: 64px;
    height: 64px;
  }

  .modal-shell--order .order-purchase-tools {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .modal-shell--order .variant-selector--compact {
    flex: 0 0 100%;
    width: 100%;
  }

  .modal-shell--order .variant-options {
    justify-content: flex-start;
  }

  .modal-shell--order .variant-selector--compact .variant-option {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    height: 40px;
    min-height: 40px;
    padding: 4px;
  }

  .modal-shell--order .quantity-control--compact {
    flex-basis: 198px;
    width: 198px;
    height: 40px;
  }

  .modal-shell--order .quantity-button--compact {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .modal-shell--order .quantity-button--compact .quantity-icon {
    width: 18px;
    height: 18px;
  }

  .modal-shell--order .quantity-number--compact {
    font-size: 24px;
    line-height: 24px;
  }

  .modal-shell--order .order-summary-card {
    padding: 16px;
  }

  .modal-shell--order .field-control {
    min-height: 48px;
  }

  .modal-shell--order .field-control--textarea {
    min-height: 78px;
  }

  .modal-shell--order .modal-footer {
    padding-top: 8px;
  }
}

/* Final order form modal layout lock */
.modal-shell--order {
  isolation: isolate;
}

.modal-shell--order .order-scroll-area {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 24px !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 8px !important;
}

.modal-shell--order .order-product-section {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 16px !important;
  row-gap: 16px !important;
  width: 100% !important;
  min-height: 172px !important;
  height: auto !important;
  padding: 8px 0 24px !important;
  border-bottom: 1px solid rgba(76, 89, 86, 0.2) !important;
  box-sizing: border-box !important;
}

.modal-shell--order .order-product-card {
  display: contents !important;
  width: auto !important;
}

.modal-shell--order .order-product-media {
  grid-column: 1 !important;
  grid-row: 1 !important;
  flex: none !important;
  width: 120px !important;
  height: 100px !important;
}

.modal-shell--order .order-product-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
}

.modal-shell--order .order-purchase-tools {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

.modal-shell--order .variant-selector--compact,
.modal-shell--order .quantity-control--compact,
.modal-shell--order .order-summary-card,
.modal-shell--order .order-form-section,
.modal-shell--order .payment-grid {
  flex: 0 0 auto !important;
  position: static !important;
  transform: none !important;
}

.modal-shell--order .order-summary-card,
.modal-shell--order .order-form-section,
.modal-shell--order .payment-grid {
  width: 100% !important;
}

.modal-shell--order .modal-footer {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  background: var(--background) !important;
}

@media (min-width: 761px) and (max-width: 1500px) {
  .modal-shell--order .order-scroll-area {
    gap: 20px !important;
  }

  .modal-shell--order .order-product-section {
    grid-template-columns: 120px minmax(0, 1fr) !important;
    min-height: 156px !important;
    row-gap: 16px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 760px) {
  .modal-shell--order .order-scroll-area {
    gap: 16px !important;
    padding-right: 6px !important;
  }

  .modal-shell--order .order-product-section {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    min-height: 144px !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
    padding: 0 0 16px !important;
  }

  .modal-shell--order .order-product-media {
    width: 96px !important;
    height: 72px !important;
  }

  .modal-shell--order .order-product-copy {
    min-width: 0 !important;
  }

  .modal-shell--order .order-purchase-tools {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .modal-shell--order .variant-selector--compact {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}
