:root {
  --sf-media-surface: #f4f3f5;
  --sf-media-text: #5d6b78;
}

.sf-media-frame {
  position: relative;
  overflow: hidden;
  background: var(--sf-media-surface);
  border-radius: inherit;
}

.sf-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

.sf-media-frame--contain {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-media-frame--contain img {
  object-fit: contain;
}

.sf-media-frame--cover img {
  object-fit: cover;
}

.sf-header-logo--desktop {
  display: block;
  width: auto;
  max-height: 64px;
  object-fit: contain;
}

.sf-media-frame--product-card {
  aspect-ratio: 1 / 1;
  min-height: 260px;
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 10px;
}

.sf-media-frame--product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  transform: scale(1.06);
  transform-origin: center center;
}

.sf-media-frame--product-card .sf-media-placeholder {
  position: absolute;
  inset: 0;
}

.sf-media-frame--deal,
.sf-media-frame--spotlight {
  aspect-ratio: 1 / 1;
  min-height: 240px;
}

.sf-media-frame--collection {
  aspect-ratio: 4 / 3;
  min-height: 240px;
}

.sf-media-frame--category-hero {
  aspect-ratio: 5 / 4;
  min-height: 320px;
}

.sf-media-frame--detail-main {
  aspect-ratio: 1 / 1;
  min-height: clamp(320px, 52vw, 520px);
}

.sf-media-frame--detail-thumb {
  aspect-ratio: 1 / 1;
  min-height: 84px;
  padding: 0.625rem;
}

.sf-media-frame--cart-thumb {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 1 / 1;
}

.sf-media-frame--editorial-portrait {
  aspect-ratio: 4 / 5;
  min-height: 320px;
}

.sf-media-frame--editorial-landscape {
  aspect-ratio: 4 / 3;
  min-height: 320px;
}

.sf-media-frame--category-directory-banner {
  aspect-ratio: 16 / 7;
  min-height: clamp(150px, 22vw, 190px);
}

.sf-media-frame--category-directory-thumb {
  aspect-ratio: 1 / 1;
  width: 64px;
  min-width: 64px;
  height: 64px;
}

.sf-widget-category-media {
  width: 100%;
  max-width: 100px;
  aspect-ratio: 1 / 1;
  min-height: 84px;
  margin: 0 auto;
  display: block;
  padding: 0;
}

.sf-widget-category-media img {
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}

.sf-widget-limited-time-card {
  height: 100%;
}

.sf-widget-limited-time-card .limited-time-product-countdown {
  display: inline-flex;
}

.sf-widget-limited-time-title {
  display: -webkit-box;
  min-height: 60px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sf-widget-featured-media,
.sf-widget-spotlight-side-media {
  width: 100%;
  min-height: 240px;
  flex: none;
  border-bottom: 1px solid rgb(229 231 235);
}

.sf-widget-featured-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: transparent;
}

.sf-widget-featured-media img {
  width: 100%;
  height: 100%;
  max-height: 80vw;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 1 /1;
}

.sf-widget-featured-media .sf-media-placeholder {
  position: absolute;
  inset: 0;
}

.sf-widget-deal-card {
  height: 100%;
}

.sf-widget-deal-media {
  width: 100%;
  min-height: clamp(260px, 34vw, 400px);
}

.home-five-deal-of-the-day-slider .sf-widget-deal-media {
  padding: 0;
  background: transparent;
}

.home-five-deal-of-the-day-slider .sf-widget-deal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}

.sf-widget-spotlight-hero-media {
  width: 100%;
  max-width: 528px;
  min-height: clamp(320px, 34vw, 440px);
  margin: 0 auto;
  padding: 0;
  display: block;
  background: transparent;
}

.sf-widget-spotlight-hero-media img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sf-widget-promo-tile,
.sf-widget-promo-banner {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sf-home-widget--top > section {
  padding-top: 1.5rem;
}

.sf-widget-promo-tile {
  min-height: 600px;
}

.sf-widget-promo-banner {
  min-height: 528px;
}

.sf-widget-tiktok-card {
  background:
    radial-gradient(circle at top left, rgba(37, 244, 238, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(254, 44, 85, 0.12), transparent 28%),
    #fff;
}

.sf-widget-tiktok-player {
  width: 100%;
  max-width: 420px;
}

.sf-widget-tiktok-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 560px;
  border: 0;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.16);
}

.sf-widget-deal-slider .slick-track {
  display: flex;
}

.sf-widget-deal-slider .slick-slide {
  height: auto;
}

.sf-widget-deal-slider .slick-slide > div,
.sf-widget-deal-slider .single-slider-item {
  height: 100%;
}

.sf-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--sf-media-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sf-media-placeholder--small {
  font-size: 0.68rem;
  padding: 0.75rem;
}

.sf-rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 1.5rem;
}

.sf-rich-content figure {
  margin: 1.5rem 0;
}

.sf-rich-content figure img {
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .sf-widget-featured-media,
  .sf-widget-spotlight-side-media {
    max-width: 190px;
    min-width: 190px;
    min-height: 100%;
    border-right: 1px solid rgb(229 231 235);
    border-bottom: 0;
  }
}

@media (min-width: 768px) {
  .sf-home-widget--top > section {
    padding-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .sf-media-frame--cart-thumb {
    width: 100%;
    max-width: 120px;
    min-width: 0;
  }

  .home-five-deal-of-the-day-slider .sf-widget-deal-media {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .home-five-deal-of-the-day-slider .sf-widget-deal-media img {
    aspect-ratio: 1 / 1;
  }

  .sf-widget-limited-time-title {
    min-height: 0;
  }

  .sf-widget-promo-tile {
    min-height: 420px;
  }

  .sf-widget-promo-banner {
    min-height: 420px;
  }

  .sf-widget-tiktok-player {
    max-width: none;
  }

  .sf-widget-tiktok-player iframe {
    min-height: 420px;
  }
}
