:root {
  --lv-ink: #2f2731;
  --lv-muted: #766d78;
  --lv-pink: #e889b5;
  --lv-pink-deep: #b65486;
  --lv-lilac: #ad8be1;
  --lv-line: #eadfe8;
  --lv-soft: #fff8fc;
  --lv-shadow: 0 14px 36px rgba(94, 63, 86, 0.12);
}

html {
  background: #fff;
  scroll-behavior: smooth;
}

body {
  background: #fff !important;
  overflow-x: clip;
}

.livetta-home-logo {
  display: inline-block;
  color: inherit;
  line-height: 0;
  text-decoration: none;
}

.lava-background,
.blob {
  display: none !important;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(173, 139, 225, 0.48);
  outline-offset: 3px;
}

.nav a[href="/cart"] {
  position: relative;
}

.livetta-cart-badge {
  position: absolute;
  top: -10px;
  right: -14px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--lv-pink-deep);
  font: 600 11px/1 system-ui, sans-serif;
  box-shadow: 0 5px 14px rgba(182, 84, 134, 0.28);
}

.livetta-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2500;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  color: var(--lv-ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--lv-shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.livetta-toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--lv-pink-deep);
}

.livetta-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-carousel__viewport {
  position: relative;
}

.livetta-hero-copy {
  box-sizing: border-box;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: 100%;
  margin-top: 0;
  padding: 26px clamp(24px, 5vw, 68px);
  color: #3f303b;
  background: #fff;
  text-shadow: none;
}

.home-carousel {
  position: relative;
}

.livetta-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.03;
  letter-spacing: 0;
}

.livetta-hero-copy p {
  max-width: 520px;
  margin: 10px 0 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}

.livetta-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 2px 22px;
}

.livetta-hero-actions a,
.livetta-trust-strip a {
  box-sizing: border-box;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  color: var(--lv-ink);
  background: #fff;
  box-shadow: 0 10px 26px rgba(45, 28, 44, 0.2);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.livetta-hero-actions a:last-child {
  color: #fff;
  background: #d86fa8;
  box-shadow: 0 10px 26px rgba(174, 68, 127, .25);
}

.livetta-hero-actions a:last-child:hover {
  color: #fff;
  background: #c95f99;
  box-shadow: 0 14px 30px rgba(174, 68, 127, .32);
}

.livetta-hero-actions a:hover,
.livetta-trust-strip a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(45, 28, 44, 0.24);
}

.livetta-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1220px, calc(100% - 40px));
  margin: 22px auto 44px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--lv-line);
  box-shadow: 0 9px 28px rgba(94, 63, 86, 0.08);
}

.livetta-trust-strip > div {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
}

.livetta-trust-strip strong,
.livetta-trust-strip span {
  display: block;
}

.livetta-trust-strip strong {
  color: var(--lv-ink);
  font-size: 15px;
}

.livetta-trust-strip span {
  margin-top: 5px;
  color: var(--lv-muted);
  font-size: 13px;
  line-height: 1.35;
}

.livetta-product-trust {
  display: grid;
  gap: 1px;
  margin: 22px 0;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--lv-line);
}

.livetta-product-trust div {
  padding: 13px 15px;
  background: #fff;
}

.livetta-product-trust strong,
.livetta-product-trust small {
  display: block;
}

.livetta-product-trust strong {
  color: var(--lv-ink);
  font-size: 14px;
}

.livetta-product-trust small {
  margin-top: 3px;
  color: var(--lv-muted);
  line-height: 1.4;
}

.livetta-product-section {
  width: min(1420px, calc(100% - 56px));
  margin: 54px auto 0;
}

.livetta-collections {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto;
}

.livetta-collections__track {
  display: grid;
  gap: 24px;
}

.livetta-collection {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #eadde8;
  border-radius: 8px;
  background: #fff;
}

.livetta-collection > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.livetta-collection > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 72px);
}

.livetta-collection h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 48px);
}

.livetta-collection p {
  margin: 0 0 24px;
  color: var(--lv-muted);
  font-size: 16px;
  line-height: 1.65;
}

.livetta-collection a {
  color: var(--lv-pink-deep);
  font-weight: 600;
}

.livetta-product-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.livetta-product-section__head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
}

.livetta-product-section__head a {
  color: var(--lv-pink-deep);
}

.livetta-product-carousel {
  min-width: 0;
}

.livetta-product-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 84px) / 4);
  align-items: start;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.livetta-product-grid::-webkit-scrollbar {
  display: none;
}

.livetta-product-grid.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.livetta-mini-product:nth-child(2n + 1) {
  scroll-snap-align: start;
}

.livetta-product-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 14px;
}

.livetta-product-carousel:not(.has-carousel-pages) .livetta-product-carousel__controls {
  display: none;
}

.livetta-product-carousel__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #9c527b;
  background: #fff3f9;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.livetta-product-carousel__arrow:hover:not(:disabled) {
  color: #fff;
  background: #d86fa8;
  transform: scale(1.06);
}

.livetta-product-carousel__arrow:disabled {
  opacity: .32;
  cursor: default;
}

.livetta-product-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 34px;
}

.livetta-product-carousel__dots button {
  width: 7px;
  min-width: 7px;
  height: 7px;
  min-height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e6ccdc;
  cursor: pointer;
  transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.livetta-product-carousel__dots button.is-active {
  width: 18px;
  background: #c76699;
  border-radius: 999px;
}

.livetta-mini-product {
  box-sizing: border-box;
  min-width: 0;
  padding: 8px 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(182, 84, 134, 0.24);
  border-radius: 8px;
  background: #fff;
  transform: translateY(0);
  transition:
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    border-color 220ms ease,
    box-shadow 260ms ease;
}

.livetta-mini-product a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.livetta-mini-product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 5px;
  box-shadow: none;
}

.livetta-mini-product h3 {
  min-height: 2.8em;
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

.livetta-mini-product strong {
  font-weight: 600;
}

@media (hover: hover) {
  .livetta-mini-product:hover,
  .livetta-mini-product:focus-within {
    border-color: rgba(182, 84, 134, 0.52);
    box-shadow: 0 14px 30px rgba(94, 63, 86, 0.13);
    transform: translateY(-5px);
  }
}

.livetta-product-grid.is-dragging .livetta-mini-product {
  box-shadow: none;
  transform: translateY(0);
}

.checkout-field {
  display: grid;
  gap: 6px;
}

.checkout-field > span {
  color: var(--lv-ink);
  font-size: 13px;
  font-weight: 600;
}

.cart-order-form {
  gap: 14px !important;
}

.cart-order-form :where(input, select, textarea) {
  width: 100%;
  min-height: 46px;
}

.cart-order-form textarea {
  min-height: 92px;
}

.cart-line-price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--lv-muted);
  font-size: 11px;
  font-weight: 500;
}

.cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.cart-empty-actions a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
}

.cart-empty-actions .cart-empty-constructor-link {
  color: #fff;
  background: #d86fa8;
  box-shadow: 0 9px 22px rgba(174, 68, 127, .22);
}

.cart-empty-actions .cart-empty-constructor-link:hover {
  background: #c95f99;
  transform: translateY(-1px);
}

.constructor-progress-note {
  margin: 10px 0 0;
  color: var(--lv-muted);
  font-size: 13px;
  line-height: 1.45;
}

.constructor-save-tools {
  display: contents;
}

.constructor-save-tools button {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(132, 78, 114, .2);
  border-radius: 6px;
  color: #6d4c60;
  background: #fff;
  box-shadow: none;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.constructor-save-tools button:hover {
  color: #fff;
  background: #e47fb4;
  transform: translateY(-1px);
}

:where(
  button,
  input[type="button"],
  input[type="submit"],
  .livetta-hero-actions a,
  .livetta-trust-strip a,
  .page-actions a,
  .cart-empty-actions a
) {
  box-shadow: none !important;
}

:where(
  button,
  input[type="button"],
  input[type="submit"],
  .livetta-hero-actions a,
  .livetta-trust-strip a,
  .page-actions a,
  .cart-empty-actions a
):hover {
  box-shadow: 0 8px 18px rgba(94, 63, 86, .12) !important;
}

body :where(
  button,
  input[type="button"],
  input[type="submit"],
  .livetta-hero-actions a,
  .livetta-trust-strip a,
  .page-actions a,
  .cart-empty-actions a
):not(:hover) {
  box-shadow: none !important;
}

body .constructor-save-tools button:not(:hover) {
  box-shadow: none !important;
}

html body button:not(:hover),
html body.constructor-redesign-preview button:not(:hover) {
  box-shadow: none !important;
}

:where(
  button:not(:disabled),
  input[type="button"]:not(:disabled),
  input[type="submit"]:not(:disabled),
  a.btn,
  a.button,
  a[class*="-button"],
  .page-actions a,
  .cart-empty-actions a
) {
  transition:
    transform 220ms cubic-bezier(.22, 1, .36, 1),
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease !important;
  will-change: transform;
}

:where(
  .catalog-product-card,
  .home-product-card,
  .livetta-mini-product,
  .collection-card,
  .collection-item,
  .stone-catalog-card,
  .favorite-stone-card,
  .info-card,
  .delivery-price-card,
  .legal-seller-card,
  .admin-card
) {
  transition:
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    border-color 220ms ease,
    box-shadow 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  :where(
    button:not(:disabled),
    input[type="button"]:not(:disabled),
    input[type="submit"]:not(:disabled),
    a.btn,
    a.button,
    a[class*="-button"],
    .page-actions a,
    .cart-empty-actions a
  ):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(94, 63, 86, .12) !important;
  }

  :where(
    .catalog-product-card,
    .home-product-card,
    .collection-card,
    .collection-item,
    .stone-catalog-card,
    .favorite-stone-card,
    .info-card,
    .delivery-price-card,
    .legal-seller-card,
    .admin-card
  ):hover {
    border-color: rgba(182, 84, 134, .34);
    box-shadow: 0 12px 26px rgba(94, 63, 86, .11);
    transform: translateY(-4px);
  }
}

:where(
  button:not(:disabled),
  input[type="button"]:not(:disabled),
  input[type="submit"]:not(:disabled),
  a.btn,
  a.button,
  a[class*="-button"],
  .page-actions a,
  .cart-empty-actions a
):active {
  transform: translateY(0) scale(.985);
  transition-duration: 80ms !important;
}

/* Keep the main navigation motion identical on every page. */
.nav a {
  transform: translateY(0) scale(1) !important;
  transition:
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    background-color 160ms cubic-bezier(.22, 1, .36, 1),
    border-color 160ms cubic-bezier(.22, 1, .36, 1),
    color 160ms cubic-bezier(.22, 1, .36, 1),
    opacity 160ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 220ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover,
  .nav a:focus-visible {
    transform: translateY(-3px) scale(1.012) !important;
    box-shadow: 0 8px 18px rgba(94, 63, 86, .12) !important;
  }
}

.nav a:active {
  transform: translateY(-1px) scale(.985) !important;
  transition-duration: 80ms !important;
}

.catalog-product-card img,
.home-product-card img,
.product-gallery img {
  image-rendering: auto;
}

.catalog-grid {
  align-items: start !important;
}

.catalog-grid .catalog-product-card,
.home-product-slider .catalog-product-card {
  height: auto !important;
  align-self: start;
}

@media (max-width: 900px) {
  .livetta-hero-copy {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 20px;
  }

  .livetta-hero-copy h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .livetta-hero-copy p {
    margin-top: 12px;
    font-size: 15px;
  }

  .livetta-hero-actions {
    margin: 16px 0 0;
  }

  .livetta-hero-actions a {
    min-height: 44px;
    padding: 0 16px;
  }

  .livetta-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 28px);
    margin-bottom: 32px;
  }

  .livetta-product-section {
    width: calc(100% - 28px);
    margin-top: 38px;
  }

  .livetta-product-grid {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
  }

  .livetta-mini-product {
    padding: 6px 6px 9px;
  }

  .livetta-collections {
    width: calc(100% - 28px);
    margin: 42px auto;
  }

  .livetta-collection {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .livetta-collection > img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .livetta-collection > div {
    padding: 28px 22px 32px;
  }

  .checkout-page .cart-summary {
    padding-bottom: 92px;
  }

  .checkout-page #cartSubmitButton {
    position: sticky;
    z-index: 20;
    bottom: 12px;
    min-height: 50px;
    box-shadow: 0 12px 30px rgba(182, 84, 134, 0.28);
  }

  .livetta-toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 520px) {
  .livetta-hero-copy h1 {
    font-size: 34px;
  }

  .livetta-hero-copy p {
    max-width: 310px;
  }

  .livetta-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .livetta-trust-strip {
    grid-template-columns: 1fr;
  }

  .livetta-product-grid {
    grid-auto-columns: calc((100% - 10px) / 2);
    gap: 10px;
  }

  .livetta-product-carousel__controls {
    gap: 12px;
    margin-top: 10px;
  }

  .livetta-product-carousel__arrow {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .livetta-mini-product h3 {
    font-size: 13px;
  }

  .cart-empty-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

a.is-disabled {
  pointer-events: none;
  opacity: .52;
}

.legal-page :where(h1, h2),
.legal-card :where(h1, h2),
.document-card :where(h1, h2) {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  letter-spacing: 0;
}

.legal-page h1,
.legal-card h1,
.document-card h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
}

.admin-quality-panel {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.5fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #ead9e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(80, 46, 76, .08);
}

.admin-quality-panel h2,
.admin-quality-panel p {
  margin: 0;
}

.admin-quality-panel__eyebrow {
  color: #a3508c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-quality-panel button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8b5d0;
  border-radius: 6px;
  background: #fff;
  color: #633251;
}

.admin-quality-panel.has-warning {
  border-color: #e6b8c4;
  background: #fffafa;
}

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