.nav {
display: flex;
justify-content: center;
gap: 14px;
}
.logo{
    display: block;
    margin: 0 auto;
    margin-top: 2%;

    height: 20%;
    width: 10%;
   
}
.nav a{
    display: inline-block;
    background: #ee9ac5;
    margin-top: 2%;
    color: rgba(0, 0, 0, 0.801);
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 24px;
    box-shadow: inset 0 -3 0 rgba(0, 0, 0, 0.1);
    font-size: 18px;
    border: 2px solid #ae9bf3;
    
}
.nav a:hover {
  transform: scale(1.06);

  box-shadow:
    0 10px 30px rgba(238,154,197,.35);
}
.nav a:active {
  animation: buttonBounce 0.7s ease;
}
@keyframes buttonBounce {
  0% {
    transform: scale(1.06);
  }

  40% {
    transform: scale(.92);
  }

  70% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}




.lava-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fffafc;

  z-index: -1;
}
.blob{
    position: absolute;
    width: 260px;
    height: 260px;

    border-radius: 50%;
    filter: blur(110px);
    opacity: .7;

    mix-blend-mode: multiply;
}
.blob1{
    background: #ff6ec7;
    animation: move1 35s ease-in-out infinite alternate;
    top: 0%;
    left: 0%;
}
.blob2{
    background: #c77dff;
    animation: move1 51s ease-in-out infinite alternate;
    top: 80%;
    left: 10%;
}
.blob3{
    background: #ff4fa3;
    animation: move1 42s ease-in-out infinite alternate;
    top: 40%;
    left: 30%;
}
.blob4{
    background: #ff95d5;
    animation: move1 28s ease-in-out infinite alternate;
    top: 20%;
    left: 15%;
}
@keyframes move1 {
  0% {
    transform:
      translate(0vw, 0vh)
      scale(1);
  }

  25% {
    transform:
      translate(40vw, 10vh)
      scale(1.3);
  }

  50% {
    transform:
      translate(70vw, 40vh)
      scale(.9);
  }

  75% {
    transform:
      translate(20vw, 70vh)
      scale(1.2);
  }

  100% {
    transform:
      translate(60vw, 20vh)
      scale(1);
  }
  
}
@keyframes move2 {
  0% {
    transform:
      translate(80vw, 10vh)
      scale(.8);
  }

  50% {
    transform:
      translate(10vw, 60vh)
      scale(1.5);
  }

  100% {
    transform:
      translate(70vw, 80vh)
      scale(1);
  }
}
@keyframes move3 {
  0% {
    transform:
      translate(80vw, 10vh)
      scale(.8);
  }

  50% {
    transform:
      translate(10vw, 60vh)
      scale(1.5);
  }
  75% {
    transform:
      translate(40vw, 70vh)
      scale(1.5);
  }

  100% {
    transform:
      translate(70vw, 80vh)
      scale(1);
  }
}
@keyframes move4 {
  0% {
    transform:
      translate(80vw, 10vh)
      scale(.8);
  }
  30%{
    transform:
      translate(50vw, 120vh)
      scale(1.5);
  }

  50% {
    transform:
      translate(10vw, 60vh)
      scale(1.5);
  }

  100% {
    transform:
      translate(70vw, 80vh)
      scale(1);
  }
}
.constructor {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px;
}

.constructor-preview {
  text-align: center;
}

.jewelry-frame {
  width: 350px;
  height: 350px;
  border: 6px solid #c9a46b;
  border-radius: 50%;
  margin: 40px auto;
  position: relative;
}

.stone-slot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eee;
  border: 3px solid white;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stone-card {
  width: 100%;
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: white;
  border: 1px solid #ccc;
  cursor: pointer;
  text-align: left;
}

.stone-card__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stone-card small {
  display: block;
  margin: 5px 0;
}
.constructor-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.constructor-options label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.constructor-options select {
  padding: 10px;
  border: 1px solid #ccc;
}


/* Livetta constructor upgrade */
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: rgba(28, 20, 32, .9);
}

button,
select,
input,
textarea {
  font: inherit;
}

.glass-card,
.admin-card {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(174, 155, 243, .35);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(174, 155, 243, .18);
  backdrop-filter: blur(16px);
}

.constructor {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 38px 24px 70px;
}

.constructor-preview {
  padding: 34px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(238, 154, 197, .22);
  color: #9c4f82;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.constructor-preview h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.constructor-lead,
.muted-text {
  color: rgba(28, 20, 32, .62);
  line-height: 1.55;
}

.admin-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(28, 20, 32, .62);
}

.admin-message.is-error {
  color: #a73566;
}

.constructor-lead {
  max-width: 650px;
  margin: 14px auto 0;
}

.constructor-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 10px;
}

.constructor-options label,
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  color: rgba(28, 20, 32, .68);
  font-size: 14px;
}

.constructor-options select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(174, 155, 243, .55);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  outline: none;
}

.admin-form textarea {
  min-height: 88px;
  resize: vertical;
}

.jewelry-stage {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.jewelry-frame {
  width: 440px;
  height: 365px;
  border: 0;
  margin: 24px auto;
  position: relative;
  border-radius: 44% 44% 52% 52%;
}

.thread-line {
  position: absolute;
  inset: 18px 30px 8px;
  border: 5px solid rgba(201, 164, 107, .78);
  border-top-color: rgba(201, 164, 107, .16);
  border-radius: 44% 44% 52% 52%;
  box-shadow: inset 0 -12px 24px rgba(201, 164, 107, .08), 0 12px 35px rgba(174, 155, 243, .12);
}

.thread-line::before,
.thread-line::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(201, 164, 107, .8);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
}

.thread-line::before {
  left: 28px;
}

.thread-line::after {
  right: 28px;
}

.stone-slot {
  position: absolute;
  inset: 0;
  transform: none;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}

.thread-stone {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 24px rgba(28, 20, 32, .16), 0 0 0 2px var(--stone-color, #e0b0ff);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  background: var(--stone-color, #e0b0ff);
}

.thread-stone:hover {
  box-shadow: 0 14px 34px rgba(238, 154, 197, .34), 0 0 0 3px var(--stone-color, #e0b0ff);
}

.thread-stone img,
.stone-card__circle img,
.stone-admin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thread-stone img {
  transform: scale(1.12);
}

.constructor-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.constructor-info div {
  padding: 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(238, 154, 197, .25);
}

.constructor-info span {
  display: block;
  margin-bottom: 5px;
  color: rgba(28, 20, 32, .55);
  font-size: 13px;
}

.constructor-info strong {
  font-size: 18px;
}

.constructor-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.constructor-actions button,
.admin-form button,
.product-card button {
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee9ac5, #ae9bf3);
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(174, 155, 243, .25);
}

.capacity-hint {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(224, 176, 255, .18);
  color: rgba(28, 20, 32, .72);
}

.stones-panel {
  padding: 24px;
  align-self: start;
  max-height: 760px;
  overflow: auto;
}

.stones-panel h2 {
  margin-top: 0;
}

.stone-card {
  width: 100%;
  display: flex;
  gap: 13px;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(174, 155, 243, .28);
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.stone-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(238, 154, 197, .18);
}

.stone-card--disabled {
  opacity: .45;
  cursor: not-allowed;
}

.stone-card__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 7px 18px rgba(28, 20, 32, .12);
}

.stone-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stone-card small {
  color: rgba(28, 20, 32, .56);
}

.stone-meta {
  color: #9c4f82;
  font-size: 13px;
}

.stone-color-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(28, 20, 32, .52);
  font-size: 12px;
}

.stone-color-line i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(28, 20, 32, .12);
}

.admin {
  max-width: 1180px;
  margin: 30px auto 70px;
  padding: 0 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.admin-card {
  padding: 26px;
}

.admin-card--accent {
  border-color: rgba(238, 154, 197, .45);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.color-field input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 6px;
}

.admin-list-block {
  margin-top: 22px;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.admin-mini-card {
  aspect-ratio: auto;
  border: 1px solid rgba(174, 155, 243, .25);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
}

.stone-admin-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
}

.stone-admin-card button {
  grid-column: 1 / -1;
}

.admin-color-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  vertical-align: middle;
  box-shadow: 0 3px 10px rgba(28, 20, 32, .14);
}

@media (max-width: 900px) {
  .constructor,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .constructor-info {
    grid-template-columns: 1fr 1fr;
  }

  .logo {
    width: 28%;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .constructor-preview h1 {
    font-size: 30px;
  }

  .jewelry-frame {
    width: 330px;
    height: 285px;
  }

  .constructor-info {
    grid-template-columns: 1fr;
  }
}

/* Правки конструктора: размер, цвет и круглые фото камней */
.thread-line {
  inset: 18px 22px 4px;
  border-width: 5px;
}

.thread-line::before {
  left: 18px;
}

.thread-line::after {
  right: 18px;
}

.thread-stone {
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  transform-origin: center;
  background: var(--stone-color, #e0b0ff);
  border: 4px solid rgba(255, 255, 255, .96);
}

.thread-stone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 7px 12px rgba(255, 255, 255, .34), inset 0 -10px 16px rgba(28, 20, 32, .16);
  pointer-events: none;
}

.thread-stone img,
.stone-card__circle img,
.stone-admin-card img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
  object-fit: cover;
  display: block;
}

.thread-stone img {
  transform: scale(1.18);
}

.stone-card__circle {
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
  background: var(--stone-color, #e0b0ff);
}

.stone-card__circle img {
  transform: scale(1.08);
}

.stone-edit-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.stone-edit-form input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid rgba(174, 155, 243, .45);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
}

.stone-edit-form input[type="color"] {
  padding: 3px;
  min-height: 40px;
}

.stone-edit-form button {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .stone-edit-form {
    grid-template-columns: 1fr;
  }
}

/* Final natural constructor fixes */
.jewelry-frame {
  width: 500px;
  height: 410px;
  border: 0 !important;
  border-radius: 46% 46% 56% 56%;
}

/* Нить стала тонкой и похожей на натуральный вощеный шнур, без коричневого тяжелого кольца */
.thread-line {
  position: absolute;
  inset: 18px 26px 0;
  border: 2px solid rgba(232, 222, 207, .98) !important;
  border-top-color: rgba(232, 222, 207, .22) !important;
  border-left-color: rgba(222, 210, 193, .92) !important;
  border-right-color: rgba(222, 210, 193, .92) !important;
  border-radius: 46% 46% 56% 56%;
  background: transparent !important;
  box-shadow:
    0 2px 4px rgba(80, 56, 38, .10),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(164, 138, 106, .18) !important;
  pointer-events: none;
}

/* Маленькие зоны под застежку */
.thread-line::before,
.thread-line::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(221, 203, 176, .95) !important;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), transparent 42%),
    linear-gradient(145deg, #f3eadc, #d8c3a0) !important;
  box-shadow: 0 2px 7px rgba(100, 69, 42, .16) !important;
}

.thread-line::before {
  left: 18px;
}

.thread-line::after {
  right: 18px;
}

.stone-slot {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.empty-thread-hint {
  position: absolute;
  left: 50%;
  top: 69%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: rgba(28, 20, 32, .55);
  font-size: 14px;
  pointer-events: none;
}

.thread-stone,
.thread-stone.natural-stone {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: grab;
  background: var(--stone-texture), var(--stone-color, #b48a78) !important;
  box-shadow:
    0 8px 17px rgba(34, 23, 38, .22),
    inset 0 8px 13px rgba(255, 255, 255, .25),
    inset 0 -10px 16px rgba(18, 12, 22, .25) !important;
  animation: stonePlaced .26s cubic-bezier(.2, .9, .25, 1.25) both;
  transition: filter .18s ease, box-shadow .18s ease;
}

.thread-stone:hover {
  cursor: pointer;
  filter: saturate(1.12) contrast(1.08) brightness(1.04);
  box-shadow:
    0 13px 24px rgba(34, 23, 38, .25),
    inset 0 8px 13px rgba(255, 255, 255, .28),
    inset 0 -11px 18px rgba(18, 12, 22, .28) !important;
}

/* Маленькое отверстие в бусине, чтобы было ощущение, что она реально надета на нить */
.thread-stone::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14%;
  height: 14%;
  min-width: 4px;
  min-height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(25, 18, 29, .22);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, .23),
    0 1px 1px rgba(255, 255, 255, .18);
  z-index: 3;
  pointer-events: none;
}

.thread-stone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .32), transparent 24%),
    radial-gradient(circle at 68% 78%, rgba(0, 0, 0, .13), transparent 35%);
  box-shadow: none !important;
  pointer-events: none;
  z-index: 2;
}

.thread-stone img,
.natural-stone-preview img,
.stone-card__circle img,
.stone-admin-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0 !important;
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
}

.thread-stone img {
  position: relative;
  z-index: 1;
  transform: scale(1.38);
  filter: saturate(1.12) contrast(1.08);
}

.stone-card__circle,
.natural-stone-preview {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 999px;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  background: var(--stone-texture), var(--stone-color, #b48a78) !important;
  box-shadow:
    0 7px 14px rgba(43, 30, 48, .14),
    inset 0 5px 10px rgba(255, 255, 255, .24),
    inset 0 -8px 13px rgba(24, 16, 29, .17) !important;
}

.natural-stone-preview img {
  transform: scale(1.22);
}

.stone-card__content b {
  color: #8c4d79;
}

.stone-card--disabled .stone-card__content b {
  color: rgba(28, 20, 32, .48);
}

@keyframes stonePlaced {
  from {
    opacity: 0;
    filter: blur(2px) saturate(.8);
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1);
  }
}

@media (max-width: 720px) {
  .jewelry-frame {
    width: min(92vw, 390px);
    height: 335px;
  }

  .thread-line {
    inset: 16px 22px 0;
  }
}

/* Natural necklace final polish */
.jewelry-frame {
  width: min(540px, 92vw) !important;
  height: 430px !important;
  border: 0 !important;
  background: transparent !important;
}

.thread-line {
  position: absolute !important;
  inset: 14px 28px 0 !important;
  border: 2px solid rgba(232, 226, 216, .98) !important;
  border-top-color: rgba(232, 226, 216, .20) !important;
  border-left-color: rgba(216, 206, 191, .94) !important;
  border-right-color: rgba(216, 206, 191, .94) !important;
  border-radius: 48% 48% 58% 58% !important;
  background: transparent !important;
  box-shadow:
    0 2px 7px rgba(78, 58, 38, .10),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(150, 126, 96, .20) !important;
}

.thread-line::before,
.thread-line::after {
  top: 4px !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid rgba(221, 211, 194, .98) !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .95), transparent 42%),
    linear-gradient(145deg, #f6efe6, #d8c5a8) !important;
}

.thread-line::before {
  left: 22px !important;
}

.thread-line::after {
  right: 22px !important;
}

.thread-stone,
.thread-stone.natural-stone {
  border: 0 !important;
  outline: 0 !important;
  background: var(--stone-texture), var(--stone-color, #b48a78) !important;
  box-shadow:
    0 10px 20px rgba(31, 22, 36, .23),
    inset 0 9px 14px rgba(255, 255, 255, .22),
    inset 0 -12px 18px rgba(17, 10, 20, .26) !important;
}

.thread-stone img {
  border: 0 !important;
  border-radius: 50% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.45) !important;
}

.thread-stone::before {
  width: 13% !important;
  height: 13% !important;
  background: rgba(25, 18, 29, .20) !important;
}

.stone-card__circle,
.natural-stone-preview {
  border: 0 !important;
  outline: 0 !important;
  background: var(--stone-texture), var(--stone-color, #b48a78) !important;
}

.product-card__image img,
.admin-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-card__image,
.admin-product-image {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
}

.buy-button,
.product-card__button {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ee9ac5, #c77dff) !important;
  color: #241627 !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 26px rgba(199, 125, 255, .24) !important;
}

.buy-button:hover,
.product-card__button:hover {
  transform: translateY(-2px) scale(1.02);
}

.file-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(28, 20, 32, .68);
}

.admin-product-card {
  min-height: auto;
}

.admin-product-image {
  width: 100%;
  height: 180px;
  display: grid;
  place-items: center;
  color: rgba(28, 20, 32, .45);
}

@media (max-width: 720px) {
  .jewelry-frame {
    width: min(94vw, 410px) !important;
    height: 350px !important;
  }
}
.livetta-builder {
  max-width: 1520px;
  grid-template-columns: minmax(760px, 1fr) 340px;
}

.livetta-builder .constructor-preview {
  overflow: hidden;
}

.livetta-thread-scene {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 18px 0 12px;
}

.livetta-thread-frame {
  position: relative;
  width: min(var(--livetta-frame-width, 855px), 100%);
  height: var(--livetta-frame-height, 522px);
  margin: 0 auto 22px;
  border: 0;
  border-radius: 42% 42% 58% 58%;
  transition: width .25s ease, height .25s ease;
}

.livetta-thread-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.livetta-thread-path,
.livetta-thread-highlight {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.livetta-thread-path {
  stroke: rgba(204, 164, 91, .96);
  stroke-width: 9;
  filter:
    drop-shadow(0 7px 7px rgba(71, 45, 22, .22))
    drop-shadow(0 18px 24px rgba(174, 155, 243, .13));
}

.livetta-thread-highlight {
  stroke: rgba(255, 235, 185, .58);
  stroke-width: 3;
  transform: translateY(-2px);
  opacity: .8;
}

.livetta-bead-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.livetta-clasp {
  position: absolute;
  top: 54px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 5px solid rgba(207, 166, 92, .96);
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.92), transparent 35%),
    linear-gradient(135deg, #f8d997, #be7f32 58%, #725027);
  box-shadow:
    inset -4px -5px 8px rgba(55, 33, 12, .28),
    0 10px 18px rgba(75, 48, 25, .22);
  z-index: 20;
}

.livetta-clasp-left {
  left: 88px;
}

.livetta-clasp-right {
  right: 88px;
}

.livetta-thread-bead {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--bead-size);
  height: var(--bead-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 9px 10px rgba(26, 18, 32, .22));
  transition: transform .18s ease, filter .18s ease;
}

.livetta-thread-bead:hover {
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 15px 22px rgba(238, 154, 197, .38));
}

.livetta-thread-bead--new {
  animation: livettaBeadIn .34s cubic-bezier(.22, .98, .34, 1.16);
}

@keyframes livettaBeadIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -190%) scale(.35);
  }

  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.livetta-bead-body,
.livetta-catalog-bead {
  position: relative;
  display: block;
  width: var(--bead-size);
  height: var(--bead-size);
  border-radius: 50%;
  overflow: hidden;
  background:
    var(--stone-image),
    var(--stone-texture);
  background-size: cover, cover;
  background-position: center, center;
  box-shadow:
    inset 7px 7px 12px rgba(255,255,255,.26),
    inset -10px -12px 16px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.42),
    0 0 0 1px rgba(74, 44, 67, .14);
}

.livetta-bead-body::before,
.livetta-catalog-bead::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,.9) 0 8%, transparent 22%),
    radial-gradient(circle at 74% 82%, rgba(0,0,0,.44), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.36), transparent 42%, rgba(0,0,0,.3));
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 4;
}

.livetta-bead-thread {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: max(2px, 12%);
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(var(--thread-angle));
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), transparent 44%),
    linear-gradient(90deg, #8d6132, #f5d693 28%, #c8934e 56%, #7a532d);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.5),
    inset 0 -1px 3px rgba(70, 42, 18, .38);
  z-index: 5;
}

.livetta-bead-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 20%;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(var(--thread-angle));
  background:
    radial-gradient(ellipse at center, rgba(14, 8, 10, .92) 0 35%, rgba(255,255,255,.14) 54%, rgba(0,0,0,.36) 78%);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.72),
    0 1px 3px rgba(255,255,255,.25);
  z-index: 6;
}

.livetta-bead-shine {
  position: absolute;
  left: 20%;
  top: 15%;
  width: 30%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(255,255,255,.28) 48%, transparent 72%);
  filter: blur(.4px);
  transform: rotate(-28deg);
  z-index: 7;
  pointer-events: none;
}

.livetta-bead-depth {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 -8px 13px rgba(0,0,0,.24),
    inset 0 0 0 1px rgba(255,255,255,.18);
  z-index: 8;
  pointer-events: none;
}

.livetta-catalog-bead {
  flex: 0 0 auto;
  width: var(--bead-size);
  height: var(--bead-size);
  box-shadow:
    inset 7px 7px 12px rgba(255,255,255,.28),
    inset -9px -11px 15px rgba(0,0,0,.3),
    0 9px 14px rgba(28,20,32,.14);
}

.livetta-catalog-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 18%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, rgba(14, 8, 10, .9) 0 38%, rgba(255,255,255,.16) 54%, rgba(0,0,0,.34) 78%);
  z-index: 6;
}

.livetta-stone-card {
  align-items: center;
}

.livetta-stone-card:not(:disabled):hover .livetta-catalog-bead {
  animation: livettaCatalogBeadPulse .55s ease;
}

@keyframes livettaCatalogBeadPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.stone-card--disabled {
  opacity: .45;
  cursor: not-allowed;
}

.constructor-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1180px) {
  .livetta-builder {
    grid-template-columns: 1fr;
  }

  .stones-panel {
    order: 2;
  }
}

@media (max-width: 760px) {
  .livetta-thread-frame {
    height: calc(var(--livetta-frame-height, 520px) * .78);
  }

  .livetta-clasp {
    top: 46px;
    width: 25px;
    height: 25px;
  }

  .livetta-clasp-left {
    left: 48px;
  }

  .livetta-clasp-right {
    right: 48px;
  }
}
.garnet-builder {
  max-width: 1500px;
  grid-template-columns: minmax(760px, 1fr) 360px;
}

.garnet-builder .constructor-preview {
  overflow: hidden;
}

.garnet-scene-wrap {
  position: relative;
  width: 100%;
  height: 620px;
  margin: 24px auto 26px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .95), rgba(255, 248, 252, .84) 42%, rgba(249, 228, 246, .64) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(174, 155, 243, .24),
    inset 0 -30px 60px rgba(238, 154, 197, .12),
    0 25px 70px rgba(174, 155, 243, .14);
}

.garnet-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.garnet-canvas:active {
  cursor: grabbing;
}

.scene-message {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 15px 34px rgba(174, 155, 243, .18);
  color: rgba(28, 20, 32, .58);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.garnet-card {
  align-items: center;
}

.garnet-card-preview {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 160, 170, .95), transparent 18%),
    radial-gradient(circle at 72% 78%, rgba(30, 0, 5, .86), transparent 42%),
    linear-gradient(135deg, #ff4056, #8b0614 46%, #290006 100%);
  box-shadow:
    inset 11px 10px 16px rgba(255, 255, 255, .24),
    inset -16px -18px 24px rgba(0, 0, 0, .38),
    0 14px 28px rgba(74, 0, 16, .28);
}

.garnet-card-preview::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #110005 0 35%, rgba(255, 255, 255, .18) 58%, rgba(0, 0, 0, .3) 100%);
  transform: rotate(-12deg);
}

.garnet-facet {
  position: absolute;
  background: rgba(255, 255, 255, .22);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.facet-1 {
  left: 15px;
  top: 8px;
  width: 24px;
  height: 22px;
  transform: rotate(22deg);
}

.facet-2 {
  right: 9px;
  top: 24px;
  width: 23px;
  height: 24px;
  transform: rotate(84deg);
  opacity: .35;
}

.facet-3 {
  left: 23px;
  bottom: 7px;
  width: 25px;
  height: 22px;
  transform: rotate(174deg);
  opacity: .24;
}

.garnet-card:not(:disabled):hover .garnet-card-preview {
  animation: garnetPreviewPulse .65s ease;
}

@keyframes garnetPreviewPulse {
  0% {
    transform: scale(1) rotate(0);
  }

  50% {
    transform: scale(1.12) rotate(8deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.stone-card--disabled {
  opacity: .45;
  cursor: not-allowed;
}

.constructor-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.garnet-scene-wrap {
  height: 520px;
}

@media (max-width: 1180px) {
  .garnet-scene-wrap {
    height: 460px;
  }
}

@media (max-width: 640px) {
  .garnet-scene-wrap {
    height: 360px;
  }
}
/* Optimized 3D constructor override */
.garnet-builder {
  align-items: start;
}

.garnet-builder .constructor-preview {
  overflow: hidden;
}

.garnet-builder .constructor-lead {
  max-width: 760px;
}

.garnet-scene-wrap {
  position: relative;
  width: min(100%, 920px);
  height: clamp(430px, 56vw, 660px);
  margin: 24px auto 0;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.96), rgba(255,245,250,.72) 58%, rgba(224,176,255,.14)),
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,246,251,.62));
  border: 1px solid rgba(238,154,197,.24);
  box-shadow: inset 0 0 70px rgba(255,255,255,.78), 0 22px 70px rgba(174,155,243,.16);
}

.garnet-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.garnet-canvas:active {
  cursor: grabbing;
}

.scene-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 13px 18px;
  border-radius: 999px;
  color: rgba(28, 20, 32, .72);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(174,155,243,.26);
  box-shadow: 0 14px 40px rgba(174,155,243,.16);
  pointer-events: none;
}

.constructor-stone-card {
  align-items: center;
  border: 1px solid rgba(174,155,243,.2);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 34px rgba(174,155,243,.12);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.constructor-stone-card:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(238,154,197,.22);
}

.constructor-stone-card:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.stone-card__thumb {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.92), transparent 19%),
    radial-gradient(circle at 68% 78%, rgba(0,0,0,.2), transparent 35%),
    var(--stone-color, #8b0614);
  box-shadow: inset -10px -12px 18px rgba(0,0,0,.16), 0 10px 24px rgba(28,20,32,.13);
}

.stone-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.stone-card__gem {
  width: 62%;
  height: 62%;
  clip-path: polygon(50% 0, 90% 20%, 100% 62%, 50% 100%, 0 62%, 10% 20%);
  background:
    linear-gradient(135deg, rgba(255,255,255,.45), transparent 32%),
    linear-gradient(45deg, rgba(0,0,0,.12), transparent 60%),
    var(--stone-color, #8b0614);
  filter: saturate(1.16);
}

.stone-card__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stone-card__content small {
  color: rgba(28,20,32,.6);
  line-height: 1.35;
}

.stone-card__content b {
  color: #9c4f82;
  font-size: 13px;
}

.constructor-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 980px) {
  .garnet-scene-wrap {
    height: clamp(380px, 70vw, 560px);
  }
}

@media (max-width: 560px) {
  .garnet-scene-wrap {
    height: 360px;
    border-radius: 22px;
  }

  .stone-card__thumb {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}


/* Photo neck constructor update */
.garnet-builder .garnet-scene-wrap {
  min-height: 620px;
  background: #fff;
}

.garnet-builder .garnet-canvas {
  min-height: 620px;
}

@media (max-width: 760px) {
  .garnet-builder .garnet-scene-wrap,
  .garnet-builder .garnet-canvas {
    min-height: 460px;
  }
}


/* 2D neck constructor */
.neck-constructor-stage {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1 / 1;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(238, 154, 197, .25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 22px 60px rgba(174,155,243,.12);
}

.neck-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.necklace-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.necklace-thread {
  fill: none;
  stroke: rgba(196, 190, 185, .96);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(72, 58, 52, .18));
}

.necklace-beads {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.necklace-bead {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--bead-rotate, 0deg));
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,.12) 22%, transparent 33%),
    radial-gradient(circle at 58% 62%, var(--stone-color), rgba(0,0,0,.26));
  box-shadow:
    0 1px 3px rgba(45, 31, 35, .22),
    inset 0 -2px 3px rgba(0,0,0,.12),
    inset 0 1px 2px rgba(255,255,255,.5);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.necklace-bead:hover {
  transform: translate(-50%, -50%) rotate(var(--bead-rotate, 0deg)) scale(1.18);
  z-index: 10;
  box-shadow:
    0 6px 16px rgba(45, 31, 35, .28),
    inset 0 -2px 3px rgba(0,0,0,.12),
    inset 0 1px 2px rgba(255,255,255,.5);
}

.necklace-bead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.necklace-bead span {
  display: block;
  width: 100%;
  height: 100%;
}

.necklace-bead--new {
  animation: beadPop .22s ease-out;
}

@keyframes beadPop {
  from {
    transform: translate(-50%, -50%) rotate(var(--bead-rotate, 0deg)) scale(.35);
    opacity: .2;
  }

  to {
    transform: translate(-50%, -50%) rotate(var(--bead-rotate, 0deg)) scale(1);
    opacity: 1;
  }
}

.neck-constructor-stage .scene-message {
  z-index: 4;
}

@media (max-width: 760px) {
  .neck-constructor-stage {
    width: 100%;
    border-radius: 22px;
  }

  .necklace-thread {
    stroke-width: 3;
  }
}


/* Real necklace shape over neck photo */
.neck-constructor-stage {
  background: #fff;
}

.neck-photo {
  object-fit: cover;
}

.necklace-svg {
  z-index: 2;
}

.necklace-layout-path {
  fill: none;
  stroke: transparent;
  stroke-width: 1;
}

.necklace-chain {
  fill: none;
  stroke: rgba(178, 174, 168, .96);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 5 4;
  filter: url(#necklaceSoftShadow);
}

.necklace-chain--back {
  opacity: .96;
}

.necklace-thread--front {
  fill: none;
  stroke: rgba(205, 201, 196, .84);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(72, 58, 52, .14));
}

.necklace-beads {
  z-index: 4;
}

.necklace-bead {
  border: 1px solid rgba(225, 222, 216, .86);
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.95), rgba(255,255,255,.18) 26%, transparent 38%),
    radial-gradient(circle at 55% 60%, var(--stone-color), rgba(0,0,0,.22));
}

.necklace-bead img {
  transform: scale(1.14);
}

@media (max-width: 760px) {
  .necklace-chain {
    stroke-width: 2.7;
  }

  .necklace-thread--front {
    stroke-width: 1.8;
  }
}


/* Dynamic necklace size */
.neck-constructor-stage[data-necklace-size] .necklace-chain,
.neck-constructor-stage[data-necklace-size] .necklace-thread--front {
  transition: stroke-width .18s ease, opacity .18s ease;
}

.neck-constructor-stage[data-necklace-size] .necklace-chain {
  stroke-width: calc(2.6px + var(--necklace-size-progress, .3) * 1.1px);
}

.neck-constructor-stage[data-necklace-size] .necklace-thread--front {
  stroke-width: calc(1.8px + var(--necklace-size-progress, .3) * .75px);
}


/* Bigger necklace that visually goes behind the neck */
.neck-constructor-stage {
  width: min(100%, 820px);
}

.necklace-svg {
  z-index: 2;
}

.necklace-layout-path {
  fill: none;
  stroke: transparent;
  stroke-width: 1;
}

.necklace-thread--front {
  fill: none;
  stroke: rgba(187, 184, 179, .96);
  stroke-width: calc(2.8px + var(--necklace-size-progress, .3) * 1.2px);
  stroke-linecap: round;
  stroke-dasharray: 5 4;
  filter: url(#necklaceSoftShadow);
}

/*
  Это дубль того же фото поверх верхней части цепочки.
  Он скрывает нить в зоне шеи, поэтому создаётся эффект,
  что ожерелье реально уходит за шею модели.
*/
.neck-photo-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("../img/neck-model.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(
    36% 16%,
    64% 16%,
    68% 33%,
    66% 49%,
    61% 57%,
    56% 61%,
    50% 63%,
    44% 61%,
    39% 57%,
    34% 49%,
    32% 33%
  );
}

.necklace-beads {
  z-index: 4;
}

.necklace-bead {
  border: 1px solid rgba(224, 221, 216, .9);
}

.necklace-bead:hover {
  z-index: 20;
}

@media (max-width: 760px) {
  .necklace-thread--front {
    stroke-width: calc(2.2px + var(--necklace-size-progress, .3) * .8px);
  }
}


/* Symmetry + behind neck + capacity fix */
.necklace-thread--front {
  stroke: rgba(184, 181, 176, .96);
  stroke-width: calc(2.4px + var(--necklace-size-progress, .3) * .95px);
  stroke-dasharray: 4 3;
}

.neck-photo-mask {
  z-index: 8;
  clip-path: polygon(
    37.5% 14%,
    62.5% 14%,
    66% 32%,
    65% 45%,
    61.5% 54%,
    56% 59%,
    50% 61%,
    44% 59%,
    38.5% 54%,
    35% 45%,
    34% 32%
  );
}

.necklace-beads {
  z-index: 5;
}

.necklace-bead {
  box-shadow:
    0 1px 3px rgba(45, 31, 35, .2),
    inset 0 -2px 3px rgba(0,0,0,.12),
    inset 0 1px 2px rgba(255,255,255,.54);
}


/* Stones until the necklace goes behind the neck */
.necklace-thread--full {
  fill: none;
  stroke: rgba(181, 178, 173, .96);
  stroke-width: calc(2.5px + var(--necklace-size-progress, .3) * .9px);
  stroke-linecap: round;
  stroke-dasharray: 4 3;
  filter: url(#necklaceSoftShadow);
}

.necklace-thread--front {
  display: none;
}

.necklace-layout-path {
  fill: none;
  stroke: transparent;
  stroke-width: 1;
}

.necklace-beads {
  z-index: 5;
}

.neck-photo-mask {
  z-index: 6;
  /*
    Закрывает только саму шею, чтобы верхняя цепочка уходила за модель.
    Камни заканчиваются ниже этой зоны, поэтому не должны пропадать.
  */
  clip-path: polygon(
    36% 13%,
    64% 13%,
    67.5% 32%,
    66% 46%,
    62% 55%,
    56% 60.5%,
    50% 62.5%,
    44% 60.5%,
    38% 55%,
    34% 46%,
    32.5% 32%
  );
}

.necklace-bead {
  border: 1px solid rgba(224, 221, 216, .9);
  box-shadow:
    0 1px 3px rgba(45, 31, 35, .2),
    inset 0 -2px 3px rgba(0,0,0,.12),
    inset 0 1px 2px rgba(255,255,255,.54);
}


/* Restore necklace middle only */
/* Посадку, координаты и JS не трогаем. Исправляем только маску, которая скрывала середину. */
.neck-photo-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background-image: url("../img/neck-model.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: none !important;
}

/* Левая боковая маска: скрывает только место захода цепочки за шею */
.neck-photo-mask--left {
  clip-path: polygon(
    31% 13%,
    45% 13%,
    45% 38%,
    42% 49%,
    37% 55%,
    32% 48%,
    29% 34%
  ) !important;
}

/* Правая боковая маска: скрывает только место захода цепочки за шею */
.neck-photo-mask--right {
  clip-path: polygon(
    55% 13%,
    69% 13%,
    72% 34%,
    68% 48%,
    63% 55%,
    58% 49%,
    55% 38%
  ) !important;
}

/* Камни остаются видимыми поверх боковых масок */
.necklace-beads {
  z-index: 7 !important;
}


/* Restore all visible parts */
/*
  JS, центр, ширина, верх, низ и посадка не менялись.
  Этот блок только уменьшает зоны маски, чтобы она больше не съедала видимую часть ожерелья.
*/

.neck-photo-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background-image: url("../img/neck-model.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: none !important;
}

/* Мини-маска слева: закрывает только самый верхний заход цепочки за шею */
.neck-photo-mask--left {
  clip-path: polygon(
    35.5% 14%,
    43.5% 14%,
    43.2% 29%,
    41.2% 35%,
    37.2% 35%,
    35.2% 28%
  ) !important;
}

/* Мини-маска справа: закрывает только самый верхний заход цепочки за шею */
.neck-photo-mask--right {
  clip-path: polygon(
    56.5% 14%,
    64.5% 14%,
    64.8% 28%,
    62.8% 35%,
    58.8% 35%,
    56.8% 29%
  ) !important;
}

/* Бусины точно поверх масок */
.necklace-beads {
  z-index: 8 !important;
}

/* SVG с цепочкой остаётся под мини-масками, но сама линия виднее */
.necklace-svg {
  z-index: 2 !important;
}

.necklace-thread--full {
  stroke: rgba(150, 146, 140, .98) !important;
  stroke-width: calc(3px + var(--necklace-size-progress, .3) * .9px) !important;
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,.55))
    drop-shadow(0 2px 3px rgba(40,30,25,.24)) !important;
}

.necklace-thread--front {
  stroke: rgba(150, 146, 140, .98) !important;
  stroke-width: calc(3px + var(--necklace-size-progress, .3) * .9px) !important;
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,.55))
    drop-shadow(0 2px 3px rgba(40,30,25,.24)) !important;
}


/* Bigger stones, exact necklace trajectory */
/*
  Параметры посадки ожерелья не менялись.
  Камни увеличены через JS-константы и остаются строго на SVG-пути ожерелья.
*/
.necklace-bead {
  box-shadow:
    0 2px 5px rgba(45, 31, 35, .26),
    inset 0 -3px 4px rgba(0,0,0,.16),
    inset 0 2px 3px rgba(255,255,255,.62) !important;
}

.necklace-bead img {
  transform: scale(1.18);
}


/* Draggable stones */
/* Посадка ожерелья, траектория, маски и размер не менялись. */
.necklace-bead {
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.necklace-bead--dragging {
  cursor: grabbing;
  z-index: 50 !important;
  opacity: .92;
  transform: translate(-50%, -50%) rotate(var(--bead-rotate, 0deg)) scale(1.18) !important;
  box-shadow:
    0 10px 26px rgba(45, 31, 35, .32),
    inset 0 -3px 4px rgba(0,0,0,.16),
    inset 0 2px 3px rgba(255,255,255,.62) !important;
}

.neck-constructor-stage--dragging {
  cursor: grabbing;
}


/* Correct drag drop indexing */
/* Посадка, траектория, размер камней и лимит не менялись. */
.necklace-bead--dragging {
  pointer-events: none;
}


/* Exact drag position */
/*
  Посадка ожерелья, траектория, маски, размер камней и лимит не менялись.
  Камень теперь сохраняет точную позицию на SVG-пути после отпускания.
*/
.necklace-bead--dragging {
  pointer-events: none;
  z-index: 70 !important;
}


/* Collision placement for dragged stones */
/* Посадка, траектория, размер, маски и лимит не менялись. */
.necklace-bead--dragging {
  pointer-events: none;
  z-index: 80 !important;
}


/* Home carousel */
.home-page {
  max-width: 1420px;
  margin: 32px auto 70px;
  padding: 0 24px;
}

.home-carousel {
  width: 100%;
}

.home-carousel__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1420 / 620;
  border-radius: 34px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(174, 155, 243, .28);
  box-shadow: 0 24px 70px rgba(174, 155, 243, .18);
}

.home-carousel__track {
  display: flex;
  height: 100%;
  transition: transform .65s ease;
  will-change: transform;
}

.home-carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.home-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .72);
  color: rgba(28, 20, 32, .82);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(28, 20, 32, .14);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.home-carousel__button:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(238, 154, 197, .24);
}

.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}

.home-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .54);
  backdrop-filter: blur(10px);
}

.home-carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(174, 155, 243, .42);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, width .18s ease;
}

.home-carousel__dots button.is-active {
  width: 26px;
  border-radius: 999px;
  background: #ee9ac5;
}

@media (max-width: 720px) {
  .home-page {
    margin-top: 22px;
    padding: 0 14px 50px;
  }

  .home-carousel__viewport {
    border-radius: 22px;
  }

  .home-carousel__button {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  .home-carousel__button--prev {
    left: 10px;
  }

  .home-carousel__button--next {
    right: 10px;
  }
}


/* Admin carousel upload */
.carousel-admin-preview {
  margin-top: 16px;
}

.carousel-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.carousel-admin-card {
  padding: 14px;
  border: 1px solid rgba(174, 155, 243, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.carousel-admin-card strong,
.carousel-admin-card span {
  display: block;
}

.carousel-admin-card span {
  margin: 5px 0 10px;
  color: rgba(28, 20, 32, .58);
  font-size: 13px;
}

.carousel-admin-card img {
  width: 100%;
  aspect-ratio: 1420 / 620;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(28, 20, 32, .12);
}

@media (max-width: 720px) {
  .carousel-admin-grid {
    grid-template-columns: 1fr;
  }
}


/* Admin carousel unlimited upload */
.carousel-admin-preview {
  margin-top: 16px;
}

.carousel-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.carousel-admin-card {
  padding: 14px;
  border: 1px solid rgba(174, 155, 243, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.carousel-admin-card strong,
.carousel-admin-card span {
  display: block;
}

.carousel-admin-card span {
  margin: 5px 0 10px;
  color: rgba(28, 20, 32, .58);
  font-size: 13px;
}

.carousel-admin-card img {
  width: 100%;
  aspect-ratio: 1420 / 620;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(28, 20, 32, .12);
}

.carousel-delete-button {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 154, 197, .22);
  color: #8c4d79;
  cursor: pointer;
  font-weight: 700;
}


/* Admin carousel order */
.carousel-order-toolbar {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid rgba(174, 155, 243, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.carousel-order-toolbar strong,
.carousel-order-toolbar span {
  display: block;
}

.carousel-order-toolbar span {
  margin: 6px 0 12px;
  color: rgba(28, 20, 32, .58);
  font-size: 13px;
}

.carousel-order-toolbar button {
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee9ac5, #9a84e8);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.carousel-index-field {
  display: block;
  margin: 10px 0 12px;
  color: rgba(28, 20, 32, .72);
  font-size: 13px;
}

.carousel-index-field input {
  width: 100%;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid rgba(174, 155, 243, .45);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: rgba(28, 20, 32, .86);
  outline: none;
}





/* Home popular products */
.home-popular {
  margin-top: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.home-popular__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.home-popular__header span {
  display: none;
}

.home-popular__header h2 {
  margin: 0;
  color: rgba(28, 20, 32, .95);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.home-popular__all {
  color: rgba(28, 20, 32, .88);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  font-weight: 500;
}

.home-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 38px);
}

.home-popular-card {
  min-width: 0;
}

.home-popular-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.34;
  overflow: hidden;
  border-radius: 4px;
  background: #f4efe6;
  text-decoration: none;
}

.home-popular-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.home-popular-card:hover .home-popular-card__image img {
  transform: scale(1.035);
}

.home-popular-card__image > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(28, 20, 32, .42);
  font-size: 14px;
}

.home-popular-card__favorite {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: rgba(28, 20, 32, .92);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.home-popular-card__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.home-popular-card__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
}

.home-popular-card__info {
  position: relative;
  min-height: 92px;
  padding: 16px 6px 0;
}

.home-popular-card__info p {
  margin: 0 0 5px;
  color: rgba(28, 20, 32, .78);
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.home-popular-card__info h3 {
  margin: 0 0 6px;
  color: rgba(28, 20, 32, .92);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  text-transform: uppercase;
}

.home-popular-card__info strong {
  display: block;
  color: rgba(28, 20, 32, .95);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}


@media (max-width: 1100px) {
  .home-popular__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-popular__header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .home-popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .home-popular-card__favorite {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .home-popular__grid {
    grid-template-columns: 1fr;
  }
}

/* Admin popular products */
.popular-admin-toolbar {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid rgba(174, 155, 243, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.popular-admin-toolbar strong,
.popular-admin-toolbar span {
  display: block;
}

.popular-admin-toolbar span {
  margin: 6px 0 12px;
  color: rgba(28, 20, 32, .58);
  font-size: 13px;
}

.popular-admin-toolbar button {
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee9ac5, #9a84e8);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.popular-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.popular-admin-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(174, 155, 243, .28);
  background: rgba(255, 255, 255, .78);
}

.popular-admin-card__image {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: rgba(28, 20, 32, .42);
  font-size: 12px;
}

.popular-admin-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-admin-card__content strong,
.popular-admin-card__content span {
  display: block;
}

.popular-admin-card__content span {
  margin: 5px 0 10px;
  color: rgba(28, 20, 32, .58);
  font-size: 13px;
}

.popular-check,
.popular-index-field {
  display: block;
  margin-top: 9px;
  color: rgba(28, 20, 32, .72);
  font-size: 13px;
}

.popular-check {
  display: flex;
  align-items: center;
  gap: 7px;
}

.popular-index-field input {
  width: 100%;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid rgba(174, 155, 243, .45);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: rgba(28, 20, 32, .86);
  outline: none;
}

@media (max-width: 980px) {
  .home-popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-popular {
    padding: 20px;
    border-radius: 24px;
  }

  .home-popular__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-popular__grid {
    grid-template-columns: 1fr;
  }

  .popular-admin-card {
    grid-template-columns: 1fr;
  }

  .popular-admin-card__image {
    width: 100%;
    height: 170px;
  }
}



/* Admin product gallery */
.admin-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.admin-product-gallery__item {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(174, 155, 243, .24);
}

.admin-product-gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-product-gallery__item button {
  width: 100%;
  border: 0;
  padding: 8px;
  background: rgba(238, 154, 197, .2);
  color: #8c4d79;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(28, 20, 32, .72);
  font-size: 13px;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-card__button--secondary {
  background: rgba(255, 255, 255, .74);
  color: rgba(28, 20, 32, .86);
  text-decoration: none;
  border: 1px solid rgba(174, 155, 243, .32);
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail__info {
    position: static;
  }
}


/* Gentle white navigation/button text */
.nav a,
.product-card__button,
.buy-button,
.home-popular__all,
.premium-buy-button,
.premium-secondary-link,
.product-detail__buy,
.catalog-categories button,
.popular-admin-toolbar button,
.carousel-order-toolbar button,
.admin-form button,
.admin-inline-form button {
  color: rgba(255, 255, 255, .94) !important;
}

.nav a {
  background: linear-gradient(135deg, rgba(238, 154, 197, .92), rgba(174, 155, 243, .88));
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 12px 28px rgba(174, 155, 243, .20);
}

/* Admin categories */
.admin-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(174, 155, 243, .30);
}

.admin-category-pill span {
  color: rgba(28, 20, 32, .82);
  font-size: 14px;
  font-weight: 700;
}

.admin-category-pill button {
  border: 0;
  border-radius: 999px;
  background: rgba(238, 154, 197, .24);
  color: #8c4d79;
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* Catalog categories and premium cards */
.catalog-page {
  max-width: 1420px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}








.catalog-grid {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

.catalog-product-card {
  min-height: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 60px rgba(174, 155, 243, .16);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.catalog-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 80px rgba(174, 155, 243, .24);
}

.catalog-product-card .product-card__image {
  height: 340px;
  border: 0;
  background: #f4efe6;
  overflow: hidden;
  display: block;
}

.catalog-product-card .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.catalog-product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.catalog-product-card .product-card__image span {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(28, 20, 32, .42);
}

.catalog-product-card__body {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 20px;
}

.catalog-product-card .product-card__category {
  margin: 0 0 8px;
  color: rgba(140, 77, 121, .72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.catalog-product-card .product-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.catalog-product-card .product-card__title a {
  color: rgba(28, 20, 32, .92);
  text-decoration: none;
}

.catalog-product-card .product-card__description {
  margin: 12px 0 0;
  color: rgba(28, 20, 32, .60);
  line-height: 1.55;
  font-size: 14px;
}

.catalog-product-card__bottom {
  margin-top: auto;
  padding-top: 18px;
}

.catalog-product-card .product-card__price {
  display: block;
  margin-bottom: 14px;
  color: rgba(28, 20, 32, .92);
  font-size: 19px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee9ac5, #9a84e8);
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(154, 132, 232, .20);
}

.product-card__button--secondary {
  background: rgba(174, 155, 243, .60);
  border: 1px solid rgba(255, 255, 255, .44);
}

/* Premium product detail */
.product-detail-page {
  max-width: 1420px;
  margin: 28px auto 90px;
  padding: 0 24px;
}

.product-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .94);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(174, 155, 243, .62);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
}

.premium-product-gallery {
  display: grid;
  gap: 16px;
}

.premium-product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.16;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: linear-gradient(145deg, #f6efe7, #fff7fb);
  cursor: zoom-in;
  padding: 0;
  box-shadow: 0 34px 90px rgba(174, 155, 243, .22);
}

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

.premium-product-gallery__main > span:not(.premium-product-gallery__zoom) {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(28, 20, 32, .42);
}

.premium-product-gallery__zoom {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: rgba(28, 20, 32, .72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.premium-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 12px;
}

.premium-product-gallery__thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .50);
  border-radius: 18px;
  background: #f4efe6;
  cursor: pointer;
  padding: 0;
  opacity: .76;
  box-shadow: 0 14px 32px rgba(174, 155, 243, .13);
}

.premium-product-gallery__thumbs button.is-active {
  opacity: 1;
  border-color: rgba(238, 154, 197, .92);
}

.premium-product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-product-info {
  position: sticky;
  top: 20px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(238, 154, 197, .22), transparent 34%),
    rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: 0 34px 90px rgba(174, 155, 243, .20);
  backdrop-filter: blur(18px);
}

.premium-product-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(238, 154, 197, .18);
  color: rgba(140, 77, 121, .82);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

.premium-product-info h1 {
  margin: 0 0 16px;
  color: rgba(28, 20, 32, .96);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
}

.premium-product-price {
  display: block;
  margin-bottom: 30px;
  color: rgba(28, 20, 32, .95);
  font-size: 27px;
  letter-spacing: -.02em;
}

.premium-product-description {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .52);
}

.premium-product-description h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: rgba(28, 20, 32, .9);
}

.premium-product-description p {
  margin: 0;
  color: rgba(28, 20, 32, .68);
  line-height: 1.75;
}

.premium-product-benefits {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.premium-product-benefits div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .54);
  border: 1px solid rgba(174, 155, 243, .18);
}

.premium-product-benefits strong,
.premium-product-benefits span {
  display: block;
}

.premium-product-benefits strong {
  color: rgba(28, 20, 32, .88);
  font-size: 14px;
}

.premium-product-benefits span {
  margin-top: 4px;
  color: rgba(28, 20, 32, .54);
  font-size: 13px;
}

.premium-product-actions {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  margin-bottom: 24px;
}

.premium-buy-button,
.premium-secondary-link {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
}

.premium-buy-button {
  background: linear-gradient(135deg, #ee9ac5, #9a84e8);
  box-shadow: 0 18px 38px rgba(154, 132, 232, .26);
}

.premium-secondary-link {
  background: rgba(174, 155, 243, .54);
  border: 1px solid rgba(255, 255, 255, .44);
}

.premium-product-meta {
  display: grid;
  gap: 9px;
}

.premium-product-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 20, 32, .08);
}

.premium-product-meta span {
  color: rgba(28, 20, 32, .52);
}

.premium-product-meta strong {
  color: rgba(28, 20, 32, .84);
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 16, 24, .86);
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox img {
  max-width: min(1120px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

#productLightboxClose {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: rgba(28, 20, 32, .9);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .premium-product-info {
    position: static;
  }
}

@media (max-width: 760px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-page,
  .product-detail-page {
    padding-left: 14px;
    padding-right: 14px;
  }

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

@media (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}


/* Equal catalog action buttons */
.product-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.product-card__button,
.product-card__actions .product-card__button,
.product-card__actions button,
.product-card__actions a {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

@media (max-width: 460px) {
  .product-card__actions {
    grid-template-columns: 1fr !important;
  }

  .catalog-category-select-wrap {
    max-width: 100%;
    margin-top: 24px;
  }
}


/* Catalog dropdown categories */
.catalog-category-select-wrap {
  max-width: 340px;
  margin: 30px auto 34px;
}

.catalog-category-select {
  position: relative;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16)),
    linear-gradient(135deg, rgba(238, 154, 197, .84), rgba(154, 132, 232, .82));
  box-shadow:
    0 18px 40px rgba(174, 155, 243, .22),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  backdrop-filter: blur(16px);
}

.catalog-category-select::before {
  content: "Раздел каталога";
  position: absolute;
  top: -19px;
  left: 18px;
  color: rgba(140, 77, 121, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.catalog-category-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, .92);
  border-bottom: 2px solid rgba(255, 255, 255, .92);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.catalog-category-select select {
  width: 100%;
  min-height: 52px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  padding: 0 50px 0 22px;
  background: transparent;
  color: rgba(255, 255, 255, .96);
  cursor: pointer;
  font-weight: 900;
  outline: none;
  font-size: 15px;
  letter-spacing: .01em;
}

.catalog-category-select select option {
  color: rgba(28, 20, 32, .88);
  background: #fff7fb;
  font-weight: 700;
}


/* Основные кнопки сайта в стиле розовой таблетки */
.nav a,
.home-popular__all,
.product-card__button,
.buy-button,
.product-detail__buy,
.premium-buy-button,
.premium-secondary-link,
.product-back-link,
.catalog-category-select select,
.admin-form button,
.admin-inline-form button,
.popular-admin-toolbar button,
.carousel-order-toolbar button,
.carousel-delete-button,
.carousel-admin-card button,
.admin-category-pill button,
button[type="submit"]:not(.home-carousel__button),
button[data-action]:not(.home-carousel__button),
a.product-card__button {
  min-height: 48px;
  border-radius: 999px !important;
  border: 3px solid var(--livetta-button-border) !important;
  background: var(--livetta-button-bg) !important;
  color: var(--livetta-button-text) !important;
  box-shadow:
    0 4px 0 var(--livetta-button-border),
    0 14px 28px rgba(184, 138, 223, .26) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  letter-spacing: .01em;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease !important;
}

.nav a:hover,
.home-popular__all:hover,
.product-card__button:hover,
.buy-button:hover,
.product-detail__buy:hover,
.premium-buy-button:hover,
.premium-secondary-link:hover,
.product-back-link:hover,
.catalog-category-select select:hover,
.admin-form button:hover,
.admin-inline-form button:hover,
.popular-admin-toolbar button:hover,
.carousel-order-toolbar button:hover,
.carousel-delete-button:hover,
.carousel-admin-card button:hover,
.admin-category-pill button:hover,
button[type="submit"]:not(.home-carousel__button):hover,
button[data-action]:not(.home-carousel__button):hover,
a.product-card__button:hover {
  transform: translateY(-2px);
  background: #f0a0cb !important;
  box-shadow:
    0 5px 0 var(--livetta-button-border),
    0 18px 34px rgba(184, 138, 223, .34) !important;
}

/* Одинаковый размер кнопок Подробнее / Купить */
.product-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.product-card__actions .product-card__button,
.product-card__actions button,
.product-card__actions a {
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Выпадающий список категорий оставляем аккуратной кнопкой */
.catalog-category-select {
  border-radius: 999px;
}

.catalog-category-select select {
  height: 54px;
  padding-left: 22px !important;
}

/* Стрелки карусели НЕ переводим в стиль розовых кнопок */
.home-carousel__button {
  border: 0 !important;
  background: rgba(255, 255, 255, .72) !important;
  color: rgba(28, 20, 32, .82) !important;
  box-shadow: 0 10px 26px rgba(28, 20, 32, .14) !important;
}

.home-carousel__button:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 34px rgba(238, 154, 197, .24) !important;
}

.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}

@media (max-width: 460px) {
  .product-card__actions {
    grid-template-columns: 1fr !important;
  }
}


/* Soft Livetta pill buttons — аккуратные розовые кнопки */
:root {
  --livetta-soft-pink: #ee9ac5;
  --livetta-soft-pink-hover: #f1a5cd;
  --livetta-soft-border: #b98adf;
  --livetta-soft-white: rgba(255, 255, 255, .96);
}

/* Только реальные кнопки интерфейса, без фото-галерей */
.nav a,
.home-popular__all,
.product-card__button,
.buy-button,
.product-detail__buy,
.premium-buy-button,
.premium-secondary-link,
.product-back-link,
.admin-form > button,
.admin-inline-form > button,
.popular-admin-toolbar > button,
.carousel-order-toolbar > button,
.carousel-delete-button,
.admin-category-pill button,
button[data-action="save-popular-products"],
button[data-action="save-carousel-order"],
button[data-action="delete-carousel-slide"],
button[data-action="delete-category"],
button[data-action="delete-product"],
button[data-action="delete-stone"],
button[data-action="buy-product"],
a.product-card__button {
  min-height: 40px !important;
  height: 40px;
  padding: 0 22px !important;
  border-radius: 999px !important;
  border: 2px solid var(--livetta-soft-border) !important;
  background: var(--livetta-soft-pink) !important;
  color: var(--livetta-soft-white) !important;
  box-shadow:
    0 3px 0 var(--livetta-soft-border),
    0 10px 18px rgba(184, 138, 223, .18) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  letter-spacing: .01em;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease !important;
}

.nav a:hover,
.home-popular__all:hover,
.product-card__button:hover,
.buy-button:hover,
.product-detail__buy:hover,
.premium-buy-button:hover,
.premium-secondary-link:hover,
.product-back-link:hover,
.admin-form > button:hover,
.admin-inline-form > button:hover,
.popular-admin-toolbar > button:hover,
.carousel-order-toolbar > button:hover,
.carousel-delete-button:hover,
.admin-category-pill button:hover,
button[data-action="save-popular-products"]:hover,
button[data-action="save-carousel-order"]:hover,
button[data-action="delete-carousel-slide"]:hover,
button[data-action="delete-category"]:hover,
button[data-action="delete-product"]:hover,
button[data-action="delete-stone"]:hover,
button[data-action="buy-product"]:hover,
a.product-card__button:hover {
  transform: translateY(-1px);
  background: var(--livetta-soft-pink-hover) !important;
  box-shadow:
    0 4px 0 var(--livetta-soft-border),
    0 13px 22px rgba(184, 138, 223, .22) !important;
}

/* Навигация компактнее */
.nav a {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 18px !important;
  font-size: 12px !important;
}

/* Кнопки Подробнее / Купить одинаковые и аккуратные */
.product-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.product-card__actions .product-card__button,
.product-card__actions button,
.product-card__actions a {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

/* Возвращаем фото карточек к нормальной квадратной форме */
.catalog-product-card .product-card__image,
.home-popular-card__image {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f4efe6 !important;
  box-shadow: none !important;
}

.catalog-product-card .product-card__image img,
.home-popular-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Фото на странице товара тоже не должно превращаться в кнопку-таблетку */
.premium-product-gallery__main,
.product-gallery__main {
  aspect-ratio: 1 / 1 !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #f4efe6 !important;
  box-shadow: 0 22px 58px rgba(174, 155, 243, .16) !important;
  padding: 0 !important;
}

.premium-product-gallery__main img,
.product-gallery__main img {
  border-radius: 0 !important;
}

/* Миниатюры фото — квадратные, не таблетки */
.premium-product-gallery__thumbs button,
.product-gallery__thumbs button {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(174, 155, 243, .28) !important;
  background: #f4efe6 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Сердечко на карточке не делаем розовой таблеткой */
.home-popular-card__favorite {
  min-height: 0 !important;
  height: 28px !important;
  width: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(28, 20, 32, .88) !important;
  box-shadow: none !important;
}

/* Выпадающий список категорий — нежная аккуратная таблетка, но не огромная */
.catalog-category-select select {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 2px solid var(--livetta-soft-border) !important;
  background: var(--livetta-soft-pink) !important;
  color: var(--livetta-soft-white) !important;
  box-shadow:
    0 3px 0 var(--livetta-soft-border),
    0 10px 18px rgba(184, 138, 223, .16) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding-left: 18px !important;
}

.catalog-category-select::after {
  right: 17px !important;
}

/* Стрелки карусели не меняем */
.home-carousel__button {
  border: 0 !important;
  background: rgba(255, 255, 255, .72) !important;
  color: rgba(28, 20, 32, .82) !important;
  box-shadow: 0 10px 26px rgba(28, 20, 32, .14) !important;
}

.home-carousel__button:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 34px rgba(238, 154, 197, .24) !important;
}

.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}

@media (max-width: 460px) {
  .product-card__actions {
    grid-template-columns: 1fr !important;
  }
}


/* Плоские аккуратные кнопки без 3D-эффекта */
.nav a,
.home-popular__all,
.product-card__button,
.buy-button,
.product-detail__buy,
.premium-buy-button,
.premium-secondary-link,
.product-back-link,
.admin-form > button,
.admin-inline-form > button,
.popular-admin-toolbar > button,
.carousel-order-toolbar > button,
.carousel-delete-button,
.admin-category-pill button,
button[data-action="save-popular-products"],
button[data-action="save-carousel-order"],
button[data-action="delete-carousel-slide"],
button[data-action="delete-category"],
button[data-action="delete-product"],
button[data-action="delete-stone"],
button[data-action="buy-product"],
a.product-card__button {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  border: 1px solid var(--livetta-flat-border) !important;
  background: var(--livetta-flat-pink) !important;
  color: var(--livetta-flat-text) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  letter-spacing: .01em;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transform: none !important;
  transition:
    background .16s ease,
    border-color .16s ease,
    opacity .16s ease !important;
}

.nav a:hover,
.home-popular__all:hover,
.product-card__button:hover,
.buy-button:hover,
.product-detail__buy:hover,
.premium-buy-button:hover,
.premium-secondary-link:hover,
.product-back-link:hover,
.admin-form > button:hover,
.admin-inline-form > button:hover,
.popular-admin-toolbar > button:hover,
.carousel-order-toolbar > button:hover,
.carousel-delete-button:hover,
.admin-category-pill button:hover,
button[data-action="save-popular-products"]:hover,
button[data-action="save-carousel-order"]:hover,
button[data-action="delete-carousel-slide"]:hover,
button[data-action="delete-category"]:hover,
button[data-action="delete-product"]:hover,
button[data-action="delete-stone"]:hover,
button[data-action="buy-product"]:hover,
a.product-card__button:hover {
  transform: none !important;
  background: var(--livetta-flat-pink-hover) !important;
  border-color: rgba(184, 138, 223, .86) !important;
  box-shadow: none !important;
}

/* Навигация чуть компактнее */
.nav a {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 17px !important;
  font-size: 12px !important;
}

/* Подробнее / Купить одинаковые и плоские */
.product-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.product-card__actions .product-card__button,
.product-card__actions button,
.product-card__actions a {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

/* Выпадающий список категорий — тоже плоский */
.catalog-category-select {
  box-shadow: none !important;
}

.catalog-category-select select {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid var(--livetta-flat-border) !important;
  background: var(--livetta-flat-pink) !important;
  color: var(--livetta-flat-text) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding-left: 18px !important;
  transform: none !important;
}

/* Фото и галерея остаются квадратными */
.catalog-product-card .product-card__image,
.home-popular-card__image {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f4efe6 !important;
  box-shadow: none !important;
}

.premium-product-gallery__main,
.product-gallery__main {
  aspect-ratio: 1 / 1 !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #f4efe6 !important;
  box-shadow: 0 18px 45px rgba(174, 155, 243, .10) !important;
  padding: 0 !important;
}

/* Фото-миниатюры не являются CTA-кнопками */
.premium-product-gallery__thumbs button,
.product-gallery__thumbs button {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(174, 155, 243, .28) !important;
  background: #f4efe6 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
}

/* Сердечко не превращаем в большую кнопку */
.home-popular-card__favorite {
  min-height: 0 !important;
  height: 28px !important;
  width: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(28, 20, 32, .88) !important;
  box-shadow: none !important;
}

/* Стрелки карусели не меняем */
.home-carousel__button {
  border: 0 !important;
  background: rgba(255, 255, 255, .72) !important;
  color: rgba(28, 20, 32, .82) !important;
  box-shadow: 0 10px 26px rgba(28, 20, 32, .14) !important;
}

.home-carousel__button:hover {
  transform: translateY(-50%) scale(1.08) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 34px rgba(238, 154, 197, .24) !important;
}

.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}

@media (max-width: 460px) {
  .product-card__actions {
    grid-template-columns: 1fr !important;
  }
}


/* Главное фото и миниатюры не должны получать стиль розовой кнопки */
.product-detail .premium-product-gallery__main,
.product-detail .product-gallery__main,
.product-detail .premium-product-gallery__thumbs button,
.product-detail .product-gallery__thumbs button {
  color: inherit !important;
  min-height: 0 !important;
  background-color: #f4efe6 !important;
}

.product-detail .premium-product-gallery__thumbs button,
.product-detail .product-gallery__thumbs button {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(174, 155, 243, .28) !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.product-detail .premium-product-gallery__thumbs button img,
.product-detail .product-gallery__thumbs button img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* На всякий случай убираем круглую форму, если браузер взял старый border-radius */
.product-detail button[data-action="open-lightbox"] {
  border-radius: 8px !important;
}

.product-detail button[data-action="change-main-image"] {
  border-radius: 8px !important;
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}



/* Livetta unified buttons + orders */
:root {
  --livetta-btn-bg: #ee9ac5;
  --livetta-btn-bg-hover: #f2a7cd;
  --livetta-btn-border: rgba(184, 138, 223, .88);
  --livetta-btn-text: rgba(255, 255, 255, .96);
}

.nav a,
.home-popular__all,
.product-card__button,
.buy-button,
.product-detail__buy,
.premium-buy-button,
.premium-secondary-link,
.product-back-link,
.cart-back-link,
.cart-empty a,
.cart-order-form button,
.cart-clear-button,
.cart-remove-button,
.admin-form > button,
.admin-inline-form > button,
.popular-admin-toolbar > button,
.carousel-order-toolbar > button,
.carousel-delete-button,
.admin-category-pill button,
.admin-order-actions button,
button[data-action="save-popular-products"],
button[data-action="save-carousel-order"],
button[data-action="delete-carousel-slide"],
button[data-action="delete-category"],
button[data-action="delete-product"],
button[data-action="delete-stone"],
button[data-action="buy-product"],
a.product-card__button {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 2px solid var(--livetta-btn-border) !important;
  background: var(--livetta-btn-bg) !important;
  color: var(--livetta-btn-text) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  letter-spacing: .01em;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transform: none !important;
  transition: background .16s ease, border-color .16s ease !important;
}

.nav a:hover,
.home-popular__all:hover,
.product-card__button:hover,
.buy-button:hover,
.product-detail__buy:hover,
.premium-buy-button:hover,
.premium-secondary-link:hover,
.product-back-link:hover,
.cart-back-link:hover,
.cart-empty a:hover,
.cart-order-form button:hover,
.cart-clear-button:hover,
.cart-remove-button:hover,
.admin-form > button:hover,
.admin-inline-form > button:hover,
.popular-admin-toolbar > button:hover,
.carousel-order-toolbar > button:hover,
.carousel-delete-button:hover,
.admin-category-pill button:hover,
.admin-order-actions button:hover,
button[data-action="save-popular-products"]:hover,
button[data-action="save-carousel-order"]:hover,
button[data-action="delete-carousel-slide"]:hover,
button[data-action="delete-category"]:hover,
button[data-action="delete-product"]:hover,
button[data-action="delete-stone"]:hover,
button[data-action="buy-product"]:hover,
a.product-card__button:hover {
  background: var(--livetta-btn-bg-hover) !important;
  border-color: rgba(184, 138, 223, 1) !important;
}

.nav a {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 17px !important;
  font-size: 12px !important;
}

.product-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.product-card__actions .product-card__button,
.product-card__actions button,
.product-card__actions a {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

.catalog-category-select select {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  border: 2px solid var(--livetta-btn-border) !important;
  background: var(--livetta-btn-bg) !important;
  color: var(--livetta-btn-text) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding-left: 18px !important;
}

/* Фото и галерея не являются CTA-кнопками */
.catalog-product-card .product-card__image,
.home-popular-card__image,
.premium-product-gallery__main,
.product-gallery__main {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f4efe6 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.catalog-product-card .product-card__image img,
.home-popular-card__image img,
.premium-product-gallery__main img,
.product-gallery__main img,
#productMainImage {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.premium-product-gallery__thumbs button,
.product-gallery__thumbs button {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(174, 155, 243, .28) !important;
  background: #f4efe6 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.home-popular-card__favorite {
  min-height: 0 !important;
  height: 28px !important;
  width: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(28, 20, 32, .88) !important;
  box-shadow: none !important;
}

/* Admin orders */
.admin-orders-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-order-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(174, 155, 243, .24);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 48px rgba(174, 155, 243, .12);
}

.admin-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-order-card__head strong {
  display: block;
  color: rgba(28, 20, 32, .92);
  font-size: 20px;
}

.admin-order-card__head span {
  display: block;
  margin-top: 4px;
  color: rgba(28, 20, 32, .52);
  font-size: 13px;
}

.admin-order-status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, .95);
  background: #ee9ac5;
}

.admin-order-status--work { background: #9a84e8; }
.admin-order-status--done { background: #73b79a; }
.admin-order-status--cancelled { background: #b5a8b0; }

.admin-order-client {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .54);
}

.admin-order-client p {
  margin: 0;
  color: rgba(28, 20, 32, .72);
}

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

.admin-order-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 20, 32, .08);
}

.admin-order-item strong,
.admin-order-item span,
.admin-order-item small {
  display: block;
}

.admin-order-item strong {
  color: rgba(28, 20, 32, .88);
}

.admin-order-item span,
.admin-order-item small {
  margin-top: 4px;
  color: rgba(28, 20, 32, .56);
}

.admin-order-item p {
  margin: 0;
  color: rgba(28, 20, 32, .84);
  font-weight: 800;
  white-space: nowrap;
}

.admin-order-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  margin-top: 4px;
}

.admin-order-total span {
  color: rgba(28, 20, 32, .56);
}

.admin-order-total strong {
  color: rgba(28, 20, 32, .94);
  font-size: 20px;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.admin-order-actions button {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

/* Carousel arrows unchanged */
.home-carousel__button {
  border: 0 !important;
  background: rgba(255, 255, 255, .72) !important;
  color: rgba(28, 20, 32, .82) !important;
  box-shadow: 0 10px 26px rgba(28, 20, 32, .14) !important;
}

.home-carousel__button:hover {
  transform: translateY(-50%) scale(1.08) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 34px rgba(238, 154, 197, .24) !important;
}

.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Анимация кнопки Купить: кнопка -> галочка -> обратно */
.buy-button,
.product-card__button,
.premium-buy-button,
.product-detail__buy,
button[data-action="buy-product"] {
  position: relative;
  overflow: hidden;
}

.buy-button.is-added-to-cart,
.product-card__button.is-added-to-cart,
.premium-buy-button.is-added-to-cart,
.product-detail__buy.is-added-to-cart,
button[data-action="buy-product"].is-added-to-cart {
  background: #9a84e8 !important;
  border-color: rgba(154, 132, 232, .95) !important;
  color: rgba(255, 255, 255, .98) !important;
  font-size: 20px !important;
}

.buy-button.is-added-to-cart::after,
.product-card__button.is-added-to-cart::after,
.premium-buy-button.is-added-to-cart::after,
.product-detail__buy.is-added-to-cart::after,
button[data-action="buy-product"].is-added-to-cart::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .16);
  animation: livettaButtonPulse .42s ease;
  pointer-events: none;
}

@keyframes livettaButtonPulse {
  from {
    opacity: .8;
    transform: scale(.6);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (max-width: 980px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
  }

  .cart-item {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }

  .cart-item__controls {
    grid-column: 1 / -1;
    justify-items: start !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  .cart-item__image {
    width: 86px !important;
    height: 86px !important;
    flex-basis: 86px !important;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .cart-item__image {
    width: 76px !important;
    height: 76px !important;
    flex-basis: 76px !important;
  }

  .cart-item__info h2 {
    font-size: 16px !important;
  }
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}



/* Aesthetic clean cart final */
.cart-page {
  max-width: 1240px !important;
  margin: 34px auto 90px !important;
  padding: 0 22px !important;
}

.cart-head {
  margin: 24px 0 26px !important;
  padding: 28px 30px !important;
  border-radius: 34px !important;
  background: radial-gradient(circle at 12% 12%, rgba(238, 154, 197, .20), transparent 34%),
              radial-gradient(circle at 92% 18%, rgba(184, 138, 223, .18), transparent 36%),
              rgba(255, 255, 255, .66) !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  box-shadow: 0 24px 70px rgba(174, 155, 243, .15) !important;
  backdrop-filter: blur(18px);
}

.cart-head h1 {
  margin: 20px 0 8px !important;
  color: rgba(28, 20, 32, .92) !important;
  font-size: clamp(38px, 4.4vw, 64px) !important;
  line-height: .95 !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
}

.cart-head p {
  max-width: 620px !important;
  margin: 0 !important;
  color: rgba(28, 20, 32, .56) !important;
  line-height: 1.65 !important;
  font-size: 15px !important;
}

.cart-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 22px !important;
  align-items: start !important;
}

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

.cart-item {
  display: grid !important;
  grid-template-columns: 124px minmax(0, 1fr) 160px !important;
  gap: 18px !important;
  padding: 16px !important;
  align-items: center !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .58)) !important;
  border: 1px solid rgba(174, 155, 243, .20) !important;
  box-shadow: 0 18px 54px rgba(174, 155, 243, .12) !important;
  backdrop-filter: blur(16px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 138, 223, .30) !important;
  box-shadow: 0 24px 64px rgba(174, 155, 243, .17) !important;
}

.cart-item__image {
  width: 124px !important;
  height: 124px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 124px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(244, 239, 230, .94), rgba(255, 247, 251, .92)) !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(28, 20, 32, .38) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .56) !important;
}

.cart-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.cart-item__info {
  min-width: 0 !important;
}

.cart-item__info p {
  margin: 0 0 6px !important;
  color: rgba(140, 77, 121, .62) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.cart-item__info h2 {
  margin: 0 0 7px !important;
  color: rgba(28, 20, 32, .90) !important;
  font-size: 21px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
}

.cart-item__info span {
  display: -webkit-box !important;
  color: rgba(28, 20, 32, .52) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  overflow: hidden !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.cart-item__info strong {
  display: inline-flex !important;
  margin-top: 10px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(238, 154, 197, .12) !important;
  color: rgba(28, 20, 32, .82) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.cart-design-info {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 8px !important;
}

.cart-design-info small {
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: rgba(184, 138, 223, .10) !important;
  color: rgba(140, 77, 121, .70) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.cart-item__controls {
  display: grid !important;
  align-content: center !important;
  justify-items: end !important;
  gap: 10px !important;
}

.cart-qty {
  display: inline-grid !important;
  grid-template-columns: 32px 38px 32px !important;
  align-items: center !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  border: 1px solid rgba(184, 138, 223, .30) !important;
  background: rgba(255, 255, 255, .72) !important;
}

.cart-qty button {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(28, 20, 32, .72) !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.cart-qty button:hover {
  background: rgba(238, 154, 197, .14) !important;
}

.cart-qty span {
  text-align: center !important;
  color: rgba(28, 20, 32, .82) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}

.cart-item__controls p {
  margin: 0 !important;
  color: rgba(28, 20, 32, .90) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.cart-remove-button {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  opacity: .86;
}

.cart-summary {
  position: sticky !important;
  top: 22px !important;
  padding: 24px !important;
  border-radius: 32px !important;
  background: radial-gradient(circle at top right, rgba(238, 154, 197, .20), transparent 36%),
              radial-gradient(circle at bottom left, rgba(184, 138, 223, .16), transparent 36%),
              rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  box-shadow: 0 28px 76px rgba(174, 155, 243, .17) !important;
  backdrop-filter: blur(20px);
}

.cart-summary > span {
  color: rgba(140, 77, 121, .66) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

.cart-summary h2 {
  margin: 8px 0 18px !important;
  color: rgba(28, 20, 32, .92) !important;
  font-size: 32px !important;
  line-height: 1 !important;
  letter-spacing: -.03em !important;
}

.cart-summary-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 13px 0 !important;
  border-bottom: 1px solid rgba(28, 20, 32, .07) !important;
}

.cart-summary-row p {
  margin: 0 !important;
  color: rgba(28, 20, 32, .54) !important;
}

.cart-summary-row strong {
  color: rgba(28, 20, 32, .86) !important;
}

.cart-summary-row--total {
  padding-top: 16px !important;
  border-bottom: 0 !important;
}

.cart-summary-row--total strong {
  font-size: 24px !important;
  color: rgba(140, 77, 121, .92) !important;
}

.cart-order-form {
  display: grid !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

.cart-order-form input,
.cart-order-form textarea {
  width: 100% !important;
  border: 1px solid rgba(174, 155, 243, .24) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .66) !important;
  padding: 13px 14px !important;
  color: rgba(28, 20, 32, .82) !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}

.cart-order-form input:focus,
.cart-order-form textarea:focus {
  border-color: rgba(184, 138, 223, .56) !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 0 0 4px rgba(184, 138, 223, .10) !important;
}

.cart-order-form textarea {
  min-height: 92px !important;
  resize: vertical !important;
}

.cart-order-message {
  min-height: 18px !important;
  margin: 0 !important;
  color: rgba(140, 77, 121, .76) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.cart-clear-button {
  width: 100% !important;
  margin-top: 10px !important;
  opacity: .88;
}

.cart-empty {
  padding: 58px 28px !important;
  border-radius: 34px !important;
  text-align: center !important;
  background: radial-gradient(circle at top, rgba(238, 154, 197, .14), transparent 38%),
              rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(174, 155, 243, .20) !important;
  box-shadow: 0 22px 62px rgba(174, 155, 243, .12) !important;
}

.cart-empty h2 {
  margin: 0 0 10px !important;
  color: rgba(28, 20, 32, .90) !important;
  font-size: 34px !important;
  letter-spacing: -.03em !important;
}

.cart-empty p {
  margin: 0 auto 22px !important;
  max-width: 480px !important;
  color: rgba(28, 20, 32, .58) !important;
  line-height: 1.7 !important;
}

@media (max-width: 980px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
  }

  .cart-summary {
    position: static !important;
  }

  .cart-item {
    grid-template-columns: 110px minmax(0, 1fr) !important;
  }

  .cart-item__image {
    width: 110px !important;
    height: 110px !important;
    flex-basis: 110px !important;
  }

  .cart-item__controls {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    justify-items: stretch !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 560px) {
  .cart-page {
    padding: 0 14px !important;
  }

  .cart-head {
    padding: 24px 20px !important;
    border-radius: 28px !important;
  }

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

  .cart-item__image {
    width: 88px !important;
    height: 88px !important;
    flex-basis: 88px !important;
    border-radius: 18px !important;
  }

  .cart-item__info h2 {
    font-size: 17px !important;
  }

  .cart-item__controls {
    gap: 8px !important;
  }
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Product buy button color fix */
.product-detail__buy,
.premium-buy-button,
.buy-button,
.product-buy-button,
.product-page-buy,
.product-actions .buy-button,
.product-actions button[type="button"],
.product-actions button[type="submit"],
.product-detail button[data-action="buy-product"],
.product-detail [data-action="buy-product"],
.product-info button[data-action="buy-product"],
#productBuyButton,
#buyButton {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(184, 138, 223, .88) !important;
  background: #ee9ac5 !important;
  background-color: #ee9ac5 !important;
  color: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transform: none !important;
}

.product-detail__buy:hover,
.premium-buy-button:hover,
.buy-button:hover,
.product-buy-button:hover,
.product-page-buy:hover,
.product-actions .buy-button:hover,
.product-actions button[type="button"]:hover,
.product-actions button[type="submit"]:hover,
.product-detail button[data-action="buy-product"]:hover,
.product-detail [data-action="buy-product"]:hover,
.product-info button[data-action="buy-product"]:hover,
#productBuyButton:hover,
#buyButton:hover {
  background: #f2a7cd !important;
  background-color: #f2a7cd !important;
  border-color: rgba(184, 138, 223, 1) !important;
  color: rgba(255, 255, 255, .98) !important;
}

/* Не применяем стиль кнопки к фото/галерее */
.premium-product-gallery__main,
.product-gallery__main,
.premium-product-gallery__thumbs button,
.product-gallery__thumbs button,
button.premium-product-gallery__main,
button.product-gallery__main {
  background: #f4efe6 !important;
  color: inherit !important;
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Constructor real capacity message */
.constructor-message,
#constructorMessage,
#capacityMessage,
#summaryMessage {
  margin-top: 10px;
  color: rgba(140, 77, 121, .78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.constructor-message.is-visible,
#constructorMessage.is-visible,
#capacityMessage.is-visible,
#summaryMessage.is-visible {
  display: block;
}


/* Constructor visual capacity fill fix */
.necklace-bead {
  transform: translate(-50%, -50%) rotate(var(--bead-rotate, 0deg)) !important;
  transform-origin: center !important;
}

.necklace-bead img,
.necklace-bead span {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Constructor cart preview composition styles */
.cart-composition {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: rgba(28, 20, 32, .62);
  font-size: 13px;
  line-height: 1.35;
}

.cart-composition b {
  color: rgba(140, 77, 121, .72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cart-composition span {
  color: rgba(28, 20, 32, .68);
}

.admin-order-item--with-image {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.admin-order-item__image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7fb;
  border: 1px solid rgba(174, 155, 243, .20);
}

.admin-order-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Livetta FAQ page */
.nav a.is-active {
  background: #f2a7cd !important;
  border-color: rgba(184, 138, 223, 1) !important;
  color: rgba(255, 255, 255, .98) !important;
}

.faq-page {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 90px;
}

.faq-hero {
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  background:
    radial-gradient(circle at 10% 5%, rgba(238, 154, 197, .24), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(174, 155, 243, .22), transparent 42%),
    rgba(255, 255, 255, .68);
  box-shadow: 0 28px 80px rgba(174, 155, 243, .16);
  backdrop-filter: blur(20px);
}

.faq-hero__eyebrow,
.faq-section__header > span,
.faq-contact > span {
  display: inline-flex;
  color: rgba(140, 77, 121, .72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.faq-hero h1 {
  max-width: 800px;
  margin: 12px 0 16px;
  color: rgba(28, 20, 32, .94);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

.faq-hero > p {
  max-width: 760px;
  margin: 0;
  color: rgba(28, 20, 32, .60);
  font-size: 16px;
  line-height: 1.75;
}

.faq-search {
  display: grid;
  gap: 8px;
  max-width: 700px;
  margin-top: 28px;
}

.faq-search > span {
  color: rgba(28, 20, 32, .68);
  font-size: 13px;
  font-weight: 800;
}

.faq-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 2px solid rgba(184, 138, 223, .42);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, .80);
  color: rgba(28, 20, 32, .84);
  font: inherit;
  box-sizing: border-box;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.faq-search input:focus {
  border-color: rgba(184, 138, 223, .92);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(184, 138, 223, .12);
}

.faq-search input::placeholder {
  color: rgba(28, 20, 32, .38);
}

.faq-category-links,
.faq-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.faq-category-links a,
.faq-contact__actions a {
  min-height: 38px;
  padding: 0 18px;
  border: 2px solid rgba(184, 138, 223, .88);
  border-radius: 999px;
  background: #ee9ac5;
  color: rgba(255, 255, 255, .98);
  box-shadow: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.faq-category-links a:hover,
.faq-contact__actions a:hover {
  background: #f2a7cd;
  border-color: rgba(184, 138, 223, 1);
  transform: translateY(-1px);
}

.faq-search-status {
  min-height: 22px;
  margin: 16px 4px 0;
  color: rgba(140, 77, 121, .78);
  font-size: 14px;
  font-weight: 800;
}

.faq-section {
  scroll-margin-top: 24px;
  margin-top: 48px;
}

.faq-section__header {
  max-width: 800px;
  margin: 0 0 22px;
}

.faq-section__header h2 {
  margin: 8px 0 10px;
  color: rgba(28, 20, 32, .92);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.faq-section__header p {
  margin: 0;
  color: rgba(28, 20, 32, .55);
  font-size: 15px;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: transparent;
}

.faq-item[hidden] {
  display: none;
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 14px 58px 14px 20px;
  border: 2px solid rgba(184, 138, 223, .88);
  border-radius: 26px;
  background: #ee9ac5;
  color: rgba(255, 255, 255, .98);
  box-shadow: none;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  display: flex;
  align-items: center;
  transition:
    background .18s ease,
    border-color .18s ease,
    border-radius .18s ease,
    transform .18s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: #f2a7cd;
  border-color: rgba(184, 138, 223, 1);
  transform: translateY(-1px);
}

.faq-item summary:focus-visible {
  outline: 4px solid rgba(184, 138, 223, .20);
  outline-offset: 3px;
}

.faq-item summary i {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform .22s ease, background .22s ease;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .18s ease, transform .18s ease;
}

.faq-item[open] summary {
  border-radius: 26px 26px 10px 10px;
  background: #f2a7cd;
}

.faq-item[open] summary i {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-50%) rotate(180deg);
}

.faq-item[open] summary i::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  margin-top: -2px;
  padding: 20px 22px 22px;
  border: 2px solid rgba(184, 138, 223, .24);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .66));
  color: rgba(28, 20, 32, .67);
  box-shadow: 0 20px 54px rgba(174, 155, 243, .10);
  backdrop-filter: blur(16px);
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.faq-answer p + p,
.faq-answer ul + p {
  margin-top: 12px;
}

.faq-answer ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.faq-answer li {
  margin: 6px 0;
  line-height: 1.6;
}

.faq-answer li::marker {
  color: #ee9ac5;
}

.faq-contact {
  margin-top: 54px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  background:
    radial-gradient(circle at 90% 10%, rgba(238, 154, 197, .22), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(174, 155, 243, .18), transparent 42%),
    rgba(255, 255, 255, .70);
  box-shadow: 0 28px 76px rgba(174, 155, 243, .14);
  backdrop-filter: blur(18px);
}

.faq-contact h2 {
  margin: 10px 0;
  color: rgba(28, 20, 32, .92);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.faq-contact p {
  max-width: 720px;
  margin: 0;
  color: rgba(28, 20, 32, .58);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .faq-page {
    width: min(100% - 24px, 1120px);
    margin-top: 24px;
  }

  .faq-hero,
  .faq-contact {
    border-radius: 30px;
  }

  .faq-item summary {
    min-height: 54px;
    padding: 13px 52px 13px 16px;
    border-radius: 22px;
    font-size: 14px;
  }

  .faq-item[open] summary {
    border-radius: 22px 22px 8px 8px;
  }

  .faq-answer {
    padding: 17px 17px 19px;
    border-radius: 0 0 22px 22px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .faq-category-links,
  .faq-contact__actions {
    display: grid;
  }

  .faq-category-links a,
  .faq-contact__actions a {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Livetta delivery and about pages */
.page-eyebrow {
  display: inline-flex;
  color: rgba(140, 77, 121, .74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.delivery-page,
.about-page {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 90px;
}

.delivery-hero,
.about-hero {
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 40px;
  background:
    radial-gradient(circle at 10% 8%, rgba(238, 154, 197, .24), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(174, 155, 243, .22), transparent 42%),
    rgba(255, 255, 255, .70);
  box-shadow: 0 30px 84px rgba(174, 155, 243, .16);
  backdrop-filter: blur(20px);
}

.delivery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 22px;
}

.delivery-hero h1,
.about-hero h1 {
  max-width: 830px;
  margin: 12px 0 16px;
  color: rgba(28, 20, 32, .94);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}

.delivery-hero__content > p,
.about-hero > p {
  max-width: 760px;
  margin: 0;
  color: rgba(28, 20, 32, .60);
  font-size: 16px;
  line-height: 1.75;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-actions a {
  min-height: 40px;
  padding: 0 19px;
  border: 2px solid rgba(184, 138, 223, .88);
  border-radius: 999px;
  background: #ee9ac5;
  color: rgba(255, 255, 255, .98);
  box-shadow: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.page-actions a:hover {
  background: #f2a7cd;
  border-color: rgba(184, 138, 223, 1);
  transform: translateY(-1px);
}

.delivery-price-card {
  min-height: 280px;
  padding: 28px;
  border: 2px solid rgba(184, 138, 223, .36);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 247, 251, .70));
  box-shadow: 0 24px 64px rgba(174, 155, 243, .14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.delivery-price-card > span {
  color: rgba(140, 77, 121, .70);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.delivery-price-card strong {
  margin-top: 8px;
  color: rgba(28, 20, 32, .92);
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}

.delivery-price-card p {
  margin: 10px 0 0;
  color: rgba(28, 20, 32, .72);
  font-size: 18px;
  font-weight: 800;
}

.delivery-price-card small {
  margin-top: 16px;
  color: rgba(28, 20, 32, .50);
  font-size: 13px;
  line-height: 1.55;
}

.site-section {
  margin-top: 54px;
}

.site-section__header {
  max-width: 800px;
  margin-bottom: 22px;
}

.site-section__header h2,
.split-feature h2,
.important-note h2,
.page-contact h2,
.about-story h2 {
  margin: 9px 0 10px;
  color: rgba(28, 20, 32, .92);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.site-section__header p,
.split-feature p,
.important-note > p,
.page-contact > p,
.about-story p {
  margin: 0;
  color: rgba(28, 20, 32, .57);
  font-size: 15px;
  line-height: 1.7;
}

.delivery-cards,
.about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  min-height: 245px;
  padding: 22px;
  border: 1px solid rgba(174, 155, 243, .22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .62));
  box-shadow: 0 20px 58px rgba(174, 155, 243, .11);
  display: flex;
  flex-direction: column;
}

.info-card--accent {
  border: 2px solid rgba(184, 138, 223, .54);
  background:
    radial-gradient(circle at top right, rgba(238, 154, 197, .24), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 247, 251, .72));
}

.info-card__number {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(184, 138, 223, .66);
  border-radius: 50%;
  background: #ee9ac5;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-card h3,
.delivery-steps h3 {
  margin: 20px 0 10px;
  color: rgba(28, 20, 32, .88);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.info-card p,
.delivery-steps p {
  margin: 0;
  color: rgba(28, 20, 32, .60);
  font-size: 14px;
  line-height: 1.65;
}

.info-card p strong {
  color: rgba(140, 77, 121, .90);
}

.info-card small {
  margin-top: auto;
  padding-top: 18px;
  color: rgba(28, 20, 32, .45);
  font-size: 12px;
  line-height: 1.5;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  margin-top: 54px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  background:
    radial-gradient(circle at 10% 90%, rgba(174, 155, 243, .18), transparent 40%),
    radial-gradient(circle at 92% 12%, rgba(238, 154, 197, .20), transparent 38%),
    rgba(255, 255, 255, .70);
  box-shadow: 0 28px 76px rgba(174, 155, 243, .14);
  backdrop-filter: blur(18px);
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-list > div {
  min-height: 60px;
  padding: 12px 15px;
  border: 1px solid rgba(174, 155, 243, .20);
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.feature-list b {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(184, 138, 223, .72);
  border-radius: 50%;
  background: #ee9ac5;
  color: #ffffff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-list span {
  color: rgba(28, 20, 32, .68);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

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

.delivery-steps article {
  padding: 22px;
  border: 1px solid rgba(174, 155, 243, .20);
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 52px rgba(174, 155, 243, .10);
}

.delivery-steps article > span {
  color: rgba(140, 77, 121, .70);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.important-note,
.about-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 54px;
  padding: clamp(28px, 5vw, 48px);
  border: 2px solid rgba(184, 138, 223, .38);
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 12%, rgba(238, 154, 197, .22), transparent 42%),
    rgba(255, 255, 255, .74);
}

.about-story__stat {
  min-height: 230px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(238, 154, 197, .24), transparent 42%),
    rgba(255, 255, 255, .72);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-story__stat strong {
  color: rgba(140, 77, 121, .90);
  font-size: clamp(72px, 11vw, 130px);
  font-weight: 500;
  line-height: .8;
}

.about-story__stat span {
  max-width: 240px;
  margin-top: 24px;
  color: rgba(28, 20, 32, .64);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.page-contact {
  margin-top: 54px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  background:
    radial-gradient(circle at 90% 10%, rgba(238, 154, 197, .22), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(174, 155, 243, .18), transparent 42%),
    rgba(255, 255, 255, .70);
  box-shadow: 0 28px 76px rgba(174, 155, 243, .14);
}

@media (max-width: 1020px) {
  .delivery-hero,
  .split-feature,
  .important-note,
  .about-story {
    grid-template-columns: 1fr;
  }

  .delivery-cards,
  .about-values,
  .delivery-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-price-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .delivery-page,
  .about-page {
    width: min(100% - 24px, 1160px);
    margin-top: 24px;
  }

  .delivery-hero,
  .about-hero,
  .split-feature,
  .important-note,
  .about-story,
  .page-contact {
    border-radius: 30px;
  }

  .delivery-cards,
  .about-values,
  .delivery-steps {
    grid-template-columns: 1fr;
  }

  .page-actions {
    display: grid;
  }

  .page-actions a {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Compact headings on all pages */

/* Главная страница */
.home-popular__header h2 {
  font-size: clamp(28px, 3.3vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
}

/* Конструктор */
.constructor-preview h1 {
  font-size: clamp(30px, 3.7vw, 38px) !important;
  line-height: 1.10 !important;
  letter-spacing: -.025em !important;
}

.constructor-stones h2,
.stones-panel h2,
.constructor h2 {
  font-size: clamp(21px, 2.5vw, 27px) !important;
  line-height: 1.18 !important;
}

/* Карточка товара */
.premium-product-info h1 {
  font-size: clamp(30px, 3.6vw, 46px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

.premium-product-description h2,
.premium-product-details h2,
.product-detail h2 {
  font-size: clamp(17px, 2vw, 21px) !important;
  line-height: 1.20 !important;
}

/* Корзина */
.cart-head h1 {
  font-size: clamp(30px, 3.7vw, 46px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

.cart-summary h2 {
  font-size: clamp(25px, 3vw, 29px) !important;
  line-height: 1.08 !important;
}

.cart-empty h2 {
  font-size: clamp(25px, 3vw, 30px) !important;
  line-height: 1.12 !important;
}

/* Вопросы */
.faq-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.042em !important;
}

.faq-section__header h2,
.faq-contact h2 {
  font-size: clamp(26px, 3.5vw, 38px) !important;
  line-height: 1.09 !important;
  letter-spacing: -.032em !important;
}

/* Доставка и «О нас» */
.delivery-hero h1,
.about-hero h1 {
  font-size: clamp(34px, 4.7vw, 56px) !important;
  line-height: 1.01 !important;
  letter-spacing: -.043em !important;
}

.site-section__header h2,
.split-feature h2,
.important-note h2,
.page-contact h2,
.about-story h2 {
  font-size: clamp(27px, 3.6vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.034em !important;
}

/* Карточки и внутренние блоки */
.info-card h3,
.delivery-steps h3 {
  font-size: clamp(18px, 2vw, 20px) !important;
  line-height: 1.18 !important;
}

.delivery-price-card strong {
  font-size: clamp(46px, 6vw, 68px) !important;
}

/* Админка — тоже аккуратнее, но без сильного уменьшения */
.login-card h1,
.admin-panel h1,
.admin-section h1 {
  font-size: clamp(25px, 3vw, 32px) !important;
  line-height: 1.12 !important;
}

.admin-panel h2,
.admin-section h2 {
  font-size: clamp(21px, 2.4vw, 26px) !important;
  line-height: 1.16 !important;
}

/* Мобильные устройства */
@media (max-width: 560px) {
  .home-popular__header h2 {
    font-size: 28px !important;
  }

  .constructor-preview h1 {
    font-size: 28px !important;
  }

  .premium-product-info h1,
  .cart-head h1 {
    font-size: 30px !important;
  }

  .faq-hero h1,
  .delivery-hero h1,
  .about-hero h1 {
    font-size: 33px !important;
  }

  .faq-section__header h2,
  .faq-contact h2,
  .site-section__header h2,
  .split-feature h2,
  .important-note h2,
  .page-contact h2,
  .about-story h2 {
    font-size: 27px !important;
  }
}

/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}

.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}

/* Livetta launch-ready legal, checkout and admin */
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 64px auto 28px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 24px 70px rgba(174,155,243,.13);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(150px,1fr));
  gap: 28px;
  position: relative;
  z-index: 2;
}
.site-footer > div { display: grid; align-content: start; gap: 8px; }
.site-footer strong { font-size: 28px; color: rgba(28,20,32,.9); }
.site-footer b { color: rgba(140,77,121,.82); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.site-footer p { margin: 0; color: rgba(28,20,32,.55); line-height: 1.55; font-size: 13px; }
.site-footer a { color: rgba(28,20,32,.67); text-decoration: none; font-size: 13px; line-height: 1.45; }
.site-footer a:hover { color: rgba(140,77,121,.95); }
.site-footer > small { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(28,20,32,.08); color: rgba(28,20,32,.42); line-height: 1.55; }

.cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 980px;
  margin: auto;
  padding: 16px 18px;
  border: 2px solid rgba(184,138,223,.58);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 80px rgba(65,45,74,.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.cookie-banner strong { color: rgba(28,20,32,.9); }
.cookie-banner p { margin: 5px 0; color: rgba(28,20,32,.58); font-size: 13px; line-height: 1.45; }
.cookie-banner a { color: rgba(140,77,121,.92); font-size: 12px; }
.cookie-banner > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.cookie-banner button {
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid rgba(184,138,223,.88);
  border-radius: 999px;
  background: #ee9ac5;
  color: #fff;
  box-shadow: none;
  font-weight: 800;
  cursor: pointer;
}
.cookie-banner button:first-child { background: #fff; color: rgba(140,77,121,.85); }

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 34px auto 80px;
}
.legal-hero,
.payment-result {
  padding: clamp(28px,5vw,54px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 38px;
  background: radial-gradient(circle at 10% 10%, rgba(238,154,197,.23), transparent 38%), radial-gradient(circle at 92% 16%, rgba(174,155,243,.2), transparent 42%), rgba(255,255,255,.72);
  box-shadow: 0 28px 76px rgba(174,155,243,.15);
}
.legal-hero > span { color: rgba(140,77,121,.74); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.legal-hero h1,
.payment-result h1 { margin: 10px 0 12px; font-size: clamp(32px,4.5vw,52px); line-height: 1.02; letter-spacing: -.04em; color: rgba(28,20,32,.92); font-weight: 500; }
.legal-hero p,
.payment-result > p { margin: 0; color: rgba(28,20,32,.58); line-height: 1.7; }
.legal-seller-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(174,155,243,.25);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 54px rgba(174,155,243,.1);
}
.legal-seller-card strong { color: rgba(140,77,121,.9); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.legal-seller-card p { margin: 7px 0 0; color: rgba(28,20,32,.62); font-size: 14px; line-height: 1.55; }
.legal-seller-card a { color: rgba(140,77,121,.92); }
.legal-content {
  margin-top: 18px;
  padding: clamp(24px,4vw,42px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 24px 70px rgba(174,155,243,.11);
}
.legal-content h2 { margin: 28px 0 10px; color: rgba(28,20,32,.88); font-size: clamp(21px,2.6vw,28px); line-height: 1.15; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li { color: rgba(28,20,32,.62); font-size: 15px; line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: rgba(140,77,121,.92); }
.payment-result { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.payment-result__card { margin-top: 18px; max-width: 420px; padding: 18px; border: 1px solid rgba(174,155,243,.24); border-radius: 22px; background: rgba(255,255,255,.72); display: grid; gap: 7px; }
.payment-result__card strong { font-size: 27px; color: rgba(140,77,121,.92); }
.payment-result__card small { color: rgba(28,20,32,.48); }

.cart-order-form h3 { margin: 12px 0 0; color: rgba(28,20,32,.75); font-size: 16px; }
.cart-order-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(174,155,243,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: rgba(28,20,32,.78);
  font: inherit;
  box-sizing: border-box;
}
.cart-check { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 9px; align-items: start; color: rgba(28,20,32,.58); font-size: 12px; line-height: 1.45; }
.cart-check input { margin-top: 2px; accent-color: #ee9ac5; }
.cart-check a { color: rgba(140,77,121,.9); }
.cart-check.is-invalid { color: #a73566; }
.cart-shipping-message { margin: 0; min-height: 18px; color: rgba(140,77,121,.76); font-size: 12px; line-height: 1.4; }
.cart-order-message.is-error { color: #a73566 !important; }
.cart-order-form button[type="submit"] {
  width: 100% !important;
  min-height: 40px !important;
  border: 2px solid rgba(184,138,223,.88) !important;
  border-radius: 999px !important;
  background: #ee9ac5 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}
.cart-order-form button[type="submit"]:disabled { opacity: .55; cursor: wait; }
.cart-order-form .is-invalid { border-color: rgba(190,48,99,.7) !important; }

.is-disabled,
button:disabled { cursor: not-allowed !important; opacity: .55; }

.admin-session-bar {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(174,155,243,.24);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.admin-session-bar > span { font-weight: 900; color: rgba(140,77,121,.85); }
.admin-session-bar > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-session-bar a,
.admin-session-bar button { min-height: 36px; padding: 0 14px; border: 2px solid rgba(184,138,223,.75); border-radius: 999px; background: #ee9ac5; color: #fff; text-decoration: none; font-weight: 800; box-shadow: none; }
[hidden] { display: none !important; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid rgba(174,155,243,.24);
  border-radius: 24px;
  background: rgba(255,255,255,.58);
}
.admin-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 2px solid rgba(174,155,243,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: rgba(28,20,32,.68);
  font-weight: 900;
  cursor: pointer;
}
.admin-tabs button.is-active {
  border-color: rgba(238,154,197,.72);
  background: #ee9ac5;
  color: #fff;
}
.admin-page {
  display: grid;
  gap: 18px;
}
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.admin-metric {
  padding: 14px;
  border: 1px solid rgba(174,155,243,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.admin-metric strong {
  display: block;
  color: #8c4d79;
  font-size: 28px;
  line-height: 1.1;
}
.admin-metric span {
  display: block;
  margin-top: 4px;
  color: rgba(28,20,32,.68);
  font-weight: 800;
}
.admin-stock-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 90px auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(174,155,243,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}
.admin-stock-form span {
  color: rgba(140,77,121,.72);
  font-weight: 900;
}
.admin-stock-form input,
.admin-stock-form button {
  min-height: 38px;
}
.admin-stock-form button {
  padding: 0 12px;
}
.admin-danger-button {
  border-color: rgba(190,48,99,.55) !important;
  background: rgba(190,48,99,.10) !important;
  color: #a73566 !important;
}
.admin-order-details-form { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.admin-order-details-form label { display: grid; gap: 5px; color: rgba(28,20,32,.6); font-size: 12px; font-weight: 800; }
.admin-order-details-form textarea { min-height: 80px; }
.admin-order-details-form > button,
.admin-order-details-form label:last-of-type { grid-column: 1 / -1; }
.admin-order-history { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(174,155,243,.2); border-radius: 18px; background: rgba(255,255,255,.6); }
.admin-order-history summary { cursor: pointer; color: rgba(140,77,121,.8); font-weight: 800; }
.admin-order-history p { font-size: 12px; color: rgba(28,20,32,.55); line-height: 1.45; }

@media (max-width: 900px) {
  .site-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer > small { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .site-footer { grid-template-columns: 1fr; padding: 22px; }
  .site-footer > small { grid-column: 1; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner > div:last-child { display: grid; }
  .admin-session-bar { align-items: flex-start; flex-direction: column; }
  .admin-stock-form { grid-template-columns: 1fr; }
  .admin-order-details-form { grid-template-columns: 1fr; }
  .admin-order-details-form > button,
  .admin-order-details-form label:last-of-type { grid-column: 1; }
}


/* Livetta admin visual polish */
.admin {
  width: min(1240px, calc(100% - 28px));
  margin: 30px auto 80px;
  color: rgba(28, 20, 32, .88);
}

.admin-login-card {
  width: min(460px, 100%);
  margin: 28px auto 0;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 0, rgba(238, 154, 197, .22), transparent 42%),
    radial-gradient(circle at 0 100%, rgba(184, 138, 223, .16), transparent 48%),
    rgba(255, 255, 255, .76);
  box-shadow: 0 28px 80px rgba(174, 155, 243, .18);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
}

.admin-login-card h1 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 42px) !important;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.admin-eyebrow {
  display: inline-flex;
  color: rgba(140, 77, 121, .72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-card {
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 62px rgba(174, 155, 243, .12);
  backdrop-filter: blur(18px);
}

.admin-card--accent {
  background:
    radial-gradient(circle at 100% 0, rgba(238, 154, 197, .18), transparent 38%),
    rgba(255, 255, 255, .76);
}

.admin-card h1,
.admin-card h2,
.admin-card h3 {
  color: rgba(28, 20, 32, .90);
  letter-spacing: -.025em;
}

.admin-session-bar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(238, 154, 197, .18), transparent 42%),
    rgba(255, 255, 255, .86);
  box-shadow: 0 18px 52px rgba(174, 155, 243, .14);
  backdrop-filter: blur(22px);
}

.admin-session-bar__title {
  display: grid;
  gap: 3px;
}

.admin-session-bar__title h1 {
  margin: 0;
  color: rgba(28, 20, 32, .90);
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

#adminUserBadge {
  color: rgba(140, 77, 121, .78);
  font-size: 13px;
  font-weight: 800;
}

.admin-session-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-session-actions a,
.admin-session-actions button,
.admin button:not(.home-carousel__button),
.admin input[type="submit"] {
  min-height: 38px;
  padding: 0 16px;
  border: 2px solid rgba(184, 138, 223, .88);
  border-radius: 999px;
  background: #ee9ac5;
  color: rgba(255, 255, 255, .98);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, opacity .16s ease;
}

.admin-session-actions a:hover,
.admin-session-actions button:hover,
.admin button:not(.home-carousel__button):hover,
.admin input[type="submit"]:hover {
  background: #f2a7cd;
  border-color: rgba(184, 138, 223, 1);
  transform: translateY(-1px);
}

.admin button:disabled,
.admin input[type="submit"]:disabled {
  opacity: .58;
  cursor: wait;
  transform: none !important;
}

.admin-logout-button {
  background: rgba(255, 255, 255, .76) !important;
  color: rgba(140, 77, 121, .88) !important;
}

.admin-tabs {
  position: sticky;
  top: 116px;
  z-index: 25;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 42px rgba(174, 155, 243, .11);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

.admin-tabs button {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .70) !important;
  color: rgba(140, 77, 121, .78) !important;
}

.admin-tabs button.is-active {
  background: #ee9ac5 !important;
  color: #fff !important;
}

.admin-page {
  display: grid;
  gap: 18px;
}

.admin-page[hidden] {
  display: none !important;
}

.admin-grid {
  gap: 18px;
}

.admin-form,
.admin-inline-form,
.admin-order-details-form {
  gap: 11px;
}

.admin-form input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
.admin-form select,
.admin-form textarea,
.admin-inline-form input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
.admin-inline-form select,
.admin-inline-form textarea,
.admin-order-details-form input:not([type="checkbox"]),
.admin-order-details-form select,
.admin-order-details-form textarea,
.admin-stock-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid rgba(184, 138, 223, .26);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, .82);
  color: rgba(28, 20, 32, .82);
  font: inherit;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-form textarea,
.admin-inline-form textarea,
.admin-order-details-form textarea {
  min-height: 94px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-inline-form textarea:focus,
.admin-order-details-form input:focus,
.admin-order-details-form select:focus,
.admin-order-details-form textarea:focus,
.admin-stock-form input:focus {
  border-color: rgba(184, 138, 223, .90);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 138, 223, .10);
}

.file-field {
  padding: 13px 15px;
  border: 2px dashed rgba(184, 138, 223, .36);
  border-radius: 17px;
  background: rgba(255, 255, 255, .60);
  color: rgba(140, 77, 121, .72);
  font-size: 13px;
  font-weight: 800;
}

.file-field input[type="file"] {
  width: 100%;
  margin-top: 8px;
  color: rgba(28, 20, 32, .62);
}

.admin-check,
.popular-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: rgba(28, 20, 32, .66);
  font-size: 13px;
  font-weight: 700;
}

.admin-check input,
.popular-check input {
  accent-color: #ee9ac5;
}

.admin-list,
.admin-orders-list {
  display: grid;
  gap: 14px;
}

.admin-product-card,
.stone-admin-card,
.admin-order-card,
.carousel-admin-card,
.popular-admin-card,
.user-edit-form {
  border: 1px solid rgba(184, 138, 223, .20);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(238, 154, 197, .11), transparent 34%),
    rgba(255, 255, 255, .76);
  box-shadow: 0 16px 46px rgba(174, 155, 243, .09);
}

.admin-product-card,
.stone-admin-card,
.admin-order-card {
  padding: 18px;
}

.admin-product-card > img,
.stone-preview,
.admin-product-gallery__item,
.popular-admin-card__image {
  border-radius: 16px !important;
  overflow: hidden;
  background: rgba(246, 239, 249, .76);
}

.admin-product-card > img,
.stone-preview img,
.stone-preview span,
.admin-product-gallery__item img,
.popular-admin-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px !important;
}

.admin-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.admin-product-gallery__item {
  position: relative;
}

.admin-product-gallery__item button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

.admin-danger-button,
[data-action="delete-order"],
.carousel-delete-button,
[data-action="delete-category"],
[data-action="delete-product-image"] {
  border-color: rgba(190, 48, 99, .45) !important;
  background: rgba(190, 48, 99, .08) !important;
  color: rgba(163, 53, 102, .96) !important;
}

.admin-danger-button:hover,
[data-action="delete-order"]:hover,
.carousel-delete-button:hover,
[data-action="delete-category"]:hover,
[data-action="delete-product-image"]:hover {
  background: rgba(190, 48, 99, .14) !important;
}

.admin-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(184, 138, 223, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: rgba(28, 20, 32, .68);
  font-weight: 800;
}

.admin-category-pill button {
  min-height: 30px !important;
  padding: 0 11px !important;
  font-size: 11px !important;
}

.admin-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.admin-metric {
  padding: 16px;
  border: 1px solid rgba(184, 138, 223, .22);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
}

.admin-metric strong {
  color: rgba(140, 77, 121, .90);
  font-size: 30px;
}

.admin-stock-form {
  border-radius: 18px;
}

.admin-stock-form button {
  min-height: 38px !important;
  padding: 0 12px !important;
}

.admin-order-card__head {
  gap: 12px;
}

.admin-order-status {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  white-space: nowrap;
}

.admin-order-status--new { background: rgba(238,154,197,.13); color: #a75280; }
.admin-order-status--awaiting_payment { background: rgba(234,179,82,.14); color: #9c6a15; }
.admin-order-status--awaiting_shipping_quote { background: rgba(94,143,214,.13); color: #426eaa; }
.admin-order-status--paid { background: rgba(102,183,151,.15); color: #37896b; }
.admin-order-status--work { background: rgba(154,132,232,.15); color: #715abb; }
.admin-order-status--ready { background: rgba(117,177,215,.14); color: #4e7fa1; }
.admin-order-status--shipped { background: rgba(91,143,200,.14); color: #416f9f; }
.admin-order-status--delivered { background: rgba(90,170,121,.15); color: #43895d; }
.admin-order-status--cancelled { background: rgba(150,136,145,.14); color: #74676f; }
.admin-order-status--refund { background: rgba(190,48,99,.10); color: #a73566; }
.admin-order-status--expired { background: rgba(110,102,107,.11); color: #6f666b; }

.admin-order-client {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.admin-order-item__image,
.admin-order-item__image img {
  border-radius: 13px !important;
}

.admin-order-history {
  border-radius: 18px;
}

.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 17px;
  border: 2px solid rgba(184, 138, 223, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  color: rgba(28, 20, 32, .78);
  box-shadow: 0 18px 56px rgba(174, 155, 243, .22);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast[data-type="error"] {
  border-color: rgba(190, 48, 99, .45);
  color: #a73566;
}

@media (max-width: 760px) {
  .admin {
    width: min(100% - 18px, 1240px);
    margin-top: 18px;
  }

  .admin-session-bar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .admin-session-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-tabs {
    top: 8px;
  }

  .admin-stock-form,
  .admin-order-details-form {
    grid-template-columns: 1fr;
  }

  .admin-order-details-form > button,
  .admin-order-details-form label:last-of-type {
    grid-column: 1;
  }

  .admin-session-actions a,
  .admin-session-actions button {
    flex: 1 1 auto;
  }

  .admin-toast {
    right: 12px;
    bottom: 12px;
  }
}


/* Стрелки карусели не меняем */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}
.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* Constructor clasp and updated admin UI */
.constructor-clasp-field small { display:block; margin-top:6px; color:rgba(65,45,67,.55); font-size:12px; }
.required-mark { color:#c85d91; }
#claspType.is-invalid { border-color:#c85d91 !important; box-shadow:0 0 0 4px rgba(200,93,145,.12) !important; }
.constructor-info { grid-template-columns:repeat(5,minmax(0,1fr)); }

.admin button:not(.necklace-bead),
.admin a[id$="Link"],
.admin .file-field {
  border:2px solid rgba(184,138,223,.88) !important;
  border-radius:999px !important;
  background:#ee9ac5 !important;
  color:#fff !important;
  box-shadow:none !important;
  font-weight:750 !important;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease !important;
}
.admin button:not(.necklace-bead):hover,
.admin a[id$="Link"]:hover { background:#f2a7cd !important; border-color:rgba(184,138,223,1) !important; transform:translateY(-1px); }
.admin button:disabled { opacity:.58; transform:none !important; cursor:not-allowed; }
.admin .admin-danger-button { background:rgba(255,255,255,.84) !important; color:#a34d78 !important; border-color:rgba(200,93,145,.55) !important; }
.admin .admin-danger-button:hover { background:#fff0f6 !important; }
.admin-tabs button { padding:10px 18px !important; }
.admin-tabs button.is-active { background:#f2a7cd !important; }

.admin-excel-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:20px 0 26px; padding:16px; border:1px solid rgba(184,138,223,.25); border-radius:22px; background:rgba(255,255,255,.58); }
.admin-excel-toolbar small { flex-basis:100%; color:rgba(65,45,67,.58); }
.admin-excel-file { display:inline-flex !important; align-items:center; min-height:38px; padding:0 18px !important; cursor:pointer; }
.admin-excel-file input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }

.admin-catalog-card,.admin-stone-stock-card,.admin-user-card { padding:22px; border:1px solid rgba(184,138,223,.22); border-radius:28px; background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,255,255,.67)); box-shadow:0 18px 48px rgba(174,155,243,.12); }
.admin-catalog-card__header,.admin-stone-stock-card__header { display:grid; grid-template-columns:116px minmax(0,1fr); gap:18px; align-items:center; }
.admin-catalog-card__heading h3,.admin-stone-stock-card__header h3 { margin:8px 0; font-size:24px; color:rgba(38,27,41,.9); }
.admin-chip { display:inline-flex; padding:5px 10px; border-radius:999px; background:rgba(238,154,197,.18); color:#985778; font-size:12px; font-weight:800; }
.admin-price-badge { display:inline-flex; color:#a15c81; font-size:19px; }
.admin-product-description { margin:18px 0; padding:16px 18px; border-radius:20px; background:rgba(255,247,251,.78); border:1px solid rgba(238,154,197,.22); }
.admin-product-description>span { display:block; margin-bottom:7px; color:#a15c81; font-size:11px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.admin-product-description p { margin:0; line-height:1.65; color:rgba(50,36,53,.67); }
.admin-stock-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.admin-stock-chips span { padding:7px 11px; border-radius:999px; background:rgba(184,138,223,.12); color:rgba(50,36,53,.72); font-size:13px; }
.admin-stock-chips b { color:#8f5dad; }
.admin-edit-details { margin:16px 0; border:1px solid rgba(184,138,223,.23); border-radius:20px; background:rgba(255,255,255,.54); overflow:hidden; }
.admin-edit-details summary { padding:13px 16px; cursor:pointer; color:#8f5dad; font-weight:800; }
.admin-edit-details .admin-inline-form { padding:0 16px 16px; }
.admin-user-card { display:grid; gap:12px; }

@media (max-width:800px){.constructor-info{grid-template-columns:repeat(2,minmax(0,1fr));}.admin-catalog-card__header,.admin-stone-stock-card__header{grid-template-columns:84px minmax(0,1fr);}.admin-excel-toolbar>*{width:100%;box-sizing:border-box;justify-content:center;}}

/* Стрелки карусели не меняем */
.home-carousel__button--prev { left:18px; padding-bottom:7px; }
.home-carousel__button--next { right:18px; padding-bottom:7px; }


/* Admin layout stabilization v2 */
.admin {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  padding: 0 !important;
  overflow: visible !important;
}

.admin-card {
  width: 100%;
  padding: clamp(20px, 2.8vw, 30px) !important;
  box-sizing: border-box;
  overflow: visible;
}

.admin-page,
.admin-grid,
.admin-list,
.admin-orders-list {
  min-width: 0;
}

/* Карточки с большим количеством полей всегда идут в одну колонку */
.admin #adminProducts.admin-list,
.admin #adminStones.admin-list,
.admin #adminUsers.admin-list,
.admin #adminOrders.admin-orders-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

.admin-catalog-card,
.admin-stone-stock-card,
.admin-user-card,
.admin-order-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Старое правило .stone-admin-card делило всю карточку на узкие колонки */
.admin .stone-admin-card.admin-stone-stock-card {
  display: block !important;
  grid-template-columns: none !important;
  align-items: initial !important;
}

.admin-catalog-card__header,
.admin-stone-stock-card__header {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  min-width: 0;
}

.admin-catalog-card__heading,
.admin-stone-stock-card__header > div:last-child {
  min-width: 0;
}

.admin-catalog-card__heading h3,
.admin-stone-stock-card__header h3 {
  margin: 7px 0 !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  overflow-wrap: anywhere;
}

.admin-product-image,
.admin .stone-preview {
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: rgba(246, 239, 249, .82);
}

.admin-product-image img,
.admin .stone-preview img,
.admin .stone-preview span {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  clip-path: none !important;
  display: block;
}

.admin-product-description {
  margin: 18px 0 !important;
  padding: 16px 18px !important;
  overflow-wrap: anywhere;
}

.admin-stock-chips {
  margin: 0 0 16px !important;
}

/* Быстрое изменение остатков */
.admin .admin-stock-form {
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) 100px minmax(130px, auto) minmax(130px, auto) !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100%;
  margin: 16px 0 !important;
  padding: 14px !important;
  box-sizing: border-box;
}

.admin .admin-stock-form input {
  min-width: 0 !important;
  width: 100% !important;
}

.admin .admin-stock-form button {
  width: 100%;
  white-space: nowrap;
}

/* Выпадающая область редактирования */
.admin-edit-details {
  width: 100%;
  margin: 18px 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.admin-edit-details summary {
  position: relative;
  min-height: 48px;
  padding: 13px 48px 13px 18px !important;
  display: flex;
  align-items: center;
  list-style: none;
  background: rgba(248, 241, 250, .76);
  color: #8f5dad !important;
  cursor: pointer;
  box-sizing: border-box;
}

.admin-edit-details summary::-webkit-details-marker {
  display: none;
}

.admin-edit-details summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
}

.admin-edit-details[open] summary::after {
  content: "−";
}

.admin .admin-edit-details .admin-inline-form,
.admin .admin-edit-form,
.admin .stone-edit-form,
.admin .product-edit-form {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 18px !important;
  box-sizing: border-box;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
  width: 100%;
  min-width: 0;
}

.admin-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px !important;
  min-width: 0;
  color: rgba(50, 36, 53, .68) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: left;
}

.admin-field > span,
.admin-file-field > span {
  display: block;
  min-width: 0;
}

.admin-field--wide,
.admin-check--wide {
  grid-column: 1 / -1;
}

.admin .admin-field input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
.admin .admin-field select,
.admin .admin-field textarea {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.admin .admin-field textarea {
  min-height: 120px !important;
}

.admin-color-field input[type="color"] {
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  padding: 5px !important;
  border: 2px solid rgba(184, 138, 223, .26) !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-sizing: border-box;
}

/* Поле загрузки — аккуратная прямоугольная зона, а не огромная кнопка-капсула */
.admin .file-field,
.admin .admin-file-field {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px !important;
  width: 100%;
  min-height: auto !important;
  padding: 14px 16px !important;
  border: 2px dashed rgba(184, 138, 223, .42) !important;
  border-radius: 17px !important;
  background: rgba(255, 255, 255, .70) !important;
  color: rgba(140, 77, 121, .78) !important;
  box-shadow: none !important;
  box-sizing: border-box;
  cursor: pointer;
}

.admin .file-field input[type="file"] {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  color: rgba(50, 36, 53, .62) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 12px;
  box-sizing: border-box;
}

.admin .admin-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(184, 138, 223, .20);
  border-radius: 15px;
  background: rgba(255, 255, 255, .60);
  box-sizing: border-box;
}

.admin .admin-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.admin-form-actions button {
  min-width: 190px;
}

.admin .admin-danger-button {
  min-width: 170px;
  margin-top: 4px;
}

/* Общие формы: убираем старые min-width, из-за которых поля вылезали за карточки */
.admin .admin-form,
.admin .admin-inline-form,
.admin .admin-order-details-form {
  min-width: 0;
}

.admin .admin-form input,
.admin .admin-form select,
.admin .admin-form textarea,
.admin .admin-inline-form input,
.admin .admin-inline-form select,
.admin .admin-inline-form textarea {
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Пользователи */
.admin-user-card {
  display: grid !important;
  gap: 14px !important;
}

.admin .user-edit-form {
  display: grid !important;
  grid-template-columns: minmax(150px, .8fr) repeat(2, minmax(180px, 1fr)) auto auto !important;
  gap: 12px !important;
  align-items: end !important;
  width: 100%;
  min-width: 0;
}

.admin-user-card__title {
  display: grid;
  gap: 5px;
  align-self: center;
  min-width: 0;
}

.admin-user-card__title strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

/* Не растягиваем служебные кнопки на всю ширину без необходимости */
.admin-session-actions button,
.admin-session-actions a,
.admin-tabs button,
.admin-category-pill button,
.admin-product-gallery__item button,
.carousel-admin-card button {
  width: auto;
}

@media (max-width: 980px) {
  .admin .admin-stock-form {
    grid-template-columns: minmax(0, 1fr) 90px !important;
  }

  .admin .admin-stock-form button {
    min-width: 0;
  }

  .admin .user-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .admin-user-card__title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin {
    width: min(100% - 18px, 1180px) !important;
  }

  .admin-card {
    padding: 18px !important;
    border-radius: 23px !important;
  }

  .admin-catalog-card,
  .admin-stone-stock-card {
    padding: 17px !important;
  }

  .admin-catalog-card__header,
  .admin-stone-stock-card__header {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  .admin-product-image,
  .admin .stone-preview {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
  }

  .admin-edit-grid,
  .admin .admin-stock-form,
  .admin .user-edit-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-field--wide,
  .admin-check--wide,
  .admin-user-card__title {
    grid-column: 1;
  }

  .admin-form-actions {
    display: grid;
  }

  .admin-form-actions button,
  .admin .admin-danger-button {
    width: 100%;
    min-width: 0;
  }
}

/* Стрелки карусели не меняем — стабилизация v2 */
.home-carousel__button--prev {
  left: 18px;
  padding-bottom: 7px;
}
.home-carousel__button--next {
  right: 18px;
  padding-bottom: 7px;
}


/* SVG stones sit on the exact same coordinate system as the necklace thread. */
.necklace-svg {
  pointer-events: none;
}

.necklace-svg-beads {
  pointer-events: auto;
}

.necklace-beads--fallback {
  display: none !important;
}

.necklace-svg-bead {
  cursor: grab;
  pointer-events: auto;
  transform-box: fill-box;
  transform-origin: center;
}

.necklace-svg-bead__visual {
  transform-box: fill-box;
  transform-origin: center;
  transition: filter .16s ease, transform .16s ease;
}

.necklace-svg-bead__base {
  filter: drop-shadow(0 2px 5px rgba(45, 31, 35, .26));
}

.necklace-svg-bead__stroke {
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 1.6;
}

.necklace-svg-bead__shine {
  fill: rgba(255, 255, 255, .68);
}

.necklace-svg-bead:hover .necklace-svg-bead__visual,
.necklace-svg-bead--dragging .necklace-svg-bead__visual {
  filter: drop-shadow(0 8px 16px rgba(45, 31, 35, .30));
  transform: scale(1.12);
}

.necklace-svg-bead--dragging {
  cursor: grabbing;
  opacity: .94;
}


/* Constructor catalog controls, material selector, and selected stones list. */
.constructor-clasp-material-field select,
.constructor-search-field input {
  width: 100%;
}

.constructor-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0 14px;
}

.constructor-search-field {
  display: grid;
  gap: 6px;
  color: rgba(38, 27, 41, .66);
  font-size: 12px;
  font-weight: 900;
}

.constructor-search-field input {
  min-height: 42px;
  border: 1px solid rgba(184, 138, 223, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: rgba(38, 27, 41, .9);
  font: inherit;
  padding: 0 12px;
}

#clearStoneSearch,
.selected-stone-row button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: rgba(140, 77, 121, .88);
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(184, 138, 223, .26);
}

.constructor-stone-grid {
  display: grid;
  gap: 12px;
}

.selected-stones-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 138, 223, .18);
}

.selected-stones-panel h3 {
  margin: 0;
  color: rgba(38, 27, 41, .9);
  font-size: 18px;
}

#selectedStonesList {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.selected-stone-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 247, 251, .78);
}

.selected-stone-row__thumb {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.86), transparent 24%),
    var(--stone-color, #b48a78);
}

.selected-stone-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-stone-row__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.selected-stone-row__body strong,
.selected-stone-row__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-stone-row__body strong {
  color: rgba(38, 27, 41, .9);
  font-size: 14px;
}

.selected-stone-row__body small {
  color: rgba(38, 27, 41, .58);
  font-size: 12px;
}

.selected-stone-row button {
  min-height: 34px;
  width: 34px;
  padding: 0;
}

@media (max-width: 720px) {
  .constructor-catalog-toolbar {
    grid-template-columns: 1fr;
  }
}


/* Open stone catalog and favorite stones. */
body.is-stone-catalog-open {
  overflow: hidden;
}

.constructor-stones-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.constructor-stones-head h2 {
  margin: 2px 0 0;
}

.favorite-stones-list {
  display: grid;
  gap: 10px;
}

.favorite-stone-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(184, 138, 223, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.favorite-stone-card__thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.86), transparent 24%),
    var(--stone-color, #b48a78);
}

.favorite-stone-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-stone-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.favorite-stone-card__body strong,
.favorite-stone-card__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-stone-card__body strong {
  color: rgba(38, 27, 41, .92);
  font-size: 15px;
}

.favorite-stone-card__body small {
  color: rgba(38, 27, 41, .6);
  font-size: 12px;
}

.favorite-stone-card__actions {
  display: grid;
  gap: 6px;
}

.favorite-stone-card__actions button,
.stone-catalog-card > button,
.stone-catalog-modal__close,
.stones-panel__catalog-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.stones-panel__catalog-button,
.stone-catalog-card > button {
  background: #ee9ac5;
  color: #fff;
  padding: 0 14px;
}

.favorite-stone-card__actions button,
.stone-catalog-modal__close {
  background: rgba(255, 255, 255, .88);
  color: rgba(140, 77, 121, .88);
  box-shadow: inset 0 0 0 1px rgba(184, 138, 223, .26);
}

.favorite-stone-card__actions button:disabled,
.stone-catalog-card > button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.stone-catalog-modal[hidden] {
  display: none !important;
}

.stone-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.stone-catalog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 27, 41, .34);
  backdrop-filter: blur(4px);
}

.stone-catalog-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
}

.stone-catalog-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stone-catalog-modal__head h2 {
  margin: 2px 0 0;
  color: rgba(38, 27, 41, .92);
}

.stone-catalog-modal__close {
  width: 42px;
  padding: 0;
  font-size: 22px;
}

.stone-catalog-list {
  min-height: 220px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding-right: 4px;
}

.stone-catalog-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 223, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(143, 86, 127, .10);
}

.stone-catalog-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.86), transparent 22%),
    var(--stone-color, #b48a78);
}

.stone-catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stone-catalog-card__body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.stone-catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stone-catalog-card__meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(238, 154, 197, .16);
  color: rgba(140, 77, 121, .82);
  font-size: 11px;
  font-weight: 900;
}

.stone-catalog-card h3 {
  margin: 0;
  color: rgba(38, 27, 41, .92);
  font-size: 17px;
  line-height: 1.2;
}

.stone-catalog-card p {
  margin: 0;
  color: rgba(38, 27, 41, .62);
  font-size: 12px;
  line-height: 1.35;
}

.stone-catalog-card > button {
  margin: 0 12px 12px;
}

@media (max-width: 720px) {
  .stone-catalog-modal {
    padding: 12px;
  }

  .stone-catalog-modal__dialog {
    max-height: 90vh;
    padding: 12px;
  }

  .stone-catalog-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .favorite-stone-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .favorite-stone-card__actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 44px;
  }
}


/* Stone card polish: stronger typography, bottom price, separate size field. */
.stone-catalog-card,
.favorite-stone-card,
.selected-stone-row {
  font-weight: 600;
}

.favorite-stone-card {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
}

.favorite-stone-card__body strong,
.stone-catalog-card h3,
.selected-stone-row__body strong {
  font-weight: 950;
}

.favorite-stone-card__body small,
.stone-catalog-card p,
.selected-stone-row__body small {
  font-weight: 650;
}

.favorite-stone-card__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.favorite-stone-card__actions button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-stone-card__actions button[data-remove-favorite] {
  font-size: 20px;
  line-height: 1;
}

.favorite-stone-card__size,
.stone-catalog-card__size {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 247, 251, .92);
  color: rgba(140, 77, 121, .9);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(184, 138, 223, .22);
}

.favorite-stone-card__price,
.stone-catalog-card__price {
  color: rgba(38, 27, 41, .94);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.favorite-stone-card__price {
  grid-column: 1 / -1;
  align-self: end;
  padding-top: 8px;
  border-top: 1px solid rgba(184, 138, 223, .14);
}

.stone-catalog-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.stone-catalog-card__meta {
  display: none !important;
}

.stone-catalog-card__bottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 0 12px 12px;
}

.stone-catalog-card__bottom button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #ee9ac5;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.stone-catalog-card__bottom button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.stone-catalog-card > button {
  display: none !important;
}

@media (max-width: 720px) {
  .favorite-stone-card__actions {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
}


/* Stacked selected stone composition. */
.selected-stone-row--stacked {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  padding-right: 46px;
}

.selected-stone-row__count {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 40px;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(238, 154, 197, .2);
  color: rgba(140, 77, 121, .94);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(184, 138, 223, .22);
}

.selected-stone-row--stacked .selected-stone-row__body {
  padding-right: 8px;
}

.selected-stone-row--stacked .selected-stone-row__body strong,
.selected-stone-row--stacked .selected-stone-row__body small {
  white-space: normal;
}

.selected-stone-row--stacked button[data-remove-selected-stone] {
  align-self: end;
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 720px) {
  .selected-stone-row--stacked {
    grid-template-columns: 38px minmax(0, 1fr) 34px;
  }
}


/* Required field stars near constructor labels. */
.constructor-options .constructor-clasp-field,
.constructor-options .constructor-clasp-material-field {
  gap: 6px;
}

.constructor-label-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  width: fit-content;
  color: rgba(38, 27, 41, .72);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.constructor-label-text .required-mark {
  position: relative;
  top: -0.28em;
  color: #c85d91;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  margin-left: 1px;
}

/* Codex final favorite stone typography and neutral size field. */
.favorite-stone-card,
.favorite-stone-card * {
  font-family: inherit !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.favorite-stone-card img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

.constructor-disclaimer {
  width: min(100%, 760px) !important;
  margin: 14px auto 18px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: rgba(255, 247, 251, .84) !important;
  color: rgba(65, 45, 67, .66) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

.constructor-disclaimer strong {
  color: rgba(140, 77, 121, .92) !important;
  font-weight: 950 !important;
}
.constructor-clasp-field small,
.constructor-clasp-material-field small {
  display: block !important;
  margin-top: 6px !important;
  color: rgba(65, 45, 67, .55) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.favorite-stone-card {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 12px !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.favorite-stone-card:hover {
  transform: translateY(-2px) !important;
}

.favorite-stone-card:focus-visible {
  outline: 2px solid rgba(238, 154, 197, .72) !important;
  outline-offset: 3px !important;
}

.favorite-stone-card.is-disabled {
  cursor: not-allowed !important;
  opacity: .58 !important;
}

.favorite-stone-card__body {
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.favorite-stone-card__body strong {
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

.favorite-stone-card__body small,
.favorite-stone-card__size {
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.favorite-stone-card__body small {
  color: rgba(38, 27, 41, .66) !important;
}

.favorite-stone-card__size,
.stone-catalog-card__size {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: rgba(38, 27, 41, .66) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.favorite-stone-card__actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  margin-top: 0 !important;
}

.favorite-stone-card__actions button {
  min-height: 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.favorite-stone-card__actions button[data-remove-favorite] {
  width: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  font-size: 18px !important;
}
