/* Elixar Shop — design system from showcase mockup (blueprint / ЕСКД) */
.elx-shop,
.elx-product,
.elx-shop-drawer,
.elx-shop-fab {
  --paper: #F4F3F0;
  --base: #FFFFFF;
  --graphite: #0F172A;
  --accent: #F97316;
  --muted: rgba(15, 23, 42, 0.55);
  --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(15, 23, 42, 0.22);
  --ok: #047857;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--graphite);
  line-height: 1.45;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.elx-shop *,
.elx-product *,
.elx-shop-drawer *,
.elx-shop-fab * {
  box-sizing: border-box;
}

/* —— Shell: paper + blueprint grid + side rails —— */
.elx-shop {
  --elx-max: 1340px;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  background-color: var(--paper);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  border-left: 12px solid var(--graphite);
  border-right: 12px solid var(--graphite);
  padding: 0 0 3rem;
}

.elx-shop-ruler {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-size: 9px;
  color: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background:
    linear-gradient(to bottom, rgba(244, 243, 240, 0.95), rgba(244, 243, 240, 0.95)),
    repeating-linear-gradient(to right, rgba(15, 23, 42, 0.28) 0, rgba(15, 23, 42, 0.28) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to right, rgba(15, 23, 42, 0.55) 0, rgba(15, 23, 42, 0.55) 1px, transparent 1px, transparent 50px);
  background-size: 100% 100%, 100% 6px, 100% 12px;
  background-position: center, bottom left, bottom left;
  background-repeat: no-repeat, repeat-x, repeat-x;
  user-select: none;
}

.elx-shop-inner {
  max-width: var(--elx-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .elx-shop-inner { padding: 0 2.5rem; }
}
@media (min-width: 1024px) {
  .elx-shop-inner { padding: 0 3rem; }
}

/* —— Hero with corner ticks + stamp —— */
.elx-shop-hero-wrap {
  position: relative;
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(244, 243, 240, 0.5);
  overflow: hidden;
}

.elx-shop-hero-wrap::before,
.elx-shop-hero-wrap::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: rgba(15, 23, 42, 0.35);
  border-style: solid;
}
.elx-shop-hero-wrap::before {
  top: 14px; left: 14px;
  border-width: 2px 0 0 2px;
}
.elx-shop-hero-wrap::after {
  top: 14px; right: 14px;
  border-width: 2px 2px 0 0;
}
.elx-shop-hero-ticks {
  position: absolute;
  left: 14px; bottom: 14px;
  width: 14px; height: 14px;
  border-width: 0 0 2px 2px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.35);
  pointer-events: none;
}
.elx-shop-hero-ticks-r {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 14px; height: 14px;
  border-width: 0 2px 2px 0;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.35);
  pointer-events: none;
}

.elx-shop-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.elx-shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.85rem;
}
.elx-shop-hero-badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.elx-shop-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.elx-shop-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(15, 23, 42, 0.7);
}
.elx-shop-hero > div > p {
  margin: 0;
  max-width: 34rem;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.elx-shop-stamp {
  width: 100%;
  max-width: 18rem;
  border: 1px solid rgba(15, 23, 42, 0.25);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
}
.elx-shop-stamp-head {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: var(--graphite);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 10px;
}
.elx-shop-stamp-head span:last-child { color: var(--accent); }
.elx-shop-stamp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.elx-shop-stamp-grid > div {
  padding: 0.6rem 0.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.elx-shop-stamp-grid > div:nth-child(2n) { border-right: 0; }
.elx-shop-stamp-grid span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.elx-shop-stamp-grid strong {
  font-weight: 700;
  color: var(--graphite);
  font-size: 11px;
}

/* Filters */
.elx-shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
}
.elx-shop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.elx-shop-cat {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--graphite);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}
.elx-shop-cat:hover {
  border-color: var(--graphite);
  background: #fff;
}
.elx-shop-cat.is-active {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.35);
}
.elx-shop-hint {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* —— Grid + showcase cards —— */
.elx-shop-grid-wrap {
  padding: 2rem 0 0.5rem;
}
.elx-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .elx-shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .elx-shop-grid { grid-template-columns: repeat(3, 1fr); }
}

.elx-shop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.125rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.elx-shop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 22px 42px -18px rgba(15, 23, 42, 0.15);
}
.elx-shop-card:hover .elx-shop-stage-accent {
  stroke: var(--accent);
  color: var(--accent);
}

/* Blueprint stage inside card */
.elx-shop-stage {
  position: relative;
  /* высота по контенту: фото + чертежи, без жёсткого 4/3 */
  min-height: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background-color: #F7F6F2;
  background-size: 16px 16px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.7rem 0.75rem 0.55rem;
}
.elx-shop-stage-cross {
  position: absolute;
  top: 8px;
  font-size: 10px;
  color: rgba(15, 23, 42, 0.3);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
.elx-shop-stage-cross.is-l { left: 8px; }
.elx-shop-stage-cross.is-r { right: 8px; }

.elx-shop-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 23, 42, 0.62);
  padding: 0.15rem 0.1rem 0.35rem;
  min-height: 1.4rem;
}
.elx-shop-stage-head strong {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.88);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.elx-shop-stage-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.elx-shop-stage-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.18rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.elx-shop-stage-tag.is-accent {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--accent);
  font-weight: 700;
}

.elx-shop-stage-media {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0.35rem;
  overflow: hidden;
}
.elx-shop-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.elx-shop-stage-ph {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.28);
  font-weight: 700;
}

.elx-shop-stage-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 10px;
  color: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 0.45rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 2;
}
.elx-shop-stage-foot strong {
  color: var(--graphite);
  font-weight: 700;
}

.elx-shop-badge-sale {
  display: inline-flex;
  align-items: center;
  background: var(--accent, #c4a574);
  color: var(--graphite, #1c1917);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  position: static;
}

.elx-shop-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.elx-shop-card-title a {
  color: inherit;
  text-decoration: none;
}
.elx-shop-card-title a:hover { color: var(--accent); }

.elx-shop-card-desc {
  margin: 0 0 0.85rem;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.elx-shop-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.elx-shop-card-price-block span.label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.elx-shop-price {
  font-size: 1.15rem;
  font-weight: 700;
}
.elx-shop-price-old {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
}

.elx-shop-card-btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.elx-shop-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.22);
  color: var(--graphite);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.elx-shop-more:hover {
  border-color: var(--graphite);
  background: var(--paper);
}

.elx-shop-add {
  appearance: none;
  border: 0;
  border-radius: 0.65rem;
  background: var(--graphite);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.elx-shop-add:hover:not(:disabled) {
  background: var(--accent);
  color: var(--graphite);
}
.elx-shop-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.elx-shop-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 13px;
}

/* CTA band under grid */
.elx-shop-cta {
  margin-top: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.elx-shop-cta::before,
.elx-shop-cta::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(15, 23, 42, 0.3);
  border-style: solid;
  pointer-events: none;
}
.elx-shop-cta::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.elx-shop-cta::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}
.elx-shop-cta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}
.elx-shop-cta h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.elx-shop-cta p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.elx-shop-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.elx-shop-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--graphite);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s;
}
.elx-shop-cta-primary:hover {
  background: var(--graphite);
  color: #fff;
}
.elx-shop-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.22);
  color: var(--graphite);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
}
.elx-shop-cta-secondary:hover {
  border-color: var(--graphite);
}

/* —— Product page —— */
.elx-product {
  --elx-max: 1340px;
  max-width: 1600px;
  margin: 0 auto;
  background-color: var(--paper);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  border-left: 12px solid var(--graphite);
  border-right: 12px solid var(--graphite);
  padding: 0 0 3rem;
  font-family: 'Space Mono', ui-monospace, monospace;
  color: var(--graphite);
}
.elx-product-ruler {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-size: 9px;
  color: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(244, 243, 240, 0.95);
  user-select: none;
}
.elx-product-inner {
  max-width: var(--elx-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}
@media (min-width: 768px) {
  .elx-product-inner { padding: 1.75rem 2.5rem 0; }
}

.elx-product-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.elx-product-bc a {
  color: inherit;
  text-decoration: none;
}
.elx-product-bc a:hover { color: var(--graphite); }

.elx-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
}
@media (min-width: 960px) {
  .elx-product-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.elx-product-gallery,
.elx-product-info {
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.09);
  padding: 1.35rem 1.4rem;
  position: relative;
}
.elx-product-gallery::before,
.elx-product-info::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 12px; height: 12px;
  border-top: 2px solid rgba(15, 23, 42, 0.25);
  border-left: 2px solid rgba(15, 23, 42, 0.25);
  pointer-events: none;
}
.elx-product-gallery::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 12px; height: 12px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.25);
  border-right: 2px solid rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

.elx-product-sheet-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.9rem;
}
.elx-product-sheet-label i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.elx-product-main-img {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: #F7F6F2;
  background-size: 16px 16px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.elx-product-main-img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.elx-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.elx-product-thumb {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.55rem;
  padding: 0;
  width: 64px; height: 64px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.elx-product-thumb.is-active,
.elx-product-thumb:hover { border-color: var(--graphite); }
.elx-product-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.elx-product-spec-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}
@media (min-width: 520px) {
  .elx-product-spec-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.elx-product-spec {
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(244, 243, 240, 0.7);
  padding: 0.65rem 0.7rem;
  font-size: 11px;
}
.elx-product-spec span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.elx-product-spec strong { font-weight: 700; }

.elx-product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.elx-product-status {
  color: var(--ok);
  background: rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(4, 120, 87, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
}

.elx-product-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.55rem;
}
.elx-product-excerpt {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.elx-product-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  background: rgba(244, 243, 240, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.15rem;
}
.elx-product-price-box .elx-shop-price { font-size: 1.7rem; }

.elx-product-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.elx-product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.elx-product-color {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 0.75rem;
  background: #FAFAFA;
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  transition: all 0.2s ease;
}
.elx-product-color:hover {
  border-color: rgba(15, 23, 42, 0.45);
  background: #fff;
}
.elx-product-color.is-active {
  border-color: var(--graphite);
  background: var(--graphite);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.35);
}
.elx-product-color-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
}
.elx-product-color-picked {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 1rem;
}

.elx-product-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.35rem;
}
.elx-product-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 0.75rem;
  background: rgba(244, 243, 240, 0.7);
  overflow: hidden;
}
.elx-product-qty button {
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.25rem;
  height: 2.55rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--graphite);
  font-family: inherit;
}
.elx-product-qty button:hover { color: var(--accent); }
.elx-product-qty input {
  width: 2.75rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--graphite);
  -moz-appearance: textfield;
}
.elx-product-qty input::-webkit-outer-spin-button,
.elx-product-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.elx-product-add {
  flex: 1;
  min-width: 10rem;
  padding: 0.85rem 1rem;
}

.elx-product-dims,
.elx-product-cats {
  margin-top: 1rem;
  font-size: 11px;
  color: var(--muted);
}
.elx-product-cats a { color: var(--graphite); }

.elx-product-desc {
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 1.4rem 1.5rem;
}
.elx-product-desc h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.elx-product-desc-body {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.65;
}
.elx-product-desc-body p { margin: 0 0 0.75rem; }

/* —— FAB + Drawer (same system) —— */
.elx-shop-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 10040;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: var(--graphite);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(15, 23, 42, 0.45);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.elx-shop-fab:hover {
  background: var(--accent);
  color: var(--graphite);
  transform: translateY(-2px);
}
.elx-shop-fab-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--graphite);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.elx-shop-fab-count[hidden] { display: none !important; }

.elx-shop-drawer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  justify-content: flex-end;
}
.elx-shop-drawer[hidden] { display: none !important; }
.elx-shop-drawer.is-open { display: flex !important; }

.elx-shop-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}
.elx-shop-drawer-panel {
  position: relative;
  width: min(420px, 100%);
  height: 100%;
  background: var(--base);
  border-left: 1px solid rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 40px -20px rgba(15, 23, 42, 0.35);
  font-family: 'Space Mono', ui-monospace, monospace;
}
.elx-shop-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--paper);
}
.elx-shop-drawer-head strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.elx-shop-drawer-x {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--graphite);
}
.elx-shop-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.elx-shop-cart-empty {
  margin: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.elx-shop-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  background: #fff;
}
.elx-shop-line img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.elx-shop-line-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.elx-shop-line-meta {
  margin: 0.15rem 0 0;
  font-size: 10px;
  color: var(--muted);
}
.elx-shop-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.45rem;
  overflow: hidden;
}
.elx-shop-line-qty button {
  appearance: none;
  border: 0;
  background: var(--paper);
  width: 1.6rem; height: 1.6rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--graphite);
}
.elx-shop-line-qty span {
  min-width: 1.4rem;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}
.elx-shop-line-sum {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.elx-shop-drawer-foot {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1rem 1.15rem 1.25rem;
  background: var(--paper);
}
.elx-shop-drawer-total {
  font-size: 12px;
  margin-bottom: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.elx-shop-drawer-total strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  color: var(--graphite);
  letter-spacing: 0;
  text-transform: none;
}
.elx-shop-submit {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 0.75rem;
  background: var(--graphite);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.elx-shop-submit:hover:not(:disabled) {
  background: var(--accent);
  color: var(--graphite);
}
.elx-shop-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.elx-shop-back {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  margin-top: 0.55rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.elx-shop-back:hover { color: var(--graphite); }
.elx-shop-checkout { display: grid; gap: 0.55rem; }
.elx-shop-input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 12px;
  color: var(--graphite);
  outline: none;
}
.elx-shop-input:focus { border-color: var(--accent); }
.elx-shop-ship {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  padding: 0.7rem;
  background: #fff;
  display: grid;
  gap: 0.4rem;
}
.elx-shop-ship-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.elx-shop-ship-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  cursor: pointer;
}
.elx-shop-ship-addr {
  margin: 0.25rem 0 0;
  font-size: 11px;
  color: var(--muted);
}
.elx-shop-checkout-msg { margin: 0.4rem 0 0; font-size: 12px; }
.elx-shop-checkout-msg.is-ok { color: var(--ok); }
.elx-shop-checkout-msg.is-err { color: #b91c1c; }


@media (max-width: 640px) {
  .elx-shop-ruler-mid { display: none; }
}

@media (max-width: 640px) {
  .elx-shop,
  .elx-product {
    border-left-width: 6px;
    border-right-width: 6px;
  }
  .elx-shop-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .elx-shop-card-btns { width: 100%; }
  .elx-shop-card-btns .elx-shop-add { flex: 1; }
  .elx-shop-fab { right: 0.85rem; bottom: 0.85rem; }
}

/* ——— Gallery scrub + blueprint ——— */
.elx-shop-stage {
  /* allow drawings block below media */
  min-height: 0;
}
.elx-shop-stage-media {
  position: relative;
  flex: 0 0 auto;
  /* на всю ширину карточки (компенсация padding stage) */
  width: calc(100% + 1.5rem);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  aspect-ratio: 16 / 10;
  min-height: 160px;
  max-height: none;
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.03);
  cursor: pointer;
  text-decoration: none;
}
.elx-shop-stage-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.elx-shop-stage.has-gallery .elx-shop-stage-media {
  cursor: ew-resize;
}
.elx-shop-stage-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #F7F6F2;
}
.elx-shop-stage-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* вписать в блок целиком */
  object-position: center;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  background: #F7F6F2;
}
.elx-shop-stage-shot.is-active {
  opacity: 1;
}
/* старые правила img внутри media — не растягивать cover */
.elx-shop-stage-media > img,
.elx-shop-stage-media img.elx-shop-stage-shot {
  object-fit: contain !important;
  mix-blend-mode: normal;
}

/* Чертежи — всегда видимы, под фото или вместо него */
.elx-shop-stage-drawings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  align-items: flex-end; /* общая «земля» — высоты сравнимы */
  padding: 10px 2px 4px;
  position: relative;
  z-index: 1;
}
.elx-shop-stage-drawing {
  flex: 1 1 130px;
  max-width: 200px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.elx-shop-stage-drawing-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 600;
  text-align: center;
}
.elx-shop-stage-blueprint {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.elx-shop-blueprint {
  width: 100%;
  height: 160px;
  display: block;
  overflow: visible;
}
.elx-bp-dim {
  font-variant-numeric: tabular-nums;
}
.elx-shop-stage-drawing-meta {
  font-size: 10px;
  color: rgba(15, 23, 42, 0.65);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
}
.elx-bp-dim {
  font-variant-numeric: tabular-nums;
}
.elx-shop-stage-scrub {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  z-index: 3;
  display: flex;
  gap: 3px;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.elx-shop-stage.has-gallery:hover .elx-shop-stage-scrub,
.elx-shop-stage.is-scrubbing .elx-shop-stage-scrub {
  opacity: 1;
}
.elx-shop-stage-scrub-seg {
  flex: 1;
  background: rgba(15, 23, 42, 0.18);
  border-radius: 1px;
}
.elx-shop-stage-scrub-seg.is-on {
  background: rgba(15, 23, 42, 0.55);
}
.elx-shop-stage-ph {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.28);
  font-weight: 700;
}


/* Product page: blueprint as last gallery slide */
.elx-product-main-img {
  position: relative;
}
.elx-product-main-blueprint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: #F7F6F2;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: auto;
}
.elx-product-main-blueprint[hidden] {
  display: none !important;
}
#elx-product-main-photo[hidden] {
  display: none !important;
}
.elx-product-bp-item {
  flex: 1 1 160px;
  max-width: 280px;
  text-align: center;
}
.elx-product-bp-item .elx-shop-blueprint {
  width: 100%;
  height: auto;
  max-height: 220px;
}
.elx-product-bp-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 4px;
  font-weight: 600;
}
.elx-product-bp-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.elx-product-thumb--blueprint {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F6F2;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 8px 8px;
}
.elx-product-thumb-bp {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}


/* Корзина: очистить + действия */
.elx-shop-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.elx-shop-clear-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: transparent;
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.elx-shop-clear-cart:hover {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.9);
  border-color: rgba(15, 23, 42, 0.28);
}

.elx-product-ral-search-wrap { margin-top: 10px; position: relative; }
.elx-product-ral-search-label { display:block; font-size:11px; color: rgba(15,23,42,.55); margin-bottom: 4px; }
.elx-product-ral-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
}
.elx-product-ral-results {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}
.elx-product-ral-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.elx-product-ral-result:hover { background: #f8fafc; }


/* Ссылка на готовый расчёт в калькуляторе */
.elx-product-calc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px dashed rgba(15, 23, 42, 0.28);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  background: transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.elx-product-calc-link:hover {
  border-color: rgba(15, 23, 42, 0.75);
  color: #0f172a;
  background: rgba(15, 23, 42, 0.03);
}

/* Чертёж: чуть больше воздуха под подписи размеров */
.elx-product-bp-item .elx-shop-blueprint {
  max-height: 240px;
}


/* RAL: таблица цветов (как в калькуляторе) */
.elx-product-color--all {
  border-style: dashed;
  font-weight: 700;
}
.elx-product-color-swatch--all {
  background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #3b82f6, #8b5cf6, #f43f5e);
  border-color: rgba(15, 23, 42, 0.2);
}
.elx-product-colors-note {
  align-self: center;
  font-size: 10.5px;
  color: var(--muted);
  opacity: .75;
}
.elx-product-color-picked {
  display: flex;
  align-items: center;
  gap: 8px;
}
.elx-product-color-picked .elx-product-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.18);
}
.elx-product-color-picked .elx-product-color-swatch.is-empty {
  background: transparent;
  border-style: dashed;
}

.elx-ral-modal,
.elx-ral-modal * { box-sizing: border-box; }
.elx-ral-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.elx-ral-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.elx-ral-modal-sheet {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  background: #F4F3F0;
  border: 1px solid #111;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.elx-ral-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #111;
  background: #111;
  color: #F4F3F0;
}
.elx-ral-modal-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.elx-ral-modal-x {
  border: 1px solid rgba(244, 243, 240, 0.4);
  background: none;
  color: #F4F3F0;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.elx-ral-modal-x:hover { border-color: var(--accent, #F97316); color: var(--accent, #F97316); }
.elx-ral-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}
.elx-ral-modal-search {
  flex: 1;
  min-width: 180px;
  border: 1px solid #111;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
}
.elx-ral-modal-search:focus { border-color: var(--accent, #F97316); }
.elx-ral-modal-hint { font-size: 11px; opacity: .55; }
.elx-ral-modal-body {
  overflow: auto;
  padding: 12px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.elx-ral-group { margin-bottom: 18px; }
.elx-ral-group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .55;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding-bottom: 4px;
}
.elx-ral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}
.elx-ral-cell {
  border: 1px solid #111;
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: border-color .15s, transform .1s;
}
.elx-ral-cell:hover {
  border-color: var(--accent, #F97316);
  transform: translateY(-1px);
}
.elx-ral-cell-swatch {
  display: block;
  height: 44px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
.elx-ral-cell-code {
  display: block;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px 0;
  letter-spacing: .02em;
}
.elx-ral-cell-name {
  display: block;
  font-size: 10px;
  padding: 2px 8px 0;
  line-height: 1.3;
  opacity: .85;
}
.elx-ral-cell-en {
  display: block;
  font-size: 9px;
  padding: 1px 8px 7px;
  opacity: .5;
  line-height: 1.3;
}
.elx-ral-empty { padding: 10px; font-size: 11px; opacity: .6; }
@media (max-width: 560px) {
  .elx-ral-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .elx-ral-modal { padding: 0; align-items: stretch; }
  .elx-ral-modal-sheet { max-height: 100vh; width: 100%; border: 0; }
}
