/* Guest chrome: left category rail, header search cluster, global tweaks */

.guest-top-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.guest-header-search {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
  max-width: min(22rem, 46vw);
  border: 1px solid rgba(15, 18, 24, 0.1);
  border-radius: 999px;
  padding: 0.12rem 0.2rem 0.12rem 0.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.guest-header-search__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(15, 18, 24, 0.55);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guest-header-search:hover .guest-header-search__icon,
.guest-header-search:focus-within .guest-header-search__icon {
  color: rgba(15, 18, 24, 0.82);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(59, 111, 217, 0.35);
  box-shadow: 0 0 0 2px rgba(59, 111, 217, 0.12);
}

.guest-header-search__input {
  flex: 1;
  min-width: 0;
  width: auto;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 24, 0.14);
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink, #0f1218);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.guest-header-search__input::placeholder {
  color: rgba(15, 18, 24, 0.45);
}

.guest-header-search__input:focus {
  border-color: rgba(99, 140, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 140, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.guest-header-search__results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(70vh, 22rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  padding: 0.35rem;
}

.guest-header-search__empty {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.55);
}

.guest-header-search__hit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.guest-header-search__hit:hover,
.guest-header-search__hit:focus-visible {
  background: rgba(99, 140, 255, 0.12);
}

.guest-header-search__hit-img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #e8edf5;
}

.guest-header-search__hit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guest-header-search__hit-txt {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.guest-header-search__hit-txt strong {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-header-search__hit-sub {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.5);
}

.guest-header-search__hit--oos {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.guest-header-search__hit--oos .guest-header-search__hit-img {
  filter: grayscale(0.35);
}

.guest-header-search__oos-pill {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(120, 53, 15, 0.95);
}

body.guest-site.page-home {
  padding-left: 0;
}

body.guest-site:not(.page-home) {
  padding-left: 0;
}

body.guest-site:not(.page-home) main.sub-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Category rail: hug pills — avoid stretch blank below nav (home split styles) */
body.guest-site:not(.page-home) .guest-page-category-rail.home-category-rail--split {
  align-self: flex-start;
  min-height: 0;
  height: auto;
}

body.guest-site:not(.page-home) .guest-page-category-rail.home-category-rail--split .category-grid--rail {
  flex: 0 0 auto;
  overflow-y: visible;
  min-height: 0;
}

body.guest-site.page-product--resin-rm main.sub-main {
  gap: 0.65rem;
  align-items: flex-start;
}

body.guest-site .guest-page-category-rail {
  flex: 0 0 auto;
  width: min(220px, 28vw);
  max-height: calc(100vh - 5.5rem);
  position: sticky;
  top: 5.25rem;
  align-self: flex-start;
  z-index: 2;
  overflow: auto;
  /* Let clicks reach the main column when the rail overlaps wide cards (Browse by line). */
  pointer-events: none;
}

body.guest-site .guest-page-category-rail .category-grid--rail,
body.guest-site .guest-page-category-rail .pf-rail-lines {
  pointer-events: auto;
}

body.guest-site .guest-page-category-rail a,
body.guest-site .guest-page-category-rail button {
  pointer-events: auto;
}

body.guest-site .guest-main-with-rail-inner {
  flex: 1;
  min-width: 0;
}

body.guest-site:not(.page-home) .guest-page-category-rail .category-grid--rail {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.42rem;
}

body.guest-site:not(.page-home) .guest-page-category-rail .category-pill--rail {
  opacity: 1;
  transform: none;
  justify-content: flex-start;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
}

body.guest-site:not(.page-home) .guest-page-category-rail .category-pill--rail:hover,
body.guest-site:not(.page-home) .guest-page-category-rail .category-pill--rail:focus-visible {
  border-color: rgba(59, 111, 217, 0.35);
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 60, 110, 0.1);
  outline: none;
}

body.guest-site:not(.page-home) .guest-page-category-rail .category-pill--rail.is-active {
  border-color: rgba(59, 111, 217, 0.45);
  color: var(--accent, #2563eb);
  box-shadow: 0 8px 22px rgba(35, 60, 110, 0.1);
}

body.guest-site .global-find {
  display: none !important;
}

@media (max-width: 900px) {
  body.guest-site:not(.page-home) main.sub-main {
    flex-direction: column;
  }

  body.guest-site .guest-page-category-rail {
    width: 100%;
    max-height: none;
    position: relative;
    top: auto;
  }

  body.guest-site:not(.page-home) .guest-page-category-rail .category-grid--rail {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  body.guest-site:not(.page-home) .guest-page-category-rail .category-pill--rail {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Product / category image hover zoom */
.product-card-image {
  overflow: hidden;
}

.product-card__media img {
  transition: none;
}

.product-card:hover .product-card__media img {
  transform: none;
}

.product-hero-img--zoomhost img {
  transition: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.product-page .product-hero-img--zoomhost:hover img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media img,
  .product-hero-img--fx img {
    transition: none;
  }

  .product-card:hover .product-card__media img,
  .product-page .product-hero-img--fx:hover img {
    transform: none;
  }

  .product-hero-img__zoom-hint {
    display: none;
  }
}

/* Share chip on category cards */
.product-card-share {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 8;
  pointer-events: auto;
}

.product-card-share__btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 14, 22, 0.42);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.product-card-share__btn:hover,
.product-card-share__btn:focus-visible {
  background: rgba(10, 14, 22, 0.62);
}

.product-card-share__pop {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 11rem;
  padding: 0.4rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 16, 26, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.product-card-share__pop[hidden] {
  display: none !important;
}

.product-card-share__pop a,
.product-card-share__pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.product-card-share__pop a:hover,
.product-card-share__pop button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Product page share + qty stepper */
.product-share-bar {
  position: relative;
  z-index: 30;
  margin: 0.65rem 0 0.35rem;
}

.product-share-bar__toggle {
  appearance: none;
  border: 1px solid rgba(59, 111, 217, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 240, 255, 0.9));
  color: #1e3a5f;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(59, 111, 217, 0.12);
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

.product-share-bar__toggle:hover,
.product-share-bar__toggle:focus-visible {
  border-color: rgba(59, 111, 217, 0.85);
  box-shadow: 0 4px 16px rgba(59, 111, 217, 0.22);
  outline: none;
}

.product-share-bar__toggle:active {
  transform: scale(0.98);
}

.product-share-bar__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 20;
}

.product-share-bar__dropdown[hidden] {
  display: none !important;
}

.product-share-bar__dropdown a,
.product-share-bar__dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
}

.product-share-bar__dropdown a:hover,
.product-share-bar__dropdown button:hover,
.product-share-bar__dropdown a:focus-visible,
.product-share-bar__dropdown button:focus-visible {
  background: rgba(59, 111, 217, 0.1);
  outline: none;
}

.product-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.product-qty-stepper button {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.product-qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-qty-stepper__val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Cart drawer qty */
.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cart-item-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.15rem 0.35rem;
  background: rgba(255, 255, 255, 0.65);
}

.cart-item__qty {
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cart-item__qty:hover {
  background: rgba(15, 23, 42, 0.12);
}

.cart-item-qty-num {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Homepage hero: vendor-configurable animation presets */
.hero-atelier__photo-ring {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-atelier__photo-img {
  transition:
    opacity 0.55s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-atelier__photo-ring[data-hero-anim="orbit"] {
  animation: cgHeroOrbit 14s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="drift"] {
  animation: cgHeroDrift 12s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="prism"] {
  animation: cgHeroPrism 10s linear infinite;
}

.hero-atelier__photo-ring[data-hero-anim="glide"] {
  animation: cgHeroGlide 11s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="bloom"] {
  animation: cgHeroBloom 9s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="sway"] {
  animation: cgHeroSway 7s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="breathe"] {
  animation: cgHeroBreathe 5.5s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="tilt"] {
  animation: cgHeroTilt 8s ease-in-out infinite;
}

.hero-atelier__photo-ring[data-hero-anim="pulse-soft"] {
  animation: cgHeroPulseSoft 6s ease-in-out infinite;
}

@keyframes cgHeroOrbit {
  0%,
  100% {
    transform: perspective(900px) rotateY(-6deg) rotateX(4deg) translateZ(0);
  }
  50% {
    transform: perspective(900px) rotateY(8deg) rotateX(-3deg) translateZ(12px);
  }
}

@keyframes cgHeroDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5%, -1.2%, 0) scale(1.02);
  }
}

@keyframes cgHeroPrism {
  0% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(18deg) saturate(1.08);
  }
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
}

@keyframes cgHeroGlide {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cgHeroBloom {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(120, 170, 255, 0);
  }
  45% {
    transform: scale(1.03);
    box-shadow: 0 24px 80px rgba(120, 170, 255, 0.25);
  }
}

@keyframes cgHeroSway {
  0%,
  100% {
    transform: rotate(-2.5deg) translateX(0);
  }
  50% {
    transform: rotate(2.5deg) translateX(2%);
  }
}

@keyframes cgHeroBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes cgHeroTilt {
  0%,
  100% {
    transform: perspective(880px) rotateX(2deg) rotateY(-5deg);
  }
  50% {
    transform: perspective(880px) rotateX(-3deg) rotateY(5deg);
  }
}

@keyframes cgHeroPulseSoft {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.94;
    filter: brightness(1.06);
  }
}

.hero-floatscape--from-api.hero-floatscape--burst-in .hero-float-polar {
  animation: cgPolarPop 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-floatscape--burst-in .hero-float-polar--one {
  animation-delay: 0.05s;
}
.hero-floatscape--burst-in .hero-float-polar--two {
  animation-delay: 0.18s;
}
.hero-floatscape--burst-in .hero-float-polar--three {
  animation-delay: 0.3s;
}
.hero-floatscape--burst-in .hero-float-polar--four {
  animation-delay: 0.12s;
}

@keyframes cgPolarPop {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.86) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atelier__photo-ring[data-hero-anim] {
    animation: none !important;
  }

  .hero-floatscape--from-api.hero-floatscape--burst-in .hero-float-polar {
    animation: none !important;
  }
}

/* Raw materials + return gifts simple grids */
.rm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.rm-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.rm-card__img {
  aspect-ratio: 4 / 3;
  background: #e8edf5;
}

.rm-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rm-card__body {
  padding: 0.85rem 1rem 1rem;
}

.rm-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.rm-card__body p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(15, 23, 42, 0.58);
  line-height: 1.45;
}

/* Product page: scroll-zoom + pan, badges, consistent column */
.product-hero-img--zoomhost {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.product-hero-img--zoomhost.product-hero-img--is-zoomed {
  cursor: grab;
}

.product-hero-img--zoomhost.product-hero-img--is-panning {
  cursor: grabbing;
}

.product-hero-img__zoom-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.48);
  line-height: 1.35;
}

.page-product .product-return-gift-badge {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f766e;
}

.page-product .product-return-gift-badge a {
  color: inherit;
  font-weight: 700;
}

.page-product .product-reseller-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.55);
  max-width: 36rem;
}

.page-product .product-reseller-note a {
  color: #2563eb;
  font-weight: 600;
}

.page-product .product-detail--purchase {
  max-width: 36rem;
}

.page-product .product-detail--purchase.product-detail--buy-column {
  max-width: min(26.25rem, 100%);
}

.page-product .product-detail--purchase .glass-panel,
.page-product .product-detail--purchase .size-dock,
.page-product .product-detail--purchase .price-block {
  width: 100%;
  box-sizing: border-box;
}

.page-product .product-detail--purchase .btn-add-premium__inner {
  gap: 0.42rem;
  padding: 0.72rem 1rem;
  justify-content: center;
}

.page-product .product-detail--purchase .btn-add-premium__chev {
  font-size: 0.95rem;
}

.page-product .product-qty-bar {
  margin: 0.5rem 0 0.15rem;
}

.page-product .product-visual--fx .product-hero-img--fx {
  max-width: min(100%, 26rem);
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 900px) {
  .page-product .product-visual--fx .product-hero-img--fx {
    max-width: min(100%, 24rem);
  }
}

.page-product .qty-dock--strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.6rem;
  margin: 0;
  flex: 1 1 12rem;
  min-width: min(100%, 11rem);
}

.page-product .qty-dock--strip .qty-dock__head--compact {
  margin: 0;
  flex: 0 0 auto;
}

.page-product .qty-dock--strip .qty-dock__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-product .qty-dock--strip .qty-dock__sub {
  margin: 0.05rem 0 0;
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.5);
  white-space: nowrap;
}

.page-product .qty-dock--strip .product-qty-stepper {
  margin-top: 0;
  margin-left: auto;
}

/* Google Identity + email OTP combo (home / account / checkout modals) */
html.auth-google-ui-off .auth-google-hint,
html.auth-google-ui-off .auth-google-slot,
html.auth-google-ui-off .auth-or-divider {
  display: none !important;
}

.auth-google-hint--panel {
  margin: 0.65rem 0 0.35rem;
  text-align: center;
}

.auth-google-hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.55);
}

.auth-google-slot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 0.65rem;
  min-height: 2.5rem;
}

/* Account (sign up / log in): circular Google icon, centered in the row */
.auth-google-slot--circle {
  justify-content: center;
  min-height: 3rem;
}

.auth-google-slot--circle > div {
  margin-left: auto;
  margin-right: auto;
}

.auth-or-divider {
  margin: 0.35rem 0 0.85rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.38);
}

.auth-or-divider span {
  display: inline-block;
  padding: 0 0.5rem;
  position: relative;
}

.auth-or-divider span::before,
.auth-or-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4rem;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.auth-or-divider span::before {
  right: 100%;
}

.auth-or-divider span::after {
  left: 100%;
}

/* Photo frames guest landing (photo-frames.html) */
.pf-home-hero {
  margin: 0 0 2rem;
  border-radius: clamp(18px, 3vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  background: #0f172a;
}

.pf-home-hero__media {
  position: relative;
  line-height: 0;
}

.pf-home-hero__media img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 640px);
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

.pf-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.pf-home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition:
    filter 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.pf-home-hero__btn--primary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}

.pf-home-hero__btn--primary:hover {
  filter: brightness(1.06);
}

.pf-home-hero__btn--ghost {
  color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(248, 250, 252, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.pf-home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pf-home-below {
  margin-top: 0.5rem;
}

.pf-home-link-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem 1rem;
}

.pf-home-link-grid > li {
  margin: 0;
}

.pf-home-link-grid .pf-home-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 8.5rem;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pf-home-link-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.06), rgba(124, 58, 237, 0.08));
}

.pf-home-link-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-home-link-card__media--empty {
  min-height: 5rem;
}

.pf-home-link-card__txt {
  display: block;
  padding: 0.85rem 1.1rem 1rem;
}

.pf-home-link-grid .pf-home-link-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

.pf-browse {
  margin: 0 0 2.5rem;
}

.pf-browse__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
  text-decoration: none;
}

.pf-browse__back:hover {
  color: #5b21b6;
}

.pf-browse__sub {
  margin-top: -0.35rem;
  margin-bottom: 1.25rem;
}

.pf-browse__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem 1.1rem;
}

.pf-browse__empty {
  margin: 0;
  padding: 1rem 0;
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.95rem;
}

.pf-home-link-grid__loading {
  grid-column: 1 / -1;
  padding: 0.75rem 0;
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.9rem;
}

/* Photo frame vendor lines in the guest left rail (photo-frames.html) */
.pf-rail-lines {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pf-rail-lines__label {
  margin-bottom: 0.55rem;
}

.pf-rail-lines__grid {
  margin-bottom: 0;
}

.pf-rail-lines__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pf-rail-lines__pill-img {
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

body.guest-site:not(.page-home) .guest-page-category-rail .pf-rail-lines__pill {
  justify-content: flex-start;
}

/* Photo frames: hide “Browse by line” block while CRAFT_PF_NAV_LINES_HIDDEN is on (photo-frame-nav.js). */
body.pf-nav-lines-empty .pf-home-below,
body.pf-nav-lines-empty #photoFrameNavGrid {
  display: none !important;
}

/* Guest storefront: search-only discovery — hide sort/price/view filter toolbars */
body:not(.vendor-saas) .cg-filter-panel,
body:not(.vendor-saas) #homeFeaturedToolbar,
body:not(.vendor-saas) #rgToolbar,
body:not(.vendor-saas) .rm-filter-toolbar,
body:not(.vendor-saas) #globalFindSortWrap,
body:not(.vendor-saas) #globalFindCategoryFilterWrap {
  display: none !important;
}

/* Scroll / paint: lighter motion on catalog subpages */
body.subpage .animated-backdrop .orb,
body.subpage .mesh-gradient {
  animation: none;
}

body.subpage .product-grid,
body.subpage .featured-cat-grid,
body.subpage .rm-shop-grid,
body.subpage #rmGrid {
  contain: layout style;
}

