:root {
  --page-bg: #f2f5fb;
  --card-bg: #ffffff;
  --ink: #1d2638;
  --muted: #74809a;
  --line: #dfe5ef;
  --primary: #2f6df7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

body.has-right-cart {
  overflow-x: hidden;
  padding-right: 0;
}

@media (min-width: 1101px) {
  body.has-right-cart {
    padding-right: 340px;
  }
}

body.cart-overlay-open {
  overflow: hidden;
}

.shop-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(223, 229, 239, 0.95);
  border-radius: 18px;
  background: rgba(242, 245, 251, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(31, 52, 90, 0.08);
  transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
  font-size: 0.82rem;
  font-weight: 700;
  color: #314162;
}

body.search-bar-hidden .top-nav {
  transform: translateY(-130%);
  opacity: 0;
  box-shadow: none;
}
body.product-detail-open .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 340px;
  z-index: 1500;
  transform: none;
  opacity: 1;
  background: #f2f5fb;
  backdrop-filter: none;
  border-radius: 0;
  border-top: none;
  border-left: none;
  box-shadow: none;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #1f2d4d;
}

.brand-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-tools {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.75rem;
  align-items: center;
  justify-content: end;
}

.nav-orders-btn {
  border: 1px solid var(--line);
  background: #f3f5f9;
  color: #2b3652;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.nav-orders-btn:hover {
  background: #e9eef7;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f5f9;
  padding: 0.3rem 0.45rem;
  color: #2b3652;
}

.auth-settings-trigger {
  border: 1px solid transparent;
  background: transparent;
  color: #2b3652;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.auth-settings-trigger:hover {
  background: rgba(31, 58, 122, 0.08);
  border-color: rgba(31, 58, 122, 0.12);
}

input,
select,
button {
  font: inherit;
}

.nav-tools input,
.nav-tools select {
  border: 1px solid var(--line);
  background: #f8fafe;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  color: #253149;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f5f9;
  padding: 0.2rem 0.55rem 0.2rem 0.8rem;
  font-weight: 600;
  color: #2b3652;
}

.category-pill select {
  border: none;
  background: transparent;
  padding: 0.35rem 1.1rem 0.35rem 0;
  font-weight: 600;
}

.search-shell {
  display: flex;
  align-items: center;
  border: 2px solid #202020;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  min-height: 52px;
}

.search-shell input {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}

.search-shell input:focus {
  outline: none;
}

.search-button {
  width: 46px;
  height: 46px;
  margin-right: 4px;
  border: none;
  border-radius: 999px;
  background: #202020;
  padding: 0;
  position: relative;
}

.search-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transform: rotate(45deg);
  right: -6px;
  bottom: -3px;
}

.sort-pill {
  min-height: 52px;
  border-radius: 14px;
  padding-inline: 0.9rem;
}

.cart-indicator {
  position: relative;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #1f3a7a;
  padding: 0.35rem;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-indicator span {
  position: absolute;
  top: -4px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.storefront {
  display: grid;
  gap: 1rem;
}

.store-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(31, 52, 90, 0.08);
}

.checkout button {
  margin-top: 0.8rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, #ffb100, #ffd866);
  color: #3a2500;
  font-weight: 800;
  padding: 0.65rem 1.05rem;
  cursor: pointer;
}

.mini {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #556585;
}

.product-section,
.checkout-card,
.pulse-card {
  padding: 1rem;
}

.product-section h3,
.checkout-card h3,
.pulse-card h3,
.pulse-card h4 {
  margin: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.product-card[data-open-product] {
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #edf3ff;
}

.product-info {
  padding: 0.65rem;
}

.product-info h3 {
  margin: 0;
  font-size: 0.96rem;
}

.product-info p {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  text-transform: uppercase;
  color: #2753b8;
  background: var(--primary-soft);
}

.tag.low {
  color: #8d2e11;
  background: #ffe1c7;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.old-price {
  text-decoration: line-through;
  color: #ad7a7a;
  font-size: 0.8rem;
}

.new-price {
  color: #1a3b82;
  font-size: 1rem;
  font-weight: 800;
}

.product-info button {
  width: 100%;
  margin-top: 0.55rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(120deg, #3778ff, #4b90ff);
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.product-card-actions {
  display: grid;
  gap: 0.4rem;
}

.product-view-btn {
  width: 100%;
  margin-top: 0.55rem;
  border: 1px solid #c9d7f4;
  border-radius: 8px;
  background: #f4f8ff;
  color: #1a3b82;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.product-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 340px;
  bottom: 0;
  z-index: 1300;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 6.2rem 0 0;
}

.product-detail-modal.hidden {
  display: none;
}

.product-detail-card {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 6.2rem);
  padding: 1rem;
  max-height: none;
  overflow-x: hidden;
  overflow-y: scroll;
  background: #ffffff;
  border-radius: 0;
  padding: 1rem;
  position: relative;
  gap: 1rem;
  padding: 1rem;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #9fb4df #edf3ff;
}

.product-detail-card::-webkit-scrollbar {
  width: 12px;
}

.product-detail-card::-webkit-scrollbar-track {
  background: #edf3ff;
}

.product-detail-card::-webkit-scrollbar-thumb {
  background: #9fb4df;
  border-radius: 999px;
  border: 2px solid #edf3ff;
}

.product-detail-card::-webkit-scrollbar-thumb:hover {
  background: #7f98ca;
}

.product-detail-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef3fc;
  color: #22334f;
  font-size: 1rem;
  font-weight: 800;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
}

.product-detail-main-media {
  position: relative;
  grid-column: 2;
  border: 1px solid #d9e2f3;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.35rem;
}

.product-detail-main-image {
  width: 100%;
  height: 680px;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f7ff;
}

.product-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 33, 59, 0.9);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.product-detail-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.product-detail-nav-prev {
  left: 0.85rem;
}

.product-detail-nav-next {
  right: 0.85rem;
}

.product-detail-thumbs {
  margin-top: 0;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-auto-rows: 64px;
  gap: 0.4rem;
  max-height: 680px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.product-detail-store-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.2rem 0.2rem;
}

.product-detail-store-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #d6e0f2;
  display: grid;
  place-items: center;
  background: #eef4ff;
}

.product-detail-store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-store-logo.hidden,
.product-detail-store-logo-fallback.hidden {
  display: none;
}

.product-detail-store-logo-fallback {
  font-weight: 800;
  color: #1d396f;
}

.product-detail-store-copy {
  display: grid;
  gap: 0.1rem;
}

.product-detail-store-copy small {
  color: #60759d;
}

.product-detail-store-copy strong {
  color: #132a52;
}

.product-detail-thumb {
  border: 1px solid #d4ddf0;
  border-radius: 10px;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.product-detail-thumb.is-active {
  border-color: #2a74ff;
  box-shadow: 0 0 0 2px rgba(42, 116, 255, 0.18);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.product-detail-info h3 {
  margin: 0;
  font-size: 1.55rem;
  color: #12213b;
}

.product-detail-description {
  margin: 0;
  color: #4e5e80;
  line-height: 1.4;
}

.product-detail-stock {
  margin: 0;
  font-weight: 700;
  color: #334d7a;
}

.product-detail-actions {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.45rem;
  width: min(250px, 100%);
}

.product-detail-actions label {
  font-weight: 700;
  color: #24385a;
}

.product-detail-actions select {
  border: 1px solid #c9d6eb;
  border-radius: 9px;
  padding: 0.48rem;
  background: #ffffff;
}

.product-detail-actions button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, #3778ff, #4b90ff);
  color: #fff;
  font-weight: 700;
  padding: 0.58rem 0.7rem;
}

.product-detail-related-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #dfe5ef;
}

.product-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-detail-related-card {
  min-width: 0;
}

.product-detail-related-card img {
  height: 140px;
}

.product-detail-related-empty {
  margin: 0;
  color: #4e5e80;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.8rem;
}

.cart-rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  padding: 0.85rem;
  max-height: 100vh;
  overflow: auto;
  border-radius: 0;
  border-right: none;
}

.cart-overlay-layout {
  display: grid;
  gap: 1rem;
}

body:not(.cart-overlay-open) .cart-overlay-layout {
  grid-template-columns: 1fr;
}

body:not(.cart-overlay-open) .cart-summary-panel {
  display: none;
}

body:not(.cart-overlay-open) .cart-item-description {
  display: none;
}

.cart-main-panel {
  min-width: 0;
}

.cart-buy-now-btn {
  position: sticky;
  bottom: 0.55rem;
  width: 100%;
  margin-top: 0.9rem;
  border: none;
  border-radius: 999px;
  padding: 0.86rem 1rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(130deg, #0f6dff, #0a3ea8);
  box-shadow: 0 10px 22px rgba(10, 62, 168, 0.28);
  z-index: 5;
}

.cart-buy-now-btn:hover {
  filter: brightness(1.05);
}

.cart-summary-panel {
  border: 1px solid #d7dce6;
  border-radius: 18px;
  padding: 1.1rem;
  background: #fbfbfd;
}

.cart-summary-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: #2e3238;
}

.cart-summary-rows {
  display: grid;
  gap: 0.55rem;
}

.cart-summary-rows p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: #30343b;
}

.summary-old-price {
  color: #666e7c;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.summary-chip {
  background: #ff7f00;
  color: #fff;
  border-radius: 7px;
  padding: 0.1rem 0.4rem;
  font-weight: 700;
}

.cart-summary-divider {
  height: 1px;
  background: #d7dce6;
  margin: 0.9rem 0;
}

.cart-summary-shipping .summary-free {
  color: #1f9a34;
  font-weight: 800;
}

.summary-grand {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-summary-note {
  margin: 0.5rem 0 0.8rem;
  color: #555d6d;
  font-size: 0.9rem;
}

.checkout-paypal-btn {
  border-radius: 999px;
  border: 1px solid #b7becd;
  background: #fff;
  color: #152238;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
}

.checkout-paypal-btn strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f5fbf;
}

.cart-overlay-close {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #eef3fc;
  color: #22334f;
  font-size: 1rem;
  font-weight: 800;
}

body.cart-overlay-open .cart-rail {
  inset: 0;
  width: auto;
  max-height: none;
  z-index: 1700;
  padding: 1.25rem;
  background: #ffffff;
  overflow-y: auto;
}

body.cart-overlay-open .cart-overlay-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

body.cart-overlay-open .cart-summary-panel {
  position: sticky;
  top: 1rem;
}

body.cart-overlay-open .cart-buy-now-btn {
  display: none;
}

body.cart-overlay-open .cart-continue-section {
  display: block;
}

body.cart-overlay-open .cart-overlay-close {
  display: grid;
  place-items: center;
}

.cart-subtotal {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1a2540;
}

.cart-go-btn {
  margin-top: 0.65rem;
  width: 100%;
  border-radius: 999px;
  border: 1px solid #9fa8bb;
  background: #f8f9fc;
  color: #222f4d;
  padding: 0.72rem 0.9rem;
  font-weight: 700;
}

.cart-selection-label {
  margin: 0.85rem 0 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.cart-select-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.cart-rail-items {
  display: grid;
  gap: 0.85rem;
}

.cart-continue-section {
  display: none;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

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

.cart-continue-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-rows: 130px auto;
}

.cart-continue-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #eef2f9;
}

.cart-continue-body {
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.cart-continue-name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2a3d;
}

.cart-continue-price {
  margin: 0;
  color: #0b3f97;
  font-weight: 800;
}

.cart-continue-body button {
  border-radius: 999px;
  border: 1px solid #0b4ec2;
  background: #ffffff;
  color: #0b4ec2;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-rail-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  background: #f8faff;
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.cart-rail-item.is-round-unselected {
  opacity: 0.7;
}

.cart-item-round-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.cart-item-round-toggle.is-selected {
  background: transparent;
}

.cart-check-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #8e98aa;
  background: #f6f8fc;
  display: inline-block;
  position: relative;
}

.cart-check-dot.is-selected {
  border-color: #1f2024;
  background: #1f2024;
}

.cart-check-dot.is-selected::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.cart-item-media {
  min-width: 0;
}

.cart-rail-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: #e9eef8;
}

.cart-item-details {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.cart-item-title {
  margin: 0;
  padding-right: 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #273657;
}

.cart-item-description {
  margin: 0;
  font-size: 0.875rem;
  color: #74809a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-size {
  margin: 0;
  font-size: 0.82rem;
  color: #1f3a7a;
  font-weight: 700;
}

.cart-item-badge {
  margin: 0;
  background: #ff7f00;
  color: #fff;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-item-price {
  margin: 0;
  text-align: left;
  color: #ff7f00;
  font-size: 1.35rem;
  font-weight: 800;
}

.cart-item-controls {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.cart-item-controls select {
  flex: 1;
  border: 1px solid #c5cde0;
  background: #fff;
}

.cart-item-controls button {
  border: none;
  border-radius: 8px;
  background: #e33b63;
  color: #fff;
  padding: 0.5rem 0.6rem;
  font-weight: 700;
}

.cart-items {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  border-bottom: 1px dashed #d5ddec;
  padding-bottom: 0.4rem;
  font-size: 0.9rem;
}

.totals p {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.grand {
  font-size: 1.05rem;
  font-weight: 700;
}

.checkout {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.checkout input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
}

.message {
  min-height: 1.2rem;
  margin-top: 0.55rem;
  color: #2f5fd2;
  font-weight: 600;
  font-size: 0.86rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 23, 33, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  padding: 1rem;
}

.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 23, 33, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2300;
  padding: 1rem;
}

.auth-modal.hidden,
.payment-modal.hidden,
.auth-form.hidden {
  display: none;
}

.google-only-auth .auth-mode-switch,
.google-only-auth #loginForm,
.google-only-auth #sendCodeForm,
.google-only-auth #verifyCodeForm,
.google-only-auth #resetPasswordForm {
  display: none !important;
}

.auth-modal-card {
  width: min(420px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(22, 33, 52, 0.35);
}

.payment-modal-card {
  width: min(760px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(22, 33, 52, 0.35);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.payment-breadcrumb {
  margin: 0 0 0.5rem;
  color: #7b8698;
  font-size: 0.82rem;
}

.payment-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #effbea, #f7fcf2);
  color: #2d6a32;
  margin-bottom: 0.8rem;
}

.payment-banner strong {
  font-size: 0.98rem;
}

.payment-banner span {
  font-size: 0.82rem;
  color: #4d6b52;
}

.auth-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-modal-head-end {
  justify-content: flex-end;
}

.payment-modal-head h3 {
  margin: 0;
}

.auth-modal-head h3 {
  margin: 0;
}

.auth-modal-head button {
  border: 1px solid var(--line);
  background: #f6f9ff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-weight: 700;
  cursor: pointer;
}

.payment-modal-head button {
  border: 1px solid var(--line);
  background: #f6f9ff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-weight: 700;
  cursor: pointer;
}

.auth-help {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-help {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-block {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e9f1;
}

.payment-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.payment-block-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #25324a;
}

.payment-block-head span {
  font-size: 0.84rem;
  color: #697588;
}

.payment-address-card {
  border: 1px solid #dbe2ee;
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.3rem;
}

.payment-address-name {
  margin: 0;
  font-weight: 800;
  color: #1d2f4f;
}

.payment-address-line,
.payment-address-meta {
  margin: 0;
  color: #4e5f78;
  font-size: 0.9rem;
}

.payment-green-note {
  margin: 0.55rem 0 0;
  color: #249a38;
  font-size: 0.88rem;
  font-weight: 600;
}

.payment-products-list {
  display: grid;
  gap: 0.7rem;
}

.payment-product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.payment-product-card img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f8;
}

.payment-product-info {
  display: grid;
  gap: 0.25rem;
}

.payment-product-name {
  margin: 0;
  font-weight: 700;
  color: #1e2a40;
}

.payment-product-meta,
.payment-product-price {
  margin: 0;
  font-size: 0.88rem;
  color: #546479;
}

.payment-product-price {
  color: #ff7a00;
  font-weight: 800;
}

.payment-form {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.payment-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
  padding: 0.65rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #2a3345;
}

.payment-option span {
  font-weight: 700;
}

.payment-option input {
  margin-top: 0.15rem;
}

.payment-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #f5f8ff;
  display: grid;
  gap: 0.4rem;
}

.payment-summary p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.payment-summary strong {
  color: #1f3f85;
}

@media (max-width: 650px) {
  .payment-banner,
  .payment-block-head,
  .payment-summary p {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .payment-product-card img {
    width: 100%;
    height: 180px;
  }
}

@media (hover: none) and (pointer: coarse) {
  body,
  body.has-right-cart {
    padding-right: 0 !important;
  }

  body.has-right-cart .shop-shell,
  .shop-shell {
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0 0.5rem 1rem;
  }

  body:not(.cart-overlay-open) .cart-rail {
    display: none;
  }

  .store-grid,
  .storefront,
  .product-section {
    width: 100%;
    max-width: none;
  }
}

.payment-form button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, #3778ff, #4b90ff);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem;
}

.payment-proof-card {
  width: min(560px, 100%);
}

.payment-success-box {
  border-radius: 50%;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 1.45rem 1.55rem;
  background: #2f36d6;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  display: grid;
  gap: 0.1rem;
  place-items: center;
}

.payment-success-icon {
  font-size: clamp(4.8rem, 9.2vw, 6.3rem);
  line-height: 0.92;
  font-weight: 900;
  margin-top: 0;
}

.payment-success-title {
  font-size: clamp(1.95rem, 4.4vw, 2.6rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.payment-success-note {
  margin: 0.15rem auto 0;
  text-align: center;
  font-weight: 700;
  color: #1f3566;
}

.payment-upload-box {
  border: 2px dashed #b9c8e6;
  border-radius: 12px;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 1rem;
  background: #f8fbff;
  text-align: center;
  color: #30569d;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.payment-upload-box.hidden {
  display: none;
}

.payment-upload-box input {
  display: none;
}

.payment-receipt-preview-wrap {
  width: min(100%, 340px);
  margin: 0 auto;
  border: 1px solid #d5e0f3;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fbff;
}

.payment-receipt-preview-wrap.hidden {
  display: none;
}

.payment-receipt-preview {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #ffffff;
}

.auth-mode-switch {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.auth-mode-btn {
  border: 1px solid var(--line);
  background: #f4f7ff;
  color: #2d3c5d;
  border-radius: 10px;
  padding: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-btn.active {
  border-color: #2f6df7;
  background: #2f6df7;
  color: #fff;
}

.auth-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  background: #fafcff;
}

.auth-form button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, #3778ff, #4b90ff);
  color: #fff;
  font-weight: 700;
  padding: 0.55rem;
}

.auth-form .auth-link-btn {
  background: transparent;
  color: #2f6df7;
  padding: 0.1rem;
  text-align: left;
  border-radius: 0;
}

.google-login-container {
  margin-top: 0.15rem;
  display: flex;
  justify-content: center;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  flex: 1;
  padding-right: 2.4rem;
}

.password-wrap .toggle-pw {
  position: absolute;
  right: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  font-weight: 400;
}

.user-page {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #f2f5fb;
  padding: 1rem;
  overflow: auto;
}

.user-page.hidden {
  display: none;
}

.user-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.user-page-head h2 {
  margin: 0;
}

.user-page-actions {
  display: flex;
  gap: 0.5rem;
}

.user-page-actions button {
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: #1f3a7a;
  color: #fff;
  font-weight: 700;
}

.user-page-actions .ghost {
  background: #eef3ff;
  color: #2f4e90;
  border: 1px solid #d8e2fb;
}

.user-settings-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0.9rem;
}

.user-settings-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.6rem;
  display: grid;
  gap: 0.25rem;
  height: fit-content;
  position: sticky;
  top: 0.75rem;
}

.user-settings-item {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  text-align: left;
  font-weight: 600;
  color: #303a4d;
  cursor: pointer;
}

.user-settings-item:hover {
  background: #f3f6ff;
}

.user-settings-item.active {
  background: #edf3ff;
  color: #1e4ca8;
}

.user-settings-content {
  min-width: 0;
}

.user-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.user-page-grid-full {
  margin-top: 0.9rem;
}

.user-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
}

.user-card h3 {
  margin: 0 0 0.6rem;
}

.user-card p {
  margin: 0.35rem 0;
}

.user-credit-balance {
  margin: 0.4rem 0 0.2rem;
  font-size: 2rem;
  font-weight: 800;
  color: #1a3b82;
}

.user-inline-note {
  margin-top: 0.65rem;
  color: #4b5d82;
  font-size: 0.9rem;
}

.user-inline-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.user-inline-form input,
.user-inline-form textarea,
.user-inline-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
  padding: 0.55rem 0.65rem;
  color: #20304f;
}

.user-inline-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #223459;
}

.user-address-form {
  gap: 0.4rem;
}

.user-customs-box {
  margin-top: 0.35rem;
  border: 1px solid #5fca63;
  border-radius: 10px;
  background: #ecffed;
  padding: 0.6rem;
}

.user-customs-title {
  margin: 0;
  color: #16821a;
  font-weight: 800;
}

.user-customs-note {
  margin: 0.35rem 0 0.55rem;
  color: #236727;
  font-size: 0.86rem;
}

.user-inline-form textarea {
  resize: vertical;
}

.user-inline-form button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, #3778ff, #4b90ff);
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.user-toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #233356;
  font-weight: 600;
}

.user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-height: 300px;
  overflow: auto;
}

.user-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
  padding: 0.55rem 0.6rem;
  font-size: 0.88rem;
}

.user-address-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.user-address-selected {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  color: #0f7a30;
  font-size: 0.74rem;
  font-weight: 700;
}

.user-address-actions {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.user-address-actions button {
  border: 1px solid #9eb0d4;
  border-radius: 999px;
  background: #ffffff;
  color: #1f3260;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.user-order-card {
  padding: 0;
  overflow: hidden;
}

.user-order-head,
.user-order-main,
.user-order-foot {
  padding: 0.6rem 0.7rem;
}

.user-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid #e3e8f2;
}

.user-order-head p {
  margin: 0;
  font-size: 0.92rem;
}

.user-order-progress {
  position: relative;
  padding: 0.55rem 0.9rem 0.3rem;
}

.user-order-progress-track,
.user-order-progress-fill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 4px;
  border-radius: 999px;
}

.user-order-progress-track {
  background: #e4e9f5;
}

.user-order-progress-fill {
  width: var(--order-progress, 0%);
  right: auto;
  background: linear-gradient(90deg, #ff6a00, #ff7a00);
}

.user-order-progress-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.user-order-progress-steps .user-order-progress-step {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0.85rem 0 0;
  font-size: 0.72rem;
  color: rgba(31, 44, 70, 0.46);
  font-weight: 600;
  text-align: center;
}

.user-order-progress-step::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid #cbd4e6;
  background: #fff;
}

.user-order-progress-steps .user-order-progress-step.is-active {
  color: rgba(31, 44, 70, 0.7);
}

.user-order-progress-steps .user-order-progress-step.is-active::before {
  border-color: #ff7a00;
  background: #ff7a00;
}

.user-order-progress-steps .user-order-progress-step.is-current {
  color: #ff5a00;
  font-weight: 800;
}

.user-order-progress-steps .user-order-progress-step.is-current::before {
  width: 12px;
  height: 12px;
  top: 0;
  border-color: #ff5a00;
  background: #ff5a00;
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.2);
}

.user-order-link-btn {
  border: none;
  background: transparent;
  color: #f97316;
  font-weight: 700;
  padding: 0;
}

.user-order-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0.8rem;
  align-items: start;
}

.user-order-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.user-order-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f8;
  border: 1px solid #dce3f0;
}

.user-order-thumb-empty {
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 700;
}

.user-order-actions {
  display: grid;
  gap: 0.45rem;
}

.user-order-actions button {
  border-radius: 999px;
  border: 1px solid #f97316;
  background: #fff;
  color: #f97316;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

.user-order-actions button.ghost {
  border-color: #b8c1d3;
  color: #1f2c46;
}

.user-order-foot {
  border-top: 1px solid #e3e8f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #33425f;
  font-size: 0.82rem;
}

.contact-fab {
  position: fixed;
  right: calc(320px + 1.2rem);
  bottom: 1rem;
  z-index: 55;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  align-items: flex-end;
}

.contact-fab-toggle {
  border: none;
  border-radius: 999px;
  width: 60px;
  height: 44px;
  padding: 0;
  background: #1f3a7a;
  color: #fff;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(26, 42, 84, 0.28);
}

.contact-fab-menu {
  display: grid;
  gap: 0.45rem;
  min-width: 66px;
}

.contact-fab-menu.hidden {
  display: none;
}

.contact-fab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2d4d;
  width: 66px;
  height: 56px;
  padding: 0;
  font-weight: 700;
}

.contact-fab-item:hover {
  background: #f1f6ff;
}

.contact-fab-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.metrics {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  background: #f9fbff;
}

.metric small {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 0.2rem;
}

.pulse-card h4 {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 140px;
  overflow: auto;
}

.list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  body.has-right-cart {
    padding-right: 0;
  }

  .product-detail-modal {
    top: 0;
    left: 0;
    right: 1rem;
    bottom: 0;
    padding-top: 8.3rem;
  }

  body.product-detail-open .top-nav {
    top: 0;
    left: 0;
    right: 0.5rem;
  }

  body.has-right-cart .shop-shell {
    width: min(1200px, calc(100% - 1rem));
    margin: 0.6rem auto 1rem;
  }

  .top-nav {
    grid-template-columns: 1fr;
    top: 0.5rem;
    padding: 0.75rem;
  }

  .brand-tools {
    justify-content: space-between;
    width: 100%;
  }

  .nav-tools {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .menu,
  .nav-tools {
    justify-content: flex-start;
  }

  .store-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .store-grid > *,
  .storefront,
  .storefront .card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .cart-rail {
    display: none;
  }

  body.cart-overlay-open .cart-rail {
    display: block;
    position: fixed;
    inset: 0;
    width: auto;
    max-height: none;
    z-index: 1700;
    padding: 1.25rem;
    border-radius: 0;
    border-right: none;
    background: #ffffff;
    overflow-y: auto;
  }
  
  .store-grid,
  .checkout-layout {
    display: block;
    width: 100%;
  }

  .cart-rail-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .cart-continue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cart-overlay-open .cart-overlay-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .cart-item-description {
    -webkit-line-clamp: 1;
    font-size: 0.8125rem;
  }

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

  .contact-fab {
    right: 1rem;
    bottom: 1rem;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-gallery {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .product-detail-main-media {
    grid-column: auto;
  }

  .product-detail-main-image {
    height: 340px;
  }

  .product-detail-thumbs {
    grid-column: auto;
    grid-row: auto;
    grid-auto-flow: column;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    max-height: none;
    overflow-y: visible;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-detail-store-brand {
    grid-column: auto;
    padding: 0.2rem 0;
  }

  .product-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-card {
    min-height: calc(100vh - 8.3rem);
  }
}

@media (max-width: 650px) {
  body,
  body.has-right-cart {
    padding-right: 0 !important;
  }

  body.has-right-cart .shop-shell,
  .shop-shell {
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0 0.5rem 1rem;
  }

  body:not(.cart-overlay-open) .cart-rail {
    display: none;
  }

  body.cart-overlay-open .cart-rail {
    display: block;
  }

  .storefront,
  .product-section {
    width: 100%;
    max-width: none;
  }

  .store-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .store-grid > *,
  .storefront,
  .storefront .card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .product-detail-modal {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: stretch;
    align-items: stretch;
    padding: 6.7rem 0 0;
  }

  body.product-detail-open .top-nav {
    top: 0;
    left: 0;
    right: 0;
  }

  .shop-shell {
    width: 100% !important;
  }

  .contact-fab {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .user-settings-layout {
    grid-template-columns: 1fr;
  }

  .user-settings-panel {
    position: static;
  }

  .user-page-grid {
    grid-template-columns: 1fr;
  }

  .user-order-main {
    grid-template-columns: 1fr;
  }

  .user-order-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-order-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cart-rail-item {
    grid-template-columns: 1fr;
  }

  .cart-continue-grid {
    grid-template-columns: 1fr;
  }

  body.cart-overlay-open .cart-overlay-layout {
    grid-template-columns: 1fr;
  }

  body.cart-overlay-open .cart-summary-panel {
    position: static;
  }

  .cart-rail-item img {
    height: 180px;
  }

  .cart-item-description {
    -webkit-line-clamp: 1;
    font-size: 0.8rem;
  }

  .product-detail-card {
    min-height: calc(100vh - 6.7rem);
    padding: 0.75rem;
    border-radius: 0;
  }

  .product-detail-main-image {
    height: 280px;
  }

  .product-detail-thumbs {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-related-grid {
    grid-template-columns: 1fr;
  }

  body.product-detail-open .top-nav {
    top: 0;
    left: 0;
    right: 0;
  }
}
