:root {
  --color-primary-dark: #081525;
  --color-primary-navy: #10243A;
  --color-brand: #1769E0;
  --color-accent: #2583F7;
  --color-light: #EAF3FF;
  --color-bg: #F7F9FC;
  --color-text: #101828;
  --color-secondary: #667085;
  --color-muted: #98A2B3;
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-danger: #DC2626;
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-input: 10px;
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-hover: 0 8px 24px rgba(16, 24, 40, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

.brand-gradient {
  background: linear-gradient(135deg, #1769E0, #2583F7);
}

.card-hover {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #1769E0;
}

.search-suggest {
  max-height: 360px;
  overflow-y: auto;
}
.search-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search-suggest__item:hover {
  background: #EAF3FF;
}
.search-suggest__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.search-suggest__name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggest__grade {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #F2F4F7;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggest__item:hover .search-suggest__grade {
  background: #D6E8FF;
  color: #1769E0;
}
.search-suggest__price {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1769E0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.touch-target { min-height: 44px; min-width: 44px; }

/* Navbar */
.site-header {
  box-shadow: 0 8px 24px rgba(8, 21, 37, 0.25);
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #e8f1ff;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-icon-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.nav-icon-btn i {
  font-size: 1.15rem;
  line-height: 1;
}
.nav-cart {
  position: relative;
}
.nav-cart.is-open .nav-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cart-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: auto;
  z-index: 70;
  width: min(22.5rem, calc(100vw - 1.5rem));
  background: #fff;
  color: #101828;
  border: 1px solid #E4E7EC;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(8, 21, 37, 0.22);
  overflow: hidden;
  transform-origin: top left;
  animation: cart-dropdown-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-dropdown[hidden] {
  display: none !important;
}
@keyframes cart-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cart-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #EEF2F6;
  background: linear-gradient(180deg, #F8FBFF 0%, #fff 100%);
}
.cart-dropdown__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #10243A;
}
.cart-dropdown__title i {
  color: #1769E0;
}
.cart-dropdown__close {
  border: none;
  background: transparent;
  color: #98A2B3;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-dropdown__close:hover {
  background: #F2F4F7;
  color: #344054;
}
.cart-dropdown__body {
  max-height: min(18rem, 50vh);
  overflow-y: auto;
  padding: 0.35rem 0;
}
.cart-dropdown__loading,
.cart-dropdown__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #667085;
  font-size: 0.88rem;
}
.cart-dropdown__empty i {
  display: block;
  font-size: 1.75rem;
  color: #D0D5DD;
  margin-bottom: 0.5rem;
}
.cart-dropdown__item {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 1rem;
  color: inherit;
  border-bottom: 1px solid #F2F4F7;
  transition: background 0.15s ease, opacity 0.2s ease;
}
.cart-dropdown__item:last-child {
  border-bottom: none;
}
.cart-dropdown__item.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.cart-dropdown__thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: #EEF4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #1769E0;
  font-size: 1.15rem;
  text-decoration: none;
  flex-shrink: 0;
}
.cart-dropdown__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-dropdown__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cart-dropdown__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #101828;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-dropdown__name:hover {
  color: #1769E0;
}
.cart-dropdown__grade {
  margin: 0;
  font-size: 0.7rem;
  color: #98A2B3;
}
.cart-dropdown__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.cart-dropdown__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cart-dropdown__step {
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  background: transparent;
  color: #344054;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-dropdown__step:hover:not(:disabled) {
  background: #F2F4F7;
  color: #1769E0;
}
.cart-dropdown__step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cart-dropdown__qty-val {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #101828;
  font-variant-numeric: tabular-nums;
}
.cart-dropdown__remove {
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 8px;
  background: #FEF3F2;
  color: #D92D20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-dropdown__remove:hover {
  background: #FEE4E2;
  color: #B42318;
}
.cart-dropdown__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  padding-top: 0.1rem;
}
.cart-dropdown__price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1769E0;
  white-space: nowrap;
}
.cart-dropdown__unit {
  font-size: 0.68rem;
  color: #98A2B3;
  white-space: nowrap;
}
.cart-dropdown__foot {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #EEF2F6;
  background: #FCFCFD;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cart-dropdown__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #475467;
}
.cart-dropdown__total strong {
  font-size: 1rem;
  color: #101828;
}
.cart-dropdown__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cart-dropdown__checkout:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}
@media (max-width: 639px) {
  .cart-dropdown {
    position: fixed;
    top: auto;
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(70vh, 28rem);
    display: flex;
    flex-direction: column;
    transform-origin: bottom center;
    animation: cart-dropdown-in-mobile 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cart-dropdown__body {
    flex: 1;
    max-height: none;
  }
  @keyframes cart-dropdown-in-mobile {
    from {
      opacity: 0;
      transform: translateY(1rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  z-index: 50;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  right: auto;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}
.wa-float-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float-btn i {
  font-size: 1.65rem;
  line-height: 1;
  display: block;
  transform: translateY(0.5px);
}
.wa-float:hover .wa-float-btn,
.wa-float:focus-visible .wa-float-btn {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}
.wa-float-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.45;
  animation: wa-glow 2s ease-out infinite;
  pointer-events: none;
}
.wa-float-label {
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  z-index: 2;
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  color: #0b3d26;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  border: 1.5px solid #25D366;
  box-shadow:
    0 0 0 3px rgba(37, 211, 102, 0.12),
    0 8px 22px rgba(16, 24, 40, 0.12);
  pointer-events: none;
  transform-origin: left center;
  animation: wa-label-pulse 12s ease-in-out infinite;
}
.wa-float-label::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left: 0;
  border-right-color: #25D366;
}
.wa-float-label::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -4.5px;
  margin-right: -1.5px;
  border: 4.5px solid transparent;
  border-left: 0;
  border-right-color: #fff;
}
@keyframes wa-glow {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.75);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}
@keyframes wa-label-pulse {
  0%,
  5% {
    opacity: 0;
    transform: translateY(-50%) translateX(-10px) scale(0.94);
  }
  10%,
  42% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
  50%,
  72% {
    opacity: 0;
    transform: translateY(-50%) translateX(-6px) scale(0.96);
  }
  80%,
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}
@media (max-width: 640px) {
  .wa-float {
    width: 3.15rem;
    height: 3.15rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
  }
  .wa-float-btn i {
    font-size: 1.45rem;
  }
  .wa-float-label {
    max-width: min(11.5rem, calc(100vw - 5.5rem));
    white-space: normal;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #c9daf5;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.nav-link-active {
  background: rgba(23, 105, 224, 0.35);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(37, 131, 247, 0.45);
}
.nav-link i { font-size: 0.95rem; }

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

#search-results {
  transition: opacity 0.2s ease;
}
#search-results.is-filtering {
  opacity: 0.45;
  pointer-events: none;
}

/* Brand logos */
.brand-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16,24,40,0.06);
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-chip {
  min-height: 48px;
}

#search-filters-form [data-filter-section][hidden] {
  display: none !important;
}
.brand-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.brand-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: right;
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #101828;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.brand-filter-btn:hover {
  border-color: #1769E0;
  background: #F8FBFF;
}
.brand-filter-btn.is-active {
  border-color: #1769E0;
  background: #EAF3FF;
  color: #1769E0;
  box-shadow: 0 0 0 1px rgba(23,105,224,0.15);
}
.brand-filter-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EAF3FF;
  color: #1769E0;
  font-size: 1.2rem;
  margin: 0 auto 0.65rem;
}

/* Category browse cards */
.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: var(--radius-card);
  padding: 1.15rem 1.2rem 1.1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  border-color: rgba(23, 105, 224, 0.35);
  box-shadow: 0 10px 28px rgba(16, 36, 58, 0.07);
}
.category-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.category-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(160deg, #EAF3FF 0%, #F3F7FC 100%);
  color: #1769E0;
  font-size: 1.35rem;
  border: 1px solid rgba(23, 105, 224, 0.12);
}
.category-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #101828;
}
.category-card__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1769E0;
  background: #EAF3FF;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.category-card__desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #667085;
}
.category-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-card__items li {
  font-size: 0.75rem;
  font-weight: 500;
  color: #344054;
  background: #F7F9FC;
  border: 1px solid #EAECF0;
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
}
.category-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1769E0;
}
.category-card:hover .category-card__cta {
  gap: 0.5rem;
}
@media (max-width: 639px) {
  .category-card {
    padding: 1rem;
  }
  .category-card__icon {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.2rem;
  }
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  color: inherit;
}
.product-card__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(160deg, #F3F7FC 0%, #EAF3FF 55%, #F8FAFC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #EEF2F6;
  overflow: hidden;
}
.product-card__slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.product-card__media[data-product-card-gallery] .product-card__slides .product-card__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.product-card__media[data-product-card-gallery] .product-card__slides .product-card__img.is-active {
  opacity: 1;
  pointer-events: auto;
}
.product-card__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #344054;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.product-card:hover .product-card__gallery-btn,
.product-card__gallery-btn:focus-visible {
  opacity: 1;
}
.product-card__gallery-btn:hover {
  background: #fff;
  color: #1769E0;
}
.product-card__gallery-btn--prev {
  inset-inline-start: 0.45rem;
}
.product-card__gallery-btn--next {
  inset-inline-end: 0.45rem;
}
.product-card__gallery-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 0.45rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.product-card__gallery-dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.product-card__gallery-dot.is-active {
  background: #1769E0;
  transform: scale(1.15);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
}
.product-card__placeholder {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1769E0;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(16, 36, 58, 0.08);
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.75rem 0.35rem;
  min-width: 0;
  flex: 1;
}
.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}
.product-card__chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: #F2F4F7;
  color: #475467;
}
.product-card__chip--grade {
  background: #EAF3FF;
  color: #1769E0;
}
.product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.product-card__stock--in {
  background: #ECFDF5;
  color: #15803d;
}
.product-card__stock--out {
  background: #FEF2F2;
  color: #b91c1c;
}
.product-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.product-card__part {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1769E0;
  background: #F8FBFF;
  border: 1px solid #D6E6FF;
  border-radius: 7px;
  padding: 0.22rem 0.45rem;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__part span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #667085;
  font-family: "Tajawal", system-ui, sans-serif;
}
.product-card__desc {
  font-size: 0.74rem;
  color: #667085;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-confidence {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
}
.pc-confidence--confirmed {
  background: #ECFDF5;
  color: #047857;
}
.pc-confidence--likely {
  background: #FFFBEB;
  color: #B45309;
}
.pc-confidence--unverified {
  background: #F2F4F7;
  color: #475467;
}
.product-card__footer {
  margin-top: auto;
  padding: 0.55rem 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-card__price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1769E0;
  min-width: 0;
}
.product-card__price--hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475467;
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s ease;
}
.product-card__price--hint:hover {
  color: #1769E0;
}
a.product-card__add {
  text-decoration: none;
}
.product-card__add-form {
  margin: 0;
  flex-shrink: 0;
}
.product-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease, background .25s ease, box-shadow .25s ease;
}
.product-card__add:hover {
  opacity: 0.92;
}
.product-card__add:active {
  transform: scale(0.97);
}
.product-card__add i {
  font-size: 0.95rem;
}
.product-card__add.is-loading {
  pointer-events: none;
  opacity: 0.75;
}
.product-card__add.is-loading i {
  animation: cart-add-spin 0.7s linear infinite;
}
.product-card__add.is-added {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  animation: cart-add-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Product gallery */
.product-gallery__main {
  transition: opacity 0.2s ease;
}
.product-gallery__thumbs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.product-gallery__thumb {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.product-gallery__thumb:hover {
  opacity: 0.85;
}
.product-gallery__thumb.is-active {
  box-shadow: 0 0 0 2px var(--color-brand);
}
.product-gallery__thumb img {
  display: block;
}

/* Product info + specs */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}
.product-info__head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.product-info__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.product-info__back:hover {
  background: #F8FAFC;
  border-color: #B2CCF5;
  color: #1769E0;
}
.product-info__back i {
  font-size: 0.95rem;
  line-height: 1;
}
.product-info__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.product-info__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  color: #101828;
}
.product-info__category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #EAF3FF;
  color: #1769E0;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-info__category:hover {
  background: #D6E8FF;
}
.product-info__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #667085;
  direction: ltr;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.product-info__desc {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #344054;
}
.product-description {
  margin-top: 2rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, #FFFFFF 0%, #F7FAFF 52%, #EEF5FF 100%);
  border: 1px solid #D6E4FF;
  box-shadow:
    0 10px 28px rgba(23, 105, 224, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.product-description__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(23, 105, 224, 0.12);
}
.product-description__icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1769E0 0%, #3D8BFF 100%);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.28);
}
.product-description__head-text {
  min-width: 0;
}
.product-description__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.3;
}
.product-description__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #667085;
}
.product-description__body {
  font-size: 0.98rem;
  line-height: 1.95;
  color: #1D2939;
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
}
.product-description__body p {
  margin: 0 0 0.85rem;
}
.product-description__body p:last-child {
  margin-bottom: 0;
}
@media (min-width: 640px) {
  .product-description {
    padding: 1.35rem 1.45rem 1.5rem;
  }
  .product-description__title {
    font-size: 1.28rem;
  }
  .product-description__body {
    font-size: 1.02rem;
    line-height: 2;
  }
}
.product-buy__phone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
}
.product-buy__phone-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}
.product-buy__phone-stock {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.product-buy__phone-stock.is-in {
  background: #ECFDF3;
  color: #027A48;
}
.product-buy__phone-stock.is-out {
  background: #FEF3F2;
  color: #B42318;
}
.product-info__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.product-info__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}
.product-info__badge--grade {
  background: #F2F4F7;
  color: #344054;
}
.product-info__badge--stock.is-in {
  background: #ECFDF3;
  color: #027A48;
}
.product-info__badge--stock.is-out {
  background: #FEF3F2;
  color: #B42318;
}
.product-specs {
  background: #fff;
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}
.product-specs__title {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1769E0;
}
.product-specs__list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 480px) {
  .product-specs__list {
    grid-template-columns: 1fr 1fr;
  }
}
.product-specs__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
  min-width: 0;
}
.product-specs__item dt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #98A2B3;
}
.product-specs__item dt i {
  color: #1769E0;
  font-size: 0.85rem;
}
.product-specs__item dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.45;
  word-break: break-word;
}
.product-specs__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  direction: ltr;
  text-align: right;
  letter-spacing: 0.02em;
}

/* Product page buy box */
.product-buy__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.product-buy__label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #101828;
}
.product-buy__picker {
  position: relative;
}
.product-buy__picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  background: #F8FAFC;
  color: inherit;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.product-buy__picker-trigger:hover {
  border-color: #B2CCF5;
  background: #fff;
}
.product-buy__picker.is-open .product-buy__picker-trigger {
  border-color: #1769E0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
.product-buy__picker-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}
.product-buy__picker-grade {
  font-size: 0.95rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.3;
}
.product-buy__picker-stock {
  font-size: 0.72rem;
  font-weight: 700;
  color: #667085;
}
.product-buy__picker-stock.is-in {
  color: #027A48;
}
.product-buy__picker-stock.is-out {
  color: #B42318;
}
.product-buy__picker-side {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.product-buy__picker-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1769E0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.product-buy__picker-chevron {
  font-size: 0.85rem;
  color: #667085;
  transition: transform 0.2s ease;
}
.product-buy__picker.is-open .product-buy__picker-chevron {
  transform: rotate(180deg);
}
.product-buy__picker-list {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid #E4E7EC;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  max-height: 16rem;
  overflow-y: auto;
  animation: product-picker-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-buy__picker-list[hidden] {
  display: none;
}
@keyframes product-picker-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-buy__picker-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.product-buy__picker-option:hover,
.product-buy__picker-option:focus {
  background: #F2F4F7;
  outline: none;
}
.product-buy__picker-option.is-selected {
  background: #EAF3FF;
}
.product-buy__picker-option-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.product-buy__picker-option-grade {
  font-size: 0.9rem;
  font-weight: 800;
  color: #101828;
}
.product-buy__picker-option-stock {
  font-size: 0.72rem;
  font-weight: 700;
  color: #667085;
}
.product-buy__picker-option-stock.is-in {
  color: #027A48;
}
.product-buy__picker-option-stock.is-out {
  color: #B42318;
}
.product-buy__picker-option-price {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1769E0;
  font-variant-numeric: tabular-nums;
}
.product-buy__picker-check {
  flex-shrink: 0;
  width: 1.1rem;
  font-size: 0.95rem;
  color: #1769E0;
  opacity: 0;
}
.product-buy__picker-option.is-selected .product-buy__picker-check {
  opacity: 1;
}
.product-buy__row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}
.product-buy__qty {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.product-buy__qty-btn {
  width: 2.5rem;
  min-height: 2.75rem;
  border: none;
  background: #F8FAFC;
  color: #344054;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-buy__qty-btn:hover:not(:disabled) {
  background: #EAF3FF;
  color: #1769E0;
}
.product-buy__qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.product-buy__qty-input {
  width: 3rem;
  min-width: 0;
  border: none;
  border-inline: 1px solid #E4E7EC;
  background: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #101828;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.product-buy__qty-input::-webkit-outer-spin-button,
.product-buy__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-buy__qty-input:focus {
  background: #F8FBFF;
}
.product-buy__add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.product-buy__add:hover:not(:disabled) {
  opacity: 0.94;
}
.product-buy__add:active:not(:disabled) {
  transform: scale(0.98);
}
.product-buy__add i {
  font-size: 1.1rem;
}
.product-buy__add.is-loading {
  pointer-events: none;
  opacity: 0.8;
}
.product-buy__add.is-loading i {
  animation: cart-add-spin 0.7s linear infinite;
}
.product-buy__add.is-added {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  animation: cart-add-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 419px) {
  .product-buy__row {
    flex-direction: column;
  }
  .product-buy__qty {
    width: 100%;
    justify-content: space-between;
  }
  .product-buy__qty-btn {
    width: 3rem;
  }
  .product-buy__qty-input {
    flex: 1;
    width: auto;
  }
}
@keyframes cart-add-spin {
  to { transform: rotate(360deg); }
}
@keyframes cart-add-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Cart toast */
.cart-toast {
  position: fixed;
  z-index: 60;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: auto;
  width: min(22rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #0F1C2E;
  color: #F8FAFC;
  box-shadow: 0 12px 40px rgba(8, 21, 37, 0.35);
  transform: translateY(1.25rem) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.cart-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.cart-toast.is-leaving {
  transform: translateY(0.75rem) scale(0.98);
  opacity: 0;
}
.cart-toast__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.cart-toast__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  font-size: 1.15rem;
}
.cart-toast__body {
  flex: 1;
  min-width: 0;
}
.cart-toast__msg {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}
.cart-toast__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.15rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.cart-toast__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cart-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-inline-start: 3rem;
}
.cart-toast__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cart-toast__checkout:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}
#cart-count-badge.is-bump {
  animation: cart-badge-bump 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cart-badge-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@media (max-width: 639px) {
  .cart-toast {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    bottom: max(5.25rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
    width: auto;
  }
  .cart-toast__actions {
    padding-inline-start: 0;
  }
  .cart-toast__checkout {
    width: 100%;
  }
}
.product-card__add--disabled {
  background: #F2F4F7;
  color: #98A2B3;
  cursor: not-allowed;
  opacity: 1;
}
@media (min-width: 640px) {
  .product-card__body {
    padding: 0.85rem 0.9rem 0.4rem;
  }
  .product-card__footer {
    padding: 0.6rem 0.9rem 0.9rem;
  }
  .product-card__title {
    font-size: 0.95rem;
  }
  .product-card__price {
    font-size: 1rem;
  }
  .product-card__add {
    min-height: 2.15rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
}
@media (max-width: 639px) {
  .product-card__gallery-btn {
    opacity: 1;
    width: 1.65rem;
    height: 1.65rem;
  }
}

/* Model page */
.model-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F7FAFF 55%, #EEF5FF 100%);
  border: 1px solid #E4E7EC;
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem;
}
.model-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.model-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: #667085;
  margin-bottom: 0.15rem;
}
.model-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #101828;
}
.model-hero__code {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #667085;
}
.model-hero__code span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #1769E0;
}
.model-hero__stats {
  display: flex;
  gap: 0.65rem;
}
.model-hero__stat {
  min-width: 5.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}
.model-hero__stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1769E0;
  line-height: 1.1;
}
.model-hero__stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #667085;
}
.model-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.model-section__title {
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.model-section__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #667085;
  background: #F2F4F7;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}
@media (max-width: 640px) {
  .model-hero {
    padding: 1rem;
  }
  .model-hero__stats {
    width: 100%;
  }
  .model-hero__stat {
    flex: 1;
  }
}

/* OTP confirm block */
.otp-digit.is-filled {
  border-color: #1769E0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
.otp-block[data-enabled="1"] .otp-inputs-wrap {
  border-color: rgba(23, 105, 224, 0.25);
  box-shadow: 0 4px 16px rgba(16, 36, 58, 0.06);
}

/* Cart page */
.cart-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cart-page__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #E4E7EC;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F7FAFF 55%, #EEF5FF 100%);
}
.cart-page__eyebrow {
  margin: 0 0 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #667085;
}
.cart-page__eyebrow i {
  color: #1769E0;
}
.cart-page__title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #0F1C2E;
  line-height: 1.2;
}
.cart-page__subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: #667085;
  line-height: 1.6;
  max-width: 36rem;
}
.cart-page__subtitle strong {
  color: #1769E0;
  font-weight: 800;
}
.cart-page__continue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid #D0D5DD;
  background: #fff;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cart-page__continue:hover {
  border-color: #1769E0;
  color: #1769E0;
  background: #F5F9FF;
}
.cart-page__layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .cart-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    align-items: start;
  }
}
.cart-page__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 36, 58, 0.04);
  transition: opacity 0.2s ease, transform 0.25s ease, border-color 0.2s ease;
}
.cart-line.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.cart-line.is-removing {
  opacity: 0;
  transform: translateY(0.35rem) scale(0.98);
}
@media (min-width: 640px) {
  .cart-line {
    grid-template-columns: 6.5rem 1fr;
    gap: 1.1rem;
    padding: 1.15rem 1.2rem;
  }
}
.cart-line__media {
  width: 5rem;
  height: 5rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #EEF4FF, #F8FAFC);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #1769E0;
  font-size: 1.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .cart-line__media {
    width: 6.5rem;
    height: 6.5rem;
  }
}
.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.cart-line__info {
  min-width: 0;
}
.cart-line__name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #101828;
  text-decoration: none;
  line-height: 1.35;
}
.cart-line__name:hover {
  color: #1769E0;
}
.cart-line__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.cart-line__chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #EEF4FF;
  color: #175CD3;
}
.cart-line__sku {
  font-size: 0.72rem;
  font-weight: 600;
  color: #98A2B3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.cart-line__unit {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #667085;
}
.cart-line__unit strong {
  color: #1769E0;
  font-weight: 800;
}
.cart-line__remove {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: #FEF3F2;
  color: #D92D20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cart-line__remove:hover {
  background: #FEE4E2;
  color: #B42318;
  transform: translateY(-1px);
}
.cart-line__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cart-line__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cart-line__step {
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  background: transparent;
  color: #344054;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-line__step:hover:not(:disabled) {
  background: #F2F4F7;
  color: #1769E0;
}
.cart-line__step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cart-line__qty {
  min-width: 2.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #101828;
  font-variant-numeric: tabular-nums;
}
.cart-line__total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.cart-line__total span {
  font-size: 0.72rem;
  color: #98A2B3;
  font-weight: 600;
}
.cart-line__total strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F1C2E;
}
.cart-line__stock {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #067647;
}
.cart-page__summary {
  position: relative;
}
.cart-summary {
  position: sticky;
  top: 6.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #E4E7EC;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  box-shadow: 0 12px 32px rgba(16, 36, 58, 0.06);
}
.cart-summary__title {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F1C2E;
}
.cart-summary__title i {
  color: #1769E0;
}
.cart-summary__buyer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px dashed #D0D5DD;
}
.cart-summary__buyer-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #344054;
}
.cart-summary__buyer-title i {
  color: #1769E0;
}
.cart-summary__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cart-summary__field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475467;
}
.cart-summary__input {
  width: 100%;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cart-summary__input:focus {
  border-color: #1769E0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
.cart-summary__textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.5;
}
.cart-gov {
  position: relative;
}
.cart-gov__control {
  position: relative;
  display: flex;
  align-items: center;
}
.cart-gov__icon {
  position: absolute;
  right: 0.75rem;
  color: #98A2B3;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}
.cart-gov__input {
  padding-right: 2.15rem;
  padding-left: 2.35rem;
}
.cart-gov.is-open .cart-gov__input,
.cart-gov.is-valid .cart-gov__input {
  border-color: #1769E0;
}
.cart-gov.is-invalid .cart-gov__input {
  border-color: #F04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.1);
}
.cart-gov.is-valid .cart-gov__input {
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}
.cart-gov__toggle {
  position: absolute;
  left: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.cart-gov__toggle:hover {
  background: #F2F4F7;
  color: #1769E0;
}
.cart-gov.is-open .cart-gov__toggle {
  color: #1769E0;
  transform: rotate(180deg);
}
.cart-gov__list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.12);
}
.cart-gov__list[hidden] {
  display: none !important;
}
.cart-gov__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #344054;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.cart-gov__option::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #D0D5DD;
  flex-shrink: 0;
}
.cart-gov__option:hover,
.cart-gov__option.is-active {
  background: #EAF3FF;
  color: #1769E0;
}
.cart-gov__option:hover::before,
.cart-gov__option.is-active::before {
  background: #1769E0;
}
.cart-gov__option.is-selected {
  background: #1769E0;
  color: #fff;
}
.cart-gov__option.is-selected::before {
  background: #fff;
}
.cart-gov__option[hidden] {
  display: none !important;
}
.cart-gov__empty {
  padding: 0.85rem 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: #98A2B3;
}
.cart-gov__hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #F04438;
}
.cart-gov__hint[hidden] {
  display: none !important;
}
.cart-summary__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-summary__rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #475467;
}
.cart-summary__rows strong {
  color: #101828;
  font-weight: 700;
}
.cart-summary__total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #D0D5DD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cart-summary__total span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #344054;
}
.cart-summary__total strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1769E0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-summary__total strong.is-bump {
  animation: cart-summary-bump 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cart-summary-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.cart-summary__note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #98A2B3;
}
.cart-summary__checkout {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #1769E0, #2583F7);
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.28);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cart-summary__checkout:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.cart-summary__link {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #667085;
  text-decoration: none;
}
.cart-summary__link:hover {
  color: #1769E0;
}
.cart-page__empty {
  text-align: center;
  padding: 3rem 1.25rem;
  border: 1px dashed #D0D5DD;
  border-radius: 16px;
  background: #fff;
}
.cart-page__empty[hidden],
.cart-page__layout[hidden] {
  display: none !important;
}
.cart-page__empty-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2F4F7;
  color: #98A2B3;
  font-size: 1.85rem;
}
.cart-page__empty h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #101828;
}
.cart-page__empty p {
  margin: 0.55rem auto 0;
  max-width: 26rem;
  font-size: 0.92rem;
  color: #667085;
  line-height: 1.7;
}
.cart-page__empty-cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 639px) {
  .cart-page__hero {
    padding: 1rem;
  }
  .cart-page__continue {
    width: 100%;
    justify-content: center;
  }
  .cart-summary {
    position: static;
  }
}


/* Policy / static pages */
.policy-section--success {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, #fff 0%, #f3fbf6 100%);
}
.policy-section--success .policy-section__icon {
  background: #dcfce7;
  color: #16a34a;
}
.policy-section--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}
.policy-section--warning .policy-section__icon {
  background: #fef3c7;
  color: #d97706;
}
.policy-page__hero {
  box-shadow: 0 12px 32px rgba(8, 21, 37, 0.18);
}
@media (max-width: 639px) {
  .policy-page .grid.sm\:grid-cols-3 > div {
    min-width: 0;
  }
}

/* Order invoice */
.order-page {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.order-page__success {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ECFDF3, #F0FDF4);
  border: 1px solid #ABEFC6;
}
.order-page__success-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12B76A;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.order-page__success-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #027A48;
}
.order-page__success-text {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #059669;
}
.order-invoice {
  background: #fff;
  border: 1px solid #E4E7EC;
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}
.order-invoice__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.25rem;
  margin: -1.35rem -1.25rem 1.15rem;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #081525 0%, #10243A 55%, #143556 100%);
  border-bottom: 0;
  color: #fff;
}
.order-invoice__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.order-invoice__logo {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 0.25rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.order-invoice__brand-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.order-invoice__brand-tag {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #B8C5D6;
}
.order-invoice__meta {
  text-align: left;
}
.order-invoice__doc {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #7EB6FF;
}
.order-invoice__label {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #98A2B3;
}
.order-invoice__number {
  margin: 0.1rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #fff;
  letter-spacing: 0.02em;
  direction: ltr;
}
.order-invoice__date {
  margin: 0;
  font-size: 0.8rem;
  color: #B8C5D6;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.order-invoice__status {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(126, 182, 255, 0.18);
  color: #B8D7FF;
  font-size: 0.75rem;
  font-weight: 800;
}
.order-invoice__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.order-invoice__strip > div {
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  background: #F8FAFC;
  padding: 0.7rem 0.8rem;
}
.order-invoice__strip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #98A2B3;
}
.order-invoice__strip strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #101828;
}
@media (max-width: 640px) {
  .order-invoice__strip {
    grid-template-columns: 1fr;
  }
  .order-invoice__head {
    margin: -1rem -1rem 1rem;
  }
}
.order-invoice__parties {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
@media (min-width: 720px) {
  .order-invoice__parties {
    grid-template-columns: 1fr 1fr;
  }
}
.order-invoice__card {
  border: 1px solid #E4E7EC;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 0.95rem 1rem;
}
.order-invoice__card h2 {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1769E0;
}
.order-invoice__card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.order-invoice__card dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: #98A2B3;
}
.order-invoice__card dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #101828;
  line-height: 1.55;
  white-space: pre-line;
}
.order-invoice__table-wrap {
  overflow-x: auto;
  border: 1px solid #E4E7EC;
  border-radius: 14px;
}
.order-invoice__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}
.order-invoice__table th {
  background: #10243A;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  padding: 0.75rem 0.85rem;
}
.order-invoice__table td {
  padding: 0.8rem 0.85rem;
  border-top: 1px solid #EEF2F6;
  font-size: 0.88rem;
  color: #344054;
  vertical-align: top;
}
.order-invoice__table tbody tr:nth-child(even) td {
  background: #F9FBFD;
}
.order-invoice__product {
  display: block;
  font-weight: 800;
  color: #101828;
}
.order-invoice__sku {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #98A2B3;
}
.order-invoice__totals {
  margin-top: 1rem;
  margin-inline-start: auto;
  width: min(100%, 18rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.order-invoice__totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #475467;
}
.order-invoice__totals-row strong {
  color: #101828;
  font-weight: 800;
}
.order-invoice__totals-row--grand {
  margin-top: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #EAF3FF;
  color: #1769E0;
  font-weight: 800;
}
.order-invoice__totals-row--grand strong {
  color: #1769E0;
  font-size: 1.1rem;
}
.order-invoice__notes {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px dashed #D0D5DD;
  font-size: 0.85rem;
  color: #475467;
}
.order-invoice__footer-note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #98A2B3;
}
/* Store orders list */
.orders-page {
  display: grid;
  gap: 1.25rem;
}
.orders-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.orders-page__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
}
.orders-page__subtitle {
  margin-top: 0.25rem;
  color: #667085;
  font-size: 0.92rem;
}
.orders-page__account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #D0D5DD;
  background: #fff;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.orders-page__account-link:hover {
  border-color: #1769E0;
  color: #1769E0;
}
.orders-page__empty {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.25rem;
  background: #fff;
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  text-align: center;
  color: #667085;
}
.orders-page__empty i {
  font-size: 2rem;
  color: #98A2B3;
}
.orders-page__list {
  display: grid;
  gap: 0.85rem;
}
.orders-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .orders-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.15rem 1.25rem;
  }
}
.orders-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.7rem;
}
.orders-card__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  color: #1769E0;
  text-decoration: none;
  font-size: 1rem;
}
.orders-card__number:hover {
  text-decoration: underline;
}
.orders-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
@media (min-width: 640px) {
  .orders-card__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.orders-card__meta dt {
  font-size: 0.72rem;
  color: #98A2B3;
  margin-bottom: 0.15rem;
}
.orders-card__meta dd {
  font-size: 0.9rem;
  font-weight: 700;
  color: #101828;
}
.orders-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.orders-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.orders-card__btn--primary {
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
}
.orders-card__btn--ghost {
  background: #fff;
  border-color: #D0D5DD;
  color: #344054;
}
.orders-card__btn--ghost:hover {
  border-color: #1769E0;
  color: #1769E0;
}
.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.order-status--warning { background: #FFF7ED; color: #C2410C; }
.order-status--info { background: #EFF8FF; color: #175CD3; }
.order-status--brand { background: #EAF3FF; color: #1769E0; }
.order-status--success { background: #ECFDF3; color: #027A48; }
.order-status--danger { background: #FEF3F2; color: #B42318; }
.order-status--muted { background: #F2F4F7; color: #475467; }

/* Account profile */
.account-page {
  display: grid;
  gap: 1.25rem;
}
.account-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}
.account-page__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
}
.account-page__subtitle {
  margin-top: 0.25rem;
  color: #667085;
  font-size: 0.92rem;
}
.account-page__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.account-page__link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #D0D5DD;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.account-page__link-btn:hover {
  border-color: #1769E0;
  color: #1769E0;
}
.account-page__link-btn--danger {
  color: #B42318;
}
.account-page__link-btn--danger:hover {
  border-color: #B42318;
  color: #B42318;
}
.account-page__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 980px) {
  .account-page__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
  }
}
.account-card {
  background: #fff;
  border: 1px solid #E4E7EC;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.account-card__head {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #F2F4F7;
}
.account-card__head h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.account-card__head p {
  margin-top: 0.3rem;
  color: #667085;
  font-size: 0.86rem;
}
.account-card__body {
  padding: 1rem 1.15rem 1.15rem;
}
.account-card__foot {
  padding: 0 1.15rem 1.15rem;
}
.account-form {
  display: grid;
  gap: 0.85rem;
}
.account-form__row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .account-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.account-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #344054;
}
.account-form__input {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.account-form__input:focus {
  border-color: #1769E0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
.account-form__textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.account-form__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
  color: #98A2B3;
  font-size: 0.78rem;
  font-weight: 700;
}
.account-form__divider::before,
.account-form__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E4E7EC;
}
.account-form__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #344054;
  cursor: pointer;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.account-btn--sm {
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.account-btn--primary {
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
}
.account-btn--ghost {
  background: #fff;
  border-color: #D0D5DD;
  color: #344054;
}
.account-btn--ghost:hover {
  border-color: #1769E0;
  color: #1769E0;
}
.account-btn--danger-ghost {
  background: #fff;
  border-color: #FECDCA;
  color: #B42318;
}
.account-empty {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1.4rem 0.75rem;
  color: #667085;
  text-align: center;
}
.account-empty i {
  font-size: 1.5rem;
  color: #98A2B3;
}
.account-address-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.account-address {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  background: #FCFCFD;
}
.account-address.is-default {
  border-color: #B2DDFF;
  background: #F5FAFF;
}
@media (min-width: 640px) {
  .account-address {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.account-address__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.account-address__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #EAF3FF;
  color: #1769E0;
  font-size: 0.72rem;
  font-weight: 800;
}
.account-address__line,
.account-address__street,
.account-address__notes {
  font-size: 0.88rem;
  color: #475467;
  line-height: 1.55;
}
.account-address__line {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-weight: 700;
  color: #101828;
}
.account-address__notes {
  margin-top: 0.25rem;
  color: #98A2B3;
}
.account-address__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.account-address-form {
  padding-top: 1rem;
  border-top: 1px solid #F2F4F7;
}
.account-address-form__title {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.account-address-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#account-gov .cart-gov__control {
  position: relative;
}
#account-gov .account-form__input.cart-gov__input {
  padding-right: 2.4rem;
  padding-left: 2.4rem;
}

.order-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.order-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.order-page__btn--primary {
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.25);
}
.order-page__btn--ghost {
  background: #fff;
  color: #344054;
  border: 1px solid #D0D5DD;
}
.order-page__btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .order-invoice {
    padding: 1rem;
  }
  .order-invoice__meta {
    text-align: right;
  }
  .order-page__btn {
    width: 100%;
  }
}
@media print {
  .site-header,
  footer,
  .wa-float,
  .order-page__actions,
  .order-page__success {
    display: none !important;
  }
  .order-invoice {
    box-shadow: none;
    border: 0;
  }
}

/* ——— PWA Install Prompt ——— */
#pwa-install-root {
  position: relative;
  z-index: 60;
}
#pwa-install-root[hidden] {
  display: none !important;
}
.pwa-install {
  position: fixed;
  inset-inline: 0;
  z-index: 60;
  pointer-events: none;
}
.pwa-install--banner {
  bottom: 1rem;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}
.pwa-install--sheet {
  bottom: 0;
  padding: 0;
}
.pwa-install__inner {
  pointer-events: auto;
  position: relative;
  width: min(100%, 26rem);
  background: #fff;
  color: #101828;
  border: 1px solid #E4E7EC;
  box-shadow: 0 18px 48px rgba(8, 21, 37, 0.18);
  padding: 1rem 1.1rem 1.05rem;
}
.pwa-install--banner .pwa-install__inner {
  border-radius: 16px;
}
.pwa-install--sheet .pwa-install__inner {
  width: 100%;
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(8, 21, 37, 0.16);
}
.pwa-install__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.pwa-install__badge {
  font-size: 1.15rem;
  line-height: 1;
}
.pwa-install__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.pwa-install__text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #475467;
  line-height: 1.55;
}
.pwa-install__steps {
  margin: 0 0 0.9rem;
  padding-inline-start: 1.15rem;
  font-size: 0.84rem;
  color: #344054;
  line-height: 1.65;
}
.pwa-install__steps li + li {
  margin-top: 0.25rem;
}
.pwa-install__icon {
  display: inline-block;
}
.pwa-install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pwa-install--sheet .pwa-install__actions {
  flex-direction: column;
}
.pwa-install__btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.pwa-install__btn:hover {
  opacity: 0.94;
}
.pwa-install__btn:focus-visible {
  outline: 2px solid #1769E0;
  outline-offset: 2px;
}
.pwa-install__btn--primary {
  background: linear-gradient(135deg, #1769E0, #2583F7);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.22);
}
.pwa-install--sheet .pwa-install__btn--primary {
  width: 100%;
}
.pwa-install__btn--ghost {
  background: transparent;
  color: #475467;
  border: 1px solid #D0D5DD;
}
.pwa-install--sheet .pwa-install__btn--ghost {
  width: 100%;
}
.pwa-install__close {
  position: absolute;
  top: 0.55rem;
  inset-inline-start: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pwa-install__close:hover {
  background: #F2F4F7;
  color: #101828;
}
.pwa-install__close:focus-visible {
  outline: 2px solid #1769E0;
  outline-offset: 2px;
}
@media (min-width: 769px) {
  .pwa-install--banner .pwa-install__inner {
    width: min(100%, 34rem);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding-inline-end: 1.25rem;
  }
  .pwa-install--banner .pwa-install__actions {
    flex-wrap: nowrap;
  }
  .pwa-install--banner .pwa-install__text {
    margin-bottom: 0;
  }
}
@media print {
  #pwa-install-root,
  .pwa-install {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-install__btn {
    transition: none;
  }
}
