/*
 * Dorina Store — Experience V2
 * Add this file after the current Easy Orders stylesheet.
 * The effects are progressive: the store stays fully usable if JS is disabled.
 */

:root {
  --dorina-ink: #123f3e;
  --dorina-ink-deep: #0b302f;
  --dorina-gold: #c39a56;
  --dorina-gold-light: #e8cf9d;
  --dorina-cream: #f8f4ec;
  --dorina-surface: #fffdf8;
  --dorina-line: rgba(18, 63, 62, 0.12);
  --dorina-shadow-sm: 0 10px 30px rgba(17, 51, 50, 0.08);
  --dorina-shadow-md: 0 20px 55px rgba(17, 51, 50, 0.13);
  --dorina-shadow-lg: 0 36px 90px rgba(17, 51, 50, 0.18);
  --dorina-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dorina-v2-ready {
  scroll-behavior: smooth;
}

html.dorina-v2-ready body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Accessible focus states across the custom theme. */
html.dorina-v2-ready :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dorina-gold) 78%, white);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Premium glass header after the page starts moving. */
html.dorina-v2-ready .ab-theme.scrolled .ab-header {
  background: color-mix(in srgb, var(--body-bg, #f8f4ec) 88%, transparent) !important;
  border-bottom-color: rgba(18, 63, 62, 0.09) !important;
  box-shadow: 0 12px 34px rgba(14, 47, 46, 0.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

html.dorina-v2-ready .ab-header-search-form {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--dorina-ease-out);
}

html.dorina-v2-ready .ab-header-search-form:focus-within {
  background: var(--dorina-surface);
  box-shadow: 0 0 0 1px rgba(195, 154, 86, 0.42), var(--dorina-shadow-sm);
  transform: translateY(-1px);
}

/* Hero depth: light follows the pointer while copy sits on a separate plane. */
html.dorina-v2-ready .rnw-hero {
  --dorina-pointer-x: 50%;
  --dorina-pointer-y: 44%;
  --dorina-hero-rx: 0deg;
  --dorina-hero-ry: 0deg;
  position: relative;
  isolation: isolate;
  perspective: 1500px;
  transform-style: preserve-3d;
}

html.dorina-v2-ready .rnw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--dorina-pointer-x) var(--dorina-pointer-y),
      rgba(255, 249, 229, 0.22),
      transparent 29%
    ),
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.08) 58%, transparent 72%);
  mix-blend-mode: soft-light;
  opacity: 0.82;
  transition: opacity 500ms ease;
}

html.dorina-v2-ready .rnw-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 7% auto;
  z-index: 1;
  width: clamp(120px, 15vw, 230px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 207, 157, 0.34);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(232, 207, 157, 0.05),
    0 0 0 54px rgba(232, 207, 157, 0.025);
  pointer-events: none;
  opacity: 0.72;
  transform: translateZ(1px);
}

html.dorina-v2-ready.dorina-motion-3d .rnw-hero__inner {
  position: relative;
  z-index: 2;
  transform: rotateX(var(--dorina-hero-rx)) rotateY(var(--dorina-hero-ry)) translateZ(18px);
  transform-style: preserve-3d;
  transition: transform 500ms var(--dorina-ease-out);
  will-change: transform;
}

html.dorina-v2-ready.dorina-motion-3d .rnw-hero.is-dorina-tilting .rnw-hero__inner {
  transition-duration: 90ms;
}

html.dorina-v2-ready .rnw-hero__kicker,
html.dorina-v2-ready .rnw-hero__title,
html.dorina-v2-ready .rnw-hero__lede,
html.dorina-v2-ready .rnw-hero__actions {
  position: relative;
  z-index: 2;
}

html.dorina-v2-ready .rnw-hero__title {
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(255, 253, 248, 0.36);
}

html.dorina-v2-ready .rnw-hero__lede {
  text-wrap: pretty;
}

/* Category and product cards share restrained 3D geometry. */
html.dorina-v2-ready :is(.category-mosaic__tile, .ab-pgrid-card, .ab-plist-card) {
  --dorina-card-rx: 0deg;
  --dorina-card-ry: 0deg;
  --dorina-card-lift: 0px;
  transform:
    perspective(1050px)
    rotateX(var(--dorina-card-rx))
    rotateY(var(--dorina-card-ry))
    translateY(var(--dorina-card-lift));
  transform-style: preserve-3d;
  transform-origin: center;
  backface-visibility: hidden;
  transition:
    transform 480ms var(--dorina-ease-out),
    box-shadow 480ms var(--dorina-ease-out),
    border-color 250ms ease;
  will-change: transform;
}

html.dorina-v2-ready :is(.category-mosaic__tile, .ab-pgrid-card, .ab-plist-card).is-dorina-tilting {
  --dorina-card-lift: -7px;
  transition-duration: 90ms;
  box-shadow: var(--dorina-shadow-md);
}

html.dorina-v2-ready .category-mosaic__tile {
  border: 1px solid rgba(18, 63, 62, 0.08);
  box-shadow: var(--dorina-shadow-sm);
}

/* Keep category names readable when the artwork ends on a pale surface. */
html.dorina-v2-ready .category-mosaic__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 20px 22px 22px !important;
  border-top: 1px solid rgba(235, 211, 164, 0.34);
  background:
    radial-gradient(circle at 82% 12%, rgba(221, 188, 126, 0.2), transparent 34%),
    linear-gradient(135deg, #1b5555 0%, #123f3e 58%, #0b302f 100%) !important;
  color: #fffdf8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 12px 30px rgba(255, 255, 255, 0.025);
  text-align: center;
}

html.dorina-v2-ready .category-mosaic__label {
  color: #fffdf8 !important;
  font-size: clamp(1.05rem, 1.6vw, 1.65rem) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

html.dorina-v2-ready .category-mosaic__visual,
html.dorina-v2-ready :is(.ab-pgrid-media, .ab-plist-media) {
  transform: translateZ(18px);
  transition:
    transform 480ms var(--dorina-ease-out),
    box-shadow 480ms var(--dorina-ease-out);
}

html.dorina-v2-ready .category-mosaic__meta,
html.dorina-v2-ready :is(.ab-pgrid-info, .ab-plist-info) {
  position: relative;
  z-index: 2;
  transform: translateZ(26px);
}

html.dorina-v2-ready :is(.ab-pgrid-badge, .ab-plist-badge) {
  transform: translateZ(34px);
  box-shadow: 0 7px 17px rgba(99, 37, 24, 0.17);
}

html.dorina-v2-ready .ab-pgrid-media {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(18, 63, 62, 0.055);
}

html.dorina-v2-ready .ab-pgrid-card {
  border-radius: 18px;
}

html.dorina-v2-ready .ab-pgrid-info {
  padding-inline: 8px;
}

html.dorina-v2-ready :is(.ab-pgrid-name, .ab-plist-name) {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px;
}

/* Trust cards: clearer hierarchy and a physical hover response. */
html.dorina-v2-ready .trust-promise__item {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  min-height: 74px;
  justify-self: stretch !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(237, 216, 176, 0.66);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(241, 232, 214, 0.96)) !important;
  box-shadow:
    0 12px 28px rgba(4, 31, 30, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition:
    transform 360ms var(--dorina-ease-out),
    box-shadow 360ms var(--dorina-ease-out),
    border-color 360ms ease;
}

html.dorina-v2-ready .trust-promise {
  padding-block: 20px !important;
  overflow: visible !important;
}

html.dorina-v2-ready .trust-promise__row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: min(1240px, 100%);
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding-inline: 18px !important;
}

html.dorina-v2-ready .trust-promise__icon-wrap {
  flex: 0 0 42px;
  width: 42px !important;
  height: 42px !important;
  padding: 7px;
  border: 1px solid rgba(195, 154, 86, 0.24);
  border-radius: 13px;
  background: rgba(230, 207, 164, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html.dorina-v2-ready .trust-promise__icon {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain;
}

html.dorina-v2-ready .trust-promise__text {
  min-width: 0;
}

html.dorina-v2-ready .trust-promise__title {
  color: var(--dorina-ink-deep) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
}

html.dorina-v2-ready .trust-promise__desc {
  margin-top: 2px !important;
  color: #566969 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
}

html.dorina-v2-ready .trust-promise__item::after {
  content: "";
  position: absolute;
  inset: -100% auto auto -45%;
  width: 45%;
  height: 280%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  pointer-events: none;
  opacity: 0;
  transition:
    inset 700ms var(--dorina-ease-out),
    opacity 250ms ease;
}

@media (hover: hover) {
  html.dorina-v2-ready .trust-promise__item:hover {
    transform: translateY(-5px);
    border-color: rgba(195, 154, 86, 0.32);
    box-shadow: var(--dorina-shadow-md);
  }

  html.dorina-v2-ready .trust-promise__item:hover::after {
    inset-inline-start: 112%;
    opacity: 0.72;
  }
}

/* Product detail hierarchy and gallery depth. */
html.dorina-v2-ready.dorina-v2-product .p_content_container {
  perspective: 1500px;
}

html.dorina-v2-ready.dorina-v2-product .p_gallery_container {
  border-radius: 22px;
  transform-style: preserve-3d;
}

html.dorina-v2-ready.dorina-v2-product .ab-gallery {
  overflow: visible;
  border-radius: 22px;
  filter: drop-shadow(0 24px 44px rgba(17, 51, 50, 0.11));
}

html.dorina-v2-ready.dorina-v2-product .ab-gallery-slide {
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
}

html.dorina-v2-ready.dorina-v2-product .ab-gallery-main-media {
  transition:
    transform 700ms var(--dorina-ease-out),
    filter 700ms var(--dorina-ease-out);
}

@media (hover: hover) and (min-width: 1024px) {
  html.dorina-v2-ready.dorina-v2-product .ab-gallery:hover .ab-gallery-main-media {
    transform: scale(1.025) translateZ(16px);
    filter: saturate(1.03) contrast(1.015);
  }
}

html.dorina-v2-ready.dorina-v2-product .p_details_container {
  position: relative;
  border: 1px solid rgba(18, 63, 62, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 4%, rgba(232, 207, 157, 0.22), transparent 28%),
    color-mix(in srgb, var(--body-bg, #f8f4ec) 88%, white);
  box-shadow: var(--dorina-shadow-sm);
}

html.dorina-v2-ready.dorina-v2-product .ab-pd-name {
  text-wrap: balance;
  letter-spacing: -0.015em;
  line-height: 1.42;
}

html.dorina-v2-ready.dorina-v2-product :is(.checkout_btn, .add_to_cart_btn) {
  min-height: 54px;
  border-radius: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  transform: translateY(0);
  transition:
    transform 200ms var(--dorina-ease-out),
    box-shadow 200ms var(--dorina-ease-out),
    filter 200ms ease !important;
}

html.dorina-v2-ready.dorina-v2-product .checkout_btn {
  color: #fff !important;
  background: linear-gradient(135deg, var(--dorina-ink) 0%, #1b5c59 66%, #0c3937 100%) !important;
  border-color: transparent !important;
  box-shadow:
    0 9px 0 #082d2b,
    0 17px 30px rgba(11, 48, 47, 0.23);
}

html.dorina-v2-ready.dorina-v2-product .add_to_cart_btn {
  color: var(--dorina-ink) !important;
  border-color: rgba(18, 63, 62, 0.3) !important;
  background: rgba(255, 253, 248, 0.82) !important;
  box-shadow: 0 7px 20px rgba(11, 48, 47, 0.08);
}

@media (hover: hover) {
  html.dorina-v2-ready.dorina-v2-product :is(.checkout_btn, .add_to_cart_btn):hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
  }
}

html.dorina-v2-ready.dorina-v2-product .checkout_btn:active {
  transform: translateY(6px);
  box-shadow:
    0 3px 0 #082d2b,
    0 7px 17px rgba(11, 48, 47, 0.19);
}

html.dorina-v2-ready.dorina-v2-product .add_to_cart_btn:active {
  transform: translateY(2px);
}

.dorina-buy-confidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid rgba(18, 63, 62, 0.09);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
  color: color-mix(in srgb, var(--body-text, #121212) 78%, transparent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.dorina-buy-confidence span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dorina-buy-confidence span + span {
  border-inline-start: 1px solid rgba(18, 63, 62, 0.1);
}

html.dorina-v2-ready.dorina-v2-product .lq-desc-accordion-item {
  margin-block: 10px;
  border: 1px solid rgba(18, 63, 62, 0.09);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.68);
  overflow: hidden;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--dorina-ease-out);
}

html.dorina-v2-ready.dorina-v2-product .lq-desc-accordion-item.ab-open {
  border-color: rgba(195, 154, 86, 0.33);
  box-shadow: var(--dorina-shadow-sm);
}

html.dorina-v2-ready.dorina-v2-product .lq-desc-accordion-trigger {
  min-height: 56px;
}

html.dorina-v2-ready.dorina-v2-product .ql-editor {
  max-width: 76ch;
  margin-inline: auto;
  color: color-mix(in srgb, var(--body-text, #121212) 88%, transparent);
  line-height: 1.95 !important;
}

/* Sticky mobile purchase action, created by the companion script. */
.dorina-sticky-buy {
  display: none;
}

@media (max-width: 768px) {
  html.dorina-v2-ready .rnw-hero::after {
    width: 96px;
    inset: auto 7% 8% auto;
    opacity: 0.42;
  }

  html.dorina-v2-ready .rnw-hero__inner {
    align-items: flex-start !important;
    width: min(100%, 342px) !important;
    margin-inline: auto !important;
    text-align: right !important;
  }

  html.dorina-v2-ready :is(.rnw-hero__kicker, .rnw-hero__title, .rnw-hero__lede) {
    margin-inline: 0 !important;
    text-align: right !important;
  }

  html.dorina-v2-ready .rnw-hero__actions {
    align-self: flex-start !important;
    width: auto !important;
    margin-inline: 0 !important;
  }

  html.dorina-v2-ready .rnw-hero__title {
    max-width: 12ch;
    line-height: 1.32;
  }

  html.dorina-v2-ready .rnw-hero__lede {
    max-width: 31ch;
    line-height: 1.72;
  }

  html.dorina-v2-ready :is(.category-mosaic__tile, .ab-pgrid-card, .ab-plist-card) {
    will-change: auto;
    transform: none;
  }

  html.dorina-v2-ready .category-mosaic__meta {
    min-height: 68px;
    padding: 14px 12px 16px !important;
  }

  html.dorina-v2-ready .category-mosaic__label {
    font-size: clamp(0.95rem, 4.3vw, 1.15rem) !important;
    line-height: 1.5 !important;
  }

  html.dorina-v2-ready .trust-promise {
    padding-block: 14px !important;
  }

  html.dorina-v2-ready .trust-promise__row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-inline: 10px !important;
  }

  html.dorina-v2-ready .trust-promise__item {
    min-height: 72px;
    gap: 9px !important;
    padding: 10px !important;
    border-radius: 15px;
  }

  html.dorina-v2-ready .trust-promise__icon-wrap {
    flex-basis: 36px;
    width: 36px !important;
    height: 36px !important;
    padding: 6px;
    border-radius: 11px;
  }

  html.dorina-v2-ready .trust-promise__icon {
    width: 22px !important;
    height: 22px !important;
  }

  html.dorina-v2-ready .trust-promise__title {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  html.dorina-v2-ready .trust-promise__desc {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  html.dorina-v2-ready.dorina-v2-product .p_details_container {
    border-radius: 18px;
    padding: 16px !important;
  }

  .dorina-buy-confidence {
    gap: 5px;
    padding-inline: 7px;
    font-size: 10px;
  }

  html.dorina-v2-ready.dorina-v2-product.has-dorina-sticky-buy {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .dorina-sticky-buy {
    position: fixed;
    inset: auto 10px max(10px, env(safe-area-inset-bottom)) 10px;
    z-index: 48;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 8px 9px 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 19px;
    background: color-mix(in srgb, var(--dorina-ink-deep) 92%, transparent);
    color: #fff;
    box-shadow: 0 18px 44px rgba(3, 27, 26, 0.32);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition:
      opacity 280ms ease,
      transform 420ms var(--dorina-ease-out);
  }

  .dorina-sticky-buy.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dorina-sticky-buy__copy {
    min-width: 0;
  }

  .dorina-sticky-buy__label,
  .dorina-sticky-buy__hint {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dorina-sticky-buy__label {
    font-size: 13px;
    font-weight: 800;
  }

  .dorina-sticky-buy__hint {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    font-weight: 600;
  }

  .dorina-sticky-buy__button {
    min-height: 45px;
    padding-inline: 20px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #efd7a8, var(--dorina-gold));
    color: #183d3b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }
}

@media (max-width: 420px) {
  .dorina-buy-confidence {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: start;
  }

  .dorina-buy-confidence span {
    justify-content: flex-start;
    padding: 5px 4px;
  }

  .dorina-buy-confidence span + span {
    border-inline-start: 0;
    border-top: 1px solid rgba(18, 63, 62, 0.08);
  }
}

/* Never force motion on users or devices that opt out. */
@media (prefers-reduced-motion: reduce) {
  html.dorina-v2-ready {
    scroll-behavior: auto;
  }

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

  html.dorina-v2-ready .rnw-hero__inner,
  html.dorina-v2-ready :is(.category-mosaic__tile, .ab-pgrid-card, .ab-plist-card) {
    transform: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  html.dorina-v2-ready .rnw-hero__inner,
  html.dorina-v2-ready :is(.category-mosaic__tile, .ab-pgrid-card, .ab-plist-card) {
    transform: none;
  }
}
