@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* **************************************************************************************
* 숏폼 콘텐츠 Feed CSS
Creation Date : 2026-08-11
************************************************************************************** */

/* ============================================================
   1. ROOT TOKENS & PAGE BACKGROUND
   ============================================================ */
:root {
  --rt-bg: #120c1a;
  --rt-panel: #ffffff;
  --rt-purple: #7b3fe4;
  --rt-purple-dark: #5422ba;
  --rt-muted: #8f86a0;
  --rt-line: rgba(255, 255, 255, 0.12);
  --rt-stage-radius: 0;
  --rt-video-w: 444px;
  --rt-video-h: 765px;
  --rt-mobile-product-h: 136px;
  --rt-progress-h: 4px;
  --rt-mobile-bottom-gap: 24px;
  --rt-mobile-social-offset: 170px;
  --rt-slide-bottom-reserve: calc(var(--rt-mobile-product-h) + var(--rt-mobile-bottom-gap));
  --rt-bottom-nav: var(--rt-floating-footer-h);
  --rt-cart-toast-ring: 119.38;
  --rt-cart-toast-duration: 5s;
  --rt-floating-footer-h: 90px;
  --rt-header-h: 160px;
  --rt-desktop-vertical-margin: 150px;
  background: var(--rt-bg);
}

#layout_wrap {
  --rt-product-card-surface:
    radial-gradient(circle at 8% 0%, rgba(255, 198, 224, 0.42) 0%, transparent 46%),
    radial-gradient(circle at 96% 6%, rgba(176, 152, 255, 0.34) 0%, transparent 44%),
    radial-gradient(circle at 70% 100%, rgba(255, 220, 210, 0.28) 0%, transparent 42%),
    linear-gradient(168deg, #fff9fc 0%, #f4eefc 52%, #ebe3f8 100%);
}

/* Same reasoning as above: kept separately because .trend-product-sheet is appended to
   <body>, not #layout_wrap, so it can't inherit #layout_wrap's --rt-product-card-surface. */
.trend-product-sheet,
.realtrend-layout {
  --rt-product-card-surface:
    radial-gradient(circle at 8% 0%, rgba(255, 198, 224, 0.42) 0%, transparent 46%),
    radial-gradient(circle at 96% 6%, rgba(176, 152, 255, 0.34) 0%, transparent 44%),
    radial-gradient(circle at 70% 100%, rgba(255, 220, 210, 0.28) 0%, transparent 42%),
    linear-gradient(168deg, #fff9fc 0%, #f4eefc 52%, #ebe3f8 100%);
}

#layout_footer {
  display: none;
}

#layout_body {
  background-color: var(--ink);
}

.realtrend-page .site-footer {
  display: none !important;
}

@media (max-width: 1120px) {
  #layout_body {
    padding: 0;
  }

  #layout_header {
    display: none;
  }

  /* MERGED: was 3 separate @media (max-width:1120px) blocks scattered near the end of the
     file, each with one rule. Combined here with the other 1120px overrides below. */
  #floating_over,
  #floating_over.dn,
  #floating_over:not(.on) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .layout_header.flying,
  #floating_over.dn,
  #floating_over:not(.on) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #floating_over .ico_floating_top,
  #floating_over .ico_floating_talk {
    display: none;
  }
}

/* ============================================================
   2. SHARED REEL MEDIA (video / iframe embeds — used by every
      slide regardless of source: file, YouTube, TikTok, social)
   ============================================================ */
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-reel__video,
.sf-reel__embed,
.sf-reel__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-reel__embed {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.sf-reel__embed--youtube iframe {
  width: 100%;
  height: 100%;
}

.sf-reel__embed--tiktok {
  background: #000;
}

.sf-reel__embed--tiktok iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sf-reel__embed--social {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.sf-reel__embed--social iframe.instagram-media {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.sf-reel__embed-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.realtrend-stage,
.realtrend-media,
.sf-reel__video,
.sf-reel__embed {
  border-radius: 0 !important;
}

.realtrend-mobile-only {
  display: none;
}

.sf-empty {
  color: white;
  font-weight: 700;
  text-align: center;
}

/* ============================================================
   3. PAGE / BREADCRUMB / LAYOUT GRID
   ============================================================ */
.realtrend-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 36px 48px;
}

.realtrend-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.realtrend-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.realtrend-breadcrumb a:hover {
  color: #fff;
}

.realtrend-breadcrumb [aria-current="page"] {
  color: #fff;
  font-weight: 500;
}

.realtrend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 28px;
  align-items: start;
}

.realtrend-player-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ============================================================
   4. REEL STAGE / FEED / TRACK / SLIDE
   ============================================================ */
.realtrend-stage {
  position: relative;
  min-height: 620px;
  border-radius: var(--rt-stage-radius);
  overflow: hidden;
  background: #1a1228;
}

.realtrend-feed {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  touch-action: none;
}

.realtrend-track {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .realtrend-track {
    transition: none;
  }
}

/* MERGED: two separate .realtrend-slide rules (one near the top, one near the bottom of
   the original file) into one. The second copy added height:100%, which the first lacked. */
.realtrend-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.realtrend-slide .realtrend-media {
  position: absolute;
  inset: 0;
}

/* ============================================================
   5. REEL MEDIA (background art, tones, placeholder, play toggle)
   ============================================================ */
.realtrend-media {
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 35% 22%, rgba(255, 214, 196, 0.55), transparent 42%),
    linear-gradient(145deg, #3d2848 0%, #120c1a 58%, #09060f 100%);
}

.realtrend-media.reel-tone-2 {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 40% 30%, rgba(196, 220, 255, 0.45), transparent 45%),
    linear-gradient(145deg, #24304a 0%, #10131f 60%, #07080d 100%);
}

.realtrend-media.reel-tone-3 {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 50% 35%, rgba(255, 230, 196, 0.5), transparent 46%),
    linear-gradient(145deg, #4a3528 0%, #18110d 60%, #090706 100%);
}

.realtrend-media.is-paused::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.realtrend-media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  font-weight: 600;
}

.realtrend-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}

.realtrend-media.is-paused .realtrend-play-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.realtrend-play-toggle:hover {
  background: rgba(0, 0, 0, 0.58);
}

.realtrend-play-toggle svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.realtrend-play-toggle .realtrend-icon-play,
.realtrend-play-toggle .realtrend-icon-pause {
  display: none;
}

.realtrend-media.is-paused .realtrend-play-toggle .realtrend-icon-play {
  display: block;
}

.realtrend-media:not(.is-paused) .realtrend-play-toggle .realtrend-icon-pause {
  display: block;
}

.realtrend-play-toggle .realtrend-icon-play path {
  fill: currentColor;
  stroke: none;
}

/* ============================================================
   6. MUTE TOGGLE
   ============================================================ */
.realtrend-mute-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.15s ease;
}

.realtrend-mute-toggle:hover {
  background: rgba(0, 0, 0, 0.6);
}

.realtrend-mute-toggle svg {
  width: 20px;
  height: 20px;
}

.realtrend-mute-toggle .realtrend-icon-muted,
.realtrend-mute-toggle .realtrend-icon-unmuted {
  display: none;
}

.realtrend-mute-toggle.is-muted .realtrend-icon-muted {
  display: block;
}

.realtrend-mute-toggle:not(.is-muted) .realtrend-icon-unmuted {
  display: block;
}

/* ============================================================
   7. SOCIAL ACTION BUTTONS (like / save / share)
   ============================================================ */
.realtrend-social,
.sf-reel__side-actions {
  position: absolute;
  right: 18px;
  bottom: 60px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.realtrend-social-btn,
.sf-reel__iconbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
}

.realtrend-social-btn {
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.realtrend-social-btn img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

.sf-reel__icon-stack {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.sf-reel__icon-stack img {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  transition: opacity 0.15s ease;
}

.sf-reel__icon-active {
  opacity: 0;
}

.sf-reel__iconbtn.is-active .sf-reel__icon-default {
  opacity: 0;
}

.sf-reel__iconbtn.is-active .sf-reel__icon-active {
  opacity: 1;
}

.sf-reel__iconcount {
  display: block;
  min-height: 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   8. DESKTOP NAV ARROWS (beside the video)
   ============================================================ */
.realtrend-nav-arrows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.realtrend-arrow {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1.5px solid #C6BEFF;
  border-radius: 50%;
  color: #C6BEFF;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

.realtrend-arrow:hover {
  background: rgba(175, 162, 194, 0.6);
  color: #fff;
}

.realtrend-arrow svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   9. PROGRESS BAR
   ============================================================ */
.realtrend-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 4px;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.realtrend-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  bottom: -14px;
}

.realtrend-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rt-purple);
  transition: width 0.1s linear;
  pointer-events: none;
}

.realtrend-progress.is-scrubbing .realtrend-progress-fill {
  transition: none;
}

/* MERGED: this exact block was duplicated verbatim earlier in the original file
   (right after the mobile-product overlay section). Kept one copy. */
@media (max-width: 1120px) {
  .realtrend-page .realtrend-progress.realtrend-progress--dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--rt-floating-footer-h);
    z-index: 21;
    height: var(--rt-progress-h);
    border-radius: 0;
    background: #fff;
  }
}

/* ============================================================
   10. MOBILE PRODUCT OVERLAY (inline, inside each slide)
   ============================================================ */
.realtrend-mobile-product {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  margin: 0;
  padding: 8px 0 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.realtrend-mobile-product-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-inline: 12px;
}

.realtrend-mobile-product-head img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.realtrend-mobile-product-head h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
}

.realtrend-mobile-product-viewport {
  position: relative;
  overflow: hidden;
}

.realtrend-mobile-product-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}

.realtrend-mobile-product-track .realtrend-mobile-product-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

.realtrend-mobile-product-viewport:has(.realtrend-mobile-product-nav-btn:not([hidden])) .realtrend-mobile-product-card {
  padding-left: 36px;
  padding-right: 36px;
}

.realtrend-mobile-product-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  background: rgba(47, 47, 47, 0.72);
}

.realtrend-mobile-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  color: transparent;
  background: linear-gradient(145deg, #dff6ef, #9fd6c6);
  font-size: 0;
}

.realtrend-mobile-product-copy h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
}

.realtrend-mobile-product-copy .realtrend-brand {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.realtrend-mobile-product-copy a.realtrend-brand:hover {
  color: #fff;
  text-decoration: underline;
}

.realtrend-mobile-price {
  margin: 0;
}

.realtrend-mobile-price strong {
  color: #ff5a9a;
  font-size: 14px;
  font-weight: 700;
}

.realtrend-mobile-price del {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.realtrend-mobile-add {
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--rt-purple);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.3s ease-in-out;
}

.realtrend-mobile-add:hover {
  background: #31136C;
  color: #fff;
}

.realtrend-mobile-product-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, transform 0.15s ease;
}

.realtrend-mobile-product-nav-btn[data-mobile-product-nav="-1"] {
  left: 6px;
}

.realtrend-mobile-product-nav-btn[data-mobile-product-nav="1"] {
  right: 6px;
}

.realtrend-mobile-product-nav-btn:hover,
.realtrend-mobile-product-nav-btn:active {
  color: #fff;
}

.realtrend-mobile-product-nav-btn[hidden] {
  display: none;
}

.realtrend-mobile-product-nav-btn svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.realtrend-mobile-product-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   11. PRODUCT NAV ARROWS (prev/next product within the linked-goods panel)
   FLAG — NOT auto-merged: the original file defines .realtrend-product-nav /
   .realtrend-product-nav-btn TWICE with genuinely different designs:
     Version A (appeared first): 28px-wide buttons, soft gradient background,
       positioned inside the panel edges (left:0/right:0), rounded only on the outer corner.
     Version B (appeared later, near the end of the file): 44px-wide solid rounded-rect
       buttons positioned OUTSIDE the panel (left:-45px / right:-45px).
   Same selectors, same specificity — Version B silently wins in the cascade purely because
   it comes later in the file, making Version A fully dead code. I kept Version B below
   since it's the one actually rendering, but you should confirm that's the one you meant to
   keep — if Version A's inline gradient-on-edge style was the intended design, let me know
   and I'll swap it back in.
   ============================================================ */
.realtrend-product-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

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

.realtrend-product-nav-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: 0;
  color: #fff;
  background: rgba(18, 12, 26, 0.55);
  border-radius: 14px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease;
}

.realtrend-product-nav-btn[data-product-nav="-1"] {
  left: -45px;
}

.realtrend-product-nav-btn[data-product-nav="1"] {
  right: -45px;
}

.realtrend-product-nav-btn:hover {
  background: rgba(18, 12, 26, 0.75);
}

.realtrend-product-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.realtrend-product-nav-btn:hover svg {
  transform: scale(1.15);
}

.realtrend-product-nav-btn[data-product-nav="-1"]:hover svg {
  transform: scale(1.15) translateX(-2px);
}

.realtrend-product-nav-btn[data-product-nav="1"]:hover svg {
  transform: scale(1.15) translateX(2px);
}

.realtrend-product-nav-count {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .realtrend-page .realtrend-product-nav {
    display: none !important;
  }
}

/* ============================================================
   12. DESKTOP PRODUCT PANEL — WRAPPER
   ============================================================ */
.realtrend-panel {
  position: sticky;
  top: 24px;
  width: 100%;
  max-width: 520px;
}

.realtrend-panel.is-select-open {
  overflow: visible;
}

.realtrend-panel .realtrend-product-thumb,
.realtrend-panel .realtrend-product-name {
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    outline-color 0.2s ease;
}

.realtrend-panel .realtrend-product-thumb:hover,
.realtrend-panel .realtrend-product-thumb:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(55, 34, 99, 0.14);
  outline: 2px solid rgba(123, 63, 228, 0.28);
  outline-offset: 2px;
}

.realtrend-panel .realtrend-product-name:hover,
.realtrend-panel .realtrend-product-name:focus-visible {
  color: var(--rt-purple);
  outline: none;
}

/* ============================================================
   13. PRODUCT SHEET / MODAL WRAPPER (mobile bottom-sheet +
       trend-rail "sheet" desktop-modal variant share this shell)
   ============================================================ */
.trend-product-sheet[hidden] {
  display: none !important;
}

body.is-trend-product-sheet-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

html:has(body.is-trend-product-sheet-open) {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-trend-product-sheet-open .trend-product-sheet {
  display: flex !important;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1300;
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: rgba(18, 12, 26, 0.55);
  pointer-events: auto;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-card {
  overflow: visible;
  height: auto;
  max-height: none;
  flex-shrink: 0;
  background: var(--rt-product-card-surface);
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-card.is-select-open,
body.is-trend-product-sheet-open .trend-product-sheet.is-select-open {
  overflow: visible;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-sheet-close {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #666;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  line-height: 0;
  transition: background 0.3s ease;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-sheet-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-sheet-close svg {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-thumb,
body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-name {
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    outline-color 0.2s ease;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-thumb:hover,
body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-thumb:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(55, 34, 99, 0.14);
  outline: 2px solid rgba(123, 63, 228, 0.28);
  outline-offset: 2px;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-name:hover,
body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-name:focus-visible {
  color: var(--rt-purple);
  outline: none;
}

@keyframes rt-product-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rt-product-sheet-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Mobile-sheet variant (the .realtrend-panel content re-flowed as a bottom sheet) */
.realtrend-page.is-product-sheet-open {
  overflow: hidden;
}

.realtrend-page.is-product-sheet-open .realtrend-panel {
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2100;
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(18, 12, 26, 0.55);
  pointer-events: auto;
}

.realtrend-product-sheet-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.realtrend-page.is-product-sheet-open .realtrend-product-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #666;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  line-height: 0;
  transition: background 0.3s ease;
}

.realtrend-page.is-product-sheet-open .realtrend-product-sheet-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.realtrend-page.is-product-sheet-open .realtrend-product-sheet-close svg {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.realtrend-page.is-product-sheet-open .realtrend-product-card {
  width: 100%;
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 20px 20px 0 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  animation: rt-product-sheet-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  padding: 5%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.realtrend-page.is-product-sheet-open .realtrend-product-card.is-select-open {
  overflow: visible;
  transform: none;
}

.realtrend-page.is-product-sheet-open .realtrend-panel.is-select-open {
  overflow: visible;
}

.realtrend-page.is-product-sheet-open .realtrend-cart-toast.is-visible {
  display: grid !important;
  top: 28px;
  right: 0;
  z-index: 200;
  width: min(420px, calc(100vw - 16px));
}

.realtrend-page.is-product-sheet-open .realtrend-product-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.realtrend-page.is-product-sheet-open .realtrend-product-card,
.realtrend-page.is-product-sheet-open #goods_view_quickview,
.realtrend-page.is-product-sheet-open .qv-product-card {
  overflow-x: hidden;
  max-width: 100%;
}

body.realtrend-page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.realtrend-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ============================================================
   14. PRODUCT CARD CONTENTS (shared by .realtrend-panel desktop
       card AND both mobile/desktop sheet variants above)
   ============================================================ */
.realtrend-product-card {
  position: relative;
  border-radius: 28px;
  background: var(--rt-product-card-surface);
  box-sizing: border-box;
}

.realtrend-product-card.is-select-open {
  overflow: visible;
  transform: none;
}

.realtrend-product-card.is-select-open .realtrend-options-row,
.realtrend-product-card.is-select-open .realtrend-field {
  overflow: visible;
}

.realtrend-product-sheet-close {
  display: none;
}

.realtrend-kbeauty-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  background: var(--rt-purple);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.realtrend-product-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

.realtrend-product-thumb {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 10px;
  color: transparent;
  background:
    linear-gradient(145deg, #dff6ef, #9fd6c6),
    #d8efe8;
  font-size: 0;
}

.realtrend-product-meta {
  margin-left: 12px;
  min-width: 0;
}

.realtrend-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin: 0 0 4px;
}

.realtrend-brand {
  display: inline-block;
  margin: 0 0 4px;
  color: #8b8496;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.realtrend-brand-row .realtrend-brand {
  margin: 0;
}

a.realtrend-brand:hover {
  color: var(--rt-purple);
}

.realtrend-product-name {
  margin: 0 0 8px;
  color: #111;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.realtrend-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 30px;
  color: #666;
  font-size: 13px;
  line-height: 1;
}

.realtrend-rating img {
  width: 14px;
  height: 14px;
}

.realtrend-best {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--rt-purple);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.realtrend-price {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.realtrend-price strong {
  color: #111;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.realtrend-price del {
  color: #a8a0b3;
  font-size: 13px;
}

.realtrend-price mark {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--rt-purple);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px 8px;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price del,
body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price mark {
  order: 1;
  white-space: nowrap;
}

body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price strong {
  order: 2;
  flex: 0 0 100%;
}

.realtrend-bundle-mark {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7b3fe4 0%, #f04dff 100%);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.realtrend-bundle-mark[hidden] {
  display: none;
}

.realtrend-options-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.realtrend-field {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  min-width: 0;
}

.realtrend-field span,
.realtrend-qty-block > span {
  color: #111;
  font-size: 14px;
  font-weight: 500;
}

.realtrend-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  z-index: 1;
}

.realtrend-select-wrap.is-open {
  z-index: 30;
}

.realtrend-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.realtrend-select-wrap.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

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

.realtrend-select-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 41px;
  padding: 0 36px 0 12px;
  border: 0;
  border-radius: 10px;
  color: #111;
  background: #fff;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.realtrend-select-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtrend-select-menu {
  position: absolute;
  top: calc(100% - 3px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 31;
  margin: 0;
  padding: 10px 6px 6px 6px;
  list-style: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 12, 26, 0.14);
  max-height: min(220px, 40dvh);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.realtrend-select-menu:not(.is-open) {
  display: none;
}

.realtrend-select-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.realtrend-select-menu li {
  padding: 10px 12px;
  border-radius: 8px;
  color: #111;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.realtrend-select-menu li:hover,
.realtrend-select-menu li.is-selected {
  color: var(--rt-purple);
  background: #f2ebff;
}

.realtrend-select-menu li.is-sold-out {
  opacity: 0.34;
  cursor: not-allowed;
  pointer-events: none;
}

.realtrend-select-menu li.is-sold-out:hover,
.realtrend-select-menu li.is-sold-out.is-selected {
  color: #111;
  background: transparent;
}

.realtrend-qty-block {
  display: grid;
  gap: 8px;
}

.realtrend-qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 41px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.realtrend-qty button {
  width: 36px;
  height: 44px;
  border: 0;
  color: #111;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.realtrend-qty output {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.realtrend-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  margin-bottom: 20px;
}

.realtrend-add-cart {
  height: 46px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--rt-purple);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.realtrend-add-cart:hover {
  background: var(--rt-purple-dark);
}

.realtrend-product-card.is-select-open .realtrend-cta-row {
  pointer-events: none;
}

.realtrend-product-card.is-select-open .realtrend-add-cart {
  opacity: 0.55;
  cursor: not-allowed;
}

.realtrend-product-card.is-select-open .realtrend-add-cart:hover {
  background: var(--rt-purple);
}

.realtrend-wish {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.realtrend-wish img {
  position: absolute;
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.realtrend-wish-icon-hover {
  opacity: 0;
}

.realtrend-wish:not(.is-hover-suppressed):hover .realtrend-wish-icon-default,
.realtrend-wish.is-active .realtrend-wish-icon-default {
  opacity: 0;
}

.realtrend-wish:not(.is-hover-suppressed):hover .realtrend-wish-icon-hover,
.realtrend-wish.is-active .realtrend-wish-icon-hover {
  opacity: 1;
}

.realtrend-love {
  margin-bottom: 20px;
  padding: 18px 16px;
  border-radius: 11px;
  background: #fff;
}

.realtrend-love h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.realtrend-love ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.realtrend-love li {
  position: relative;
  padding-left: 22px;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
}

.realtrend-love li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rt-purple);
  font-weight: 700;
}

.realtrend-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.realtrend-reviews-head h3 {
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.realtrend-reviews-head a {
  color: #8b8496;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.realtrend-reviews-head a:hover {
  color: var(--rt-purple);
}

.realtrend-review-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.realtrend-review-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
}

.realtrend-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8d9ff, #cdb4ff);
}

.realtrend-review-copy {
  display: contents;
}

.realtrend-review-copy strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin-bottom: 0;
  color: #111;
  font-size: 13px;
  font-weight: 600;
}

.realtrend-review-copy p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.35;
}

.realtrend-stars {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.realtrend-stars img {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
}

/* ============================================================
   15. CART TOAST
   ============================================================ */
.realtrend-cart-toast {
  position: fixed;
  top: 36px;
  right: 0px;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px 14px 36px;
  border-radius: 12px 0 0 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 12, 26, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.realtrend-cart-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  cursor: pointer;
}

.realtrend-cart-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.realtrend-cart-toast-close {
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  color: #8b8496;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.realtrend-cart-toast-icon {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.realtrend-cart-toast-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.realtrend-cart-toast-ring circle {
  fill: none;
  stroke: var(--rt-purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: var(--rt-cart-toast-ring);
  stroke-dashoffset: calc(var(--rt-cart-toast-ring) * -1);
  transform-origin: 22px 22px;
  transform: rotate(-90deg);
}

.realtrend-cart-toast-ring circle.is-animating {
  animation: rt-cart-toast-ring var(--rt-cart-toast-duration) linear forwards;
}

@keyframes rt-cart-toast-ring {
  to {
    stroke-dashoffset: 0;
  }
}

.realtrend-cart-toast-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.realtrend-cart-toast-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.realtrend-cart-toast-copy p {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.realtrend-cart-toast-product {
  color: #444;
  font-weight: 600;
}

.realtrend-cart-toast-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(145deg, #dff6ef, #9fd6c6);
}

/* ============================================================
   16. SHARE DIALOG (appended to <body> by shortform_feed.js)
   ============================================================ */
.deal-share-dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-share-dialog[hidden] {
  display: none;
}

.deal-share-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 12, 26, 0.55);
  cursor: pointer;
}

.deal-share-modal {
  position: relative;
  z-index: 1;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(18, 12, 26, 0.24);
}

.deal-share-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #666;
  background: rgba(0, 0, 0, 0.06);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.deal-share-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.deal-share-eyebrow {
  margin: 0 0 4px;
  color: var(--rt-purple);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deal-share-modal h2 {
  margin: 0 0 6px;
  color: #111;
  font-size: 18px;
  font-weight: 800;
}

.deal-share-product {
  margin: 0 0 20px;
  color: #8b8496;
  font-size: 13px;
}

.deal-share-link-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
  background: #f4eefc;
}

.deal-share-link-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 13px;
  outline: none;
}

.deal-share-copy {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--rt-purple);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.deal-share-copy:hover {
  background: var(--rt-purple-dark);
}

.deal-share-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.deal-share-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #f8f6fb;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.deal-share-social-button:hover {
  background: #f2ebff;
  transform: translateY(-2px);
}

.deal-share-social-button img {
  border-radius: 50%;
}

.deal-share-status {
  margin: 14px 0 0;
  min-height: 16px;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.deal-share-status.is-success {
  color: var(--rt-purple);
  font-weight: 600;
}

body.is-deal-share-open {
  overflow: hidden;
}

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

/* ============================================================
   17. QUICKVIEW / GOODS-PANEL INTEGRATION
   ============================================================ */
.color_swatch_wrapper {
  position: relative;
  min-width: 0;
  width: 100%;
}

.color_swatch_wrapper .color_swatch_selection_area {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 2px;
  box-sizing: border-box;
}

#select_option_lay .goods_option_area,
.qv-field #select_option_lay {
  min-width: 0;
}

/* ============================================================
   18. RESPONSIVE — shared mobile/tablet (max-width: 1120px)
   ============================================================ */
@media (max-width: 760px) {
  .realtrend-shortform {
    width: 100%;
    height: calc(100dvh - var(--rt-floating-footer-h) - var(--rt-progress-h));
    min-height: 0;
  }
}

@media (max-width: 1120px) {
  body.realtrend-page {
    padding-bottom: var(--rt-floating-footer-h);
  }

  .realtrend-page .promo-bar,
  .realtrend-page .header-main,
  .realtrend-page .category-menu {
    display: none !important;
  }

  .realtrend-page .site-header {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
    background: transparent;
    pointer-events: none;
  }

  .realtrend-page .site-header .search-panel,
  .realtrend-page .site-header .mobile-menu-panel {
    pointer-events: auto;
  }

  .realtrend-page {
    background: #000;
  }

  body.realtrend-page .bottom-nav a,
  body.realtrend-page .bottom-nav a span {
    color: #fff;
  }

  body.realtrend-page .bottom-nav img {
    width: 24px;
    height: 24px;
  }

  body.realtrend-page .bottom-nav .cart-link b {
    top: 5px;
  }

  .realtrend-page .float-button.to-top {
    display: none !important;
  }

  .realtrend-page .realtrend-breadcrumb,
  .realtrend-page .realtrend-panel,
  .realtrend-page .realtrend-progress.desktop-only,
  .realtrend-page .realtrend-cart-toast {
    display: none !important;
  }

  .realtrend-page .realtrend-mobile-only {
    display: block;
  }

  .realtrend-page .realtrend-mobile-only.realtrend-product-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .realtrend-main {
    max-width: none;
    min-height: 0;
    padding: 0;
  }

  .realtrend-layout {
    display: block;
    min-height: 0;
  }

  .realtrend-feed {
    height: 100%;
  }

  .realtrend-mobile-product {
    bottom: var(--rt-mobile-bottom-gap);
  }

  .realtrend-progress-fill {
    background: var(--rt-purple);
  }

  .realtrend-slide .realtrend-social {
    right: 14px;
    bottom: var(--rt-mobile-social-offset);
    z-index: 4;
    gap: 16px;
  }

  .realtrend-social-btn {
    font-size: 11px;
  }

  .realtrend-social-btn img {
    width: 26px;
    height: 26px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-card > * {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* ============================================================
   19. RESPONSIVE — mobile only (max-width: 760px)
   ============================================================ */
@media (max-width: 760px) {
  .realtrend-page {
    --rt-mobile-social-offset: calc(var(--rt-slide-bottom-reserve) + 44px);
  }

  .realtrend-page .realtrend-nav-arrows {
    display: none !important;
  }

  .realtrend-player-wrap {
    display: block;
  }

  .realtrend-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .realtrend-media {
    min-height: 100%;
  }

  .realtrend-price {
    gap: 4px 8px;
  }

  .realtrend-bundle-mark {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7b3fe4 0%, #f04dff 100%);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .realtrend-bundle-mark[hidden] {
    display: none;
  }

  .realtrend-price del,
  .realtrend-price mark {
    order: 1;
  }

  .realtrend-price strong {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
  }

  .realtrend-page.is-product-sheet-open .realtrend-panel {
    align-items: flex-end;
    padding-bottom: 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-card {
    max-height: min(70dvh, 580px);
    padding: 0;
    border-radius: 16px 16px 0 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-kbeauty-tag {
    margin-bottom: 18px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-head {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-thumb {
    width: 120px;
    height: 120px;
    border-radius: 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-meta {
    margin-left: 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-brand {
    font-size: 13px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-name {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-rating {
    gap: 5px;
    margin-bottom: 18px;
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-rating img {
    width: 12px;
    height: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-best {
    padding: 3px 8px;
    font-size: 13px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price {
    gap: 3px 6px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price strong {
    font-size: 20px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price del {
    font-size: 13px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price mark {
    padding: 3px 8px;
    font-size: 13px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-options-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    margin-bottom: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-field span,
  .realtrend-page.is-product-sheet-open .realtrend-qty-block > span {
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-field {
    gap: 6px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-select-trigger {
    height: 36px;
    padding: 0 30px 0 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-select-wrap::after {
    right: 10px;
    width: 10px;
    height: 7px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-select-menu {
    padding: 5px;
    border-radius: 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-select-menu li {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-qty {
    height: 36px;
    border-radius: 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-qty button {
    width: 30px;
    height: 36px;
    font-size: 16px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-qty output {
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-qty-block {
    gap: 6px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-cta-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    margin-bottom: 18px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-add-cart {
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-wish {
    width: 44px;
    height: 40px;
    border-radius: 9px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-wish img {
    width: 18px;
    height: 18px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-love {
    margin-bottom: 18px;
    padding: 14px 12px;
    border-radius: 9px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-love h3 {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-love ul {
    gap: 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-love li {
    padding-left: 18px;
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-reviews-head {
    margin-bottom: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-reviews-head h3 {
    font-size: 14px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-reviews-head a {
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-review-list {
    gap: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-review-list li {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 2px 8px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-avatar {
    width: 30px;
    height: 30px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-review-copy strong {
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-review-copy p {
    font-size: 12px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-stars img {
    width: 10px;
    height: 10px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-sheet-close svg {
    width: 16px;
    height: 16px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-head {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-thumb {
    width: 120px;
    height: 120px;
    border-radius: 8px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-meta {
    margin-left: 8px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-brand {
    font-size: 13px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-name {
    margin-bottom: 6px;
    font-size: 16px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-rating {
    gap: 5px;
    margin-bottom: 18px;
    font-size: 12px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-rating img {
    width: 12px;
    height: 12px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-best {
    padding: 3px 8px;
    font-size: 13px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price {
    gap: 3px 6px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price strong {
    font-size: 20px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price del {
    font-size: 13px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-price mark {
    padding: 3px 8px;
    font-size: 13px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-options-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    margin-bottom: 12px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-field span,
  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-qty-block > span {
    font-size: 12px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-select-trigger {
    height: 36px;
    padding: 0 30px 0 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-qty {
    height: 36px;
    border-radius: 8px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-qty button {
    width: 30px;
    height: 36px;
    font-size: 16px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-cta-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    margin-bottom: 18px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-add-cart {
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-wish {
    width: 44px;
    height: 40px;
    border-radius: 9px;
  }
}

@media (max-width: 415px) {
  .realtrend-mobile-add {
    height: 30px;
    padding: 0 7px;
    font-size: 12px;
    border-radius: 5px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-thumb {
    width: 120px;
    height: 120px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-brand-row {
    gap: 6px;
    margin: 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-product-name {
    margin: 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin: 0;
    margin-bottom: 6px;
  }

  .realtrend-page.is-product-sheet-open .realtrend-rating img {
    flex-shrink: 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-rating > span {
    white-space: nowrap;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 6px;
    margin: 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price::after {
    content: "";
    order: 1;
    flex-basis: 100%;
    width: 0;
    height: 0;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price mark {
    order: 1;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price strong {
    order: 2;
    flex: 0 0 auto;
    width: auto;
  }

  .realtrend-page.is-product-sheet-open .realtrend-price del {
    order: 3;
    flex: 0 0 auto;
    width: auto;
  }
}

/* ============================================================
   20. RESPONSIVE — tablet (761px – 1120px)
   ============================================================ */
@media (min-width: 761px) and (max-width: 1120px) {
  .realtrend-page {
    --rt-mobile-product-h: 154px;
    --rt-mobile-bottom-gap: 28px;
    --rt-mobile-social-offset: 186px;
    --rt-slide-bottom-reserve: calc(var(--rt-mobile-product-h) + var(--rt-mobile-bottom-gap));
    --rt-tablet-available-h: calc(100dvh - var(--rt-floating-footer-h) - var(--rt-progress-h));
    --rt-tablet-video-h: min(var(--rt-tablet-available-h), calc(100vw * 16 / 9));
    --rt-tablet-video-w: min(100vw, calc(var(--rt-tablet-video-h) * 9 / 16));
    background: var(--rt-bg);
  }

  .realtrend-page .realtrend-mobile-only.realtrend-mobile-product {
    padding-top: 14px;
  }

  .realtrend-mobile-product-head {
    margin-bottom: 12px;
  }

  .realtrend-mobile-product-head h2 {
    font-size: 15px;
  }

  .realtrend-mobile-product-card {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px 8px 0 0;
  }

  .realtrend-mobile-product-thumb {
    width: 70px;
    height: 70px;
  }

  .realtrend-mobile-product-copy h3 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .realtrend-mobile-add {
    height: 32px;
    padding: 0 16px;
    font-size: 12px;
  }

  .realtrend-page .realtrend-progress.realtrend-progress--dock {
    height: 5px;
  }

  .realtrend-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--rt-tablet-available-h);
    background: var(--rt-bg);
  }

  .realtrend-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--rt-tablet-available-h);
    background: var(--rt-bg);
  }

  .realtrend-player-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--rt-bg);
  }

  .realtrend-nav-arrows {
    position: absolute;
    top: 50%;
    left: calc(50% + (var(--rt-tablet-video-w) / 2) + 20px);
    transform: translateY(-50%);
    z-index: 5;
  }

  .realtrend-shortform {
    position: relative;
    width: var(--rt-tablet-video-w);
    height: var(--rt-tablet-video-h);
    flex-shrink: 0;
  }

  .realtrend-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .realtrend-feed {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }

  .realtrend-media {
    min-height: 100%;
    object-fit: cover;
  }
}

/* ============================================================
   21. RESPONSIVE — desktop (min-width: 1121px)
   ============================================================ */
@media (min-width: 1121px) {
  .realtrend-page .site-header {
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .realtrend-page .promo-bar,
  .realtrend-page .category-menu {
    display: block;
  }

  .realtrend-page .header-main {
    display: grid;
    align-items: center;
  }

  .realtrend-page .header-main .logo,
  .realtrend-page .header-main .header-actions {
    align-self: center;
  }

  .realtrend-page .header-main .header-actions {
    display: flex;
    align-items: center;
  }

  .realtrend-page {
    min-height: calc(100vh - var(--rt-header-h));
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .realtrend-breadcrumb {
    flex-shrink: 0;
  }

  .realtrend-layout {
    grid-template-columns: auto minmax(380px, 520px);
    justify-content: center;
    gap: 8%;
    flex: 1;
    display: flex;
    align-items: flex-start;
  }

  .realtrend-player-wrap {
    gap: 20px;
  }

  .realtrend-shortform {
    position: relative;
    height: min(var(--rt-video-h), calc(100vh - var(--rt-header-h) - var(--rt-desktop-vertical-margin)));
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: var(--rt-video-w);
    max-height: 100%;
    flex-shrink: 0;
  }

  .realtrend-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    overscroll-behavior: contain;
  }

  .realtrend-feed {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }

  .realtrend-media {
    min-height: 0;
    object-fit: cover;
  }

  body.is-trend-product-sheet-open .trend-product-sheet {
    padding: 24px;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-card {
    width: min(520px, 100%);
    max-width: 520px;
    height: auto;
    max-height: calc(100dvh - 48px);
    margin: auto;
    overflow-y: auto;
    touch-action: pan-y;
    border-radius: 28px;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
    animation: rt-product-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  body.is-trend-product-sheet-open .trend-product-sheet .realtrend-product-sheet-close {
    right: 24px;
    top: 24px;
    width: 32px;
    height: 32px;
  }

  .realtrend-panel .realtrend-product-card {
    height: min(var(--rt-video-h), calc(100vh - var(--rt-header-h) - var(--rt-desktop-vertical-margin)));
    max-height: min(var(--rt-video-h), calc(100vh - var(--rt-header-h) - var(--rt-desktop-vertical-margin)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .realtrend-panel .realtrend-product-card::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .realtrend-panel .realtrend-product-card #goods_view_quickview {
    display: block;
    height: 100%;
    min-height: 100%;
    max-height: min(var(--rt-video-h), calc(100vh - var(--rt-header-h) - var(--rt-desktop-vertical-margin)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .realtrend-panel .realtrend-product-card .qv-product-card {
    min-height: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1120px) {
  .realtrend-panel .realtrend-product-card #goods_view_quickview {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}
