:root {
  --blue: #2874f0;
  --blue-dark: #174ea6;
  --yellow: #ffd814;
  --ink: #172033;
  --muted: #627086;
  --line: #e4e9f2;
  --surface: #ffffff;
  --page: #f2f5f9;
  --green: #108934;
  --red: #d93025;
  --shadow: 0 10px 30px rgba(20, 32, 55, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 20, 0.26), transparent 32rem),
    linear-gradient(180deg, #edf5ff 0%, #f7f9fc 34%, #eef2f7 100%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 116, 240, 0.28);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.04), 0 0 45px rgba(23, 32, 51, 0.18);
  position: relative;
  overflow: hidden;
}

.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.brand-row,
.drawer-head,
.sheet-header,
.section-heading,
.location-strip,
.deal-strip,
.price-box div {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 10px;
}

.brand-lockup {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 1px;
}

.brand-lockup strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-lockup span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.account-pill {
  max-width: 74px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--yellow);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 900;
}

.dot-badge,
.bottom-nav em {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.dot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  color: var(--ink);
  background: var(--yellow);
}

.search-form {
  height: 44px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  color: #506079;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(12, 44, 94, 0.18);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--ink);
  outline: 0;
  background: transparent;
}

.search-form input::placeholder {
  color: #718198;
}

.search-form button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: transparent;
}

.location-strip {
  width: 100%;
  min-height: 34px;
  margin-top: 9px;
  padding: 0;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  text-align: left;
}

.location-strip span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.location-strip strong {
  color: var(--yellow);
  font-size: 0.78rem;
}

.service-strip {
  min-height: 30px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
}

.service-strip[hidden] {
  display: none !important;
}

.service-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-strip button {
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 850;
}

.content {
  padding: 12px 12px calc(86px + env(safe-area-inset-bottom));
}

.promo-band {
  min-height: 154px;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.94), rgba(19, 69, 142, 0.88)),
    #172033;
  color: white;
  position: relative;
}

.promo-band p,
.promo-band h1 {
  margin: 0;
}

.promo-band p {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-band h1 {
  margin-top: 6px;
  max-width: 9ch;
  font-size: clamp(1.65rem, 9vw, 2.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.promo-band span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
}

.promo-band small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.3;
}

.promo-dots {
  position: absolute;
  left: 16px;
  bottom: 10px;
  display: flex;
  gap: 5px;
}

.promo-dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.promo-dots span.active {
  width: 18px;
  background: var(--yellow);
}

.promo-band img {
  width: 100%;
  height: 132px;
  align-self: center;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.support-card {
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.support-card div {
  display: grid;
  gap: 2px;
}

.support-card span {
  display: block;
  margin: 0;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.support-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.support-card a {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  color: #1d4ed8;
  background: #eef3ff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.support-card input,
.support-card textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: white;
  font: inherit;
  resize: vertical;
}

.support-card input::placeholder,
.support-card textarea::placeholder {
  color: #8793a5;
}

.support-card button {
  min-height: 38px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 950;
}

.drawer-support-card {
  margin: 2px 0 4px;
  border: 1px solid #e2e5ea;
  background: #f7f9fc;
}

.quick-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions button {
  min-height: 68px;
  border-radius: 8px;
  padding: 8px 4px;
  display: grid;
  place-items: center;
  gap: 5px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.06);
  font-size: 0.74rem;
  font-weight: 750;
}

.quick-actions button svg {
  color: var(--blue);
}

.section-block {
  margin-top: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.section-heading button,
.deal-strip button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--blue);
  background: #e8f0fe;
  font-size: 0.78rem;
  font-weight: 800;
}

.category-rail,
.filter-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.category-rail::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  display: none;
}

.category-card {
  min-width: 82px;
  border-radius: 8px;
  padding: 9px 8px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.06);
}

.category-card.active {
  color: var(--blue);
  box-shadow: inset 0 0 0 2px rgba(40, 116, 240, 0.22);
}

.category-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.category-card span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 760;
}

.deal-strip {
  min-height: 58px;
  margin-top: 16px;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff9db;
  border: 1px solid #ffe58a;
}

.deal-strip div {
  display: grid;
  gap: 2px;
}

.deal-strip span {
  color: #775800;
  font-size: 0.74rem;
  font-weight: 800;
}

.deal-strip strong {
  font-size: 0.94rem;
}

.filter-row {
  margin-bottom: 10px;
}

.filter-chip {
  min-width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #43546d;
  background: white;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 760;
}

.filter-chip.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

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

.product-card {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(228, 233, 242, 0.8);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.05);
}

.product-card.out-of-stock .product-media img {
  filter: grayscale(0.65);
  opacity: 0.72;
}

.product-media {
  aspect-ratio: 1 / 0.82;
  position: relative;
  background: #eef3f8;
}

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

.wishlist-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #506079;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(23, 32, 51, 0.14);
}

.wishlist-button.active {
  color: var(--red);
}

.stock-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 52px);
  border-radius: 999px;
  padding: 5px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  background: rgba(23, 32, 51, 0.82);
  font-size: 0.66rem;
  font-weight: 900;
}

.stock-badge.in {
  background: rgba(16, 137, 52, 0.9);
}

.stock-badge.out {
  background: rgba(217, 48, 37, 0.92);
}

.product-body {
  padding: 9px;
}

.product-title {
  min-height: 38px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.86rem;
  line-height: 1.28;
}

.rating-row {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.rating-pill {
  min-width: 38px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--green);
  font-weight: 850;
}

.price-row {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.price-row strong {
  font-size: 1rem;
}

.price-row del {
  color: #7c889a;
  font-size: 0.72rem;
}

.price-row span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
}

.delivery-line {
  min-height: 17px;
  margin: 5px 0 9px;
  color: #596980;
  font-size: 0.72rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 7px;
}

.add-button,
.buy-button,
.checkout-button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 850;
}

.add-button {
  color: var(--blue-dark);
  background: #e8f0fe;
}

.buy-button {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
}

.empty-state {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: white;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 18;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(23, 32, 51, 0.08);
}

.bottom-nav button {
  min-width: 0;
  min-height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #64748b;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 780;
  position: relative;
}

.bottom-nav button.active {
  color: var(--blue);
  background: #e8f0fe;
}

.bottom-nav em {
  position: absolute;
  top: 3px;
  right: 14px;
  color: var(--ink);
  background: var(--yellow);
}

.side-drawer,
.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.side-drawer {
  background: rgba(18, 26, 42, 0);
  transition: background 180ms ease;
}

.side-drawer.open {
  pointer-events: auto;
  background: rgba(18, 26, 42, 0.42);
}

.drawer-panel {
  width: min(82vw, 340px);
  height: 100%;
  max-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) 14px 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(-104%);
  transition: transform 220ms ease;
}

.side-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.drawer-head div {
  display: grid;
  gap: 2px;
}

.drawer-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.drawer-head .icon-button {
  color: var(--ink);
  background: #eef2f7;
}

.drawer-panel > button:not(.icon-button) {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #f4f7fb;
  text-align: left;
  font-weight: 750;
}

.drawer-about-section {
  margin-top: 8px;
  border-top: 1px solid #edf0f5;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.drawer-about-section > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-about-section > button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: #f7f9fc;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.cart-sheet {
  display: grid;
  align-items: end;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-sheet.open {
  pointer-events: auto;
  opacity: 1;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 42, 0.45);
}

.sheet-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(82vh, 720px);
  margin: 0 auto;
  padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: white;
  overflow: auto;
  transform: translateY(18px);
  transition: transform 220ms ease;
}

.cart-sheet.open .sheet-panel {
  transform: translateY(0);
}

.page-panel {
  position: fixed;
  inset: 0;
  z-index: 28;
  width: min(100%, 480px);
  margin: 0 auto;
  background: var(--page);
  transform: translateX(102%);
  transition: transform 220ms ease;
  pointer-events: none;
}

.page-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.page-card {
  min-height: 100%;
  max-height: 100vh;
  overflow: auto;
  padding: max(14px, env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));
  background: var(--page);
}

.page-header {
  min-height: 54px;
  margin: -2px 0 12px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.page-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

.page-header span {
  color: var(--muted);
  font-size: 0.76rem;
}

.page-header .icon-button {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.06);
}

.detail-media {
  aspect-ratio: 1 / 0.82;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

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

.detail-body {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: white;
}

.detail-body h1 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.detail-price strong {
  font-size: 1.28rem;
}

.detail-service {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.detail-service span {
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  color: #43546d;
  background: #f7f9fc;
  font-size: 0.8rem;
  font-weight: 760;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.page-list,
.orders-list {
  display: grid;
  gap: 10px;
}

.page-cart-item {
  background: white;
}

.page-total {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: white;
}

.page-total div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-total .total {
  color: var(--ink);
  font-weight: 900;
  font-size: 1rem;
}

.info-page-body {
  display: grid;
  gap: 10px;
}

.info-section {
  border-radius: 8px;
  padding: 14px;
  background: white;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.info-section h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.98rem;
}

.info-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.52;
}

[data-page-panel="checkout"] .page-card {
  background: #ffffff;
}

.payment-page-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: white;
}

.payment-back-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
}

.payment-page-header div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.payment-page-header span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.payment-page-header h2 {
  margin: 0;
  color: #202124;
  font-size: 1.5rem;
  line-height: 1.05;
}

.secure-badge {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4b4f58;
  background: #f2f3f5;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.secure-badge svg {
  width: 16px;
  height: 16px;
}

.payment-total-card {
  min-height: 96px;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #315da8;
  background: #eef3ff;
}

.payment-total-card button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  background: transparent;
  font-size: 1.05rem;
}

.payment-total-card button svg {
  width: 20px;
  height: 20px;
}

.payment-total-card strong {
  color: #2055a8;
  font-size: 1.55rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.payment-offer-strip {
  min-height: 58px;
  margin: -2px 0 34px;
  border-radius: 0 0 8px 8px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #2e8d4f;
  background: linear-gradient(180deg, #edfff4 0%, #dbf6e5 100%);
  font-size: 0.92rem;
  font-weight: 760;
}

.payment-offer-strip div {
  display: flex;
  gap: 8px;
}

.payment-offer-strip i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(46, 141, 79, 0.12);
}

.checkout-form.checkout-page-form {
  margin-top: 0;
  padding: 0;
  gap: 12px;
  background: transparent;
  border: 0;
}

.payment-checkout-form {
  gap: 0;
}

.payment-list {
  border-top: 1px solid #e2e5ea;
  border-bottom: 1px solid #e2e5ea;
  display: grid;
  background: white;
}

.checkout-page-form .payment-option-row {
  min-height: 96px;
  border-bottom: 1px solid #e2e5ea;
  padding: 16px 14px 16px 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #202124;
  background: white;
}

.checkout-page-form .payment-option-row {
  cursor: pointer;
  position: relative;
}

.checkout-page-form .payment-option-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.checkout-page-form .payment-option-row strong {
  color: #202124;
  font-size: 1rem;
  line-height: 1.18;
}

.checkout-page-form .payment-option-row small {
  color: #767b84;
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.25;
}

.payment-option-icon {
  width: 28px;
  height: 28px;
  justify-self: center;
  display: grid;
  place-items: center;
  color: #111827;
}

.payment-option-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

.checkout-page-form .payment-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.checkout-page-form .payment-option-row.selected,
.checkout-page-form .payment-option-row:has(.payment-choice-input:checked) {
  box-shadow: inset 4px 0 0 var(--blue);
}

.checkout-page-form .payment-option-row.unavailable {
  cursor: not-allowed;
  color: #9aa0a6;
  background: #f7f9fc;
}

.checkout-page-form .payment-option-row.unavailable strong,
.checkout-page-form .payment-option-row.unavailable small,
.checkout-page-form .payment-option-row.unavailable .payment-option-icon {
  color: #9aa0a6;
}

.checkout-page-form .payment-option-row b {
  border-radius: 999px;
  padding: 5px 8px;
  color: #9f1239;
  background: #ffe4ec;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.payment-chevron {
  width: 22px;
  height: 22px;
  color: #202124;
}

.payment-gateway-note {
  margin: 12px 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f9fc;
}

.checkout-address-section,
.payment-summary-section {
  margin-top: 12px;
}

.checkout-page-form .shipping-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.checkout-page-form .shipping-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.saved-location-card {
  border: 1px solid #d8e8f7;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  background: #f5fbff;
}

.saved-location-card > span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #e8f0fe;
}

.saved-location-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.saved-location-card strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.saved-location-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.address-verify-card {
  border: 1px solid #f7d7a8;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #fff8e8;
}

.address-verify-card.verified {
  border-color: #b7e2c3;
  background: #f0fff4;
}

.address-verify-card strong {
  color: #775800;
  font-size: 0.86rem;
}

.address-verify-card.verified strong {
  color: #0f7a3d;
}

.address-verify-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
}

.location-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.location-action-row button,
.save-location-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 900;
}

.location-action-row button:first-child {
  color: var(--blue-dark);
  background: #e8f0fe;
}

.location-action-row button:last-child,
.save-location-button {
  color: var(--ink);
  background: var(--yellow);
}

.location-action-row svg {
  width: 17px;
  height: 17px;
}

.manual-location-panel {
  display: grid;
  gap: 10px;
}

.manual-location-panel.collapsed {
  display: none;
}

.save-location-button {
  width: 100%;
}

.checkout-hero {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background: linear-gradient(135deg, #172033 0%, #2874f0 100%);
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.14);
}

.checkout-hero div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.checkout-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
}

.checkout-hero strong {
  font-size: 1.42rem;
  line-height: 1;
}

.checkout-hero-meta {
  align-content: center;
  justify-items: end;
  text-align: right;
}

.checkout-section {
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: white;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.checkout-section + .checkout-section,
.checkout-page-form + .checkout-section {
  margin-top: 12px;
}

.checkout-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.checkout-section-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.checkout-section-head span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-page-form .checkout-section-head h3,
.checkout-summary .checkout-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.checkout-section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.checkout-section-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green);
  background: #eaf7ee;
  font-size: 0.68rem;
  font-weight: 900;
}

.delivery-card {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.delivery-card-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
}

.delivery-card-head > span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #e8f0fe;
}

.delivery-card-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.delivery-card-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.delivery-card-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

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

.checkout-field-grid .wide {
  grid-column: 1 / -1;
}

.checkout-field-grid label {
  color: #43546d;
}

.checkout-page-form .checkout-field-grid input,
.checkout-page-form .checkout-field-grid textarea {
  min-height: 44px;
  border-color: #cfd7e6;
  background: #fbfcff;
}

.checkout-page-form .checkout-field-grid textarea {
  min-height: 92px;
}

.delivery-hint {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.delivery-hint span {
  min-width: 0;
}

.delivery-hint strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
}

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

.payment-options.checkout-payment-options label {
  min-height: 62px;
  align-items: flex-start;
  padding: 10px;
  background: #fbfcff;
}

.payment-options.checkout-payment-options input {
  margin-top: 3px;
}

.payment-options.checkout-payment-options span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.payment-options.checkout-payment-options strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.payment-options.checkout-payment-options small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.checkout-items {
  display: grid;
  gap: 10px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
}

.delivery-options {
  display: grid;
  gap: 8px;
}

.delivery-options label {
  min-height: 72px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.delivery-options label.selected {
  border-color: rgba(40, 116, 240, 0.45);
  box-shadow: inset 4px 0 0 var(--blue);
}

.delivery-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.delivery-options span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.delivery-options strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.delivery-options small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.delivery-options b {
  color: #0f766e;
  font-size: 0.84rem;
}

.delivery-unavailable {
  border: 1px dashed #d8dee8;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #f7f9fc;
}

.delivery-unavailable strong {
  color: #6b7280;
  font-size: 0.84rem;
}

.delivery-unavailable span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.35;
}

.checkout-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f7;
}

.checkout-item div {
  min-width: 0;
}

.checkout-item h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item span,
.checkout-more,
.checkout-empty {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.checkout-item strong {
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.checkout-more {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.checkout-empty {
  min-height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f7f9fc;
}

.checkout-price-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.checkout-price-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkout-price-panel strong {
  color: var(--ink);
}

.checkout-price-panel .total {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.checkout-sticky-bar {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 2;
  margin-top: 12px;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.16);
  backdrop-filter: blur(12px);
}

.checkout-sticky-bar div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.checkout-sticky-bar span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.checkout-sticky-bar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-sticky-bar .checkout-button {
  min-height: 44px;
  margin-top: 0;
}

.order-card {
  border-radius: 8px;
  padding: 12px;
  background: white;
  border: 1px solid rgba(228, 233, 242, 0.9);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-head div {
  display: grid;
  gap: 2px;
}

.order-head span {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.order-awb {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  color: #52657c;
  background: #f1f5fb;
  font-size: 0.68rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-id-button {
  width: max-content;
  max-width: 100%;
  padding: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 0.96rem;
  font-weight: 950;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-head b {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.9rem;
}

.order-date-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.order-date-grid span {
  min-width: 0;
  border-radius: 8px;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.order-date-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.order-details-panel {
  margin-top: 12px;
  border: 1px solid #d8e8f7;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 10px;
  background: #f8fbff;
}

.order-details-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-details-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.order-details-head span {
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 850;
}

.order-detail-items,
.order-price-breakdown {
  display: grid;
  gap: 7px;
}

.order-detail-items div,
.order-price-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.order-detail-items span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail-items small {
  color: var(--muted);
}

.order-detail-items strong,
.order-price-breakdown strong {
  color: var(--ink);
  white-space: nowrap;
}

.order-detail-items p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.order-price-breakdown {
  border-top: 1px solid #e2eaf5;
  padding-top: 8px;
}

.order-price-breakdown .total {
  color: var(--ink);
  font-weight: 950;
}

.customer-tracking {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.customer-tracking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.customer-tracking-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.customer-tracking-head span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.customer-tracking-head strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-tracking-head time {
  border-radius: 999px;
  padding: 6px 9px;
  color: #775800;
  background: #fff4c2;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.tracking-date-summary {
  border: 1px solid #d8e8f7;
  border-radius: 8px;
  padding: 8px 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #52657c;
  background: #f5fbff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tracking-date-summary span,
.tracking-date-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-date-summary strong {
  color: var(--blue-dark);
}

.customer-track-line {
  --tracking-progress: 0%;
  min-height: 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.customer-track-line::before,
.customer-track-line::after {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 20px;
  height: 5px;
  border-radius: 999px;
}

.customer-track-line::before {
  background: #cfe5f6;
}

.customer-track-line::after {
  right: auto;
  width: var(--tracking-progress);
  background: linear-gradient(90deg, #76bde8, var(--blue));
  transition: width 420ms ease;
}

.customer-track-stage {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  color: #78869a;
  position: relative;
  z-index: 1;
  text-align: center;
}

.track-icon {
  width: 42px;
  height: 42px;
  border: 2px solid #cfe5f6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5c8faa;
  background: #eaf6ff;
  box-shadow: 0 0 0 4px white;
}

.track-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.customer-track-stage strong {
  min-height: 30px;
  max-width: 76px;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.12;
}

.customer-track-stage small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 760;
}

.customer-track-stage.done {
  color: var(--blue-dark);
}

.customer-track-stage.done .track-icon {
  border-color: #97ceee;
  color: #236f9a;
  background: #dff2ff;
}

.customer-track-stage.current .track-icon {
  animation: trackingPulse 1.6s ease-in-out infinite;
}

.customer-track-stage.done:last-child .track-icon {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.tracking-live-timeline {
  border: 1px solid #e0eaf5;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: #fbfdff;
}

.tracking-live-timeline > strong {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tracking-live-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-areas:
    "date activity"
    "date location";
  column-gap: 8px;
  row-gap: 1px;
  align-items: start;
}

.tracking-live-row time {
  grid-area: date;
  color: var(--blue-dark);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.25;
}

.tracking-live-row span {
  grid-area: activity;
  min-width: 0;
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 850;
  line-height: 1.25;
}

.tracking-live-row small {
  grid-area: location;
  min-width: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 760;
  line-height: 1.25;
}

.order-cancel-row {
  margin-top: 12px;
  border-top: 1px solid #edf0f5;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.order-return-row {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d6e8f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fcff;
}

.order-return-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-return-row strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.order-return-row span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.order-cancel-row button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  color: #9f1239;
  background: #ffe4ec;
  font-size: 0.82rem;
  font-weight: 900;
}

.order-return-row button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  color: #0f5f84;
  background: #dff2ff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.order-cancel-row button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.order-return-row button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.order-cancel-row.locked {
  justify-content: center;
}

.order-return-row.locked {
  justify-content: center;
}

.order-cancel-row.locked span,
.order-return-row.locked span {
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
  color: #775800;
  background: #fff4c2;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

@keyframes trackingPulse {
  0% {
    box-shadow: 0 0 0 4px white, 0 0 0 4px rgba(40, 116, 240, 0.2);
  }

  70% {
    box-shadow: 0 0 0 4px white, 0 0 0 12px rgba(40, 116, 240, 0);
  }

  100% {
    box-shadow: 0 0 0 4px white, 0 0 0 4px rgba(40, 116, 240, 0);
  }
}

.sheet-handle {
  width: 44px;
  height: 5px;
  margin: 2px auto 12px;
  border-radius: 99px;
  background: #d8dee8;
}

.sheet-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.sheet-header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sheet-header .icon-button {
  color: var(--ink);
  background: #eef2f7;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-empty {
  min-height: 120px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: #f7f9fc;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  border-radius: 8px;
  padding: 9px;
  background: #f7f9fc;
}

.cart-item img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
}

.cart-item p {
  margin: 4px 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty-control {
  height: 32px;
  display: inline-grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.qty-control button {
  height: 100%;
  color: var(--blue);
  background: white;
  font-weight: 900;
}

.qty-control span {
  text-align: center;
  font-weight: 850;
}

.remove-button {
  color: var(--red);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.price-box {
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.price-box div {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-box strong {
  color: var(--ink);
}

.price-box .total {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.checkout-button {
  width: 100%;
  margin-top: 12px;
  color: var(--ink);
  background: var(--yellow);
}

.checkout-button:disabled {
  cursor: not-allowed;
  color: #8793a5;
  background: #e4e9f2;
}

.add-button:disabled,
.buy-button:disabled,
.qty-control button:disabled {
  cursor: not-allowed;
  color: #8793a5;
  background: #e4e9f2;
}

.checkout-form {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  background: #f7f9fc;
  border: 1px solid var(--line);
}

.checkout-form h3 {
  margin: 0;
  font-size: 0.96rem;
}

.checkout-form label,
.auth-panel label {
  display: grid;
  gap: 6px;
  color: #43546d;
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea,
.auth-panel input {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  resize: vertical;
}

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

.payment-options label {
  min-height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: white;
  font-size: 0.76rem;
  font-weight: 850;
}

.payment-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.gateway-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: end center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 42, 0.45);
}

.auth-card {
  position: relative;
  width: min(100%, 430px);
  border-radius: 16px;
  padding: 14px;
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 180ms ease;
}

.auth-modal.open .auth-card {
  transform: translateY(0);
}

.auth-card .icon-button {
  color: var(--ink);
  background: #eef2f7;
}

.auth-panel,
.profile-panel {
  display: grid;
  gap: 12px;
}

.auth-panel[hidden],
.profile-panel[hidden],
.otp-panel[hidden] {
  display: none !important;
}

.otp-panel {
  display: grid;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  color: white;
  background: var(--blue);
}

.secondary-button {
  color: var(--red);
  background: #fdecea;
}

.profile-hero {
  min-height: 104px;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: white;
  background: linear-gradient(135deg, #2874f0 0%, #174ea6 100%);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #174ea6;
  background: white;
  font-size: 1.35rem;
  font-weight: 950;
}

.profile-hero div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-hero small,
.profile-hero span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 760;
}

.profile-hero strong {
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero b {
  border-radius: 999px;
  padding: 6px 8px;
  color: #0f5132;
  background: #d1fae5;
  font-size: 0.68rem;
  white-space: nowrap;
}

.profile-wallet-strip {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: white;
  font-size: 0.78rem;
  font-weight: 820;
}

.profile-wallet-strip strong {
  color: var(--ink);
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-shortcuts button {
  min-height: 72px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 8px 6px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--ink);
  background: white;
  font-size: 0.76rem;
  font-weight: 850;
}

.profile-shortcuts svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.profile-menu-list {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.profile-menu-list button {
  width: 100%;
  min-height: 46px;
  border-bottom: 1px solid #edf0f5;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: white;
  font-size: 0.84rem;
  font-weight: 820;
}

.profile-menu-list button:last-child {
  border-bottom: 0;
}

.profile-menu-list svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(calc(100% - 32px), 420px);
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 8px;
  color: white;
  background: rgba(23, 32, 51, 0.94);
  box-shadow: var(--shadow);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 720;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 700px) {
  body {
    padding: 22px 0;
  }

  .app-shell {
    min-height: calc(100vh - 44px);
    border-radius: 24px;
  }

  .top-app-bar {
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 360px) {
  .content {
    padding-left: 9px;
    padding-right: 9px;
  }

  .promo-band {
    grid-template-columns: 1fr;
  }

  .promo-band img {
    height: 92px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-body {
    padding: 8px;
  }

  .price-row strong {
    font-size: 0.92rem;
  }
}
