:root {
  --ink: #050505;
  --coal: #2f2f2f;
  --muted: #6f6f6f;
  --faint: #9a9a9a;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --paper: #ffffff;
  --orange: #ff8a00;
  --green: #2fa66a;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.07);
  --small-shadow: 0 10px 26px rgba(0, 0, 0, 0.045);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  direction: ltr;
  display: grid;
  grid-template-columns: 220px 1fr minmax(320px, 460px);
  align-items: center;
  height: var(--header-height);
  padding: 0 clamp(22px, 3.6vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-mark,
.footer-brand {
  display: block;
  width: 134px;
  height: 38px;
  background-image: url("assets/cubic-logo-final.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-brand {
  width: 108px;
  height: 31px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(34px, 5vw, 68px);
  height: 100%;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
  font-weight: 650;
}

.main-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  width: 48px;
}

.header-actions,
.toolbar-actions,
.view-toggle {
  display: flex;
  align-items: center;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.header-search {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 360px);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  color: var(--muted);
}

.header-search svg {
  width: 18px;
  height: 18px;
}

.header-search input {
  direction: ltr;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  text-align: left;
}

.header-search kbd {
  color: var(--muted);
  font: inherit;
  white-space: nowrap;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button:hover,
.icon-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.icon-button:active {
  transform: scale(0.96);
}

.menu-button {
  display: none;
}

.cart-count {
  position: absolute;
  right: -2px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
}

.cart-count.has-incomplete-order {
  background: #e11919;
}

.cart-button.has-incomplete-order {
  border-color: rgba(225, 25, 25, 0.45);
}

.customer-notification-count {
  position: absolute;
  right: -2px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.featured {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(24px, 3.2vw, 38px);
  padding: 28px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.featured-intro {
  direction: rtl;
  text-align: right;
}

.featured-intro h1 {
  margin: 5px 0 10px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
}

.featured-intro p:not(.section-kicker) {
  max-width: 360px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.featured-media,
.featured-photo {
  width: min(430px, 100%);
  min-height: 220px;
  aspect-ratio: 1.42;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #f4f4f4 100%);
  overflow: hidden;
}

.featured-photo img {
  width: 100%;
  height: 100%;
  max-width: 84%;
  max-height: 220px;
  object-fit: contain;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
}

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
}

.primary-button:hover {
  background: var(--coal);
  border-color: var(--coal);
}

.primary-button:disabled,
.primary-button.is-disabled,
.quantity-stepper button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.secondary-button:hover {
  border-color: var(--ink);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

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

.catalog-shell {
  direction: ltr;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 32px clamp(20px, 3.6vw, 56px) 12px;
}

.filters {
  direction: rtl;
  text-align: right;
  align-self: start;
  border-right: 1px solid var(--line);
  background: #fff;
}

.products-area {
  direction: rtl;
  text-align: right;
}

.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 20px 14px 0;
  border-bottom: 1px solid var(--line);
}

.filters-heading h2,
.products-toolbar h2,
.section-row h2 {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.1;
}

.filters-heading svg {
  width: 18px;
  height: 18px;
}

.filters form {
  padding-right: 18px;
}

fieldset {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  width: 100%;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #171717;
  font-size: 13px;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--ink);
}

.range-row {
  padding: 2px 0 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.price-inputs span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  font-weight: 760;
}

.products-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-actions {
  gap: 11px;
}

.mobile-filter-trigger {
  display: none;
}

.sort-label {
  font-size: 13px;
  font-weight: 720;
}

select {
  min-width: 118px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 720;
}

.view-toggle {
  gap: 7px;
}

.view-toggle .icon-button {
  border-radius: var(--radius);
}

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

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

.product-card {
  position: relative;
  min-width: 0;
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--small-shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: #dcdcdc;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-grid.list .product-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
}

.product-media,
.soon-media {
  position: relative;
  display: block;
  aspect-ratio: 1.1;
  min-height: 210px;
  overflow: hidden;
  background: #f7f7f7;
}

.product-photo,
.soon-photo,
.featured-photo,
.main-product-media,
.thumb,
.recommend-item > div {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
}

.product-photo,
.soon-photo {
  width: 100%;
  height: 100%;
}

.product-photo img,
.soon-photo img,
.main-product-media img,
.thumb img,
.recommend-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty-photo,
.detail-image-placeholder {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  min-height: 104px;
  padding: 16px;
}

.product-info h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.25;
}

.product-copy {
  display: none;
  margin: 0;
  color: var(--coal);
  line-height: 1.55;
}

.price {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 800;
}

.product-rating {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-badge,
.status-pill,
.soon-badge,
.availability-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 0 12px;
}

.status-badge.preorder,
.status-pill.preorder {
  background: var(--orange);
}

.status-badge.low,
.status-pill.low {
  background: #8a5a00;
}

.status-badge.out,
.status-pill.out {
  background: #b00020;
}

.order-status-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  width: max-content;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  padding: 0 13px;
  color: #111;
  font-size: 12px;
  line-height: 1;
}

.order-status-badge > span {
  color: #555;
  font-size: 10px;
  font-weight: 850;
}

.order-status-badge > strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.order-status-badge.status-pending {
  border-color: #f0ae35;
  background: #fff7e8;
  color: #a96300;
}

.order-status-badge.status-processing {
  border-color: #76afe9;
  background: #eef7ff;
  color: #1262a7;
}

.order-status-badge.status-ready {
  border-color: #64be88;
  background: #eefaf3;
  color: #14733b;
}

.order-status-badge.status-cancelled {
  border-color: #f08d8d;
  background: #fff0f0;
  color: #b21d1d;
}

.card-action {
  align-self: end;
  border-radius: var(--radius);
}

.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: var(--small-shadow);
  cursor: pointer;
  touch-action: manipulation;
}

.favorite-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.favorite-button:disabled,
.favorite-button.is-busy,
[data-wishlist]:disabled,
[data-wishlist].is-busy {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

.product-count {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 247, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(0, 0, 0, 0.025) 39px 40px);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.empty-state p {
  max-width: 440px;
  margin: 0;
  line-height: 1.7;
}

.compact-empty {
  min-height: 190px;
}

.coming-soon {
  padding: 34px clamp(20px, 3.6vw, 56px) 30px;
}

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-row.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-row a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 760;
}

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

.soon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.soon-card {
  direction: rtl;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--small-shadow);
  overflow: hidden;
  cursor: pointer;
  text-align: right;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.soon-card:hover {
  border-color: #dedede;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.soon-card.is-reserved {
  border-color: #111;
}

.soon-card.is-reserved .soon-card-action {
  background: #fff;
  border: 1px solid #111;
  color: #111;
}

.soon-media {
  aspect-ratio: 1.6;
  min-height: 160px;
}

.soon-badge {
  position: absolute;
  right: 16px;
  top: 13px;
  z-index: 2;
  padding: 0 13px;
}

.soon-card h3 {
  margin: 0 0 6px;
  padding: 14px 16px 0;
  font-size: 14px;
}

.soon-card p {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--muted);
  font-size: 12px;
}

.soon-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 16px;
  min-height: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 780;
}

.soon-card-action svg {
  width: 16px;
  height: 16px;
}

.product-page {
  direction: ltr;
  padding: 24px clamp(20px, 3.6vw, 56px) 30px;
  overflow-x: clip;
}

.breadcrumbs {
  direction: rtl;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs svg {
  width: 17px;
  height: 17px;
}

.breadcrumbs span {
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  transform: rotate(-45deg);
}

.breadcrumbs strong {
  min-width: 0;
  color: var(--coal);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.product-detail {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 20px;
}

.product-detail > *,
.detail-lower > * {
  min-width: 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.thumb-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1.08;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
}

.thumb.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.viewer-panel {
  position: relative;
  min-width: 0;
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #f6f6f6 100%);
  overflow: hidden;
}

.view-mode-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 720;
  cursor: pointer;
}

.view-mode-pill svg {
  width: 18px;
  height: 18px;
}

.fullscreen-button {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  border-radius: var(--radius);
}

.main-product-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  padding: 54px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.main-product-media img {
  transform-origin: center;
  transition: transform 180ms ease;
  will-change: transform;
}

.media-zoom-lens {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 300px;
  height: 330px;
  border: 2px solid #111;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  pointer-events: none;
}

.media-zoom-lens[hidden] {
  display: none !important;
}

.media-zoom-lens img {
  position: absolute;
  max-width: none;
  max-height: none;
  object-fit: fill;
  transform: none !important;
  transition: none;
  will-change: auto;
}

.viewer-zoom-control {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 12px;
  min-width: min(360px, calc(100% - 44px));
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 14px;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.viewer-zoom-control span,
.viewer-zoom-control strong {
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.viewer-zoom-control input {
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .main-product-media.has-zoom-lens {
    cursor: none;
  }

  .main-product-media.has-zoom-lens .media-zoom-lens {
    display: block;
  }

  .viewer-zoom-control {
    display: flex;
  }
}

.detail-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 430px;
}

.viewer-panel:fullscreen,
.viewer-panel.is-expanded {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  border-radius: 0;
  background: #fff;
  z-index: 120;
}

.viewer-panel:fullscreen .main-product-media,
.viewer-panel.is-expanded .main-product-media {
  width: min(1180px, 100vw);
  min-height: 100dvh;
  padding: 84px 52px 96px;
}

.viewer-panel:fullscreen .view-mode-pill,
.viewer-panel.is-expanded .view-mode-pill {
  left: 28px;
  top: 24px;
}

.viewer-panel:fullscreen .fullscreen-button,
.viewer-panel.is-expanded .fullscreen-button {
  right: 28px;
  top: 24px;
}

.viewer-panel:fullscreen .viewer-zoom-control,
.viewer-panel.is-expanded .viewer-zoom-control {
  bottom: 26px;
}

.product-buy-card,
.tabs-card,
.recommend-card {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--small-shadow);
}

.product-buy-card {
  direction: rtl;
  text-align: right;
  align-self: start;
  min-height: 600px;
  padding: 24px;
}

.availability-pill {
  gap: 8px;
  background: rgba(47, 166, 106, 0.12);
  color: #177548;
  padding: 0 12px;
}

.availability-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.product-buy-card h1 {
  margin: 16px 0 8px;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-rating {
  margin: 0 0 10px;
  color: var(--coal);
  font-size: 13px;
}

.detail-rating::before {
  color: var(--orange);
  content: "* ";
  font-weight: 900;
}

.detail-price {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 850;
}

.detail-summary {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--coal);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.quality-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quality-row div {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.quality-row svg {
  width: 24px;
  height: 24px;
}

.quality-row span {
  font-size: 12px;
  line-height: 1.35;
}

.option-block h2,
.quantity-row h2 {
  margin: 0;
  font-size: 13px;
}

.option-block {
  margin-bottom: 20px;
}

.color-swatches {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.swatch {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink);
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 42px 46px 42px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quantity-stepper button {
  height: 42px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.quantity-stepper span {
  text-align: center;
  font-weight: 720;
}

.product-buy-card .primary-button,
.product-buy-card .secondary-button {
  margin-bottom: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.text-button svg {
  width: 17px;
  height: 17px;
}

.detail-lower {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 20px;
  margin-top: 20px;
}

.tabs-card,
.recommend-card {
  direction: rtl;
  text-align: right;
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  max-width: 100%;
}

.tabs button {
  position: relative;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 720;
}

.tabs button.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.tab-panel {
  color: var(--coal);
  line-height: 1.7;
}

.tab-panel p {
  margin: 0 0 14px;
}

.tab-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-weight: 720;
  text-align: right;
  overflow-wrap: anywhere;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.recommend-item {
  display: block;
  min-width: 0;
}

.recommend-item > div {
  aspect-ratio: 1.12;
  border-radius: var(--radius);
  overflow: hidden;
}

.recommend-item h3 {
  margin: 10px 0 5px;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.recommend-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.mini-empty {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.detail-empty {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.empty-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #f7f7f7 100%);
  box-shadow: var(--small-shadow);
  padding: 42px;
  text-align: center;
}

.empty-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

.empty-card p:not(.section-kicker) {
  margin: 0 auto 24px;
  max-width: 430px;
  color: var(--muted);
  line-height: 1.7;
}

.confirmation-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-height) - 160px);
  padding: 36px clamp(20px, 3.6vw, 56px);
  background:
    radial-gradient(circle at 50% 28%, rgba(47, 166, 106, 0.05), transparent 25%),
    #fff;
}

.confirmation-card {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--small-shadow);
  padding: clamp(34px, 5vw, 70px);
  text-align: center;
}

.success-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: rgba(47, 166, 106, 0.12);
  color: #20a05b;
}

.success-mark::before {
  position: absolute;
  inset: 28px;
  border: 4px solid currentColor;
  border-radius: 50%;
  content: "";
}

.success-mark svg {
  position: relative;
  width: 44px;
  height: 44px;
  stroke-width: 2.4;
}

.success-mark span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid #20a05b;
  border-radius: 50%;
}

.success-mark span:nth-child(1) {
  left: -26px;
  top: 36px;
}

.success-mark span:nth-child(2) {
  right: -26px;
  top: 36px;
}

.success-mark span:nth-child(3) {
  left: 20px;
  top: -18px;
  width: 16px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: #20a05b;
  transform: rotate(52deg);
}

.success-mark span:nth-child(4) {
  right: 18px;
  top: -16px;
  width: 16px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: #20a05b;
  transform: rotate(-52deg);
}

.confirmation-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.confirmation-lead {
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.reservation-summary {
  direction: ltr;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 34px;
  width: min(700px, 100%);
  margin: 0 auto 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px 28px;
  text-align: right;
}

.reservation-image,
.confirmation-placeholder {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #f6f6f6 100%);
  overflow: hidden;
}

.reservation-image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.1));
}

.confirmation-placeholder {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}

.reservation-summary dl {
  direction: rtl;
  display: grid;
  gap: 18px;
  margin: 0;
}

.reservation-summary dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.reservation-summary dt {
  color: var(--muted);
}

.reservation-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  text-align: right;
}

.confirmation-action {
  min-width: 330px;
}

.cart-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(24px, 4vw, 56px);
  background: #fff;
}

.cart-shell {
  direction: ltr;
  display: block;
  width: min(1480px, 100%);
  margin-inline: auto;
}

.cart-flow {
  display: grid;
  gap: 22px;
  min-width: 0;
  direction: rtl;
}

.current-order-shell {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  padding: clamp(18px, 2.6vw, 34px);
}

.cart-main,
.cart-incomplete-orders,
.checkout-card {
  direction: rtl;
  text-align: right;
  min-width: 0;
  border-radius: var(--radius);
}

.cart-main {
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 0;
}

.cart-main h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-checkout-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  border-top: 1px solid #e8e8e8;
  padding-top: 18px;
}

.cart-checkout-actions[hidden] {
  display: none;
}

.cart-open-checkout {
  min-width: min(260px, 100%);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

body.checkout-modal-open {
  overflow: hidden;
}

.cart-incomplete-orders {
  display: grid;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}

.cart-incomplete-orders[hidden] {
  display: none;
}

.cart-incomplete-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cart-incomplete-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 28px);
}

.cart-incomplete-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.cart-incomplete-card {
  display: grid;
  gap: 14px;
  border: 2px solid #111;
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.cart-incomplete-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-incomplete-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.cart-incomplete-card small {
  color: var(--muted);
}

.cart-incomplete-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  font-weight: 850;
  white-space: nowrap;
}

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

.cart-incomplete-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.cart-incomplete-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  width: 100%;
}

.cart-order-edit-toggle {
  min-height: 40px;
  padding-inline: 16px;
}

.cart-order-edit-form {
  justify-self: stretch;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  padding: 14px;
}

.cart-order-edit-form[hidden] {
  display: none;
}

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

.cart-order-edit-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-order-edit-items-head strong {
  color: var(--ink);
  font-size: 14px;
}

.cart-order-edit-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) 44px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.cart-order-edit-item strong,
.cart-order-edit-item small {
  display: block;
}

.cart-order-edit-item small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.order-quantity-stepper {
  width: 100%;
  min-width: 0;
}

.order-item-remove {
  width: 44px;
  height: 44px;
}

.cart-order-comments {
  background: #fff;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background: #f5f5f5;
  color: var(--faint);
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cart-item p {
  margin: 0;
  color: var(--coal);
  font-weight: 760;
}

.cart-remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.cart-remove svg {
  width: 18px;
  height: 18px;
}

.checkout-card {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #f8f8f8;
  color: var(--ink);
  box-shadow: none;
  padding: clamp(18px, 2.4vw, 26px);
}

.checkout-close {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.checkout-close svg {
  width: 19px;
  height: 19px;
}

.checkout-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.checkout-card .section-kicker {
  color: var(--muted);
}

.checkout-card-lead {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid #eeeeee;
  padding: 0 14px;
}

.summary-list div:last-child {
  border-bottom: 0;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  color: var(--ink);
  font-weight: 820;
}

.checkout-form {
  display: grid;
  gap: 15px;
}

.checkout-card .form-field > span {
  color: var(--ink);
}

.checkout-card .form-field > div {
  border-color: #dddddd;
  background: #fff;
  color: var(--ink);
}

.checkout-card .form-field svg {
  color: var(--ink);
}

.checkout-card .primary-button {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.checkout-card .primary-button:hover {
  border-color: #202020;
  background: #202020;
}

.cart-empty {
  min-height: 300px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
}

.cart-shell.is-complete {
  grid-template-columns: minmax(0, 1fr);
  width: min(1040px, 100%);
  margin-inline: auto;
}

.cart-shell.is-complete .cart-main,
.cart-shell.is-complete .cart-flow,
.cart-shell.is-complete .checkout-card {
  display: none;
}

.cart-success {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: clamp(540px, calc(100vh - var(--header-height) - 160px), 720px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(32, 160, 91, 0.06), transparent 24%),
    #fff;
  box-shadow: var(--small-shadow);
  padding: clamp(34px, 5vw, 70px);
  text-align: center;
}

.cart-success[hidden] {
  display: none;
}

.cart-success-card {
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
}

.cart-success-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
}

.cart-success-lead {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.cart-success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(700px, 100%);
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  text-align: left;
}

.cart-success-details div {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-success-details div:nth-child(2n) {
  border-right: 0;
}

.cart-success-details div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cart-success-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.cart-success-details strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.cart-success-card .primary-button {
  min-width: min(360px, 100%);
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 650;
}

.calendar-link svg {
  width: 17px;
  height: 17px;
}

.site-footer {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.7fr)) minmax(250px, 1.1fr);
  gap: 34px;
  padding: 34px clamp(20px, 3.6vw, 56px) 28px;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  direction: rtl;
  text-align: right;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--coal);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer h3 {
  margin: 0 0 13px;
  font-size: 13px;
}

.site-footer a {
  display: block;
  width: max-content;
  margin: 0 0 10px;
  color: var(--coal);
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--ink);
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.copyright {
  margin-top: 30px !important;
  color: var(--muted) !important;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr 46px;
  margin-top: 14px;
}

.newsletter input,
.preorder-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.newsletter input {
  border-radius: var(--radius) 0 0 var(--radius);
}

.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.newsletter button svg {
  width: 17px;
  height: 17px;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 17px;
}

.legal-row a {
  margin: 0;
  font-size: 12px;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  padding: 0;
}

dialog::backdrop {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.preorder-dialog {
  direction: ltr;
  width: min(960px, calc(100vw - 34px));
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.auth-dialog {
  direction: ltr;
  width: min(820px, calc(100vw - 34px));
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.model-dialog {
  width: min(1040px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.preorder-dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(3px);
}

.auth-dialog::backdrop,
.model-dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(3px);
}

.profile-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(720px, calc(100vw - 28px));
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 22px 0 0 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  animation: profile-sheet-in 180ms ease-out;
}

.profile-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}

.preorder-preview,
.preorder-form,
.auth-preview,
.auth-panel,
.profile-modal {
  direction: rtl;
  text-align: right;
}

@keyframes profile-sheet-in {
  from {
    transform: translateX(34px);
    opacity: 0.92;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.profile-modal {
  position: relative;
  display: grid;
  gap: 22px;
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  padding: 30px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.profile-hub {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.profile-close {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.profile-close svg {
  width: 17px;
  height: 17px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 46px;
}

.profile-top > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid #111;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 900;
}

.profile-top h2 {
  margin: 4px 0 4px;
  font-size: 24px;
  line-height: 1.1;
}

.profile-top small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

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

.profile-stat-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  padding: 13px;
}

.profile-stat-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-stat-grid strong {
  min-width: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

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

.profile-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
  outline: none;
}

.profile-form input:focus {
  border-color: #111;
}

.profile-wide,
.profile-form .full {
  grid-column: 1 / -1;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f7f7;
  padding: 6px;
  overflow: hidden;
  min-height: 72px;
  box-sizing: border-box;
}

.profile-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.profile-tabs button.active {
  background: #111;
  color: #fff;
}

.profile-panels {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  background: transparent;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.profile-panel {
  display: none;
}

.profile-panel:not(.active) {
  display: none !important;
  visibility: hidden;
}

.profile-panel.active {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.profile-dialog:not(.admin-profile-dialog) {
  background: #050505;
  color: #fff;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.36);
}

.profile-dialog:not(.admin-profile-dialog) .profile-modal {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 28%),
    #050505;
  color: #fff;
}

.profile-dialog:not(.admin-profile-dialog) .profile-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.profile-dialog:not(.admin-profile-dialog) .profile-top > span {
  border-color: rgba(255, 255, 255, 0.14);
  background: #fff;
  color: #000;
}

.profile-dialog:not(.admin-profile-dialog) .profile-top small,
.profile-dialog:not(.admin-profile-dialog) .profile-form label,
.profile-dialog:not(.admin-profile-dialog) .profile-muted,
.profile-dialog:not(.admin-profile-dialog) .profile-section-title p,
.profile-dialog:not(.admin-profile-dialog) .profile-empty p {
  color: rgba(255, 255, 255, 0.64);
}

.profile-quick-actions {
  display: grid;
}

.profile-whatsapp-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(37, 211, 102, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 14px 16px;
  text-decoration: none;
}

.profile-whatsapp-link svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #25d366;
}

.profile-whatsapp-link span {
  display: grid;
  gap: 4px;
}

.profile-whatsapp-link strong {
  font-size: 15px;
}

.profile-whatsapp-link small {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.profile-dialog:not(.admin-profile-dialog) .profile-stat-grid div,
.profile-dialog:not(.admin-profile-dialog) .profile-current-order,
.profile-dialog:not(.admin-profile-dialog) .profile-history-row,
.profile-dialog:not(.admin-profile-dialog) .profile-favorite-card,
.profile-dialog:not(.admin-profile-dialog) .profile-empty {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.profile-dialog:not(.admin-profile-dialog) .profile-tabs {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.profile-dialog:not(.admin-profile-dialog) .profile-tabs button {
  color: rgba(255, 255, 255, 0.66);
}

.profile-dialog:not(.admin-profile-dialog) .profile-tabs button.active {
  background: #fff;
  color: #000;
}

.profile-dialog:not(.admin-profile-dialog) .profile-form input,
.profile-dialog:not(.admin-profile-dialog) .profile-message-form input {
  border-color: rgba(255, 255, 255, 0.14);
  background: #fff;
  color: #000;
}

.profile-dialog:not(.admin-profile-dialog) .order-comments,
.profile-dialog:not(.admin-profile-dialog) .profile-section-title {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.profile-dialog:not(.admin-profile-dialog) .order-comment {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.profile-dialog:not(.admin-profile-dialog) .order-comment strong,
.profile-dialog:not(.admin-profile-dialog) .order-comment p,
.profile-dialog:not(.admin-profile-dialog) .order-comments-head h4 {
  color: #fff;
}

.profile-dialog:not(.admin-profile-dialog) .order-comment div {
  color: rgba(255, 255, 255, 0.6);
}

.profile-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.profile-empty strong {
  font-size: 18px;
}

.profile-empty p,
.profile-muted {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-current-order,
.profile-history-row,
.profile-favorite-card {
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  background: #fff;
}

.profile-current-order,
.profile-history-row {
  border: 2px solid #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.profile-current-order {
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.profile-current-order .status-badge,
.profile-history-row .status-badge {
  position: static;
  align-self: start;
  width: max-content;
}

.profile-current-order .order-status-badge,
.profile-history-row .order-status-badge {
  min-height: 34px;
  padding: 0 13px;
}

.profile-order-head h3 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.profile-order-head p {
  margin: 0;
  color: var(--muted);
}

.profile-order-head > strong {
  align-self: start;
  font-size: 18px;
}

.profile-order-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
  min-width: 150px;
}

.profile-order-meta > strong {
  font-size: 18px;
  white-space: nowrap;
}

.profile-edit-toggle {
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
}

.profile-order-items {
  display: grid;
  border: 1px solid #c8c8c8;
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.profile-order-item:last-child {
  border-bottom: 0;
}

.profile-order-item small {
  color: var(--muted);
}

.profile-order-form {
  border-top: 1px solid #c8c8c8;
  padding-top: 16px;
}

.profile-order-form[hidden] {
  display: none;
}

.profile-order-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
}

.profile-order-actions .primary-button,
.profile-order-actions .secondary-button {
  flex: 1;
  min-height: 48px;
}

.cart-order-edit-form .profile-order-actions {
  align-items: stretch;
  flex-direction: row;
}

.profile-orders-panel,
.profile-active-orders {
  display: grid;
  gap: 18px;
}

.profile-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.profile-section-title.compact {
  margin-top: 4px;
}

.profile-section-title h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.profile-section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-section-title > strong {
  white-space: nowrap;
  font-size: 18px;
}

.profile-orders-message {
  display: grid;
  gap: 14px;
  border: 1px solid #c8c8c8;
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.profile-orders-message h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.order-comments {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  border: 1px solid #dddddd;
  border-radius: var(--radius);
  background: #fbfbfb;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

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

.order-comments-head h4 {
  margin: 3px 0 0;
  font-size: 16px;
}

.order-comments-head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
}

.order-comment-list {
  display: grid;
  gap: 8px;
}

.order-comment {
  display: grid;
  gap: 5px;
  max-width: 86%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
}

.order-comment.customer {
  justify-self: end;
  border-color: #111;
}

.order-comment.admin {
  justify-self: start;
}

.order-comment.is-hidden {
  display: none;
}

.order-comment div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.order-comment strong {
  color: var(--ink);
}

.order-comment p {
  margin: 0;
  line-height: 1.55;
}

.order-comment-form {
  margin-top: 2px;
}

.profile-list {
  display: grid;
  gap: 18px;
}

.profile-history-row {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.profile-history-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid #ececec;
  padding-bottom: 14px;
}

.profile-history-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-history-head span:not(.status-badge) {
  color: var(--muted);
  font-size: 12px;
}

.profile-message-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
  padding: 14px;
}

.profile-dialog:not(.admin-profile-dialog) .profile-message-list {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.profile-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.profile-message-form input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  font: inherit;
}

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

.profile-favorite-card {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

.profile-favorite-card a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.profile-favorite-card a div {
  grid-row: span 4;
  display: grid;
  place-items: center;
  height: 96px;
  border-radius: var(--radius);
  background: #f7f7f7;
  color: var(--faint);
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
}

.profile-favorite-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-favorite-card strong {
  align-self: end;
  overflow-wrap: anywhere;
}

.profile-favorite-card small {
  color: var(--muted);
}

.profile-favorite-card a > span {
  font-weight: 850;
}

.profile-favorite-card button {
  justify-self: end;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.favorite-button.is-saved,
[data-wishlist].is-saved {
  border-color: rgba(225, 25, 25, 0.45);
  color: #e11919;
  background: rgba(225, 25, 25, 0.06);
}

.favorite-button.is-saved svg,
[data-wishlist].is-saved svg {
  fill: currentColor;
  stroke: currentColor;
}

.preorder-modal {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  background: #fff;
  overflow: hidden;
}

.auth-modal {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  background: #fff;
  overflow: hidden;
}

.model-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(760px, calc(100vh - 34px));
  background: #fff;
  overflow: hidden;
}

.model-top,
.model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.model-top span,
.model-footer span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-top h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.model-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.model-close svg {
  width: 17px;
  height: 17px;
}

.model-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 26%, #fff 0%, #f5f5f5 54%, #ececec 100%);
  background-size: 34px 34px, 34px 34px, auto;
  overflow: hidden;
  touch-action: none;
}

.model-stage canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.model-stage.is-fallback canvas {
  opacity: 0;
}

.model-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 780;
  transform: translate(-50%, -50%);
}

.model-loading[hidden] {
  display: none;
}

.model-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-block: 14px;
}

.model-footer .secondary-button {
  min-height: 38px;
}

.model-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 980px;
  cursor: grab;
}

.model-fallback:active {
  cursor: grabbing;
}

.model-fallback-object {
  position: relative;
  width: min(220px, 45vw);
  height: min(220px, 45vw);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -20deg)) rotateY(var(--ry, 32deg)) scale(var(--scale, 1));
}

.model-fallback-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(230, 230, 230, 0.9)),
    var(--fallback-image, none) center / contain no-repeat;
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.model-fallback-front {
  transform: translateZ(110px);
}

.model-fallback-back {
  transform: rotateY(180deg) translateZ(110px);
}

.model-fallback-right {
  transform: rotateY(90deg) translateZ(110px);
}

.model-fallback-left {
  transform: rotateY(-90deg) translateZ(110px);
}

.model-fallback-top {
  transform: rotateX(90deg) translateZ(110px);
}

.model-fallback-bottom {
  transform: rotateX(-90deg) translateZ(110px);
}

.preorder-preview {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 610px;
  background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
  padding: 44px 48px 40px;
}

.auth-preview {
  display: grid;
  align-content: center;
  min-height: 610px;
  background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
  padding: 44px 44px 40px;
}

.preorder-preview .soon-badge {
  left: 48px;
  right: auto;
  top: 44px;
}

.preorder-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-bottom: 26px;
}

.auth-product-media {
  display: grid;
  place-items: center;
  min-height: 270px;
  margin-bottom: 26px;
}

.auth-product-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.12));
}

.preorder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  background: transparent;
}

.preorder-photo img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.12));
}

.auth-copy h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
}

.auth-copy p {
  max-width: 320px;
  margin: 0 0 26px;
  color: var(--coal);
  font-size: 14px;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 20px;
}

.auth-benefits div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.auth-benefits svg {
  width: 24px;
  height: 24px;
}

.auth-benefits span {
  color: var(--coal);
  font-size: 13px;
  line-height: 1.55;
}

.auth-benefits strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.preorder-copy h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
}

.preorder-copy p {
  max-width: 340px;
  margin: 0 0 24px;
  color: var(--coal);
  font-size: 14px;
  line-height: 1.65;
}

.preorder-stats {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.preorder-stats div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.preorder-stats div:last-child {
  border-bottom: 0;
}

.preorder-stats svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
}

.preorder-stats span {
  color: var(--muted);
  font-size: 12px;
}

.preorder-stats strong {
  color: var(--ink);
  font-size: 14px;
}

.preorder-form {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 610px;
  padding: 54px 48px 42px;
  background: #fff;
}

.auth-panel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 610px;
  padding: 54px 42px 38px;
  background: #fff;
}

.preorder-close {
  position: absolute;
  right: 30px;
  top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.auth-close {
  position: absolute;
  right: 28px;
  top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.preorder-close svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}

.auth-close svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}

.preorder-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
}

.preorder-heading p {
  margin: 0;
  color: var(--coal);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
}

.auth-heading p {
  margin: 0;
  color: var(--coal);
  font-size: 13px;
}

.auth-heading button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field > span {
  color: var(--coal);
  font-size: 12px;
  font-weight: 680;
}

.form-field > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid #dddddd;
  border-radius: var(--radius);
  background: #fff;
  padding: 0 15px;
}

.form-field svg {
  width: 20px;
  height: 20px;
}

.form-field input,
.form-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.form-field select {
  appearance: auto;
  padding: 0;
  font-weight: 520;
}

.password-rules {
  display: grid;
  gap: 8px;
  margin: -4px 0 2px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-rules li::before {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  color: #fff;
  content: "";
  font-size: 9px;
}

.password-rules li.passed {
  color: var(--ink);
}

.password-rules li.passed::before {
  border-color: var(--green);
  background: var(--green);
  content: "\2713";
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-auth button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 680;
}

.social-auth button:hover {
  border-color: var(--ink);
}

.auth-legal {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.preorder-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  border-radius: var(--radius);
  background: #f7f7f7;
  padding: 18px;
}

.preorder-note svg {
  width: 21px;
  height: 21px;
}

.preorder-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.preorder-note p {
  margin: 0;
  color: var(--coal);
  line-height: 1.55;
}

.preorder-cancel-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.preorder-cancel-panel[hidden] {
  display: none;
}

.preorder-cancel-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.preorder-form.is-cancel-mode .form-field,
.preorder-form.is-cancel-mode .preorder-note,
.preorder-form.is-cancel-mode > .primary-button,
.preorder-form.is-cancel-mode .secure-line {
  display: none;
}

.secure-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--coal);
  font-size: 12px;
}

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

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-top h2 {
  margin: 0;
  font-size: 20px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 44px));
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  padding: 13px 15px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

html[dir="rtl"] .brand-mark,
html[dir="rtl"] .footer-brand {
  background-position: right center;
}

html[dir="rtl"] .site-header .brand-mark {
  background-position: left center;
}

html[dir="rtl"] .site-header .cart-count,
html[dir="rtl"] .site-header .customer-notification-count {
  right: -2px;
  left: auto;
}

html[dir="rtl"] .cart-count,
html[dir="rtl"] .customer-notification-count {
  right: auto;
  left: -2px;
}

html[dir="rtl"] .form-field svg,
html[dir="rtl"] .header-search svg {
  transform: none;
}

html[dir="rtl"] .profile-dialog {
  text-align: right;
}

html[dir="rtl"] .profile-current-order,
html[dir="rtl"] .profile-history-row,
html[dir="rtl"] .cart-item,
html[dir="rtl"] .product-card {
  text-align: right;
}

html[dir="rtl"] .order-comment.customer {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .order-comment.admin {
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 170px 1fr minmax(280px, 420px);
  }

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

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

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

  .site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(10px, 2.8vw, 20px);
  }

  .main-nav {
    position: static;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 4vw, 32px);
    height: 100%;
    min-width: 0;
    border-bottom: 0;
    background: transparent;
    padding: 0;
  }

  .main-nav a {
    min-height: 0;
    height: 100%;
    border-bottom: 0;
    white-space: nowrap;
  }

  .main-nav a::after {
    display: block;
  }

  .header-search {
    display: none;
  }

  .menu-button {
    display: none;
  }

  .featured,
  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .featured-media,
  .featured-photo {
    justify-self: start;
    width: min(420px, 100%);
  }

  .filters {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filters form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-right: 0;
  }

  fieldset {
    border-bottom: 0;
  }

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

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

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

  .cart-shell {
    width: 100%;
  }

  .current-order-shell {
    grid-template-columns: 1fr;
  }

  .checkout-modal .checkout-card {
    position: relative;
  }

  .preorder-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 34px);
    overflow: auto;
  }

  .auth-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 34px);
    overflow: auto;
  }

  .reservation-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reservation-summary dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .reservation-summary dd {
    text-align: center;
  }

  .preorder-preview,
  .preorder-form,
  .auth-preview,
  .auth-panel {
    min-height: auto;
  }

  .preorder-preview {
    padding: 54px 34px 30px;
  }

  .preorder-preview .soon-badge {
    left: 34px;
    top: 28px;
  }

  .preorder-form {
    padding: 36px 34px 32px;
  }

  .auth-preview {
    padding: 46px 34px 30px;
  }

  .auth-panel {
    padding: 36px 34px 32px;
  }

  .preorder-close {
    right: 20px;
    top: 18px;
  }

  .auth-close {
    right: 20px;
    top: 18px;
  }

  .thumb-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .thumb {
    width: 96px;
    flex: 0 0 96px;
  }

  .viewer-panel,
  .main-product-media {
    min-height: 470px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 112px;
  }

  body {
    font-size: 12px;
  }

  body.filters-open {
    overflow: hidden;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 10px;
    height: auto;
    min-height: var(--header-height);
    padding: 14px 18px 10px;
    border-bottom: 0;
    background: #fff;
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 28px;
    height: 34px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    height: 34px;
    font-size: 12px;
  }

  .brand-mark {
    width: 126px;
    height: 36px;
  }

  .header-actions {
    grid-area: actions;
    gap: 14px;
  }

  .header-search {
    display: inline-flex;
    justify-content: center;
    width: 38px;
    min-height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
  }

  .header-search input,
  .header-search kbd {
    display: none;
  }

  .header-search svg {
    width: 25px;
    height: 25px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    border-color: transparent;
    background: transparent;
  }

  .cart-button {
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--small-shadow);
  }

  .cart-count {
    right: -5px;
    top: -7px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
  }

  .catalog-shell,
  .coming-soon,
  .product-page,
  .site-footer,
  .featured {
    padding-inline: 18px;
  }

  .catalog-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .products-area {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .filters {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 18px;
    z-index: 90;
    max-height: min(72vh, 620px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    opacity: 0;
    overflow: auto;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.filters-open .filters {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .filters-heading {
    padding: 18px;
    cursor: pointer;
  }

  .filters-heading h2::after {
    content: " - tap to close";
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .filters form {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .products-toolbar,
  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-toolbar {
    gap: 24px;
    margin: 0 0 18px;
  }

  .products-toolbar .section-kicker {
    display: none;
  }

  .products-toolbar h2 {
    font-size: 30px;
    line-height: 1.05;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: minmax(92px, 0.85fr) minmax(118px, 1fr) 82px;
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .mobile-filter-trigger {
    display: inline-flex;
    min-height: 54px;
    border-radius: 10px;
    gap: 8px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .mobile-filter-trigger svg {
    width: 22px;
    height: 22px;
  }

  .sort-label {
    display: none;
  }

  select {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 54px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .view-toggle {
    min-height: 54px;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }

  .view-toggle .icon-button {
    width: 40px;
    height: 52px;
    border: 0;
    border-radius: 0;
  }

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

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

  .product-count {
    order: 2;
    margin: 2px 0 18px;
    color: #555;
    font-size: 15px;
  }

  .product-grid {
    order: 3;
  }

  .product-card {
    border-color: #e9e9e9;
    border-radius: 10px;
    box-shadow: none;
  }

  .product-card:hover {
    box-shadow: none;
    transform: none;
  }

  .product-media {
    min-height: 0;
    aspect-ratio: 1.08;
    background: #fbfbfb;
  }

  .product-photo img {
    max-width: 92%;
    max-height: 92%;
  }

  .favorite-button {
    right: 9px;
    top: 9px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  }

  .favorite-button svg {
    width: 18px;
    height: 18px;
  }

  .product-card .status-badge,
  .card-action,
  .product-rating {
    display: none;
  }

  .product-info {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 12px;
  }

  .product-info h3 {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.2;
  }

  .product-copy {
    display: -webkit-box;
    min-height: 38px;
    color: #444;
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .price {
    margin: 11px 0 0;
    font-size: 16px;
    line-height: 1.1;
  }

  .viewer-panel,
  .main-product-media {
    min-height: 390px;
  }

  .main-product-media {
    padding: 38px 20px;
  }

  .product-buy-card {
    min-height: auto;
    padding: 20px;
  }

  .tabs-card,
  .recommend-card {
    padding: 16px;
  }

  .quality-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-page {
    padding: 22px 16px 28px;
  }

  .cart-main,
  .cart-incomplete-orders {
    padding: 20px;
  }

  .current-order-shell .cart-main {
    padding: 0;
  }

  .cart-checkout-actions {
    justify-content: stretch;
    margin-top: 16px;
    border-top: 0;
    padding-top: 4px;
  }

  .cart-open-checkout {
    width: 100%;
    min-height: 52px;
  }

  .cart-success {
    min-height: auto;
    border-radius: 14px;
    padding: 32px 18px;
  }

  .cart-success-card h1 {
    font-size: 28px;
  }

  .cart-success-lead {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .cart-success .success-mark {
    width: 92px;
    height: 92px;
    margin-bottom: 22px;
  }

  .cart-success .success-mark::before {
    inset: 23px;
  }

  .cart-success-details {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .cart-success-details div,
  .cart-success-details div:nth-child(2n),
  .cart-success-details div:nth-last-child(-n + 2) {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 16px;
  }

  .cart-success-details div:last-child {
    border-bottom: 0;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 12px;
    padding: 12px;
  }

  .cart-thumb {
    grid-column: 2;
    grid-row: 1;
    width: 74px;
    height: 74px;
  }

  .cart-item > div:not(.cart-thumb):not(.quantity-stepper) {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  .cart-item .quantity-stepper {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  .cart-item .quantity-stepper {
    grid-template-columns: 42px 1fr 42px;
  }

  .cart-remove {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    transform: none;
  }

  .cart-order-edit-item .cart-remove {
    transform: none;
  }

  .cart-incomplete-card header,
  .cart-incomplete-item {
    display: grid;
    gap: 10px;
  }

  .cart-order-edit-item {
    grid-template-columns: 1fr 44px;
  }

  .cart-order-edit-item > div:first-child {
    grid-column: 1 / -1;
  }

  .cart-order-edit-item .order-quantity-stepper {
    grid-column: 1 / 2;
  }

  .cart-incomplete-meta {
    justify-items: start;
    white-space: normal;
  }

  .cart-incomplete-meta .order-status-badge,
  .profile-order-head .order-status-badge,
  .profile-history-head .order-status-badge {
    width: 100%;
    justify-content: space-between;
  }

  .preorder-dialog {
    width: min(100vw - 22px, 560px);
  }

  .auth-dialog {
    width: min(100vw - 22px, 560px);
  }

  .profile-dialog {
    inset: 0;
    width: auto;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
  }

  .profile-modal {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 24px 18px 18px;
  box-sizing: border-box;
}

  .profile-modal.profile-hub {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .profile-top {
    align-items: flex-start;
    padding-right: 42px;
  }

  .profile-top > span {
    width: 52px;
    height: 52px;
  }

  .profile-stat-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-hub {
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .profile-tabs {
    margin-inline: -2px;
  }

  .profile-panels {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: transparent;
  padding-bottom: 18px;
}

  .profile-order-head,
  .profile-order-actions,
  .profile-section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-order-edit-form .profile-order-actions {
    flex-direction: row;
    align-items: stretch;
  }

  .profile-order-meta {
    justify-items: stretch;
  }

  .profile-order-item,
  .profile-history-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-message-form {
    grid-template-columns: 1fr;
  }

  .order-comments-head {
    flex-direction: column;
  }

  .order-comment {
    max-width: 100%;
  }

  .profile-favorites {
    grid-template-columns: 1fr;
  }

  .profile-favorite-card a {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .profile-favorite-card a div {
    height: 82px;
  }

  .model-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .model-modal {
    height: 100dvh;
  }

  .model-top {
    min-height: 58px;
    padding: 12px 48px 12px 16px;
  }

  .model-top h2 {
    font-size: 15px;
  }

  .model-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
  }

  .model-stage {
    min-height: 0;
  }

  .model-footer {
    padding: 10px 16px;
  }

  .model-footer span {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .preorder-preview {
    padding: 52px 22px 24px;
  }

  .preorder-preview .soon-badge {
    left: 22px;
  }

  .preorder-media,
  .preorder-photo {
    min-height: 210px;
  }

  .preorder-copy h2 {
    font-size: 20px;
  }

  .preorder-form {
    padding: 34px 22px 26px;
  }

  .auth-preview {
    padding: 42px 22px 24px;
  }

  .auth-panel {
    padding: 34px 22px 26px;
  }

  .auth-product-media {
    min-height: 210px;
  }

  .preorder-heading h2 {
    font-size: 24px;
  }

  .auth-heading h2 {
    font-size: 24px;
  }

  .preorder-stats div {
    padding: 15px;
  }

  .tabs {
    overflow-x: auto;
    gap: 22px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .empty-card {
    padding: 30px 22px;
  }

  .confirmation-card {
    padding: 30px 18px;
  }

  .confirmation-action {
    min-width: 0;
    width: 100%;
  }

  .reservation-summary {
    padding: 18px;
  }
}

.chat-panel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}

.chat-panel {
  width: min(360px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid #111;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.chat-panel header,
.chat-input-row,
.chat-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-panel header {
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #111;
}

.chat-panel header button,
.chat-input-row button {
  width: 38px;
  height: 38px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-empty {
  color: #666;
  margin: auto;
  text-align: center;
}

.chat-message {
  max-width: 82%;
  border: 1px solid #ddd;
  padding: 9px 10px;
  background: #fff;
}

.chat-message.customer {
  align-self: flex-end;
  background: #111;
  color: #fff;
  border-color: #111;
}

.chat-message span {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.chat-message p {
  margin: 0;
  line-height: 1.45;
}

.chat-form {
  border-top: 1px solid #111;
  padding: 12px;
}

.chat-identity {
  margin-bottom: 8px;
}

.chat-identity input,
.chat-input-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid #ccc;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: #111;
}
